/* 💍 Rodolfo & Erica — paleta tirada das fotos de Paris: névoa, pedra clara, camel, preto */
:root {
  --fog: #f6f4f0;
  --fog-2: #eeeae3;
  --stone: #e3dccf;
  --stone-2: #cfc5b3;
  --camel: #b8936a;
  --camel-2: #9c7a55;
  --camel-soft: #f1e6d6;
  --ink: #1d1b19;
  --ink-2: #4a4542;
  --ink-3: #8a837c;
  --seine: #8fa39a;
  --seine-soft: #e4ebe7;
  --white: #ffffff;
  --ok: #4f8a63; --ok-soft: #e3f0e6;
  --warn: #b8862d; --warn-soft: #f7edd6;
  --bad: #b5503f; --bad-soft: #f6e2de;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(29, 27, 25, .08);
  --shadow-2: 0 2px 10px rgba(29, 27, 25, .06);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--fog); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
h1, h2, h3 { margin: 0; font-weight: 500; }
.serif { font-family: var(--serif); }

/* layout */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #e9e4dc; padding: 26px 18px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; }
.side .brand { font-family: var(--serif); font-size: 26px; letter-spacing: .5px; color: var(--white); padding: 0 10px 20px; }
.side .brand small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--camel); margin-top: 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #cfc8bd; text-decoration: none; font-size: 14px; font-weight: 500; transition: .15s; }
.nav a:hover { background: rgba(255,255,255,.06); color: var(--white); }
.nav a.on { background: rgba(184,147,106,.18); color: var(--white); }
.nav a .ic { width: 22px; text-align: center; font-size: 16px; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-top: 1px solid rgba(255,255,255,.08); }
.side .me .av { width: 36px; height: 36px; border-radius: 50%; background: var(--camel); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); font-size: 18px; }
.side .me b { display: block; font-size: 14px; color: var(--white); }
.side .me span { font-size: 11px; color: var(--ink-3); }
.side .me button { margin-left: auto; background: none; border: 0; color: var(--ink-3); font-size: 16px; }
.main { min-width: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 28px 80px; }

/* mobile nav */
.topbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 20; }
  .topbar .brand { font-family: var(--serif); font-size: 20px; }
  .topbar button { background: none; border: 0; color: var(--white); font-size: 22px; }
  .wrap { padding: 16px 16px 90px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--stone); z-index: 20; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; text-align: center; text-decoration: none; font-size: 10px; color: var(--ink-3); padding: 4px 0; }
  .tabbar a .ic { display: block; font-size: 20px; }
  .tabbar a.on { color: var(--camel-2); font-weight: 700; }
  .drawer { position: fixed; inset: 0; background: rgba(29,27,25,.55); z-index: 30; display: none; }
  .drawer.open { display: block; }
  .drawer .side { display: flex; width: 270px; height: 100%; }
}
.tabbar { display: none; }
.drawer { display: none; }

/* hero */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; color: var(--white); min-height: 300px; display: flex; align-items: flex-end; box-shadow: var(--shadow); margin-bottom: 22px; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,27,25,0) 20%, rgba(29,27,25,.78) 100%); }
.hero .in { position: relative; z-index: 1; padding: 28px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.hero .kicker { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--stone); }
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 6vw, 44px); line-height: 1.05; font-weight: 500; white-space: nowrap; }
.hero h1 em { font-style: italic; color: var(--camel-soft); }
.hero .sub { color: var(--stone); font-size: 14px; margin-top: 6px; }
.hero .count { text-align: right; }
.hero .count b { display: block; font-family: var(--serif); font-size: 64px; line-height: 1; }
.hero .count span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--stone); }
.hero.small { min-height: 190px; }
.hero.small h1 { font-size: 34px; }
@media (max-width: 700px) { .hero { min-height: 440px; } .hero img { object-position: center 18%; } .hero .count b { font-size: 44px; } .hero .in { padding: 18px; } }

/* cards */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; gap: 10px; } .g4 .card { padding: 14px 14px; } .g4 .stat b { font-size: 30px; } }
.card { background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-2); border: 1px solid rgba(29,27,25,.04); }
.card .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card .hd h3 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.card .hd .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.stat b { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ink); }
.stat small { font-size: 12px; color: var(--ink-3); }
.bar { height: 6px; border-radius: 6px; background: var(--fog-2); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--camel); border-radius: 6px; transition: width .4s; }
.bar i.ok { background: var(--ok); } .bar i.seine { background: var(--seine); }

/* lists */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-top: 1px solid var(--fog-2); cursor: pointer; border-radius: 10px; transition: .12s; }
.row:first-child { border-top: 0; }
.row:hover { background: var(--fog); }
.row .box { width: 44px; height: 44px; border-radius: 12px; background: var(--fog-2); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.row .box.date { flex-direction: column; line-height: 1; font-family: var(--sans); }
.row .box.date b { font-size: 16px; } .row .box.date small { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); }
.row .box.late { background: var(--bad-soft); color: var(--bad); }
.row .box.done { background: var(--ok-soft); color: var(--ok); }
.row .tx { flex: 1; min-width: 0; }
.row .tx b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tx small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.row .act { opacity: 0; transition: .15s; display: flex; gap: 4px; }
.row:hover .act, .row:focus-within .act { opacity: 1; }
@media (hover: none) { .row .act { opacity: 1; } }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: var(--serif); font-size: 16px; flex-shrink: 0; }
.av.noivo { background: var(--ink); color: var(--camel-soft); } .av.noiva { background: var(--camel-soft); color: var(--camel-2); } .av.ambos { background: var(--seine-soft); color: #4f6b5f; }

/* chips, tags, buttons */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--stone); background: var(--white); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip .n { background: rgba(0,0,0,.08); border-radius: 999px; padding: 0 6px; font-size: 10px; }
.chip.on .n { background: rgba(255,255,255,.2); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; background: var(--fog-2); color: var(--ink-2); }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.warn { background: var(--warn-soft); color: var(--warn); } .tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.camel { background: var(--camel-soft); color: var(--camel-2); } .tag.ink { background: var(--ink); color: var(--white); } .tag.seine { background: var(--seine-soft); color: #4f6b5f; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 13.5px; border: 1px solid transparent; min-height: 40px; transition: .15s; text-decoration: none; }
.btn.p { background: var(--camel); color: var(--white); } .btn.p:hover { background: var(--camel-2); }
.btn.s { background: var(--white); border-color: var(--stone-2); color: var(--ink); } .btn.s:hover { background: var(--fog); }
.btn.g { background: transparent; color: var(--ink-2); } .btn.g:hover { background: var(--fog-2); }
.btn.d { background: transparent; color: var(--bad); } .btn.d:hover { background: var(--bad-soft); }
.btn.sm { padding: 6px 10px; min-height: 32px; font-size: 12.5px; border-radius: 9px; }
.btn.ico { padding: 6px 8px; min-height: 32px; min-width: 32px; }
.btn:disabled { opacity: .5; cursor: default; }
.seg { display: inline-flex; background: var(--fog-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-height: 34px; }
.seg button.on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-2); }
.seg.wrap { flex-wrap: wrap; }

/* page header */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 6px 0 16px; flex-wrap: wrap; }
.ph h2 { font-family: var(--serif); font-size: 32px; }
.ph p { margin: 2px 0 0; color: var(--ink-3); font-size: 13.5px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--stone); border-radius: 12px; padding: 0 12px; height: 40px; }
.search input { border: 0; outline: 0; background: transparent; flex: 1; }

/* empty */
.empty { text-align: center; padding: 42px 18px; color: var(--ink-2); }
.empty .em { font-size: 44px; }
.empty h3 { font-family: var(--serif); font-size: 24px; margin: 8px 0 4px; }
.empty p { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-3); }

/* forms + modal */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea { border: 1px solid var(--stone); border-radius: 11px; padding: 10px 12px; background: var(--white); outline: 0; min-height: 42px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--camel); box-shadow: 0 0 0 3px rgba(184,147,106,.18); }
.field textarea { min-height: 80px; resize: vertical; }
.field .hint { font-size: 11.5px; color: var(--ink-3); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; } .f3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .f2, .f3 { grid-template-columns: 1fr; } }
.modal-bg { position: fixed; inset: 0; background: rgba(29,27,25,.5); backdrop-filter: blur(4px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--white); border-radius: 22px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(12px); opacity: 0 } to { transform: none; opacity: 1 } }
.modal .mh { padding: 22px 24px 6px; }
.modal .mh h3 { font-family: var(--serif); font-size: 26px; }
.modal .mh p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.modal .mb { padding: 12px 24px; }
.modal .mf { padding: 12px 24px 20px; display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.modal .mf .left { margin-right: auto; }
.err { color: var(--bad); background: var(--bad-soft); padding: 8px 12px; border-radius: 10px; font-size: 13px; margin-top: 6px; display: none; }
.err.show { display: block; }
@media (max-width: 560px) { .modal-bg { align-items: flex-end; padding: 0; } .modal { border-radius: 22px 22px 0 0; max-height: 94vh; } }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--white); padding: 11px 18px; border-radius: 12px; font-size: 13.5px; opacity: 0; transition: .2s; z-index: 60; pointer-events: none; box-shadow: var(--shadow); max-width: 92vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 900px) { .toast { bottom: 80px; } }

/* misc */
.muted { color: var(--ink-3); } .small { font-size: 12px; } .right { text-align: right; } .mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
.flex { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrapf { flex-wrap: wrap; }
.kv { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--fog-2); }
.kv:first-child { border-top: 0; }
.money { font-variant-numeric: tabular-nums; }
.stars { letter-spacing: 1px; color: var(--camel); font-size: 14px; }
.opinion { background: var(--fog); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.opinion .who { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 3px; }
.opinion.empty-op { color: var(--ink-3); font-style: italic; border: 1px dashed var(--stone-2); background: transparent; }
.footer { text-align: center; font-size: 11px; color: var(--ink-3); padding: 30px 0 0; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; }
.tl-month { font-family: var(--serif); font-size: 20px; margin: 18px 0 6px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.tl-month small { font-family: var(--sans); font-size: 11px; color: var(--ink-3); letter-spacing: 1px; text-transform: uppercase; }
.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--stone-2); display: grid; place-items: center; font-size: 13px; color: transparent; flex-shrink: 0; }
.check.on { background: var(--ok); border-color: var(--ok); color: var(--white); }
.row.done .tx b { text-decoration: line-through; color: var(--ink-3); }
.pair { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 8px; }

/* popover de status */
.tagbtn { border: 0; cursor: pointer; font-family: inherit; }
.tagbtn:hover { filter: brightness(.95); outline: 2px solid var(--stone); }
.pop { position: absolute; z-index: 70; width: 230px; background: var(--white); border-radius: 14px; box-shadow: 0 16px 40px rgba(29,27,25,.22); padding: 6px; animation: pop .15s ease-out; }
.pop-t { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 8px 10px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-i { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; text-align: left; min-height: 40px; }
.pop-i:hover { background: var(--fog); } .pop-i.on { background: var(--fog-2); }

/* paleta */
.pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.sw { text-align: center; }
.sw i { display: block; width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px; border: 3px solid var(--white); box-shadow: 0 2px 10px rgba(29,27,25,.18); }
.sw b { display: block; font-size: 12px; } .sw small { font-size: 11px; color: var(--ink-3); }
.palrow { display: grid; grid-template-columns: 44px 1fr 1.4fr 32px; gap: 6px; align-items: center; margin-bottom: 6px; }
.palrow input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--stone); border-radius: 10px; background: var(--white); min-height: 40px; }

/* fornecedores: opções de preço */
.oprow { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr 32px; gap: 6px; margin-bottom: 6px; }
.oprow input { border: 1px solid var(--stone); border-radius: 9px; padding: 8px 9px; min-height: 36px; font-size: 13px; width: 100%; }
.ptab { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 6px; }
.ptab th, .ptab td { border-bottom: 1px solid var(--fog-2); padding: 6px 8px; text-align: right; }
.ptab th:first-child, .ptab td:first-child { text-align: left; font-weight: 600; }
.ptab th { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 560px) { .oprow { grid-template-columns: 1fr 1fr; } .oprow button { grid-column: span 2; } }

/* página do fornecedor: pacotes e comparador */
.itens { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; }
.itens li { margin: 2px 0; }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-2); }
.cmp { border-collapse: collapse; min-width: 760px; width: 100%; font-size: 12.5px; }
.cmp th { position: sticky; top: 0; background: var(--ink); color: var(--white); padding: 10px 12px; text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.cmp td { border-top: 1px solid var(--fog-2); padding: 9px 12px; vertical-align: top; line-height: 1.45; }
.cmp td.sec { font-weight: 700; white-space: nowrap; background: var(--fog); position: sticky; left: 0; }
.cmp th:first-child { position: sticky; left: 0; z-index: 2; }
.sec-pro { background: var(--ok-soft); border-color: rgba(79,138,99,.25); } .sec-pro h3 { color: var(--ok) !important; }
.sec-contra { background: var(--warn-soft); border-color: rgba(184,134,45,.25); } .sec-contra h3 { color: var(--warn) !important; }
.sec-falta { background: var(--bad-soft); border-color: rgba(181,80,63,.25); } .sec-falta h3 { color: var(--bad) !important; }
.cmp tr.row-pro td { background: var(--ok-soft); } .cmp tr.row-contra td { background: var(--warn-soft); } .cmp tr.row-falta td { background: var(--bad-soft); }
