/* Magnólia Eventos — estilos */
:root {
  --paper: #F7F4EE;
  --cream: #EDE8DE;
  --ink: #1E1F1A;
  --ink-soft: #3B3C35;
  --muted: #6B6A62;
  --olive: #006663;
  --olive-deep: #003F3D;
  --sand: #C2AE88;
  --line: rgba(30, 31, 26, 0.14);
  --line-light: rgba(247, 244, 238, 0.24);

  --serif: "Gilda Display", Georgia, serif;
  --caps: "Marcellus", "Gilda Display", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--olive); color: var(--paper); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Tipografia */
.eyebrow { display: block; font-family: var(--caps); font-size: 13px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.eyebrow.light { color: rgba(247,244,238,.75); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(34px, 4.4vw, 56px); }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-soft); max-width: 52ch; }

/* Botões */
.btn {
  --bg: var(--olive); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; min-height: 50px; background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: 0;
  font-size: 14px; font-weight: 600; letter-spacing: .03em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { --bg: var(--olive-deep); }
.btn-light { --bg: var(--paper); --fg: var(--ink); }
.btn-light:hover { --bg: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn-ghost.light { --fg: var(--paper); border-color: rgba(247,244,238,.6); }
.btn-ghost.light:hover { --bg: var(--paper); --fg: var(--ink); }
.link { display: inline-flex; gap: 8px; font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* Cabeçalho */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--paper); transition: color .4s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -2; background: rgba(247,244,238,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity .4s var(--ease); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 108px; transition: height .4s var(--ease); }
.site-header.scrolled, .site-header.solid { color: var(--ink); }
.site-header.scrolled::before, .site-header.solid::before { opacity: 1; }
.site-header.scrolled .bar { height: 80px; }
.logo { display: flex; align-items: center; line-height: 0; }
.logo img { height: 88px; width: auto; transition: height .4s var(--ease); }
.site-header.scrolled .logo img { height: 64px; }
@media (max-width: 600px) { .site-header .bar { height: 88px; } .site-header.scrolled .bar { height: 72px; } .logo img { height: 70px; } .site-header.scrolled .logo img { height: 56px; } }
.site-header .logo-dark { display: none; }
.site-header.scrolled .logo-light, .site-header.solid .logo-light, body.menu-open .site-header .logo-light { display: none; }
.site-header.scrolled .logo-dark, .site-header.solid .logo-dark, body.menu-open .site-header .logo-dark { display: block; }
.site-footer .logo img { height: 100px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { font-size: 14px; font-weight: 500; }
.nav a:not(.btn):hover { opacity: .65; }
.nav .btn { padding: 11px 20px; min-height: 42px; font-size: 13px; }
.site-header:not(.scrolled):not(.solid) .nav .btn { --bg: var(--paper); --fg: var(--ink); }
.menu-toggle { display: none; position: relative; background: none; border: 0; color: inherit; width: 44px; height: 44px; padding: 0; margin-right: -10px; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { transform: translateY(-7px); }
.menu-toggle span:nth-child(3) { transform: translateY(7px); }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: -1; flex-direction: column; justify-content: center; gap: 28px; background: var(--paper); color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 32px; }
  .nav .btn { --bg: var(--olive) !important; --fg: var(--paper) !important; padding: 15px 26px; font-size: 14px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open .site-header { color: var(--ink); }
  body.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; background: var(--olive-deep); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,22,16,.82) 0%, rgba(20,22,16,.4) 42%, rgba(20,22,16,.1) 75%), linear-gradient(90deg, rgba(20,22,16,.45), rgba(20,22,16,0) 65%); }
.hero .container { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 14ch; margin: 18px 0 20px; }
.hero p { color: rgba(247,244,238,.86); font-size: clamp(17px, 1.3vw, 19px); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Secções */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 60px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-top: 14px; max-width: 16ch; }
.section-head .lede { margin: 0; max-width: 42ch; }

/* Serviços */
.services { background: var(--cream); }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.service-card { display: flex; flex-direction: column; background: var(--paper); }
.service-card .media { aspect-ratio: 4/3.4; overflow: hidden; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-card:hover .media img { transform: scale(1.04); }
.service-card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; flex: 1; }
.service-card .link { align-self: flex-start; margin-top: 8px; }
.includes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; margin-top: clamp(36px, 4vw, 52px); font-size: 14px; color: var(--ink-soft); }
.includes span { display: flex; align-items: center; gap: 10px; }
.includes span::before { content: ""; width: 6px; height: 6px; background: var(--olive); transform: rotate(45deg); }
@media (max-width: 900px) { .service-cards { grid-template-columns: 1fr; } }

/* Como trabalhamos */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-copy h2 { margin: 14px 0 22px; }
.steps { list-style: none; padding: 0; margin: 36px 0 36px; border-top: 1px solid var(--line); counter-reset: s; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: "0" counter(s); font-family: var(--serif); font-size: 20px; color: var(--olive); }
.steps strong { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Portefólio */
.portfolio { background: var(--olive-deep); color: var(--paper); }
.portfolio .eyebrow { color: rgba(247,244,238,.7); }
.portfolio .lede { color: rgba(247,244,238,.8); }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 18vw, 250px); gap: 10px; }
.mosaic a { position: relative; overflow: hidden; display: block; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
.mosaic .label { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--paper); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; grid-auto-flow: dense; }
  .mosaic .wide { grid-column: auto; grid-row: span 2; }
}

/* Agendar */
.booking-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.booking h2 { margin: 14px 0 20px; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-soft); }
.checks svg { flex: none; margin-top: 4px; color: var(--olive); }
.contact-direct { display: grid; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.contact-direct small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-direct a:hover { color: var(--olive); }

.form-card { background: #fff; padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--line); }
.form-card h3 { font-size: 26px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.progress { display: flex; gap: 6px; margin-bottom: 24px; }
.progress span { flex: 1; height: 2px; background: var(--cream); transition: background .4s var(--ease); }
.progress span.on { background: var(--olive); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-label { font-family: var(--caps); font-size: 12.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: block; height: 100%; padding: 15px 16px; border: 1px solid var(--line); cursor: pointer; font-weight: 500; font-size: 15px; transition: border-color .2s, background .2s; }
.choice label:hover { border-color: var(--ink-soft); }
.choice input:checked + label { border-color: var(--olive); background: #E4F1EE; box-shadow: inset 0 0 0 1px var(--olive); }
.choice input:focus-visible + label { outline: 2px solid var(--olive); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; min-height: 48px; -webkit-appearance: none; appearance: none; transition: border-color .2s; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231E1F1A' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); }
.field.invalid input { border-color: #A33A2B; }
.field .err { font-size: 12px; color: #A33A2B; display: none; }
.field.invalid .err { display: block; }
.form-nav { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.form-nav .back { background: none; border: 0; color: var(--muted); font-size: 14px; padding: 10px 0; }
.form-nav .btn { margin-left: auto; }
.form-error { color: #A33A2B; font-size: 13px; margin: 10px 0 0; min-height: 1em; }
.consent { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.form-success { display: none; text-align: center; padding: 30px 0 10px; }
.form-success.show { display: block; animation: fadeUp .5s var(--ease); }
.form-success .tick { width: 58px; height: 58px; border-radius: 50%; background: var(--olive); color: var(--paper); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 38ch; margin: 0 auto; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .choice-grid, .field-row { grid-template-columns: 1fr; } }

/* Rodapé */
.site-footer { background: var(--olive-deep); color: rgba(247,244,238,.7); padding: 56px 0 30px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(247,244,238,.12); }
.site-footer .logo { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
.site-footer a:hover { color: var(--paper); }
.footer-bottom { padding-top: 22px; font-size: 12.5px; color: rgba(247,244,238,.45); }


/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Página de projeto ---------- */
.case-hero { position: relative; min-height: 80svh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; background: var(--olive-deep); }
.case-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.case-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,22,16,.8) 0%, rgba(20,22,16,.25) 50%, rgba(20,22,16,.3) 100%); }
.case-hero .container { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(40px, 6vw, 72px); }
.case-hero h1 { margin: 14px 0 16px; max-width: 16ch; }
.case-hero p { color: rgba(247,244,238,.85); max-width: 48ch; font-size: 18px; margin: 0; }
.breadcrumb { font-size: 13px; color: rgba(247,244,238,.75); }
.breadcrumb a:hover { color: #fff; }

.case-facts { border-bottom: 1px solid var(--line); }
.case-facts dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.case-facts div { padding: 26px 20px 26px 0; }
.case-facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.case-facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.case-facts dd { margin: 6px 0 0; font-family: var(--serif); font-size: 20px; line-height: 1.25; }
@media (max-width: 760px) {
  .case-facts dl { grid-template-columns: 1fr 1fr; }
  .case-facts div, .case-facts div + div { padding: 18px 0; border-left: 0; }
  .case-facts div:nth-child(even) { padding-left: 16px; }
}

.case-intro { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 100px); }
.case-intro p { color: var(--ink-soft); font-size: 17px; }
.deliv { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.deliv li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
@media (max-width: 900px) { .case-intro { grid-template-columns: 1fr; } .deliv { grid-template-columns: 1fr; } }

.gallery { columns: 3; column-gap: 12px; }
.gallery figure { margin: 0 0 12px; break-inside: avoid; cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .gallery { columns: 2; column-gap: 8px; } .gallery figure { margin-bottom: 8px; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(14,15,11,.96); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--paper); width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(247,244,238,.6); font-size: 13px; }

.next-cta { background: var(--cream); text-align: center; }
.next-cta h2 { margin: 0 auto 26px; max-width: 18ch; }
