/* ------------------------------------------------
   Single-page overrides
   ------------------------------------------------ */

/* Override home.css body:has(.home) rules that lock to 100vh */
body.single-page,
body.single-page:has(.home) {
  background: var(--slate-50);
  height: auto;
  overflow: auto;
  padding-bottom: 0;
}

/* ------------------------------------------------
   Hero section — carries the background image
   ------------------------------------------------ */
.section-hero {
  background:
    linear-gradient(180deg, rgba(203, 213, 225, 1) 0%, rgba(248, 250, 252, 0.8) 25%, transparent 100%),
    url('/static/images/greek-ruins.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20vh;
  box-sizing: border-box;
}

/* Override home.css .home styles inside the single-page hero */
.section-hero .home {
  min-height: auto;
  justify-content: flex-start;
}

/* Scroll indicator at bottom of hero */
.section-hero .scroll-indicator {
  margin-top: auto;
  margin-bottom: 2.5rem;
  width: 54px;
  height: 54px;
  background-color: rgba(203, 213, 225, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

.section-hero .scroll-indicator:hover {
  background-color: var(--slate-400);
  transform: translateY(2px);
}

.section-hero .scroll-indicator::after {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--stone-700);
  border-bottom: 2px solid var(--stone-700);
  transform: rotate(-45deg);
  margin-top: -3px;
}

@media (max-width: 1024px) {
  .section-hero {
    background-attachment: scroll;
  }
}

/* Override .bottom-message fixed positioning so it flows in hero */
.section-hero .home .bottom-message {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin-top: 4rem;
}

/* ------------------------------------------------
   Content sections
   ------------------------------------------------ */
.page-section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Full-width background bands */
.section-band {
  width: 100%;
}

.section-band:nth-child(even) {
  background-color: var(--slate-50);
}

.section-band:nth-child(odd) {
  background-color: var(--slate-200);
}

.section-heading {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--slate-300);
  color: var(--stone-700);
}

#people .section-heading,
#philosophy .section-heading {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ------------------------------------------------
   Scroll header (sticky nav after hero)
   ------------------------------------------------ */
.scroll-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  background-color: var(--slate-300);
  border-bottom: 1px solid var(--slate-400);
  padding: 0.8rem 0;
  display: flex;
  justify-content: center;
}

.scroll-header.visible {
  transform: translateY(0);
}

.scroll-header-brand {
  display: none;
}

.scroll-header-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.scroll-header-links a {
  border-radius: 4px;
  color: var(--slate-700);
  font-size: 1.1rem;
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.scroll-header-links a:hover {
  background-color: var(--slate-200);
  color: var(--slate-700);
}

.scroll-header-links a.active {
  background-color: var(--slate-200);
  color: var(--slate-700);
}


/* ------------------------------------------------
   Location section
   ------------------------------------------------ */
body.single-page .location {
  max-width: 100%;
}

/* ------------------------------------------------
   Inquire section (inline on single page)
   ------------------------------------------------ */
body.single-page .inquire {
  max-width: 100%;
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */
.site-footer {
  background-color: var(--slate-50);
  border-top: none;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--slate-600);
}

.site-footer a {
  color: var(--slate-700);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--stone-700);
}

/* ------------------------------------------------
   Back link (for privacy, success, error pages)
   ------------------------------------------------ */
.back-link {
  display: inline-block;
  margin: 1rem 0;
  color: var(--slate-700);
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--stone-700);
  text-decoration: underline;
}

/* ------------------------------------------------
   Mobile adjustments
   ------------------------------------------------ */
@media (max-width: 600px) {
  .scroll-header {
    padding: 0.5rem 1rem;
  }

  .scroll-header-links {
    gap: 0.5rem 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }

  .scroll-header-links a {
    font-size: 1rem;
    text-align: center;
    padding: 0.4rem 0.8rem;
  }

  .page-section {
    padding: 2.5rem 1rem;
  }

  .section-heading {
    font-size: 1.6rem;
  }
}
