/* ==========================================================================
   Nana Brasil Beauty — design tokens & shared components
   Colours sampled from LOGO.pdf: lettering #C05E21, line art #C6672F,
   silhouette gradient #FBD989 → #FBC383 → #F38981, background #FEEEDC.
   ========================================================================== */
:root {
  --terra: #C05E21;
  --copper: #C6672F;
  --terra-deep: #A44D18;
  --terra-dark: #7E3A12;
  --gold: #FBD989;
  --peach: #FBC383;
  --coral: #F38981;
  --blush: #F5CFCB;
  --rose: #E9A6A2;
  --cream: #FBE4E1;
  --ivory: #FFF5F3;
  --porcelain: #FFFAF9;
  --sand: #F4D9D5;
  --ink: #3A2217;
  --text: #5A3F33;
  --muted: #8A6D60;
  --line: rgba(196, 96, 80, .16);
  --line-strong: rgba(196, 96, 80, .30);
  --ok: #5E8A64;
  --warn: #C98A1B;
  --danger: #B5483A;
  --whatsapp: #1F9E57;

  --glow: linear-gradient(135deg, var(--gold) 0%, var(--peach) 45%, var(--coral) 100%);
  --glow-soft: linear-gradient(135deg, rgba(251, 210, 160, .5), rgba(247, 176, 160, .45) 45%, rgba(236, 140, 145, .45));
  --pink-wash: radial-gradient(60% 50% at 50% 50%, rgba(240, 160, 165, .35), transparent 70%);

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-caps: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --f-script: "Allison", "Brush Script MT", cursive;
  --f-body: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(90, 45, 20, .06), 0 4px 14px rgba(90, 45, 20, .05);
  --shadow-md: 0 2px 6px rgba(90, 45, 20, .05), 0 18px 40px -12px rgba(120, 60, 25, .18);
  --shadow-lg: 0 30px 80px -24px rgba(120, 60, 25, .30);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--peach); color: var(--ink); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font: 400 12.5px/1.2 var(--f-caps);
  letter-spacing: .28em; text-transform: uppercase; color: var(--terra-deep);
}
.eyebrow .num { font-family: var(--f-display); font-style: italic; font-size: 15px; letter-spacing: .04em; color: var(--copper); }
.eyebrow .num::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--line-strong); }
.h2 {
  font: 300 clamp(38px, 5.4vw, 68px)/1.02 var(--f-display);
  letter-spacing: -.01em; margin-bottom: .45em; text-wrap: balance;
}
.h2 em, .h3 em, .hero-title em { font-style: italic; color: var(--terra); }
.h3 { font: 400 clamp(28px, 3.2vw, 38px)/1.1 var(--f-display); margin-bottom: .5em; }
.lead { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.7; color: var(--text); }
.fine { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; text-transform: none; }
.glow-text {
  background: linear-gradient(100deg, #E9A53C 0%, #F08A5D 50%, #E0645E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hint { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }

/* "zu bestätigen" markers — everything that is not confirmed by the business yet.
   Hide all of them at once with CONFIG.SHOW_TBC = false (assets/js/config.js). */
.tbc {
  display: inline; padding: 1px 8px; border-radius: 6px;
  background: repeating-linear-gradient(135deg, rgba(251, 217, 137, .35) 0 6px, rgba(251, 217, 137, .18) 6px 12px);
  border: 1px dashed var(--warn); color: #7a5410; font-size: .9em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.tbc::before { content: "Zu bestätigen: "; font-weight: 500; }
html.hide-tbc .tbc, html.hide-tbc [data-tbc-only] { display: none !important; }

/* ---------- icons ---------- */
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico.flip { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font: 500 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--ease);
  -webkit-tap-highlight-color: transparent; white-space: nowrap; isolation: isolate; overflow: hidden;
}
.btn .ico { transition: transform .45s var(--ease-out); }
.btn:hover .ico:not(.flip) { transform: translateX(4px); }
.btn:hover .ico.flip { transform: scaleX(-1) translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-primary { --bg: var(--terra); --fg: #fff; box-shadow: 0 10px 26px -10px rgba(192, 94, 33, .6); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glow);
  opacity: 0; transition: opacity .5s var(--ease);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--terra-deep);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .6s var(--ease-out);
}
.btn-primary:hover::after { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(192, 94, 33, .7); }
.btn-ghost { --bd: var(--line-strong); --fg: var(--terra-deep); background: rgba(255, 255, 255, .5); }
.btn-ghost:hover { --bd: var(--terra); background: #fff; }
.btn-whatsapp { --bg: var(--whatsapp); --fg: #fff; }
.btn-whatsapp:hover { --bg: #178347; }
.btn-link { padding: 0 6px; min-height: 44px; color: var(--terra-deep); letter-spacing: .12em; }
.btn-link::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 10px; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(.35); transition: transform .5s var(--ease-out); }
.btn-link:hover::after { transform-origin: left; transform: scaleX(1); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 11.5px; }
.btn-lg { min-height: 56px; padding: 0 32px; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; position: static; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; clip-path: none; background: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.round-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .6); color: var(--terra-deep);
  transition: background .3s, transform .4s var(--ease-out), border-color .3s; text-decoration: none;
}
.round-btn:hover { background: #fff; border-color: var(--terra); }
.round-btn:active { transform: scale(.94); }
.round-btn[disabled] { opacity: .35; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--terra-deep); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .3s; }
.link-arrow:hover { border-color: var(--terra); }

/* ---------- form controls ---------- */
.field { display: block; margin-bottom: 18px; }
.label { display: block; font: 400 12px/1.3 var(--f-caps); letter-spacing: .2em; text-transform: uppercase; color: var(--terra-deep); margin-bottom: 10px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row .hint { margin: 0 0 10px; }
.float { position: relative; }
.float input, .float textarea, .input {
  width: 100%; min-height: 56px; padding: 22px 16px 8px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .75);
  font-size: 16px; color: var(--ink); outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.input { padding: 12px 14px; min-height: 48px; }
.float textarea { resize: vertical; min-height: 96px; padding-top: 26px; }
.float > span {
  position: absolute; left: 17px; top: 18px; font-size: 16px; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform .25s var(--ease-out), color .25s;
}
.float input:focus, .float textarea:focus, .input:focus { border-color: var(--terra); background: #fff; box-shadow: 0 0 0 4px rgba(192, 94, 33, .1); }
.float input:focus + span, .float input:not(:placeholder-shown) + span,
.float textarea:focus + span, .float textarea:not(:placeholder-shown) + span { transform: translateY(-11px) scale(.74); color: var(--terra-deep); }
.float.is-invalid input, .float.is-invalid textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13.5px; margin: -8px 0 14px; }
.field-error::before { content: "● "; font-size: 9px; vertical-align: 2px; }

.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; flex: 1 1 auto; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented label > span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .7);
  font-size: 15px; color: var(--text); transition: all .25s var(--ease); white-space: nowrap;
}
.segmented label:hover > span { border-color: var(--terra); }
.segmented input:checked + span { background: var(--terra); border-color: var(--terra); color: #fff; box-shadow: 0 8px 18px -8px rgba(192, 94, 33, .6); }
.segmented input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; line-height: 1.55; margin: 8px 0 18px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; transition: all .2s; margin-top: 1px; }
.check .box::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform .25s var(--ease-out); margin-top: -2px; }
.check input:checked + .box { background: var(--terra); border-color: var(--terra); }
.check input:checked + .box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--terra); outline-offset: 3px; }
.check a { color: var(--terra-deep); }

.note-box { padding: 14px 18px; border-radius: 14px; background: rgba(251, 217, 137, .22); border: 1px solid rgba(201, 138, 27, .25); font-size: 14.5px; color: #6d4a17; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
