/* Direction: Mellyna Designer — café profundo, terracota e laranja dourado, serifa Playfair elegante */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #261c17;
  --surface: #3b2e27;
  --surface-2: #4a3a31;
  --border: #5c4638;
  --border-strong: #67605d;
  --ink: #f4e4cc;
  --muted: #cdb59b;
  --accent: #b0471e;
  --accent-hover: #bc6340;
  --accent-ink: #ffffff;
  --accent-text: #f7913b;
  --accent-strong: #cb866b;
  --accent-soft: #442519;
  --accent-border: #642f1a;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #22321f;
  --success-strong: #58a474;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #452814;
  --warning-strong: #ce8f5d;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #461c18;
  --danger-strong: #d57575;
  --chart-1: #c45a32;
  --chart-2: #ac9a1d;
  --chart-3: #029864;
  --chart-4: #21a2c3;
  --chart-5: #7173d5;
  --chart-6: #d06fb2;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: 0;
  --radius-card: 18px;
  --radius-btn: 999px;
  --radius-input: 12px;
  --x-red: #b0471e;
  --x-gold: #f6872a;
  --x-on-photo: #fff8ee;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Poppins", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f3f2;
  --border: #dfdddc;
  --border-strong: #bab6b4;
  --ink: #261c17;
  --muted: #736d6b;
  --accent: #b0471e;
  --accent-hover: #963c1a;
  --accent-ink: #ffffff;
  --accent-text: #b0471e;
  --accent-strong: #b0471e;
  --accent-soft: #f4e5e0;
  --accent-border: #dbac9a;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #e3f0e8;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f6eae1;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f7e4e4;
  --danger-strong: #b91c1c;
  --chart-1: #b0471e;
  --chart-2: #998813;
  --chart-3: #0f6643;
  --chart-4: #168fac;
  --chart-5: #4744a1;
  --chart-6: #bc5c9f;
}

/* Cinematic stage: geometry, slider and motion */
.hero-stage { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--x-red) 38%, transparent), transparent 70%), var(--canvas); }
.hero-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 64px 64px; opacity: .35; mask-image: linear-gradient(to bottom, black 20%, transparent 95%); }
.geo { position: absolute; background: var(--x-red); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); opacity: .9; animation: drift 9s ease-in-out infinite alternate; }
.geo.alt { background: transparent; border: 2px solid var(--x-red); clip-path: none; transform: rotate(45deg); animation: spin 22s linear infinite; opacity: .6; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-18px, 22px, 0); } }
@keyframes spin { to { transform: rotate(405deg); } }
@keyframes rise { from { transform: translateY(26px); } to { transform: none; } }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.rise > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.rise > *:nth-child(2) { animation-delay: .08s; } .rise > *:nth-child(3) { animation-delay: .16s; } .rise > *:nth-child(4) { animation-delay: .24s; }
.cine { background: linear-gradient(135deg, var(--surface), var(--canvas)); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .05); transition: transform .25s ease, border-color .25s ease; }
.cine:hover { border-color: var(--x-red); transform: translateY(-3px); }
.redline { height: 3px; width: 64px; background: linear-gradient(90deg, var(--x-red), var(--x-gold)); border-radius: 2px; }
/* Mellyna typography: elegant serif, sentence case for big headlines */
h1.font-display, h2.font-display { text-transform: none; line-height: 1.05; }
.font-display[class*="md:text-8xl"] { font-size: clamp(2.6rem, 7vw, 5.25rem); }
.font-display[class*="md:text-6xl"] { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.font-display { overflow-wrap: anywhere; }
.script { font-family: "Great Vibes", cursive; font-weight: 400; text-transform: none; }
.brand-mark { display: inline-block; flex: none; border-radius: 9999px; background-image: url("/marca/identidade"); background-repeat: no-repeat; background-size: 353% auto; background-position: 3% 0%; box-shadow: 0 0 0 2px var(--x-gold); }
.collage { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .collage { grid-template-columns: 5fr 7fr; align-items: start; } }
.collage img { border-radius: var(--radius-card); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7); }
.price-old { text-decoration: line-through; color: var(--muted); }

/* Slider */
.slider { position: relative; overflow: hidden; background: black; border-radius: var(--radius-card); aspect-ratio: 21 / 9; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .9); }
.slider.is-flyer { aspect-ratio: 4 / 5; max-width: 520px; margin-inline: auto; }
@media (max-width: 640px) { .slider:not(.is-flyer) { aspect-ratio: 4 / 5; } }
.preview-frame .slider:not(.is-flyer) { aspect-ratio: 16 / 9; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, transform .9s ease, visibility 0s .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 2; }
.slide[data-anim="slide"] { transform: translateX(8%); } .slide[data-anim="slide"].is-active { transform: none; }
.slide[data-anim="slide"].is-leaving { transform: translateX(-8%); opacity: 0; visibility: visible; z-index: 1; }
.slide[data-anim="zoom"] { transform: scale(1.12); } .slide[data-anim="zoom"].is-active { transform: none; }
.slide .bg { position: absolute; inset: -5%; background-size: cover; background-position: center; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.04); transition: transform .3s ease-out; }
.slide.is-active .bg.kb { animation: kb 9s ease-out both; }
.slide .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .85), rgb(0 0 0 / .25) 65%, transparent); }
.slide .ph { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(135deg, black, black 18px, color-mix(in srgb, var(--x-red) 22%, black) 18px, color-mix(in srgb, var(--x-red) 22%, black) 36px); color: var(--x-on-photo); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 1rem; }
.slide .copy { position: absolute; z-index: 3; left: clamp(1rem, 5vw, 4rem); right: clamp(1rem, 30%, 18rem); bottom: clamp(2.5rem, 8vw, 4.5rem); color: var(--x-on-photo); }
@media (max-width: 640px) { .slide .copy { right: 1rem; } }
.slider.is-flyer .slide .copy { right: 1.25rem; }
.slide.is-active .copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.slide.is-active .copy > *:nth-child(2) { animation-delay: .12s; } .slide.is-active .copy > *:nth-child(3) { animation-delay: .24s; }
.slider .ctl { position: absolute; z-index: 5; top: 50%; translate: 0 -50%; }
.slider .dots { position: absolute; z-index: 5; right: 1rem; bottom: 1rem; display: flex; gap: .4rem; }
.slider .dots button { width: 26px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .35); }
.slider .dots button.on { background: var(--x-red); }
.preview-frame { transition: max-width .3s ease; margin-inline: auto; }

/* Layout shells */
.nav-link { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; color: var(--muted); font-size: .9rem; border-left: 3px solid transparent; }
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.on { color: var(--ink); background: color-mix(in srgb, var(--x-red) 18%, var(--surface)); border-left-color: var(--x-red); }
table.grid { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.grid th { text-align: left; color: var(--muted); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: .6rem .75rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.grid td { padding: .65rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.grid tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.tbl-wrap { overflow-x: auto; }
details.faq summary { cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] summary .plus { transform: rotate(45deg); }
.plus { transition: transform .2s; }
.bar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--x-red), var(--accent-text)); }
html.reduced-motion .geo, html.reduced-motion .rise > *, html.reduced-motion .slide .bg.kb, html.reduced-motion .slide.is-active .copy > * { animation: none !important; }
