/* ═══════════════════════════════════════════
   LAYOUT — Nav, Footer, Shared Components
   ═══════════════════════════════════════════ */

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.logo-icon {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}
.nav-links a,
.nav-menu > li > a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:hover,
.nav-menu > li > a:hover {
  color: var(--cyan);
}
.submenu-arrow {
  transition: transform 0.3s ease;
}
.nav-item:hover .submenu-arrow {
  transform: rotate(180deg);
}
.nav-links .nav-cta,
.nav-menu .nav-cta {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 10px 22px;
  border-radius: 50px;
  color: var(--cyan);
}
.nav-links .nav-cta:hover,
.nav-menu .nav-cta:hover {
  background: rgba(0, 229, 255, 0.25);
}

/* ─── Desktop Sub-menu Dropdown ─── */
.nav-item .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 100;
}
.nav-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item .sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-item .sub-menu li a:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}

/* Hamburger → X when menu open */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  overflow-y: auto;
  max-height: calc(100vh - 60px);
}
.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu a,
.mobile-nav-menu > li > a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu.open {
  display: flex;
}

/* Mobile sub-menu */
.mobile-nav-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 16px;
  display: none;
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: none;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
}
.mobile-nav-menu .has-submenu.open > .sub-menu {
  display: block;
}
.mobile-nav-menu .sub-menu li {
  border-bottom: none;
}
.mobile-nav-menu .sub-menu li a {
  border: none;
  outline: none;
  box-shadow: none;
  background: none;
  border-radius: 0;
}
.mobile-nav-menu .sub-menu a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 0;
}
.mobile-nav-menu .sub-menu a:hover {
  color: var(--cyan);
}
.mobile-nav-menu .has-submenu > a .submenu-arrow {
  transition: transform 0.3s ease;
}
.mobile-nav-menu .has-submenu.open > a .submenu-arrow {
  transform: rotate(180deg);
}

/* ─── Footer ─── */
.footer {
  background: var(--navy);
  padding: 64px 0 0;
  position: relative;
  z-index: 1;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--blue-bright),
    var(--cyan),
    var(--blue-bright)
  );
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--cyan);
}

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 50%, #0d2f5e 100%);
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(0, 229, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(41, 98, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .section-container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: var(--cyan);
}
.breadcrumb span {
  color: rgba(255, 255, 255, 0.3);
}
.breadcrumb .current {
  color: var(--cyan);
}

/* ─── Section Background Utilities ─── */
.section-frost {
  background: var(--frost);
}
.section-white {
  background: var(--white);
}
.section-dark {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 100%);
}

/* ─── Inner Page Sections ─── */
.inner-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* ─── CTA Band (shared across pages) ─── */
.cta-band {
  padding: 80px 0;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 100%);
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 50% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band .section-container {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-band p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-primary {
  font-size: 1rem;
  padding: 16px 36px;
}

/* ─── Shared: Why-Us Grid & Cards (front-page, facilities) ─── */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.why-card {
  background: var(--frost);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.35s ease;
  position: relative;
}
.why-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: var(--shadow-frost);
  transform: translateY(-3px);
}

.why-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    rgba(41, 98, 255, 0.15),
    rgba(0, 229, 255, 0.15)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ─── Shared: Specialist Card (front-page, about) ─── */
.specialist-highlight {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: visible;
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.specialist-photo {
  flex-shrink: 0;
  width: 300px;
  height: 380px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.specialist-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(41, 98, 255, 0.08));
  transform: rotate(-6deg);
  z-index: 0;
}
.specialist-photo::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(0, 229, 255, 0.2);
  border-radius: 50%;
  z-index: 0;
}
.specialist-photo img {
  width: 85%;
  height: 85%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}
.geo-dots {
  position: absolute;
  bottom: -5px;
  left: -15px;
  width: 60px;
  height: 60px;
  background-image: radial-gradient(circle, rgba(0, 229, 255, 0.25) 2px, transparent 2px);
  background-size: 10px 10px;
  z-index: 0;
}
.geo-ring {
  position: absolute;
  bottom: 30px;
  right: -5px;
  width: 50px;
  height: 50px;
  border: 2px dashed rgba(0, 229, 255, 0.15);
  border-radius: 8px;
  transform: rotate(15deg);
  z-index: 0;
}

.specialist-detail h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.specialist-role {
  display: block;
  font-size: 0.95rem;
  color: var(--blue-bright);
  font-weight: 600;
  margin-bottom: 4px;
}

.specialist-title {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.5;
}

.specialist-qualifications {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.specialist-qualifications h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.specialist-qualifications ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.specialist-qualifications li {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.specialist-qualifications li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue-bright));
}

/* ─── Shared: Facility Mosaic (front-page, about) ─── */
.facility-grid-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.mosaic-item {
  background: linear-gradient(135deg, var(--ice), var(--frost));
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.mosaic-large {
  grid-column: 1 / -1;
  min-height: 220px;
}
.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mosaic-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-400);
  font-size: 0.85rem;
}

/* ─── Shared: MVP Grid & Cards (about, facilities, 404) ─── */
.mvp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mvp-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.mvp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
}
.mvp-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.mvp-card .mvp-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(41, 98, 255, 0.08));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.mvp-card .mvp-icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue-bright);
}
.mvp-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.mvp-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .mvp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-menu {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  .specialist-highlight {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
    gap: 32px;
  }
  .specialist-photo {
    width: 250px;
    height: 320px;
    margin: 0 auto;
  }
  .specialist-qualifications li {
    text-align: left;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .page-hero {
    padding: 80px 0 60px;
  }
  .page-hero p {
    padding: 0 16px;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
  .mvp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cta-band .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
