/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --color-primary:     #2C3E50;
  --color-secondary:   #8C8680;
  --color-accent:      #B0A99E;
  --bg-page:           #FAFAF8;
  --bg-surface:        #F5F0E8;
  --bg-inset:          #E8E4DC;
  --bg-inverse:        #2C3E50;
  --text-primary:      #1E2A35;
  --text-secondary:    #3D3831;
  --text-muted:        #6B6560;
  --text-on-inverse:   #F5F0E8;
  --text-link:         #2C3E50;
  --text-link-hover:   #1A2530;
  --border-subtle:     #D4CFC6;
  --border-medium:     #B0A99E;
  --rule-color:        #C8C3B8;
  --btn-primary-bg:         #2C3E50;
  --btn-primary-text:       #F5F0E8;
  --btn-primary-hover:      #1A2530;
  --btn-outline-border:     #2C3E50;
  --btn-outline-text:       #2C3E50;
  --btn-outline-hover-bg:   #2C3E50;
  --btn-outline-hover-text: #F5F0E8;
  --focus-ring:        #2C3E50;
  --shadow-sm:   0 1px 3px rgba(44, 62, 80, 0.08);
  --shadow-md:   0 4px 14px rgba(44, 62, 80, 0.11);
  --shadow-lg:   0 8px 28px rgba(44, 62, 80, 0.14);
  --texture-opacity: 0.035;
  --content-size: 800px;
  --wide-size:    1280px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--text-link-hover); }
a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   LAYOUT CONTAINERS
============================================================ */
.wide-width {
  max-width: var(--wide-size);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}
.content-width {
  max-width: var(--content-size);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 3px;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.btn--primary {
  padding: 1rem 2.5rem;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}
.btn--primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--outline {
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--btn-outline-text);
  border-color: var(--btn-outline-border);
}
.btn--outline:hover {
  background: var(--btn-outline-hover-bg);
  color: var(--btn-outline-hover-text);
  border-color: var(--btn-outline-hover-bg);
  box-shadow: var(--shadow-sm);
}

.btn--sm  { padding: 0.5rem 1.25rem; font-size: 0.5625rem; }
.btn--nav { padding: 0.5rem 1.25rem; font-size: 0.5625rem; }

.btn--inverse-outline {
  padding: 0.875rem 2.25rem;
  background: transparent;
  color: var(--text-on-inverse);
  border: 2px solid rgba(245, 240, 232, 0.5);
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}
.btn--inverse-outline:hover {
  background: rgba(245, 240, 232, 0.12);
  border-color: rgba(245, 240, 232, 0.8);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ============================================================
   NAVIGATION
============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-nav__wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__wordmark:hover { color: var(--text-primary); text-decoration: none; }
.site-nav__links { display: flex; gap: 2rem; list-style: none; }
.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--text-primary); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--text-primary); }
.site-nav__cta { flex-shrink: 0; }

/* ============================================================
   PAGE HERO (inner pages — not the homepage .hero)
============================================================ */
.page-hero {
  background-color: #1A2530;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(245, 240, 232, 0.025) 3px, rgba(245, 240, 232, 0.025) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(245, 240, 232, 0.025) 3px, rgba(245, 240, 232, 0.025) 4px);
  padding: clamp(4rem, 9vw, 6rem) 2rem clamp(3.5rem, 8vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(10, 16, 22, 0.3) 100%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.page-hero__overline {
  font-family: 'Inter', sans-serif;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.45);
  margin-bottom: 1.25rem;
}
.page-hero__heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: 0.07em;
  line-height: 1.1;
  color: var(--text-on-inverse);
  margin-bottom: 0.875rem;
  text-wrap: balance;
}
.page-hero__sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(245, 240, 232, 0.6);
}
.page-hero__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem auto 0;
  width: fit-content;
}
.page-hero__ornament .line { width: 28px; height: 1px; background: rgba(245, 240, 232, 0.25); }
.page-hero__ornament .dot {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(245, 240, 232, 0.35);
  transform: rotate(45deg);
}

/* ============================================================
   SECTION UTILITIES
============================================================ */
.section-overline {
  font-family: 'Inter', sans-serif;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}
.section-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}
.section-intro {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  text-wrap: pretty;
  text-align: center;
}
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 0 auto 2rem;
  max-width: 200px;
}
.divider-ornament__line { height: 1px; background: var(--border-medium); }
.divider-ornament__line--long  { width: 36px; }
.divider-ornament__line--short { width: 18px; }
.divider-ornament__center {
  width: 6px;
  height: 6px;
  border: 1px solid var(--border-medium);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ============================================================
   FORM STYLES
============================================================ */
.form-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group--full { grid-column: 1 / -1; }
.form-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1px solid var(--border-medium);
  border-radius: 3px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ============================================================
   CTA SECTION (dark band, used on inner pages)
============================================================ */
.cta-section {
  background-color: var(--bg-inverse);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(245, 240, 232, 0.025) 3px, rgba(245, 240, 232, 0.025) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(245, 240, 232, 0.025) 3px, rgba(245, 240, 232, 0.025) 4px);
  padding: 5rem 2rem;
  text-align: center;
}
.cta-section__overline {
  font-family: 'Inter', sans-serif;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.45);
  margin-bottom: 1rem;
}
.cta-section__heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.07em;
  color: var(--text-on-inverse);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}
.cta-section__sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.0625rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: 1rem;
}
.cta-section__rule {
  width: 40px;
  height: 1px;
  background: rgba(245, 240, 232, 0.25);
  margin: 0 auto 2rem;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background-color: #1A2530;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(245, 240, 232, 0.015) 3px, rgba(245, 240, 232, 0.015) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(245, 240, 232, 0.015) 3px, rgba(245, 240, 232, 0.015) 4px);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
}
.site-footer__wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  text-decoration: none;
  display: block;
  margin-bottom: 0.625rem;
}
.site-footer__wordmark:hover { color: rgba(245, 240, 232, 0.85); text-decoration: none; }
.site-footer__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 1rem auto;
}
.site-footer__divider .line { width: 28px; height: 1px; background: rgba(245, 240, 232, 0.12); }
.site-footer__divider .dot {
  width: 4px;
  height: 4px;
  background: rgba(245, 240, 232, 0.2);
  transform: rotate(45deg);
}
.site-footer__links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.site-footer__links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer__links a:hover { color: rgba(245, 240, 232, 0.75); }
.site-footer__copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  color: rgba(245, 240, 232, 0.25);
  letter-spacing: 0.04em;
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-reveal { animation: fadeUp 0.7s ease both; }
.hero-reveal--1 { animation-delay: 0.05s; }
.hero-reveal--2 { animation-delay: 0.2s; }
.hero-reveal--3 { animation-delay: 0.35s; }
.hero-reveal--4 { animation-delay: 0.5s; }
.hero-reveal--5 { animation-delay: 0.65s; }

.scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }
.scroll-reveal--delay-1 { transition-delay: 0.05s; }
.scroll-reveal--delay-2 { transition-delay: 0.15s; }
.scroll-reveal--delay-3 { transition-delay: 0.25s; }
.scroll-reveal--delay-4 { transition-delay: 0.35s; }
.scroll-reveal--delay-5 { transition-delay: 0.45s; }
.scroll-reveal--delay-6 { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .hero-reveal, .scroll-reveal { animation: none; transition: none; opacity: 1; transform: none; }
  .btn { transition: none; }
}

/* ============================================================
   HAMBURGER BUTTON
============================================================ */
.site-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-shrink: 0;
}
.site-nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-nav--open .site-nav__hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-nav--open .site-nav__hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-nav--open .site-nav__hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   RESPONSIVE — shared rules only
============================================================ */
@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-nav__links { display: none; }
  .site-nav__hamburger { display: flex; }
  .site-nav__cta { display: none; }
  .form-panel { padding: 2rem 1.5rem; }

  .site-nav--open .site-nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    z-index: 99;
  }
  .site-nav--open .site-nav__links li { border-bottom: 1px solid var(--border-subtle); }
  .site-nav--open .site-nav__links li:last-child { border-bottom: none; }
  .site-nav--open .site-nav__links .nav-link {
    display: block;
    padding: 0.875rem 2rem;
  }
}
