/* ==========================================================================
   Underhill — Garden & Home Atelier
   Palette: Meadow Green #678260 · Hill Beige #D9C29C · Ivory White #FBFAF8
            Stone Gray #70767D · Bronze Gold #C48749
   ========================================================================== */

:root {
  --meadow: #678260;
  --meadow-dark: #4f6549;
  --hill: #D9C29C;
  --hill-soft: #ecdfc6;
  --ivory: #FBFAF8;
  --stone: #70767D;
  --stone-dark: #3d4247;
  --bronze: #C48749;
  --bronze-dark: #a86f37;

  --ink: #2c2f2b;
  --muted: #6a6f68;
  --line: rgba(112, 118, 125, 0.18);
  --card: #ffffff;

  --shadow-sm: 0 2px 10px rgba(44, 47, 43, 0.06);
  --shadow-md: 0 14px 40px rgba(44, 47, 43, 0.12);
  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1180px;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--meadow-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--bronze-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .4em; letter-spacing: .2px; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: linear-gradient(180deg, var(--hill-soft) 0%, var(--ivory) 100%); }
.section__head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--meadow); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--meadow-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--bronze); color: #fff; }
.btn--gold:hover { background: var(--bronze-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--meadow); color: var(--meadow-dark); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 250, 248, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand span small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--bronze-dark); margin-top: -2px; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--ink); }
.nav__links a:hover { color: var(--bronze-dark); }
.nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  background: linear-gradient(120deg, rgba(79,101,73,.72), rgba(61,66,71,.45)),
              var(--meadow-dark) center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero__inner { max-width: 680px; padding: 5rem 0; }
.hero .eyebrow { color: var(--hill); }
.hero h1 { color: #fff; }
.hero p { font-size: 1.18rem; color: rgba(255,255,255,.92); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 3rem; }
.hero__stats div strong { font-family: var(--serif); font-size: 2.2rem; display: block; color: var(--hill); }
.hero__stats div span { font-size: .86rem; letter-spacing: .05em; color: rgba(255,255,255,.85); }

/* ---------- Trust bar ---------- */
.trust { background: var(--stone-dark); color: #fff; }
.trust .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.trust p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.86); display: flex; align-items: center; gap: .5rem; }
.trust strong { color: var(--hill); }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 16 / 11; background: var(--hill); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag { position: absolute; top: 12px; left: 12px; background: rgba(251,250,248,.92); color: var(--meadow-dark); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); font-size: .98rem; }
.card__body .card__link { margin-top: auto; font-weight: 600; color: var(--bronze-dark); display: inline-flex; align-items: center; gap: .4rem; }

/* icon feature */
.feature { text-align: left; padding: 1.9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.feature:hover { transform: translateY(-4px); }
.feature .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--hill-soft); color: var(--meadow-dark); margin-bottom: 1.1rem; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; width: 100%; background: var(--hill); }
.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--meadow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat; }

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.step { position: relative; padding: 2.2rem 1.4rem 1.6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 22px; width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: #fff; background: var(--bronze); border-radius: 50%; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem 2rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.plan--featured { border: 2px solid var(--meadow); box-shadow: var(--shadow-md); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--meadow); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px; }
.plan h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--stone); }
.plan__price { font-family: var(--serif); font-size: 2.8rem; color: var(--ink); margin: .4rem 0 .1rem; }
.plan__price small { font-family: var(--sans); font-size: .95rem; color: var(--muted); font-weight: 500; }
.plan__desc { color: var(--muted); font-size: .95rem; min-height: 46px; }
.plan ul { list-style: none; margin: 1.3rem 0; padding: 0; display: grid; gap: .7rem; flex: 1; }
.plan ul li { display: flex; gap: .6rem; align-items: flex-start; font-size: .96rem; }
.plan ul li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--hill-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6549' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat; }
.pricing-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 2rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--hill); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figure:nth-child(1), .gallery figure:nth-child(6) { grid-row: span 2; aspect-ratio: 1/2; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--bronze); letter-spacing: 2px; margin-bottom: .8rem; }
.quote p { font-family: var(--serif); font-size: 1.18rem; line-height: 1.5; color: var(--ink); }
.quote footer { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.quote footer strong { color: var(--ink); display: block; font-family: var(--sans); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 1.3rem; margin-bottom: .9rem; background: var(--card); transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--bronze); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
.contact-info { background: var(--stone-dark); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem,4vw,3rem); }
.contact-info h3 { color: #fff; }
.contact-info a { color: var(--hill); }
.contact-info .row { display: flex; gap: .9rem; align-items: flex-start; margin: 1.2rem 0; }
.contact-info .row svg { width: 22px; height: 22px; flex: none; color: var(--hill); margin-top: 3px; }
.contact-info .row span { color: rgba(255,255,255,.9); font-size: .98rem; }
.contact-info .row span strong { display:block; color:#fff; }

form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field label .req { color: var(--bronze-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--ivory); transition: border .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--meadow); box-shadow: 0 0 0 3px rgba(103,130,96,.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field--check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.field--check input { width: auto; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .6rem; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; font-size: .94rem; display: none; }
.form-status.ok { display: block; background: rgba(103,130,96,.14); color: var(--meadow-dark); border: 1px solid rgba(103,130,96,.3); }
.form-status.err { display: block; background: rgba(196,135,73,.14); color: var(--bronze-dark); border: 1px solid rgba(196,135,73,.35); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--meadow), var(--meadow-dark)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem,5vw,4rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--stone-dark); color: rgba(255,255,255,.8); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255,255,255,.8); font-size: .95rem; }
.site-footer a:hover { color: var(--hill); }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 1rem; }
.footer-brand img { width: 36px; height: 36px; }
.footer-about { font-size: .95rem; color: rgba(255,255,255,.72); max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.7); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 1.4rem 1.5rem;
  transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cookie.show { transform: translateY(0); }
.cookie h4 { margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.2rem; }
.cookie p { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cookie__actions .btn { padding: .6rem 1.2rem; font-size: .9rem; }

/* ---------- Legal pages ---------- */
.legal { padding: 3.5rem 0 4.5rem; }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: .3rem; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.legal p, .legal li { color: #4a4d47; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal .back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2rem; font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: .7rem .8rem; text-align: left; }
.legal th { background: var(--hill-soft); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4, .quotes, .steps, .pricing { grid-template-columns: repeat(2,1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .split__media img { aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .gallery figure:nth-child(1), .gallery figure:nth-child(6) { grid-row: auto; aspect-ratio: 1; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: 1.2rem 24px; gap: 1rem;
    box-shadow: var(--shadow-md);
  }
  .hero { min-height: 78vh; }
  .hero__stats { gap: 1.6rem; }
  .steps .step::before { top: -16px; }
}

@media (max-width: 540px) {
  .grid--3, .grid--4, .quotes, .steps, .pricing, .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust .container { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
