/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #f0ede6;
  --cream-light: #f5f3ee;
  --sage:        #cdd3c4;
  --sage-dark:   #b5bfab;
  --forest:      #2b3a2e;
  --forest-deep: #1c2820;
  --text:        #2e2e2b;
  --text-muted:  #6b6b65;
  --white:       #ffffff;

  --font-serif:  'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  background: var(--cream-light);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY HELPERS
============================================ */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 3rem;
}

/* ============================================
   LAYOUT
============================================ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 580px;
}

/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}

.nav__links a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.25s;
}

.nav__links a:hover { opacity: 1; }

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--forest-deep);
}

/* Misty forest gradient stand-in — evokes the image tone */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 30%, rgba(90,110,80,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(20,30,22,0.9) 0%, transparent 70%),
    linear-gradient(170deg, #3a4f38 0%, #2b3a2e 35%, #1c2820 100%);
  z-index: 0;
}

/* Subtle light shafts */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://dovaltman.com/hero-forest-Cc4ZyWj0.jpg'); background-size: cover; background-position: center;
  ;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 40, 28, 0.35);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 0 1.5rem;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
}

.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(210, 220, 195, 0.9);
  display: block;
  font-size: 1.05em;
}

.hero__sub {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 400px;
  margin-top: 0.3rem;
}

.hero__dot-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s;
}

.dot--active { background: rgba(255,255,255,0.85); }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.btn--outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  background: transparent;
  margin-top: 0.5rem;
}

.btn--outline:hover {
  background: var(--white);
  color: var(--forest);
  border-color: var(--white);
}

.btn--dark {
  color: var(--white);
  background: var(--forest);
  border-color: var(--forest);
}

.btn--dark:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}

/* ============================================
   QUOTE SECTION
============================================ */
.quote-section {
  background: var(--cream-light);
  padding: 7rem 2rem;
  text-align: center;
}

.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  max-width: 500px;
  margin: 0 auto 1.8rem;
  quotes: none;
}

.quote-rule {
  width: 36px;
  height: 1px;
  background: var(--text-muted);
  margin: 0 auto;
}

/* ============================================
   OFFERINGS
============================================ */
.offerings {
  background: var(--sage);
  padding: 6rem 2rem 7rem;
}

.offerings__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.offering-card {
  background: var(--cream-light);
  padding: 2rem 1.8rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.offering-card:hover {
  box-shadow: 0 8px 32px rgba(30,40,28,0.1);
  transform: translateY(-3px);
}

.offering-card__num {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-style: italic;
}

.offering-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-top: 0.3rem;
}

.offering-card__desc {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
  flex: 1;
}

.offering-card__tag {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============================================
   ABOUT
============================================ */
.about {
  background: var(--cream-light);
  padding: 8rem 2rem;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
}

.about__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__photo {
  width: 100%;
  max-width: 380px;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(28, 40, 32, 0.25);
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
}

.about__body {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 0.6rem;
}

/* ============================================
   TESTIMONIAL
============================================ */
.testimonial {
  background: var(--forest);
  padding: 7rem 2rem;
  text-align: center;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(245,242,235,0.9);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  quotes: none;
}

.testimonial__attr {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-style: normal;
}

/* ============================================
   CONNECT
============================================ */
.connect {
  background: var(--cream-light);
  padding: 8rem 2rem 7rem;
  text-align: center;
}

.connect__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.connect__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.connect__body {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.connect__actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.connect__link {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}

.connect__link:hover {
  color: var(--text);
  border-bottom-color: var(--text-muted);
}

/* ============================================
   CONTACT FORM
============================================ */
.contact-form {
  width: 100%;
  max-width: 480px;
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeUp 0.6s var(--ease-out) forwards;
}

.contact-form.open { display: flex; }

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(100, 110, 90, 0.3);
  padding: 0.7rem 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-bottom-color: var(--forest);
}

/* Invalid state — set by Formspree SDK via aria-invalid */
.contact-form__field input[aria-invalid="true"],
.contact-form__field textarea[aria-invalid="true"] {
  border-bottom-color: #a05040;
}

.contact-form__field textarea { resize: none; }

/* Field-level error messages from SDK */
.contact-form__field-error {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: #a05040;
  letter-spacing: 0.05em;
  min-height: 1em;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

/* Disabled state while submitting */
.btn--dark[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Success banner */
.contact-form__success-wrap {
  display: none;
  margin-top: 2rem;
  animation: fadeUp 0.5s var(--ease-out) forwards;
}

.contact-form__success {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--forest);
}

/* Form-level error */
.contact-form__error-wrap {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: #a05040;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  min-height: 1em;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--cream-light);
  border-top: 1px solid rgba(100,110,90,0.15);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__name {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__copy {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ============================================
   ANIMATIONS — fade up on load
============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 1s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.55s; }
.delay-3 { animation-delay: 0.85s; }
.delay-4 { animation-delay: 1.1s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger within offerings grid */
.offering-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.offering-card.reveal:nth-child(3) { transition-delay: 0.24s; }

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; transform: none; }
  .reveal   { transition: none; opacity: 1; transform: none; }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }

  .offerings__grid {
    grid-template-columns: 1fr;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__image-wrap { order: -1; }

  .connect__actions {
    flex-direction: column;
    gap: 1rem;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
