/* ==========================================================================
   03-singlepage-scroll / 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: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

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

.logo { flex-shrink: 0; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; }
.nav-list a { display: block; padding: 1.25rem 0.6rem; white-space: nowrap; font-size: 0.97rem; }

.header-cta { flex-shrink: 0; margin-left: 1rem; }
.phone-cta { display: inline-block; padding: 0.5rem 1rem; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text, #3d2914); border-radius: 2px; }

/* ---------- Dot Navigation (right side) ---------- */
.dot-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
}

.dot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dot-link {
  display: block;
  padding: 0.25rem;
}

.dot {
  display: block;
  width: 12px;
  height: 12px;
}

/* ---------- Scroll Sections ---------- */
.scroll-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  scroll-snap-align: start;
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.hero-section .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hero-section .hero-content {
  max-width: 600px;
}

.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; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero { padding: 6rem 0 3rem; }

/* ---------- Content Section (inner pages) ---------- */
.content-section { padding: 4rem 0; }

/* ---------- Two Col ---------- */
.section-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.section-two-col.reverse .col-media { order: -1; }
.col-media img { width: 100%; height: auto; display: block; margin-bottom: 1rem; }

/* ---------- Programs Grid ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}
.program-card { overflow: hidden; }
.program-card img { width: 100%; height: auto; display: block; }

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

/* ---------- Contact Grid ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card { padding: 1rem; }
.contact-map { min-height: 400px; overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; display: block; }

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

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

/* ---------- List Grid ---------- */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }

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

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

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

/* ---------- CTA Banner ---------- */
.cta-banner { padding: 4rem 0; width: 100%; }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.back-to-top[hidden] { display: none; }

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

/* ---------- Footer ---------- */
.site-footer { width: 100%; }
.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 0.25rem 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}
.footer-social { display: flex; gap: 1rem; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section-two-col { grid-template-columns: 1fr; }
  .section-two-col.reverse .col-media { order: 0; }
  .amenities-gallery { 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%; }
  .main-nav { display: none; }
  .main-nav.is-open { display: flex; position: absolute; top: 70px; left: 0; width: 100%; }
  .nav-list { flex-direction: column; width: 100%; }
  .mobile-menu-toggle { display: flex; }
  .dot-nav { display: none; }
  .scroll-section { min-height: auto; padding: 3rem 0; }
  .programs-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .amenities-gallery { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* === CLAUDE.md mandatory visual rules === */

.animate-in, [data-animate] {
  animation: none !important;
  opacity: 1 !important;
}

.scroll-section,
.card, .program-card, .blog-card,
.hero, .page-hero,
.team-card, .testimonial-card, .why-card, .contact-card,
.info-card, .content-card, .step-card, .faq-item, .gallery-card, img {
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.blog-listing,
.testimonial-cards,
.team-cards,
.programs-grid,
.faq-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 2rem !important;
  margin-top: 2rem;
}

.blog-card,
.testimonial-card,
.team-card,
.program-card,
.faq-item {
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.why-card {
  padding: 1.5rem 1.75rem;
  background: rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--color-accent, #5a9a6c);
  border-radius: 0 12px 12px 0;
}
.why-card h4 { margin: 0 0 0.5rem; font-size: 1.05rem; line-height: 1.3; }
.why-card p { margin: 0; line-height: 1.65; }

@media (min-width: 768px) {
  .program-card,
  .blog-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .program-card > img,
  .blog-card > img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border-radius: 12px;
  }
  /* Flat blog-card children (img + h3 + meta + paragraphs) would scatter across
     the 2 columns; keep the image in column 1 (full height) and stack all text
     in column 2. */
  .blog-card > img { grid-row: 1 / -1; }
  .blog-card > :not(img) { grid-column: 2; align-self: start; }
}

.testimonial-card {
  padding: 1.75rem 2rem;
  background: rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--color-accent, #5a9a6c);
  border-radius: 0 12px 12px 0;
}
.testimonial-card blockquote { margin: 0; }
.testimonial-card blockquote p { font-style: italic; line-height: 1.75; margin: 0; }
.testimonial-card cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--color-accent, #2d5a3d); font-size: 0.95rem; }

.team-card {
  padding: 1.5rem 2rem;
  background: var(--color-bg, #ffffff);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  border-radius: 12px;
}
.team-card h3 { margin: 0 0 0.25rem; font-size: 1.15rem; line-height: 1.3; }
.team-card .team-role { color: var(--color-accent, #5a9a6c); font-weight: 600; margin: 0 0 0.75rem; font-size: 0.95rem; }
.team-card p:last-child { margin: 0; line-height: 1.7; }

.faq-item {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  padding: 1rem 1.75rem;
  margin-bottom: 1rem;
}
.faq-item[open] { background: var(--color-bg, #ffffff); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--color-accent, #5a9a6c); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary h3 { display: inline; margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.faq-item > p { margin: 0.75rem 0 0; line-height: 1.7; }

.schedule-list { list-style: none; margin: 1.25rem 0 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.schedule-list li { padding: 0.85rem 1rem; border-left: 3px solid var(--color-accent, #5a9a6c); background: rgba(0, 0, 0, 0.03); border-radius: 0 12px 12px 0; line-height: 1.6; }
.schedule-list li strong { display: inline-block; min-width: 5.5em; color: var(--color-accent, #2d5a3d); font-weight: 600; }

.process-steps { list-style: none; counter-reset: ps; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 1.25rem; }
.process-steps > li { counter-increment: ps; position: relative; padding: 1.25rem 1.5rem 1.25rem 5rem; background: rgba(0, 0, 0, 0.04); border-radius: 12px; border-left: 3px solid var(--color-accent, #5a9a6c); margin-bottom: 0; }
.process-steps > li::before { content: counter(ps); position: absolute; left: 1.25rem; top: 1.25rem; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-accent, #5a9a6c); color: #ffffff; font-weight: 700; }
.process-steps > li h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.process-steps > li p { margin: 0; line-height: 1.65; }

/* Hero section sits over a photo background — needs a dark overlay and
   white text for readability. */
.hero-section {
  position: relative;
  isolation: isolate;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-section .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(15, 30, 22, 0.62), rgba(20, 40, 28, 0.55) 50%, rgba(10, 25, 18, 0.7));
}
.hero-section .hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-section .hero-content { max-width: 760px; padding: 2rem; }
.hero-section .hero-content h1 {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
}
.hero-section .hero-sub {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}
/* Inner-page page-hero is text-only on the page bg — keeps brand color */
.page-hero h1 { color: var(--color-primary, #2d5a3d); }

.breadcrumb { padding: 1rem 0; font-size: 0.875rem; max-width: var(--container-max, 1200px); margin: 0 auto; }
.breadcrumb ol { display: flex; list-style: none; padding: 0; margin: 0; gap: 0.4rem; }
.breadcrumb a { color: var(--color-accent, #5a9a6c); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: var(--color-text-light, #6b8076); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: rgba(0, 0, 0, 0.3); }

.site-header { background: var(--color-bg, #ffffff); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.nav-list a { white-space: nowrap; font-size: 0.85rem; }
.nav-list a:hover { color: var(--color-accent, #5a9a6c); }
.nav-list a[aria-current="page"],
.nav-list a.active { color: var(--color-accent, #5a9a6c); font-weight: 700; }

/* ---------- Header Contract — readable white header ----------
   The shared style layer paints every <nav> dark and sets `.site-header a`
   to the inverse color. This architecture uses a white header, so force the
   inner navs transparent and links dark for guaranteed contrast. These rules
   are unlayered, so they beat the style's @layer rules. */
.site-header {
  background: var(--color-bg, #ffffff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-bottom: none;
}
.main-nav,
nav.breadcrumb {
  background: transparent;
  border-bottom: none;
}
.nav-item > a,
.nav-list a {
  color: var(--color-text);
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
}
.nav-item > a:hover,
.nav-item.active > a,
.nav-list a:hover,
.nav-list a[aria-current="page"],
.nav-list a.active {
  color: var(--color-primary);
}
.phone-cta,
.header-phone {
  color: var(--color-primary);
}
/* Header wordmark (replaces the photo-as-logo) */
.logo a { text-decoration: none; }
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--color-text, #3d2914);
  white-space: nowrap;
}
/* Cap long-form prose line length for readability on wide screens */
.content-section > .container > p,
.scroll-section .col-text p {
  max-width: 70ch;
}
.breadcrumb,
.breadcrumb a {
  color: var(--color-text-light);
}
.breadcrumb a:hover {
  color: var(--color-primary);
}