/* ============================================================
   Warmly Yours — styles
   Palette: cream + sage (rustic farmhouse)
   Type: Cormorant Garamond (display) + Mulish (body)
   ============================================================ */

:root {
  --cream:    #F4EFE4;
  --cream-2:  #FBF8F1;
  --sage:     #8A9A7B;
  --sage-dk:  #647155;
  --forest:   #3E4A38;
  --ink:      #46433C;
  --taupe:    #C9BCA1;
  --rose:     #9C7B6A;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(62, 74, 56, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--forest);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .4em;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

p { margin: 0 0 1rem; }

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

em { color: var(--sage-dk); font-style: italic; }

.eyebrow {
  font-family: "Mulish", sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--sage-dk);
  margin: 0 0 .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Mulish", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .75rem 1.6rem;
  border-radius: 40px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--sage); color: #2c3626; }
.btn-primary:hover { background: var(--sage-dk); color: var(--cream-2); }
.btn-ghost { background: transparent; border-color: var(--sage); color: var(--forest); }
.btn-ghost:hover { background: var(--sage); color: #2c3626; }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(244, 239, 228, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--taupe);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { display: block; }
.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--forest);
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: "Mulish", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--forest);
}
.nav a:not(.nav-cta):hover { color: var(--sage-dk); }
.nav-cta {
  background: var(--sage);
  color: #2c3626 !important;
  padding: .5rem 1.1rem;
  border-radius: 40px;
}
.nav-cta:hover { background: var(--sage-dk); color: var(--cream-2) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: .25s;
}

/* ---------- Layout helper ---------- */
section { padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 3rem); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 5rem);
}
.hero-mark { display: block; margin: 0 0 .4rem; }
.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  margin: 0 0 .3rem;
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 42ch;
  margin: 0 0 2rem;
  color: var(--ink);
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: block;
}

/* ---------- Ring divider (signature) ---------- */
.ring-divider { display: flex; justify-content: center; padding: .5rem 0; }

/* ---------- Story ---------- */
.story {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.story-text p { color: var(--ink); }
.story-figure { margin: 0; }
.story-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.story-figure figcaption {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sage-dk);
  text-align: center;
  margin-top: .7rem;
}

/* ---------- Gallery ---------- */
.gallery-section { max-width: var(--maxw); margin: 0 auto; }
.section-head { text-align: center; max-width: 52ch; margin: 0 auto 2.5rem; }
.section-note { color: var(--ink); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--cream-2);
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img-btn {
  border: 0; padding: 0; margin: 0; cursor: zoom-in;
  background: none; display: block; width: 100%; position: relative;
}
.card-img-btn img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
}
.zoom-badge {
  position: absolute; top: .55rem; right: .55rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(244, 239, 228, .92); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 5px rgba(62, 74, 56, .18);
}
.card-body {
  padding: .85rem 1rem 1.1rem;
  text-align: center;
}
.card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem; color: var(--forest); font-weight: 600;
  line-height: 1.15; display: block;
}

/* ---------- Contact ---------- */
.contact {
  max-width: 720px;
  margin: 0 auto;
  background: var(--cream-2);
  border: 1px solid var(--taupe);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.contact-intro { text-align: center; margin-bottom: 2rem; }
.contact-intro p { color: var(--ink); }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; text-align: left; }
.field label {
  font-family: "Mulish", sans-serif; font-weight: 600; font-size: .9rem; color: var(--forest);
}
.field .opt { font-weight: 400; color: var(--sage-dk); }
.field input, .field textarea {
  font-family: "Mulish", sans-serif; font-size: 1rem;
  padding: .7rem .85rem;
  border: 1.5px solid var(--taupe);
  border-radius: 10px;
  background: #fff; color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(138,154,123,.25);
}
.contact-form .btn { align-self: flex-start; }
.form-status { margin: 0; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.ok  { color: var(--sage-dk); }
.form-status.err { color: #a2503f; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--taupe);
  margin-top: 2rem;
}
.footer-mark { display: block; margin: 0 auto .3rem; }
.footer-name {
  font-family: "Cormorant Garamond", serif; font-size: 1.6rem;
  font-weight: 600; color: var(--forest); margin: 0;
}
.footer-tag { color: var(--sage-dk); margin: .2rem 0 .8rem; font-size: .95rem; }
.footer-contact a { color: var(--forest); font-weight: 600; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-fine { font-size: .8rem; color: var(--sage-dk); margin-top: 1.2rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(46, 54, 38, .88);
  display: none; align-items: center; justify-content: center; flex-direction: column;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 640px); max-height: 78vh;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.lightbox-cap {
  color: var(--cream); font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem; margin-top: 1rem;
}
.lightbox-cta {
  margin-top: 1rem;
  font-family: "Mulish", sans-serif; font-weight: 600; font-size: .95rem;
  background: var(--sage); color: #2c3626;
  border: 0; padding: .7rem 1.6rem; border-radius: 40px; cursor: pointer;
}
.lightbox-cta:hover { background: #9caa8e; }
.lightbox-close {
  position: absolute; top: 1.1rem; right: 1.4rem;
  background: none; border: 0; color: var(--cream);
  font-size: 2.4rem; line-height: 1; cursor: pointer;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0; padding: .5rem 1.4rem 1.2rem;
    background: var(--cream);
    border-bottom: 1px solid var(--taupe);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; width: 100%; }
  .nav-cta { margin-top: .4rem; }
  .story { grid-template-columns: 1fr; }
  .story-figure { order: -1; }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy { order: 2; }
  .hero-photo { order: 1; }
  .hero-mark { margin: 0 auto .4rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo img { max-height: 440px; }
}

@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .card-title { font-size: 1.05rem; }
  .card-body { padding: .6rem .5rem .8rem; }
  .zoom-badge { width: 26px; height: 26px; top: .4rem; right: .4rem; }
  .contact { padding-left: 1.1rem; padding-right: 1.1rem; }
  .lightbox { padding: 1.2rem; }
  .lightbox img { max-height: 68vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
