/* Casa Verde Mariposa — site styles */
:root {
  --cream: #f7f2e7;
  --parchment: #ede4d0;
  --forest: #26392c;
  --forest-2: #34503d;
  --moss: #6b7f4f;
  --sage: #a9b79a;
  --clay: #b4613d;
  --marigold: #dba843;
  --ink: #232a22;
  --muted: #5d6657;
  --line: rgba(38, 57, 44, .16);
  --radius: 18px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Fraunces", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest-2); }
a:hover { color: var(--clay); }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.eyebrow {
  font: 700 .78rem/1.2 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1em;
}
.lead { font-size: 1.2rem; color: var(--muted); }
.hand { font-family: var(--hand); font-size: 1.6rem; line-height: 1.1; color: var(--clay); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.site-header.solid, .site-header.always { background: rgba(247, 242, 231, .96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(6px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.solid .brand, .always .brand { color: var(--forest); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font: italic 500 1.5rem/1 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; display: block; }
.brand small { font: 700 .62rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; display: block; margin-top: 4px; opacity: .85; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: 8px 14px; border-radius: 99px;
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.solid .nav ul a, .always .nav ul a { color: var(--forest); }
.nav ul a:hover { background: rgba(255,255,255,.16); }
.solid .nav ul a:hover, .always .nav ul a:hover { background: var(--parchment); color: var(--forest); }
.nav ul a[aria-current="page"] { box-shadow: inset 0 0 0 1.5px currentColor; }
.menu-btn { display: none; background: none; border: 1.5px solid currentColor; color: var(--cream); border-radius: 99px; padding: 7px 16px; font: 700 .9rem var(--sans); cursor: pointer; }
.solid .menu-btn, .always .menu-btn { color: var(--forest); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 99px;
  font: 700 .95rem/1 var(--sans); text-decoration: none; letter-spacing: .01em;
  border: 1.5px solid currentColor; color: var(--forest); background: transparent;
  transition: transform .2s, background .2s, color .2s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); color: var(--forest); background: var(--parchment); }
.btn.solid { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn.solid:hover { background: #9c4f2f; border-color: #9c4f2f; color: #fff; }
.btn.light { color: var(--cream); }
.btn.light:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; }
.hero > img, .hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,32,24,.72) 0%, rgba(20,32,24,.45) 40%, rgba(20,32,24,0) 72%), linear-gradient(180deg, rgba(20,32,24,.5) 0%, rgba(20,32,24,0) 22%, rgba(20,32,24,0) 60%, rgba(20,32,24,.55) 100%); }
.hero .wrap { position: relative; padding: 140px 0 130px; }
.hero h1 { max-width: 11ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .sub { font-size: 1.25rem; max-width: 34em; color: #f3eee2; }
.hero .eyebrow { color: var(--marigold); }
.hero.short { min-height: 62vh; }
.hero.short .wrap { padding-bottom: 110px; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; color: var(--cream); }
.wave.to-parchment { color: var(--parchment); }

/* Ribbon */
.ribbon {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(219, 168, 67, .95); color: var(--forest);
  padding: 8px 18px 8px 12px; border-radius: 99px;
  font: 700 .85rem/1.2 var(--sans); margin-bottom: 1.4em;
}
.ribbon .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 4px rgba(38,57,44,.18); }

/* Sections */
.block { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.block.tight { padding-top: 30px; }
.bg-parchment { background: var(--parchment); }
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-forest h2, .bg-forest h3 { color: var(--cream); }
.bg-forest .lead, .bg-forest p { color: #d9dfd0; }
.bg-forest .eyebrow { color: var(--marigold); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sprig { display: block; width: 120px; height: 28px; margin: 0 auto 22px; color: var(--moss); }
.bg-forest .sprig { color: var(--sage); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.arch { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.frame { position: relative; }
.frame .hand { position: absolute; right: -6px; bottom: -34px; transform: rotate(-4deg); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(38,57,44,.45);
  display: flex; flex-direction: column;
}
.bg-parchment .card { background: #fbf8f1; }
.card .pic { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0 0 50% 50% / 0 0 14% 14%; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.card:hover .pic img { transform: scale(1.04); }
.card .txt { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card .txt p { color: var(--muted); }
.card .txt .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.tag {
  display: inline-block; align-self: flex-start; margin-bottom: 12px;
  font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay); border: 1.5px dashed rgba(180, 97, 61, .55); padding: 6px 10px; border-radius: 99px;
}

/* Idea list */
.ideas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 36px; margin: 0; padding: 0; list-style: none; }
.ideas li { padding: 20px 0 18px 46px; border-top: 1px solid var(--line); position: relative; }
.ideas li::before {
  content: ""; position: absolute; left: 4px; top: 24px; width: 26px; height: 26px;
  background: var(--moss);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 3C10 3 4 8 4 16c0 1.5.3 3 .8 4.2C6 15 10 11 15 9c-4 3-7 6.5-8.6 11.6.8.3 1.7.4 2.6.4 8 0 12-7 11-18z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 3C10 3 4 8 4 16c0 1.5.3 3 .8 4.2C6 15 10 11 15 9c-4 3-7 6.5-8.6 11.6.8.3 1.7.4 2.6.4 8 0 12-7 11-18z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ideas h3 { font-size: 1.25rem; margin-bottom: .3em; }
.ideas p { margin: 0; color: var(--muted); font-size: .98rem; }
.note {
  margin-top: 40px; padding: 18px 22px; border-radius: 14px;
  background: rgba(219, 168, 67, .16); border: 1px solid rgba(219, 168, 67, .5);
  font-size: .95rem;
}

/* Scrapbook gallery */
.scrapbook { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: start; }
.snap { background: #fffdf8; padding: 10px 10px 8px; border-radius: 6px; box-shadow: 0 14px 30px -18px rgba(38,57,44,.55); transition: transform .3s; margin: 0; }
.snap img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 3px; }
.snap figcaption { font: 1.3rem/1.2 var(--hand); color: var(--forest-2); text-align: center; padding: 8px 4px 4px; }
.snap:nth-child(4n+1) { transform: rotate(-2.2deg); }
.snap:nth-child(4n+2) { transform: rotate(1.6deg) translateY(18px); }
.snap:nth-child(4n+3) { transform: rotate(-1deg); }
.snap:nth-child(4n+4) { transform: rotate(2.4deg) translateY(10px); }
.snap:hover { transform: rotate(0) scale(1.03); z-index: 2; position: relative; }
.credit { margin-top: 44px; text-align: center; font-size: .95rem; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--forest); }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fffdf8; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 4px rgba(107,127,79,.18); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 700; min-height: 1.4em; margin: 0; }
.form-msg.ok { color: var(--moss); }
.form-msg.err { color: var(--clay); }
.signup { display: flex; gap: 10px; max-width: 520px; margin: 26px auto 0; }
.signup input { flex: 1; font: 400 1rem var(--sans); padding: 14px 18px; border-radius: 99px; border: 1.5px solid transparent; background: #fffdf8; }
.signup input:focus { outline: none; box-shadow: 0 0 0 4px rgba(219,168,67,.4); }
.bg-forest .form-msg.ok { color: var(--marigold); }
.bg-forest .form-msg.err { color: #f2b49a; }

/* FAQ-ish detail list */
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--forest); }
.facts dd { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--forest); color: #cfd7c4; padding: 64px 0 40px; font-size: .95rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--cream); margin-bottom: 14px; }
.site-footer h4 { font: 700 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--marigold); margin: 6px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #e8ecdf; text-decoration: none; }
.site-footer a:hover { color: var(--marigold); }
.legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #a7b39b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Motion */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
  .card .pic img, .btn, .snap { transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .scrapbook { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav ul {
    display: none; position: absolute; top: 76px; left: 12px; right: 12px; flex-direction: column;
    background: var(--cream); border-radius: 16px; padding: 10px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4);
  }
  .nav ul.open { display: flex; }
  .nav ul a { color: var(--forest) !important; padding: 12px 16px; }
  .split, .cards, .ideas, .form .row { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .arch { aspect-ratio: 1; max-width: 420px; margin: 0 auto; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .signup { flex-direction: column; }
  .hero { min-height: 88vh; }
  .hero .wrap { padding-bottom: 100px; }
  .frame .hand { right: 8px; }
}
.hero::before { z-index: 1; }
.hero .wrap, .hero .wave { z-index: 2; }
@media (max-width: 760px) {
  .frame .hand { position: static; display: block; text-align: right; transform: rotate(-3deg); margin-top: 10px; }
  .hero::before { background: linear-gradient(180deg, rgba(20,32,24,.55) 0%, rgba(20,32,24,.35) 30%, rgba(20,32,24,.55) 70%, rgba(20,32,24,.7) 100%); }
}

/* Lightbox */
.snap a { display: block; cursor: zoom-in; }
.lightbox { margin: 0; position: fixed; inset: 0; z-index: 200; background: rgba(20, 28, 22, .94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.lightbox figcaption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font: 1.6rem/1.2 var(--hand); color: var(--cream); }
.lb-btn { position: absolute; background: rgba(247,242,231,.12); color: var(--cream); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(247,242,231,.25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) { .lightbox { padding: 60px 12px 70px; } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }
