:root {
  --ink: #2f241d;
  --muted: #74675d;
  --cream: #fbf7ee;
  --paper: #fffdf8;
  --kraft: #b99466;
  --kraft-deep: #8f3328;
  --gold: #af7b19;
  --line: #dfd2bf;
  --shadow: 0 24px 70px rgba(62, 42, 22, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #ece5d9;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input, select, textarea { font: inherit; }

.menu-toggle {
  position: fixed;
  z-index: 20;
  top: 22px;
  right: 22px;
  display: grid;
  place-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: var(--kraft-deep);
  box-shadow: 0 8px 24px rgba(62, 42, 22, .22);
  cursor: pointer;
}
.menu-toggle span { width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform .18s, opacity .18s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-menu {
  position: fixed;
  z-index: 19;
  top: 78px;
  right: 22px;
  width: min(280px, calc(100% - 44px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.site-menu[hidden] { display: none; }
.site-menu button { display: block; width: 100%; border: 0; padding: 12px 14px; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; font-weight: 700; }
.site-menu button:hover, .site-menu button:focus-visible, .site-menu button[aria-selected="true"] { color: #fff; background: var(--kraft-deep); outline: none; }
.tab-panel[hidden] { display: none; }

.home-panel {
  width: min(880px, calc(100% - 32px));
  min-height: calc(100vh - 64px);
  margin: 32px auto;
  padding: clamp(34px, 7vw, 78px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(119, 85, 47, .24);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 5%, rgba(175, 123, 25, .12), transparent 28%), var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}
.home-panel img { width: min(290px, 74vw); border-radius: 50%; filter: drop-shadow(0 12px 24px rgba(64, 41, 18, .12)); }
.home-panel h1 { max-width: 720px; margin-top: 10px; }
.home-panel > p:not(.eyebrow) { max-width: 590px; margin: 0 0 24px; color: var(--muted); }
.start-order-button { font-size: 1rem; }

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  overflow: hidden;
  border: 1px solid rgba(119, 85, 47, .25);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.info-section {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(119, 85, 47, .22);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 16px 45px rgba(62, 42, 22, .1);
}
.info-section h2 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3rem); }
.section-intro { max-width: 62ch; margin: 0; color: var(--muted); }
.gallery-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin-top: 24px; }
.gallery-tabs button { border: 1px solid var(--line); border-radius: 999px; padding: 11px 12px; color: var(--ink); background: var(--cream); cursor: pointer; font-weight: 700; }
.gallery-tabs button[aria-selected="true"], .gallery-tabs button:hover { color: #fff; background: var(--kraft-deep); }
.gallery-placeholder { display: grid; place-items: center; min-height: 250px; margin-top: 18px; padding: 30px; border: 1px dashed var(--kraft); border-radius: 18px; color: var(--muted); background: var(--cream); text-align: center; }
.gallery-placeholder[hidden] { display: none; }
.gallery-placeholder strong { color: var(--kraft-deep); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; }
.gallery-placeholder span { max-width: 48ch; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.steps-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.steps-grid article > strong { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--kraft-deep); }
.steps-grid h3 { margin: 14px 0 6px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; }
.steps-grid p { margin: 0; color: var(--muted); }
.contact-section { text-align: center; }
.contact-section .section-intro { margin-inline: auto; }
.contact-button { display: inline-block; margin-top: 24px; border-radius: 999px; padding: 14px 22px; color: #fff; background: var(--kraft-deep); text-decoration: none; font-weight: 700; }
.contact-button:hover { background: #5e4023; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.whatsapp-button { background: #287a4a; }
.whatsapp-button:hover { background: #1e603a; }
.instagram-button { background: #9d315e; }
.instagram-button:hover { background: #7f244a; }
.contact-details { margin: 16px 0 0; color: var(--muted); }
.faq-list { display: grid; gap: 10px; margin-top: 24px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--cream); }
.faq-list summary { padding: 15px 0; cursor: pointer; color: var(--ink); font-weight: 700; }
.faq-list p { margin: 0 0 16px; color: var(--muted); }
.preparation-times { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.preparation-times li { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); }
.preparation-times strong { color: var(--ink); white-space: nowrap; }

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 760px;
  padding: 48px;
  background:
    radial-gradient(circle at 16% 10%, rgba(175, 123, 25, .13), transparent 22%),
    linear-gradient(145deg, #ead7c1, #d79b87 64%, #b95f4f);
  border-right: 1px solid rgba(119, 85, 47, .22);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(255, 253, 248, .52);
  border-radius: 20px;
  pointer-events: none;
}

.brand-logo {
  position: relative;
  z-index: 1;
  width: min(290px, 88%);
  margin: 0 auto 42px;
  border-radius: 50%;
  filter: drop-shadow(0 12px 24px rgba(64, 41, 18, .14));
}

.brand-copy, .contact-note { position: relative; z-index: 1; }
.eyebrow, .step-label {
  margin: 0 0 8px;
  color: var(--kraft-deep);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, legend {
  font-family: "Cormorant Garamond", Georgia, serif;
}

h1 { margin: 0 0 16px; font-size: clamp(2.35rem, 4vw, 3.55rem); line-height: .98; }
.brand-copy > p:last-child { max-width: 38ch; color: #4f4033; }
.contact-note { margin: auto 0 0; font-size: .9rem; }
.contact-note a { color: var(--ink); font-weight: 600; }

.form-panel { padding: 52px clamp(28px, 5vw, 70px); }
.form-heading { margin-bottom: 34px; }
.form-heading h2, dialog h2 { margin: 0 0 8px; font-size: clamp(2.2rem, 4vw, 3.25rem); line-height: 1; }
.form-heading > p:last-child { margin: 0; color: var(--muted); }
.form-progress { margin: 0 0 30px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #eadfce; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--kraft-deep); transition: width .25s ease; }
.form-progress ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 9px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .75rem; text-align: center; }
.form-progress li.active { color: var(--kraft-deep); font-weight: 700; }
.form-step[hidden] { display: none; }
.step-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.review-step > h3 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; }

fieldset { margin: 0 0 34px; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 1.7rem; font-weight: 700; }
.conditional-section { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.conditional-section[hidden] { display: none; }
.conditional-section h3 { margin: 0 0 14px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; }
.conditional-section label:last-child { margin-bottom: 0; }
.order-total { display: grid; gap: 4px; margin-top: 18px; padding: 18px; border: 2px solid var(--kraft); border-radius: 14px; background: #fff8ed; }
.order-total span { color: var(--kraft-deep); font-weight: 700; }
.order-total strong { color: var(--ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.75rem; line-height: 1.1; }
.order-total small { color: var(--muted); }
.order-total small + small { margin-top: 5px; padding-top: 8px; border-top: 1px solid var(--line); }
.option-note { margin: 4px 0 0; padding: 10px 12px; border-left: 3px solid var(--gold); color: var(--muted); background: #fff; font-size: .9rem; }
.product-note { margin: -8px 0 20px; }
.option-note a { color: var(--kraft-deep); font-weight: 700; }
.diy-book-note { margin: 0 0 16px; }
.template-reminder { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.size-picker { grid-column: 1 / -1; margin: 0; }
.size-picker legend { margin-bottom: 10px; padding: 0; border: 0; font-family: inherit; font-size: .92rem; font-weight: 600; }
.size-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.size-cards label { position: relative; gap: 5px; margin: 0; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; cursor: pointer; }
.size-cards label:has(input:checked) { border-color: var(--kraft-deep); box-shadow: 0 0 0 3px rgba(143, 51, 40, .12); background: #fff8f4; }
.size-cards label:has(input:focus-visible) { outline: 3px solid rgba(175, 123, 25, .35); outline-offset: 2px; }
.size-cards input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.size-cards img { width: 100%; aspect-ratio: 4 / 5; border-radius: 8px; object-fit: cover; }
.size-cards strong { color: var(--ink); font-size: 1rem; }
.size-cards small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.box-open-example { display: grid; gap: 7px; margin: 0 0 16px; }
.box-open-example img { width: 100%; max-height: 360px; border-radius: 12px; object-fit: contain; background: #fff; }
.box-open-example figcaption { color: var(--muted); font-size: .84rem; text-align: center; }
.box-colour-cards { grid-template-columns: repeat(5, 1fr); }
.product-choice-group { margin-bottom: 20px; }
.product-choice-group h3 { margin: 0 0 12px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; }
.product-choice-group h3 span { color: #8d5a22; }
.product-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-cards label { position: relative; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 78px; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.product-cards label:has(input:checked) { border-color: var(--kraft-deep); box-shadow: 0 0 0 3px rgba(143, 51, 40, .12); background: #fff8f4; }
.product-cards label:has(input:focus-visible) { outline: 3px solid rgba(175, 123, 25, .35); outline-offset: 2px; }
.product-cards input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.product-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff !important; background: var(--kraft-deep); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1rem; font-weight: 700; }
.product-cards strong { color: var(--ink); }
.product-cards small { color: var(--kraft-deep); font-weight: 700; }
.product-cards .creation-product { grid-template-columns: 64px 1fr auto; }
.creation-thumb { grid-row: 1 / span 2; width: 64px; height: 54px; border-radius: 8px; object-fit: cover; }
.creation-product strong { align-self: end; }
.creation-product small { align-self: start; }
.pricing-note { margin: 10px 0 0; color: var(--muted); font-size: .84rem; }
.field-grid { display: grid; gap: 18px; }
.two-cols { grid-template-columns: 1fr 1fr; }
.relationship-grid { align-items: start; }
.relationship-grid label { grid-template-rows: auto 48px; margin-bottom: 0; }
.relationship-grid select { height: 48px; }

@media (max-width: 620px) {
  .size-cards { gap: 7px; }
  .box-colour-cards { grid-template-columns: repeat(2, 1fr); }
  .size-cards label { padding: 6px; }
  .size-cards small { font-size: .7rem; }
}

label { display: grid; gap: 7px; margin-bottom: 18px; font-size: .92rem; font-weight: 600; }
label span, .consent-row strong { color: #8d5a22; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(175, 123, 25, .13); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #a44533; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: .82rem; font-weight: 400; }

.attachment-note { display: grid; gap: 3px; margin: 18px 0 4px; padding: 14px; border: 1px solid var(--kraft); border-radius: 10px; color: #63331f; background: #fff3e8; font-size: .92rem; }
.attachment-note strong { color: #7b2d22; }
.attachment-note .personal-photo-heading { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(183, 98, 53, .28); }
.attachment-note small { margin-top: 7px; color: var(--muted); font-size: .82rem; }
.photo-permission { margin: 18px 0 4px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.photo-permission h3 { margin: 0 0 4px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; }
.photo-permission h3 span { color: #8d5a22; }
.photo-permission > p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.privacy-choice { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; margin: 9px 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 500; }
.privacy-choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--kraft-deep); }
.privacy-choice span { color: var(--ink); }
.privacy-details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.privacy-details summary { cursor: pointer; color: var(--kraft-deep); font-weight: 700; }
.privacy-details p { margin: 8px 0 0; color: var(--muted); font-size: .86rem; }

.consent-row { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; }
.consent-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--kraft-deep); }
.consent-row span { color: var(--ink); }
.terms-consent { margin: 18px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.form-error { margin: 14px 0; padding: 12px; border-radius: 8px; color: #7b2d22; background: #f8e6e1; }

.submit-button, .secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s, background .18s;
}
.submit-button { color: white; background: var(--kraft-deep); }
.submit-button:hover { transform: translateY(-1px); background: #5e4023; }
.submit-button span { margin-left: 12px; color: white; }
.secondary-button { color: var(--ink); background: #eee4d5; }
.fine-print { max-width: 55ch; margin: 13px 0 0; color: var(--muted); font-size: .82rem; }
.email-reminder { margin: 16px 0 0; padding: 13px 14px; border: 1px solid var(--kraft); border-radius: 10px; color: #63331f; background: #fff3e8; font-size: .9rem; }

dialog { width: min(620px, calc(100% - 28px)); border: 0; border-radius: 22px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(37, 27, 20, .62); backdrop-filter: blur(3px); }
.dialog-content { position: relative; padding: 34px; }
.dialog-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }
.review-summary { display: grid; gap: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.review-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.review-row dt { color: var(--muted); }
.review-row dd { margin: 0; font-weight: 600; white-space: pre-wrap; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.photo-warning { padding: 12px; border-radius: 8px; color: #66491f; background: #f6ecd8; font-size: .9rem; }

@media (max-width: 850px) {
  .page-shell { width: 100%; margin: 0; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .brand-panel { min-height: auto; padding: 38px 30px; }
  .brand-logo { width: 210px; margin-bottom: 28px; }
  .contact-note { margin-top: 28px; }
  .form-panel { padding: 38px 24px 52px; }
  .gallery-tabs { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .menu-toggle { top: 14px; right: 14px; }
  .site-menu { top: 70px; right: 14px; width: calc(100% - 28px); }
  .info-section { width: calc(100% - 24px); margin-bottom: 12px; border-radius: 18px; }
  .home-panel { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
  .gallery-tabs { grid-template-columns: 1fr 1fr; }
  .product-cards { grid-template-columns: 1fr; }
  .two-cols { grid-template-columns: 1fr; gap: 0; }
  .relationship-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .review-row { grid-template-columns: 1fr; gap: 2px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
  .step-actions { flex-direction: column-reverse; }
  .step-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
