/* Fênix — Movelaria/Marcenaria · mobile-first */
:root{
  --ink:#141210;--paper:#fff;--warm:#F4F1EC;--line:#E7E2DA;--muted:#5E5850;--muted2:#6B655C;
  --accent:#B3241C;--red:#E5322D;--red-soft:#F0706A;--on-dark:#CFC8BE;--on-dark2:#B9B2A8;--dark-line:#2E2925;
  --serif:'Playfair Display',Georgia,serif;--sans:Manrope,system-ui,-apple-system,'Segoe UI',sans-serif;
  --gut:clamp(16px,4vw,32px);--radius:4px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.6 var(--sans);overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)}
:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.wrap{max-width:1240px;margin:0 auto;padding-inline:var(--gut)}
.serif{font-family:var(--serif);font-style:italic;font-weight:700}
h1,h2,h3{font-family:var(--serif);font-style:italic;font-weight:700;line-height:1.08;margin:0;letter-spacing:-.005em}
.eyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--accent)}
.eyebrow.dark{color:#D9D3CA;display:flex;align-items:center;gap:12px}
.eyebrow.dark::before{content:"";width:28px;height:3px;background:var(--red);flex:none}
.lead{font-size:17px;line-height:1.6;color:var(--muted);margin:0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* botões */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 24px;border-radius:999px;font-weight:700;font-size:16px;border:1.5px solid transparent;cursor:pointer;font-family:inherit}
.btn svg{width:20px;height:20px;flex:none}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:#951d16;color:#fff}
.btn-outline{border-color:var(--ink);color:var(--ink);background:transparent}
.btn-outline:hover{background:var(--ink);color:#fff}
.btn-ghost{border-color:#6E6760;color:#fff}
.btn-ghost:hover{background:#fff;color:var(--ink)}
.btns{display:flex;flex-wrap:wrap;gap:12px}

/* cabeçalho */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink)}
.brand img{width:46px}
.brand-name{display:flex;flex-direction:column;line-height:1}
.brand-name b{font-family:var(--serif);font-style:italic;font-size:26px}
.brand-name small{font-size:9px;letter-spacing:.2em;text-transform:uppercase;font-weight:800;margin-top:4px}
.menu-btn{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);cursor:pointer}
.menu-btn svg{width:22px;height:22px}
.nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);padding:8px var(--gut) 20px;flex-direction:column}
.nav.open{display:flex}
.nav a{padding:14px 4px;font-size:18px;font-weight:600;border-bottom:1px solid var(--line)}
.nav a[aria-current="page"]{color:var(--accent)}
.nav .btn{margin-top:16px;border-bottom:0;font-size:16px}
@media (min-width:900px){
  .brand img{width:56px}.brand-name b{font-size:30px}.brand-name small{font-size:10px}
  .menu-btn{display:none}
  .nav{display:flex;position:static;flex-direction:row;align-items:center;gap:28px;padding:0;border:0;background:none}
  .nav a{padding:0;border:0;font-size:15px}
  .nav .btn{margin:0;padding:10px 20px;min-height:44px;font-size:15px}
}

/* botão flutuante (celular) */
.fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:40;display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:#fff;border-radius:999px;padding:14px 18px;font-weight:700;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.fab:hover{color:#fff}
.fab svg{width:22px;height:22px}
@media (min-width:900px){.fab{display:none}}

/* seções */
.section{padding-block:clamp(48px,7vw,96px)}
.section.warm{background:var(--warm)}
.dark{background:var(--ink);color:#fff}
.dark a:hover{color:#fff}
.sec-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px 40px;margin-bottom:clamp(24px,4vw,40px)}
.sec-head h2{font-size:clamp(32px,4.4vw,52px);margin-top:10px}
.sec-head .lead{max-width:440px}

/* hero */
.hero .wrap{display:grid;gap:32px;padding-block:clamp(36px,6vw,80px);align-items:center}
.hero h1{font-size:clamp(38px,5.4vw,72px);margin:18px 0}
.hero p{color:var(--on-dark);font-size:18px;margin:0 0 24px;max-width:520px}
.hero figure{margin:0}
.hero figure img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius)}
.hero figcaption{font-size:13px;color:var(--on-dark2);margin-top:10px}
@media (min-width:900px){.hero .wrap{grid-template-columns:1fr 1fr;gap:56px}}
.pillars{border-top:1px solid var(--dark-line)}
.pillars .wrap{display:grid;gap:24px;padding-block:32px 44px}
@media (min-width:760px){.pillars .wrap{grid-template-columns:repeat(3,1fr)}}
.pillar{display:flex;gap:16px}
.pillar span{font-family:var(--serif);font-style:italic;font-size:28px;color:var(--red-soft);line-height:1}
.pillar strong{display:block;font-size:17px}
.pillar p{margin:4px 0 0;color:var(--on-dark2);font-size:15px;line-height:1.5}

/* cartões */
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
@media (min-width:700px){.tiles{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:28px 20px}}
.tile{display:flex;flex-direction:column;gap:10px}
.tile .ph{overflow:hidden;border-radius:var(--radius);background:var(--line)}
.tile img{width:100%;object-fit:cover;transition:transform .5s ease}
.tile:hover img{transform:scale(1.04)}
.tile .ph.tall img{aspect-ratio:4/5}
.tile .ph.wide img{aspect-ratio:4/3}
.tile .row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.tile strong{font-size:17px;line-height:1.3}
.tile .meta{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--muted2)}
.tile .count{font-size:14px;color:var(--muted2);white-space:nowrap}
.cards{display:grid;gap:28px 24px}
@media (min-width:640px){.cards{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1000px){.cards{grid-template-columns:repeat(3,1fr)}}
.feature{display:grid;background:#fff;border-radius:6px;overflow:hidden;margin-bottom:28px}
.feature img{width:100%;height:100%;min-height:260px;object-fit:cover}
.feature .txt{padding:clamp(20px,3vw,44px);display:flex;flex-direction:column;justify-content:center;gap:14px}
.feature h3{font-size:clamp(28px,3vw,36px)}
.feature .go{font-weight:700;color:var(--accent)}
@media (min-width:900px){.feature{grid-template-columns:3fr 2fr}}
.center{display:flex;justify-content:center;margin-top:36px}

/* oficina */
.oficina .wrap{display:grid;gap:40px;align-items:center}
@media (min-width:900px){.oficina .wrap{grid-template-columns:1fr 1fr;gap:56px}}
.oficina h2{font-size:clamp(32px,4.4vw,52px);margin:16px 0}
.oficina p{color:var(--on-dark);font-size:17px;margin:0}
.steps{list-style:none;margin:20px 0 0;padding:0;border-top:1px solid var(--dark-line)}
.steps li{display:flex;gap:16px;padding:14px 0;border-bottom:1px solid var(--dark-line)}
.steps b{color:var(--red-soft);width:22px;flex:none}
.steps span{color:var(--on-dark2)}
.mosaic{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mosaic figure{margin:0}
.mosaic figure:first-child{grid-row:span 2}
.mosaic img{width:100%;height:100%;object-fit:cover;border-radius:var(--radius)}
.mosaic figure:not(:first-child) img{aspect-ratio:4/3;height:auto}
.mosaic figcaption{font-size:12px;color:var(--on-dark2);margin-top:6px}

/* contato */
.contato .wrap{display:grid;gap:36px}
@media (min-width:900px){.contato .wrap{grid-template-columns:1fr 1fr;gap:56px;align-items:start}}
.contato h2{font-size:clamp(32px,4.4vw,52px);margin:12px 0 16px}
.info{margin:0;border:1px solid var(--line);border-radius:6px;display:grid}
@media (min-width:560px){.info{grid-template-columns:1fr 1fr}}
.info div{padding:20px;border-bottom:1px solid var(--line)}
.info dt{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--muted2)}
.info dd{margin:4px 0 0;font-size:17px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.info dd a.lk{color:var(--accent)}

/* rodapé */
.site-footer{background:var(--ink);color:var(--on-dark2);border-top:1px solid var(--dark-line);padding-bottom:84px}
.site-footer .wrap{display:flex;flex-wrap:wrap;gap:16px 24px;justify-content:space-between;align-items:center;padding-block:32px;font-size:14px}
.site-footer .brand{color:#fff}
@media (min-width:900px){.site-footer{padding-bottom:0}}

/* páginas internas */
.page-head{background:var(--warm);padding-block:clamp(24px,5vw,56px) 24px}
.crumbs{font-size:14px;color:var(--muted);display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.crumbs a{color:var(--muted)}
.page-head h1{font-size:clamp(40px,7vw,80px)}
.page-head .lead{margin-top:12px;max-width:560px}
.chips{display:flex;gap:8px;overflow-x:auto;padding:20px var(--gut) 4px;margin-inline:calc(-1 * var(--gut));scrollbar-width:none;-webkit-overflow-scrolling:touch}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border-radius:999px;border:1px solid #DDD6CC;background:#fff;font-size:15px;font-weight:600;white-space:nowrap}
.chip[aria-current="page"]{background:var(--ink);border-color:var(--ink);color:#fff}
@media (min-width:900px){.chips{flex-wrap:wrap;overflow:visible;margin-inline:0;padding-inline:0}}

/* galeria (masonry por colunas) */
.galeria{columns:2;column-gap:8px;margin-top:24px}
@media (min-width:640px){.galeria{columns:3;column-gap:12px}}
@media (min-width:1100px){.galeria{columns:4;column-gap:14px}}
.g-item{display:block;break-inside:avoid;margin-bottom:8px;border-radius:3px;overflow:hidden;background:var(--line);position:relative;cursor:zoom-in}
@media (min-width:640px){.g-item{margin-bottom:12px}}
.g-item img{width:100%;transition:transform .4s ease,opacity .3s}
.g-item:hover img{transform:scale(1.03)}
.g-item .star{position:absolute;left:8px;top:8px;background:rgba(255,255,255,.92);color:var(--ink);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:4px 8px;border-radius:999px}
.g-count{font-size:14px;color:var(--muted);margin-top:8px}

/* projeto */
.proj{display:grid;gap:32px;padding-block:24px clamp(48px,6vw,80px)}
@media (min-width:1000px){.proj{grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:48px;align-items:start}.proj aside{position:sticky;top:96px}}
.proj .galeria{margin-top:0;columns:2}
@media (min-width:1100px){.proj .galeria{columns:2}}
.proj aside{display:flex;flex-direction:column;gap:20px;order:-1}
@media (min-width:1000px){.proj aside{order:0}}
.proj h1{font-size:clamp(34px,4vw,48px)}
.facts{margin:0;border-top:1px solid var(--line)}
.facts div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:15px}
.facts dt{color:var(--muted)}.facts dd{margin:0;font-weight:700;text-align:right}
.cta-box{background:var(--ink);color:#fff;border-radius:6px;padding:24px;display:flex;flex-direction:column;gap:12px}
.cta-box strong{font-family:var(--serif);font-style:italic;font-size:24px;line-height:1.15}
.cta-box span{color:var(--on-dark);font-size:15px}
.band .wrap{display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;align-items:center;padding-block:clamp(36px,5vw,56px)}
.band h2{font-size:clamp(28px,3.4vw,44px)}
.band p{color:var(--on-dark);margin:6px 0 0}

/* legenda do lightbox */
.pswp__custom-caption{position:absolute;left:0;right:0;bottom:0;padding:16px 20px calc(18px + env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(0,0,0,.75));color:#fff;font:500 15px/1.4 var(--sans);text-align:center;pointer-events:none}
.pswp__custom-caption:empty{display:none}
