/* ==========================================================================
   01-classic-multipage / layout.css
   Layout-only properties: display, position, width, height, flex, grid,
   overflow, gap, margin, padding. NO colors, fonts, shadows, border-radius.
   ========================================================================== */

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

/* ---------- Container ---------- */
/* Base definition in base.css uses var(--container-max). No override needed. */

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--color-bg, #ffffff);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 80px;
}

.logo {
  flex-shrink: 0;
}

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

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

.nav-item {
  position: relative;
  padding: 0 0.75rem;
}

.nav-item > a {
  display: block;
  padding: 1rem 0;
  white-space: nowrap;
  font-size: 0.82rem;
}

/* ---------- CSS-Only Dropdowns ---------- */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: none;
  z-index: 1000;
  background: var(--color-bg, #ffffff);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--color-text, inherit);
  white-space: nowrap;
}

.dropdown li a:hover,
.dropdown li a:focus {
  background: var(--color-bg-alt, rgba(0, 0, 0, 0.05));
  color: var(--color-primary, inherit);
}

/* ---------- Header CTA ---------- */
.header-cta {
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
}

/* ---------- Hero Section ---------- */
.hero {
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 2;
}

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

/* ---------- Page Hero (Inner Pages) ---------- */
.page-hero {
  padding: 3rem 0;
}
.page-hero h1,
.page-hero .container h1,
.depth-section--page-hero h1 {
  color: var(--color-text, #1a1a2e) !important;
  text-shadow: none;
}
.page-hero p,
.page-hero .container p,
.depth-section--page-hero p {
  color: var(--color-text-light, #555) !important;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.breadcrumb ol {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

/* ---------- Content + Sidebar Layout ---------- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.main-content {
  min-width: 0;
}

.main-content section {
  margin-bottom: 3rem;
}

.main-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.sidebar-widget .btn,
.sidebar-widget a[class*="btn"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  padding: 0.6rem 0.5rem;
  white-space: nowrap;
}

.sidebar-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-widget li {
  padding: 0.375rem 0;
}

/* ---------- Sections ---------- */
.about-preview,
.why-choose,
.programs-overview,
.testimonials,
.insurance-section,
.cta-banner {
  padding: 4rem 0;
}

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

.program-card {
  overflow: hidden;
}

.program-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- About Preview ---------- */
.about-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

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

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

.contact-card {
  padding: 1.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.contact-card a {
  font-size: 0.9rem;
}

/* ---------- Map Embed ---------- */
.map-embed {
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin: 1.5rem 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;
}

/* ---------- Amenities Gallery ---------- */
.amenities-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.amenities-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Blog Listing ---------- */
.blog-listing, .blog-list, .blog-card-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.blog-listing article, .blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 12px;
  overflow: hidden;
}
.blog-card-image, .blog-listing article img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  object-fit: cover;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-body h3 { font-size: 1.15rem; margin: 0.5rem 0 0.75rem; }
.blog-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Privacy Content ---------- */
.privacy-content {
  padding: 2rem 0 4rem;
}

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

/* ---------- CTA Banner ---------- */
.cta-banner {
  width: 100%;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Buttons ---------- */
/* Defined in components.css — no override needed here */

/* ---------- Screen Reader Only ---------- */
/* Defined in base.css — no override needed here */

/* ---------- Mobile Menu Toggle ---------- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .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%; }
  .mobile-menu-toggle {
    display: flex;
  }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem 1.5rem;
  }
  .main-nav {
    order: 3;
    width: 100%;
    display: none;
    overflow: hidden;
  }
  .main-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
  }
  .nav-item {
    padding: 0;
    width: 100%;
  }
  .nav-item > a {
    padding: 0.75rem 0;
  }
  .dropdown {
    position: static;
    min-width: 100%;
    padding-left: 1rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .about-preview-content {
    grid-template-columns: 1fr;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .amenities-gallery {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* ---------- Heading Spacing ---------- */
.content-section h3, .col-text h3, .two-col h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.content-section p, .col-text p, .two-col p {
  margin-bottom: 1rem;
}
.footer-nav h3 { margin-bottom: 1rem; font-size: 1rem; }
.footer-brand p { margin-top: 0.75rem; line-height: 1.6; }

/* ---------- Hero Text ---------- */
.hero-content {
  color: #ffffff;
}
.hero-content h1 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-content p, .hero-sub {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ---------- FAQ Accordion ---------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 2rem auto 0;
}
.faq-item {
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 8px;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.5rem 1.25rem; line-height: 1.7; }

@media (max-width: 768px) {
  .blog-listing article, .blog-card { flex-direction: column; }
  .blog-card-image, .blog-listing article img { width: 100%; min-height: 180px; }
}
