/* ==========================================================================
   02-megamenu-corporate / layout.css
   Layout-only properties. NO colors, fonts, shadows, border-radius.
   ========================================================================== */

/* ---------- Skip Nav ---------- */
/* Defined in base.css — no override needed */

/* ---------- Container ---------- */
/* Defined in base.css with var(--container-max) — no override needed */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-top-bar {
  width: 100%;
  overflow: hidden;
  max-height: 50px;
  transform-origin: top;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.site-header.is-shrunk .header-top-bar {
  transform: scaleY(0);
  max-height: 0;
  padding: 0;
  opacity: 0;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}

.top-bar-contact {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.header-main {
  width: 100%;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  gap: 1rem;
}

.logo { flex-shrink: 0; }
/* Hero image used as logo looks wrong; hide the img and let an optional
   sibling .logo-text render the brand. */
.site-header .logo img,
.footer-brand img { display: none; }
.site-header .logo .logo-text,
.footer-brand .logo-text {
  display: inline-block;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  white-space: nowrap;
  text-decoration: none;
  padding: 0.35rem 0;
}
.site-header .logo a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ---------- Mega Navigation ---------- */
.mega-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mega-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.mega-nav-item {
  position: static;
}

.mega-nav-item > a,
.mega-nav-item > button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.6rem;
  white-space: nowrap;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Prevent rounded / pill-shaped header on styles that add border-radius */
.site-header,
.header-main,
.header-main-inner {
  border-radius: 0 !important;
}

/* ---------- Mega Menu Panels ---------- */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: none;
  z-index: 999;
}

.megamenu.is-open {
  display: block;
}

.megamenu-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

.megamenu-column ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.megamenu-column li {
  padding: 0.375rem 0;
}

.megamenu-cta-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

/* ---------- Header CTA & Mobile Toggle ---------- */
.header-cta { flex-shrink: 0; margin-left: auto; }
/* .btn-get-help — defined in components.css */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: 1rem;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
}

/* ---------- Hero Full-Width ---------- */
.hero-fullwidth {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-fullwidth .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

.hero-fullwidth .hero-content {
  max-width: 600px;
  color: var(--color-text-inverse, #FFFFFF);
}

.hero-fullwidth .hero-content h1 {
  color: var(--color-text-inverse, #FFFFFF);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-fullwidth .hero-content p {
  color: var(--color-text-inverse, #FFFFFF);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ---------- Trust Bar ---------- */
.trust-bar { padding: 1.5rem 0; }

.trust-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Page Hero ---------- */
.page-hero { padding: 3.5rem 0; }

/* ---------- Section Patterns ---------- */
.section-header { margin-bottom: 2rem; }
.content-section { padding: 4rem 0; }

/* ---------- Two Column Layout ---------- */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col-layout.reverse .col-media { order: -1; }

.col-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Programs Grid ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.program-card { overflow: hidden; }
.program-card img { width: 100%; height: auto; display: block; }
.program-card-body { padding: 1.5rem; }

/* ---------- Contact Grid ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-card { padding: 1.5rem; }

/* ---------- Insurance Logos ---------- */
.insurance-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

/* ---------- Map ---------- */
.map-embed { width: 100%; height: 450px; overflow: hidden; margin: 2rem 0; }
.map-embed iframe { width: 100%; height: 100%; display: block; }

/* ---------- Process Steps ---------- */
.process-steps { padding-left: 1.5rem; margin: 2rem 0; }
.process-steps li { margin-bottom: 2rem; padding-left: 0.5rem; }

/* ---------- Facility Gallery ---------- */
.facility-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.facility-gallery img { width: 100%; height: auto; display: block; }

/* ---------- Blog Listing ---------- */
.blog-listing article { margin-bottom: 2.5rem; padding-bottom: 2.5rem; }

/* ---------- Privacy ---------- */
.privacy-content section { margin-bottom: 2rem; }

/* ---------- Section CTA ---------- */
.section-cta { margin-top: 2rem; display: flex; justify-content: center; }

/* ---------- CTA Banner ---------- */
.cta-banner { padding: 4rem 0; width: 100%; }
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
/* .btn — defined in components.css */
/* .btn-large — defined in components.css */

/* ---------- Footer ---------- */
.footer-main { padding: 3rem 0; }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-nav ul { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.footer-nav li { padding: 0.25rem 0; }
.social-links { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

.footer-bottom { width: 100%; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

/* ---------- Screen Reader ---------- */
/* .sr-only — defined in base.css */

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .two-col-layout { grid-template-columns: 1fr; }
  .two-col-layout.reverse .col-media { order: 0; }
  .programs-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- Feature Grid (Why Choose) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: var(--color-bg-alt, #fff);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.feature-card p {
  margin: 0;
  line-height: 1.6;
}

/* ---------- Team Grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.team-member {
  background: var(--color-bg-alt, #fff);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 1.5rem;
}
.team-member h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}
.team-member .role {
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

/* ---------- Testimonials Grid ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.testimonial {
  background: var(--color-bg-alt, #fff);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0;
}
.testimonial cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--color-primary);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  font-size: 0.85rem;
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: rgba(0,0,0,0.35);
}
.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}
.breadcrumb li[aria-current="page"] {
  color: var(--color-text-light, #6b7280);
}

/* ---------- Schedule List ---------- */
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.5rem;
}
.schedule-list li {
  padding: 0.6rem 0.9rem;
  background: var(--color-bg-alt, #fff);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
}

/* ---------- Responsive for new grids ---------- */
@media (max-width: 1024px) {
  .team-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .feature-grid,
  .team-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .mega-nav:not(.is-mobile-open), .main-nav:not(.is-open) { display: none; }
  .mega-nav.is-mobile-open, .main-nav.is-open { display: block; width: 100%; }
  .header-top-bar { display: none; }
  .mega-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .header-main-inner { height: 60px; }
  .hero-fullwidth { min-height: 400px; }
  .contact-grid { grid-template-columns: 1fr; }
  .facility-gallery { grid-template-columns: 1fr; }
  .megamenu-inner { grid-template-columns: 1fr; }
  .trust-items { gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 0.5rem; }
}