/*
Theme Name: NRB Vistara Block Theme
Theme URI: https://www.nrbvistara.com/
Author: M360 ICT
Author URI: https://m360ict.com/
Description: A clean full-site-editing Gutenberg block theme for NRB Vistara Limited. Built with editable hero, services, tourism, healthcare, cruise, hospitality, trading, contact, pages, posts and navigation. Security hardening is kept outside the theme for better maintainability.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nrb-vistara
Tags: full-site-editing, block-patterns, editor-style, custom-colors, custom-logo, one-column, wide-blocks
*/

:root {
  --nrb-primary: #0077b6;
  --nrb-secondary: #00b4d8;
  --nrb-deep: #061a40;
  --nrb-accent: #7b2cbf;
  --nrb-text: #263238;
  --nrb-muted: #62727b;
  --nrb-light: #f2fbff;
  --nrb-border: #d9edf6;
  --nrb-shadow: 0 20px 50px rgba(6, 26, 64, 0.12);
  --nrb-radius: 24px;
}

html { scroll-behavior: smooth; }
body { line-height: 1.65; }
a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

.wp-site-blocks { overflow-x: clip; }
.nrb-container { width: min(1180px, 92%); margin-inline: auto; }
.nrb-topbar {
  background: linear-gradient(90deg, var(--nrb-deep), #073b6d);
  color: #dff8ff;
  font-size: 14px;
}
.nrb-topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.nrb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.admin-bar .nrb-header { top: 32px; }
.nrb-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  gap: 24px;
}
.nrb-header .wp-block-site-logo img { max-width: 130px; height: auto; }
.nrb-header .wp-block-site-title a { color: var(--nrb-deep); font-weight: 900; text-decoration: none; }
.nrb-header .wp-block-navigation a { font-weight: 700; font-size: 14px; text-decoration: none; }
.nrb-header .wp-block-navigation a:hover { color: var(--nrb-primary); }

.nrb-section { padding-top: clamp(60px, 8vw, 84px); padding-bottom: clamp(60px, 8vw, 84px); }
.nrb-soft {
  background: linear-gradient(180deg, #f4fbff, #fff);
}
.nrb-dark {
  background: linear-gradient(135deg, var(--nrb-deep), #073b6d);
  color: #fff;
}
.nrb-dark p,
.nrb-dark li { color: #cbeaf4; }

.nrb-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 180, 216, 0.35), transparent 30%),
    linear-gradient(135deg, #eefbff 0%, #fff 45%, #eaf9ff 100%);
  padding-top: clamp(64px, 10vw, 96px);
  padding-bottom: clamp(58px, 8vw, 76px);
}
.nrb-hero:before {
  content: "";
  position: absolute;
  right: -10%;
  top: 8%;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.12), rgba(123, 44, 191, 0.12));
  filter: blur(4px);
}
.nrb-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 50px);
  align-items: center;
  position: relative;
}
.nrb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: #fff;
  border: 1px solid var(--nrb-border);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--nrb-primary);
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 8px 30px rgba(0, 119, 182, 0.08);
}
.nrb-hero-title {
  font-size: clamp(38px, 6vw, 72px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em;
  color: var(--nrb-deep);
  margin-top: 18px !important;
  margin-bottom: 18px !important;
}
.nrb-lead { font-size: 18px; color: #40515a; max-width: 660px; }
.nrb-hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.nrb-btn-primary .wp-block-button__link,
.wp-block-button.is-style-nrb-primary .wp-block-button__link {
  background: linear-gradient(135deg, var(--nrb-primary), var(--nrb-secondary));
  color: #fff;
  box-shadow: 0 16px 35px rgba(0, 119, 182, 0.25);
  border: 0;
}
.nrb-btn-outline .wp-block-button__link,
.wp-block-button.is-style-nrb-outline .wp-block-button__link {
  background: #fff;
  color: var(--nrb-deep);
  border: 1px solid #a9dff0;
}
.wp-block-button__link { font-weight: 800; border-radius: 999px; padding: 14px 22px; }
.nrb-hero-media img,
.nrb-rounded-image img {
  border-radius: 34px;
  box-shadow: var(--nrb-shadow);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.nrb-section-head { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.nrb-label {
  color: var(--nrb-primary);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}
.nrb-section-title {
  font-size: clamp(30px, 4vw, 48px) !important;
  line-height: 1.08 !important;
  margin: 10px 0 !important;
  color: var(--nrb-deep);
  letter-spacing: -0.03em;
}
.nrb-dark .nrb-section-title { color: #fff; }
.nrb-section-head p { color: var(--nrb-muted); margin-top: 0; }
.nrb-dark .nrb-section-head p { color: #cbeaf4; }

.nrb-card {
  background: #fff;
  border: 1px solid var(--nrb-border);
  border-radius: var(--nrb-radius);
  padding: 26px;
  box-shadow: 0 12px 35px rgba(6, 26, 64, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.nrb-card:hover { transform: translateY(-5px); box-shadow: var(--nrb-shadow); }
.nrb-dark .nrb-card { background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,.15); }
.nrb-dark .nrb-card h1,
.nrb-dark .nrb-card h2,
.nrb-dark .nrb-card h3,
.nrb-dark .nrb-card h4 { color: #fff; }
.nrb-card h3,
.nrb-card h4 { margin-top: 0; color: var(--nrb-deep); }
.nrb-card p { color: var(--nrb-muted); margin-bottom: 0; }
.nrb-dark .nrb-card p { color: #cbeaf4; }
.nrb-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e0f7ff, #fff);
  display: grid;
  place-items: center;
  font-size: 25px;
  margin-bottom: 16px;
}
.nrb-dark .nrb-icon { background: rgba(255, 255, 255, 0.12); }

.nrb-service-block {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 26px;
  align-items: start;
}
.nrb-side-title {
  position: sticky;
  top: 96px;
  background: linear-gradient(135deg, var(--nrb-primary), var(--nrb-secondary));
  color: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--nrb-shadow);
}
.nrb-side-title h2,
.nrb-side-title h3 { color: #fff; margin-top: 0; font-size: 30px; line-height: 1.1; }
.nrb-side-title p { color: #eafaff; }
.nrb-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nrb-mini {
  background: #fff;
  border: 1px solid var(--nrb-border);
  border-radius: 20px;
  padding: 20px;
}
.nrb-mini h3,
.nrb-mini h4 { margin: 0 0 7px; color: var(--nrb-deep); font-size: 17px; }
.nrb-mini p { margin: 0; color: var(--nrb-muted); font-size: 14px; }

.nrb-table-wrap { overflow-x: auto; border-radius: 24px; border: 1px solid var(--nrb-border); box-shadow: 0 12px 35px rgba(6, 26, 64, 0.06); }
.nrb-table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; background: #fff; }
.nrb-table-wrap th,
.nrb-table-wrap td { padding: 16px; text-align: left; border-bottom: 1px solid var(--nrb-border); }
.nrb-table-wrap th { background: #e9f8ff; color: var(--nrb-deep); }
.nrb-table-wrap tr:last-child td { border-bottom: 0; }

.nrb-cta {
  background: linear-gradient(135deg, #e8f9ff, #fff);
  border: 1px solid var(--nrb-border);
  border-radius: 36px;
  padding: clamp(26px, 5vw, 42px);
  box-shadow: var(--nrb-shadow);
}
.nrb-footer {
  background:
    radial-gradient(circle at top right, rgba(0, 180, 216, .22), transparent 35%),
    linear-gradient(135deg, var(--nrb-deep), #073b6d);
  color: #cfe8f2;
  padding: 70px 0 26px;
}
.nrb-footer a { color: inherit; text-decoration: none; }
.nrb-footer-main { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 34px; align-items: start; }
.nrb-footer-brand {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
}
.nrb-footer-brand h2,
.nrb-footer-brand h3 { color: #fff; margin-top: 0; }
.nrb-office-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nrb-office-card {
  background: #fff;
  color: #263238;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(217, 237, 246, .9);
  box-shadow: 0 14px 35px rgba(6, 26, 64, .15);
}
.nrb-office-card h3,
.nrb-office-card h4 { margin-top: 0; color: var(--nrb-deep); }
.nrb-office-card p { color: #50626b; }
.nrb-office-card a { color: var(--nrb-primary); font-weight: 800; }
.nrb-footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #bcd7e2; }

.nrb-query-card { height: 100%; }
.nrb-query-card .wp-block-post-title a { text-decoration: none; color: var(--nrb-deep); }
.nrb-query-card .wp-block-post-excerpt { color: var(--nrb-muted); }

@media (max-width: 900px) {
  .admin-bar .nrb-header { top: 46px; }
  .nrb-hero-grid,
  .nrb-service-block,
  .nrb-footer-main,
  .nrb-office-grid { grid-template-columns: 1fr; }
  .nrb-mini-grid { grid-template-columns: 1fr; }
  .nrb-side-title { position: relative; top: auto; }
  .nrb-header-inner { min-height: 68px; }
}
@media (max-width: 600px) {
  .admin-bar .nrb-header { top: 0; }
  .nrb-topbar { font-size: 12px; }
  .nrb-card { padding: 22px; }
}

.nrb-header,
.nrb-header-inner,
.nrb-header .wp-block-navigation {
  overflow: visible;
}

.nrb-header .wp-block-navigation__responsive-container-open {
  border: 0;
  background: var(--nrb-deep);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .nrb-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    padding: 26px 22px 40px !important;
    box-sizing: border-box;
  }

  .nrb-header .wp-block-navigation__responsive-container.is-menu-open 
  .wp-block-navigation__responsive-container-content {
    align-items: flex-start !important;
    width: 100%;
    padding-top: 72px;
  }

  .nrb-header .wp-block-navigation__responsive-container.is-menu-open 
  .wp-block-navigation__container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .nrb-header .wp-block-navigation__responsive-container.is-menu-open 
  .wp-block-navigation-item {
    width: 100% !important;
  }

  .nrb-header .wp-block-navigation__responsive-container.is-menu-open 
  .wp-block-navigation-item__content {
    display: block !important;
    width: 100% !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--nrb-border);
    color: var(--nrb-deep) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
  }
}
