/* Amapola Bodas, wedding planner en Ciudad de México.
   Harmony: SPLIT-COMPLEMENTARY. Key color: butter yellow, taken from the yellow tablecloths in Kari Bjorn's shoot.
   Its two split complements: plum (red-violet, from the anthuriums and sweet peas) and periwinkle (blue-violet,
   from the lilac stock). Joyful and romantic without falling back on blush pink and gold.
   60-30-10: butter #FAF3DC (backgrounds) / plum #5E2A57 (sections, buttons) / periwinkle #6D78D6 + yolk #F5D66B (marks, chart)
   --butter #FAF3DC  dominant
   --cream2 #F3E7BF  soft surface
   --plum   #5E2A57  secondary
   --wine   #3A1634  text
   --peri   #6D78D6  accent
   --lilac  #B9C0F2  soft accent surface
   --yolk   #F5D66B  highlight on plum
   Contrast (WCAG): wine on butter 14.07:1, #6E4A63 muted on butter 6.70:1, butter on plum 9.73:1 (buttons),
   yolk on wine 10.95:1, wine on lilac 8.84:1, peri on butter 3.56:1 (large text and chart only). */
:root {
  --butter: #FAF3DC;
  --cream2: #F3E7BF;
  --plum: #5E2A57;
  --plum-2: #74366B;
  --wine: #3A1634;
  --muted: #6E4A63;
  --peri: #6D78D6;
  --lilac: #B9C0F2;
  --yolk: #F5D66B;

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.25, .8, .25, 1);
  --gutter: clamp(1.1rem, 4vw, 3.2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--butter); color: var(--wine); font: 400 1.075rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.02; }
h2 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); font-style: italic; letter-spacing: -.02em; }
h3 { font-size: 1.65rem; line-height: 1.15; }
p { margin: 0 0 1rem; }
.wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--plum); color: var(--butter); }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.budget :focus-visible, .contact :focus-visible { outline-color: var(--yolk); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .95rem 1.8rem; border: 0; border-radius: 0; background: var(--plum); color: var(--butter); font: 500 1rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease); }
.btn:hover { background: var(--plum-2); }
.btn--full { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--gutter); background: rgba(250, 243, 220, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-color: rgba(58, 22, 52, .12); }
.brand { display: flex; align-items: baseline; gap: .5rem; font: italic 500 1.9rem/1 var(--serif); text-decoration: none; color: var(--plum); }
.brand span { font: 500 .95rem/1 var(--sans); font-style: normal; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 2rem; font-size: 1rem; }
.nav__links a { text-decoration: none; }
.nav__links a:not(.nav__cta) { background: linear-gradient(var(--peri), var(--peri)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.nav__links a:not(.nav__cta):hover { background-size: 100% 2px; }
.nav__cta { padding: .7rem 1.15rem; background: var(--plum); color: var(--butter); }
.nav__cta:hover { background: var(--plum-2); }
.nav__toggle { display: none; }

/* Hero: editorial spread */
.hero { display: grid; grid-template-columns: 1fr 1fr .95fr; grid-template-rows: auto auto; gap: 2rem clamp(1.5rem, 3vw, 3rem); max-width: 1340px; margin: 0 auto; padding: clamp(2rem, 4vw, 3.5rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.hero__title { grid-column: 1 / 3; grid-row: 1; position: relative; z-index: 2; display: grid; align-self: end; font-size: clamp(3rem, 6.6vw, 6.4rem); line-height: .98; letter-spacing: -.03em; color: var(--plum); }
.hero__l2 { font-style: italic; padding-left: 1.2em; }
.hero__l3 { padding-left: .4em; }
.hero__main { grid-column: 3; grid-row: 1 / 3; margin: 0; }
.hero__main img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: 50% 30%; }
.hero__side { grid-column: 1; grid-row: 2; margin: 0; }
.hero__side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__aside { grid-column: 2; grid-row: 2; align-self: end; padding-bottom: .4rem; }
.hero__aside p { font-size: 1.12rem; color: var(--muted); max-width: 34ch; margin-bottom: 1.6rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero__title span { display: block; animation: ink 1s var(--ease) both; }
  .hero__l2 { animation-delay: .12s !important; }
  .hero__l3 { animation-delay: .24s !important; }
  .hero__main img { animation: reveal 1.4s var(--ease) both; }
  .hero__side img { animation: reveal 1.4s .25s var(--ease) both; }
}
@keyframes ink { from { opacity: 0; transform: translateY(.3em); filter: blur(6px); } }
@keyframes reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* Intro strip */
.intro { border-block: 1px solid rgba(58, 22, 52, .15); }
.intro__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.intro__row p { display: flex; align-items: baseline; gap: .8rem; margin: 0; padding: 1.4rem 0; color: var(--muted); }
.intro__row p + p { padding-left: 2rem; border-left: 1px solid rgba(58, 22, 52, .15); }
.intro__row strong { font: italic 400 2.6rem/1 var(--serif); color: var(--plum); }

/* Services */
.services { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.services h2 { max-width: 12ch; margin-bottom: 3rem; }
.services__list { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.service { padding-top: 1.4rem; border-top: 2px solid var(--plum); }
.service__from { margin-bottom: .6rem; color: var(--peri); font-weight: 600; filter: brightness(.8); }
.service h3 { margin-bottom: .8rem; }
.service > p:not(.service__from) { color: var(--muted); }
.service ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.service li { padding: .5rem 0; border-top: 1px dotted rgba(58, 22, 52, .3); font-size: .98rem; }
.service--feature { margin-top: 3rem; padding: 0 0 1.6rem; border: 0; background: var(--plum); color: var(--butter); }
.service--feature figure { margin: 0 0 1.4rem; }
.service--feature img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.service--feature > *:not(figure) { margin-inline: 1.6rem; }
.service--feature .service__from { color: var(--yolk); filter: none; }
.service--feature > p:not(.service__from) { color: #EADCE6; }

/* Budget planner */
.budget { padding: clamp(4.5rem, 9vw, 8rem) 0; background: var(--wine); color: var(--butter); }
.budget__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.budget h2 { color: var(--butter); }
.budget__lead { max-width: 42ch; margin: 1.2rem 0 2.4rem; color: #DCCAD6; }
.field { margin-bottom: 1.8rem; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .7rem; font-weight: 500; }
.field output { font: italic 400 1.9rem/1 var(--serif); color: var(--yolk); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--yolk) var(--p, 50%), rgba(250, 243, 220, .25) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 3px; background: rgba(250, 243, 220, .25); }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--yolk); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11.5px; border-radius: 50%; background: var(--yolk); border: 4px solid var(--wine); box-shadow: 0 0 0 1px var(--yolk); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--yolk); border: 4px solid var(--wine); }
.styles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; border: 0; }
.styles legend { width: 100%; margin-bottom: .7rem; font-weight: 500; }
.styles input { position: absolute; opacity: 0; }
.styles span { display: block; padding: .65rem 1.2rem; border: 1px solid rgba(250, 243, 220, .35); cursor: pointer; transition: background-color .25s, color .25s; }
.styles input:checked + span { background: var(--butter); color: var(--wine); border-color: var(--butter); }
.styles input:focus-visible + span { outline: 2px solid var(--yolk); outline-offset: 2px; }
.budget__chart { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 1.5rem 2.5rem; align-items: center; }
.donut { position: relative; }
.donut svg { width: 100%; height: auto; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 26; transition: stroke-dasharray .6s var(--ease), stroke-dashoffset .6s var(--ease); }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__center span { font-size: .9rem; color: #DCCAD6; }
.donut__center strong { font: italic 400 2.2rem/1.1 var(--serif); color: var(--butter); }
.legend { display: grid; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.legend li { display: grid; grid-template-columns: .8rem 1fr auto; gap: .8rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid rgba(250, 243, 220, .12); font-size: .98rem; }
.legend i { width: .8rem; height: .8rem; border-radius: 50%; }
.legend b { font-weight: 500; font-variant-numeric: tabular-nums; }
.budget__tip { grid-column: 1 / -1; margin: 0; padding: 1rem 1.2rem; background: rgba(185, 192, 242, .14); border-left: 3px solid var(--lilac); color: #EFE6D2; font-size: .98rem; }
.budget__chart .btn { grid-column: 1 / -1; justify-self: start; background: var(--yolk); color: var(--wine); }
.budget__chart .btn:hover { background: #F8E08E; }

/* Process */
.process { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.process__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 7vw, 7rem); }
.process__head { position: sticky; top: 6rem; align-self: start; }
.process__head figure { margin: 2rem 0 0; }
.process__head img { width: 100%; max-width: 420px; aspect-ratio: 3 / 3.6; object-fit: cover; }
.timeline { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--lilac); }
.timeline li { position: relative; padding: 0 0 2.8rem 2.4rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--butter); border: 2px solid var(--peri); }
.timeline li:last-child::before { background: var(--plum); border-color: var(--plum); }
.timeline__when { display: block; margin-bottom: .5rem; color: var(--muted); font-weight: 500; font-size: .95rem; }
.timeline h3 { font-size: 2rem; margin-bottom: .6rem; }
.timeline p { max-width: 46ch; color: var(--muted); margin: 0; }

/* Gallery */
.gallery { padding: 0 0 clamp(4.5rem, 9vw, 8rem); }
.gallery h2 { margin-bottom: 2.4rem; }
.gallery__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { margin-top: .5rem; font-size: .9rem; color: var(--muted); }
.g1 { grid-column: 1 / 3; }
.g1 img { aspect-ratio: 16 / 9; }
.g2 { grid-column: 3; grid-row: 1 / 3; }
.g2 img { height: calc(100% - 2rem); }
.g3 img, .g4 img { aspect-ratio: 4 / 3; }

/* Contact */
.contact { padding: clamp(4.5rem, 9vw, 8rem) 0; background: var(--plum); color: var(--butter); }
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__intro p { max-width: 38ch; margin-top: 1.3rem; color: #EADCE6; }
.contact__direct { font: italic 400 1.35rem/1.6 var(--serif); color: var(--butter) !important; }
.contact__direct a { color: var(--yolk); }
.form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.4rem); background: var(--butter); color: var(--wine); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.form input:not([type="hidden"]), .form select, .form textarea { width: 100%; min-height: 50px; padding: .7rem 0; border: 0; border-bottom: 1.5px solid rgba(58, 22, 52, .4); border-radius: 0; background: transparent; color: var(--wine); font: 400 1.05rem/1.4 var(--sans); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--peri); box-shadow: 0 1.5px 0 var(--peri); }
.form ::placeholder { color: #9C8494; }
.form__status { margin: 0; color: var(--plum); font-weight: 500; }

/* Footer */
.foot { padding: 2.6rem 0; background: var(--wine); color: #DCCAD6; font-size: .92rem; }
.foot__row { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.foot__row p { margin: 0; }
.foot__brand { font: italic 500 2rem/1 var(--serif); color: var(--butter); }
.foot__brand span { margin-left: .4rem; font: 500 .9rem var(--sans); color: #DCCAD6; }

/* Responsive */
@media (max-width: 980px) {
  .nav__toggle { display: grid; place-items: center; min-width: 76px; height: 44px; border: 1px solid var(--plum); background: transparent; color: var(--plum); font: 500 .95rem var(--sans); cursor: pointer; }
  .nav__toggle[aria-expanded="true"] { background: var(--plum); color: var(--butter); }
  .nav__links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: var(--butter); border-bottom: 1px solid rgba(58, 22, 52, .15); transform: translateY(-130%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s; }
  .nav__links.is-open { transform: none; visibility: visible; }
  .nav__links a { padding: 1rem 0; border-bottom: 1px solid rgba(58, 22, 52, .1); font: italic 400 1.6rem/1.1 var(--serif); }
  .nav__links .nav__cta { margin-top: 1rem; text-align: center; font: 500 1rem var(--sans); }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero__title { grid-column: 1 / -1; }
  .hero__main { grid-column: 1 / -1; grid-row: 2; }
  .hero__main img { min-height: 0; aspect-ratio: 4 / 4.4; }
  .hero__side { grid-row: 3; }
  .hero__aside { grid-row: 3; }
  .services__list, .budget__grid, .process__grid, .contact__grid { grid-template-columns: 1fr; }
  .service--feature { margin-top: 0; }
  .process__head { position: static; }
  .foot__row { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__title { font-size: 2.45rem; }
  .hero__l2 { padding-left: .5em; }
  .field output { font-size: 1.5rem; }
  .hero__l3 { padding-left: 0; }
  .hero__side { display: none; }
  .hero__aside { grid-column: 1; }
  .intro__row { grid-template-columns: 1fr; }
  .intro__row p + p { padding-left: 0; border-left: 0; border-top: 1px solid rgba(58, 22, 52, .15); }
  .intro__row p { padding: 1rem 0; }
  .budget__chart { grid-template-columns: 1fr; }
  .donut { max-width: 260px; margin: 0 auto; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
  .g1 { grid-column: 1 / -1; }
  .g2 { grid-column: 1; grid-row: auto; }
  .g2 img { height: auto; aspect-ratio: 3 / 4; }
  .g3 img, .g4 img { aspect-ratio: 3 / 4; }
  .g4 { grid-column: 2; }
  .g3 { grid-column: 1 / -1; }
  .g3 img { aspect-ratio: 4 / 3; }
  .form__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
