/* ==========================================================================
   Custom properties
   ========================================================================== */
:root {
  --color-bg:        #FAF7F2;
  --color-bg-alt:    #F1EAE0;
  --color-surface:   #FFFFFF;

  --color-primary:      #2F4A44;
  --color-primary-dark: #1F3530;
  --color-accent:       #B8895F;
  --color-accent-dark:  #96694A;

  --color-text:       #2B2B28;
  --color-text-muted: #5B5B54;
  --color-on-primary: #FFFFFF;
  --color-border: #E4DCCE;

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --container-max: 1140px;

  --header-height: 72px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 var(--space-sm); }

a { color: var(--color-primary); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}
.section-alt { background: var(--color-bg-alt); }

@media (min-width: 900px) {
  .section { padding: var(--space-2xl) 0; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-xs);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: var(--color-on-primary); }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.97);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(31, 53, 48, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.primary-nav.is-open {
  max-height: 500px;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.nav-list a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
  display: block;
  padding: 0.35rem 0;
}
.nav-list a.active { color: var(--color-accent-dark); }

.nav-call-btn {
  display: block;
  margin: 0 var(--space-md) var(--space-md);
  text-align: center;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border-top: none;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }
  .nav-list {
    flex-direction: row;
    padding: 0;
    gap: var(--space-md);
  }
  .nav-list a { padding: 0.25rem 0; position: relative; }
  .nav-list a.active::after,
  .nav-list a:hover::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--color-accent-dark);
  }
  .nav-call-btn { margin: 0; white-space: nowrap; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,53,48,0.55), rgba(31,53,48,0.72));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 680px;
}
.hero .eyebrow { color: #E8D9C3; }
.hero h1 { color: #fff; }
.hero-subhead {
  font-size: 1.15rem;
  margin-bottom: var(--space-md);
  color: #F1EAE0;
}

/* ==========================================================================
   Image frames
   ========================================================================== */
.img-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-border);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.img-frame-wide {
  aspect-ratio: 16 / 9;
  margin-top: var(--space-lg);
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  gap: var(--space-lg);
}
.about-image { max-width: 420px; margin-inline: auto; }

.credentials-list {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.credentials-list li {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-sm);
}
.credential-title {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
}
.credential-meta {
  display: block;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(280px, 380px) 1fr;
    align-items: start;
    gap: var(--space-2xl);
  }
  .about-image { margin-inline: 0; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.subsection-heading {
  margin-top: var(--space-lg);
}

.techniques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.technique-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-md);
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
}

.amenities-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-sm);
}
.amenities-list {
  margin: var(--space-xs) 0 0;
  padding-left: 1.2rem;
}
.amenities-list li { margin-bottom: 0.35rem; }

@media (min-width: 900px) {
  .amenities-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Rates
   ========================================================================== */
.table-scroll {
  overflow-x: auto;
  margin-top: var(--space-sm);
}
.rates-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: 10px;
  overflow: hidden;
  min-width: 420px;
}
.rates-table th, .rates-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.rates-table th {
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-heading);
  font-weight: 600;
}
.rates-table tbody tr:last-child td { border-bottom: none; }
.rates-table__unavailable {
  color: var(--color-text-muted);
  font-style: italic;
}

.hours {
  margin-top: var(--space-md);
  font-size: 1.05rem;
}
.hours__note {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Location
   ========================================================================== */
.location-text { max-width: 640px; }
.map-frame {
  margin-top: var(--space-md);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-frame iframe { width: 100%; height: 400px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section { text-align: center; }
.contact-content { max-width: 620px; }
.contact-phone {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  margin: var(--space-sm) 0;
}
.contact-phone a { color: var(--color-primary); text-decoration: none; }
.contact-section .cta-group { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: #E8E4DC;
  padding: var(--space-lg) 0;
  text-align: center;
}
.site-footer a { color: #fff; }
.site-footer .wordmark { color: #fff; font-size: 1.2rem; }
.site-footer p { margin: 0.3rem 0; }
.footer-copyright { font-size: 0.85rem; color: #B9C4C0; margin-top: var(--space-sm); }

/* ==========================================================================
   Scroll fade-in animation
   ========================================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
