/* ÉPICE — identidade canônica (Ardósia/Marfim/Dourado · Cormorant + Cinzel) */
:root{
  --ardosia:#28354A; --ardosia-d:#1C2737; --marfim:#F6F1E7;
  --dourado:#C5A35A; --areia:#E7DCC9; --tinta:#1F1A14;
  --linha:rgba(40,53,74,.12);
  --maxw:1140px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--marfim);color:var(--tinta);
  font-family:"Cormorant Garamond",serif;font-size:19px;line-height:1.55;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 32px}

/* ---------- vozes tipográficas ---------- */
.kicker{font-family:"Cinzel",serif;font-size:11px;font-weight:600;
  letter-spacing:.32em;text-transform:uppercase;color:var(--dourado)}
h1,h2,h3{font-family:"Cormorant Garamond",serif;font-weight:600;color:var(--ardosia);
  letter-spacing:.01em;line-height:1.12}
h1{font-size:46px} h2{font-size:34px} h3{font-size:24px}
.lead{font-size:21px;color:#4a4036;max-width:64ch}
.serif-sc{font-family:"Cormorant SC",serif;font-weight:600}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:var(--ardosia);color:var(--marfim);
  border-bottom:1px solid rgba(246,241,231,.08)}
.site-header .wrap{display:flex;align-items:center;gap:28px;height:74px}
.site-header .brand img{height:50px}
.site-header nav{display:flex;gap:26px;margin-left:auto;align-items:center}
.site-header nav a{font-family:"Cinzel",serif;font-size:11px;letter-spacing:.22em;
  text-transform:uppercase;color:rgba(246,241,231,.82);transition:color .2s}
.site-header nav a:hover{color:var(--dourado)}
.site-header .search-link{display:flex;align-items:center;gap:7px}
.site-header .search-link svg{width:15px;height:15px;stroke:currentColor;fill:none}

/* ---------- hero (home) ---------- */
.hero{background:var(--ardosia);color:var(--marfim);text-align:center;
  padding:96px 32px 104px}
.hero .eyebrow{font-family:"Cinzel",serif;font-size:12px;letter-spacing:.4em;
  text-transform:uppercase;color:var(--dourado)}
.hero .logo{font-family:"Cormorant SC",serif;font-weight:600;font-size:84px;
  letter-spacing:.26em;text-indent:.26em;color:var(--marfim);line-height:1;margin:24px 0 8px}
.hero .since{font-style:italic;font-size:23px;color:var(--areia)}
.hero .since b{font-style:normal;font-weight:600;letter-spacing:.06em}
.hero .tag{margin-top:30px;max-width:60ch;margin-inline:auto;font-size:20px;color:rgba(246,241,231,.78)}
@media(max-width:680px){.hero .logo{font-size:54px}}

/* ---------- seções ---------- */
section.block{padding:78px 0;border-top:1px solid var(--linha)}
.sec-head{margin-bottom:34px}
.sec-head h2{margin:8px 0 6px}

/* ---------- grid de países ---------- */
.country-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.country-card{display:block;background:#fff;border:1px solid var(--linha);border-radius:8px;
  padding:26px 24px;transition:transform .2s,box-shadow .2s}
.country-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(31,26,20,.1)}
.country-card .nm{font-family:"Cormorant Garamond",serif;font-weight:600;font-size:27px;color:var(--ardosia)}
.country-card .ct{font-family:"Cinzel",serif;font-size:10px;letter-spacing:.2em;
  text-transform:uppercase;color:#9a8f7d;margin-top:8px}

/* ---------- grid de produtores / produtos ---------- */
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.tile{background:#fff;border:1px solid var(--linha);border-radius:8px;overflow:hidden;
  display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
.tile:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(31,26,20,.12)}
.tile .thumb{aspect-ratio:4/3;background:var(--ardosia);display:flex;align-items:center;justify-content:center}
.tile .thumb.bottle{aspect-ratio:1/1}
.tile .thumb img.ph{width:54px;opacity:.5}
.tile .thumb.photo{background:#fff}
.tile .thumb.photo img{width:100%;height:100%;object-fit:contain;padding:16px}
/* garrafa menor no grid — a foto grande fica na ficha do produto */
.tile .thumb.bottle.photo img{width:100%;height:84%;padding:0}
.tile .thumb.cover{background:var(--ardosia)}
.tile .thumb.cover img{width:100%;height:100%;object-fit:cover}
.tile .body{padding:20px 22px;display:flex;flex-direction:column;gap:6px;flex:1}
.tile .ey{font-family:"Cinzel",serif;font-size:9.5px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--dourado)}
.tile .nm{font-family:"Cormorant Garamond",serif;font-weight:600;font-size:23px;color:var(--ardosia);line-height:1.1}
.tile .meta{font-size:15px;color:#7a6f60;margin-top:auto}
.tile .count{font-family:"Cinzel",serif;font-size:10px;letter-spacing:.18em;
  text-transform:uppercase;color:#9a8f7d}

/* ---------- garrafa sem caixa (só garrafa + texto sobre o marfim) ---------- */
.tile.wine{background:transparent;border:none;border-radius:0;overflow:visible}
.tile.wine:hover{transform:translateY(-4px);box-shadow:none}
.tile.wine .thumb.bottle{background:transparent}
.tile.wine .thumb.bottle.photo{background:transparent}
.tile.wine .thumb.bottle.photo img{mix-blend-mode:multiply}
.tile.wine .thumb.bottle img.ph{width:46px;opacity:.32}
.tile.wine .body{padding:0 6px 0;text-align:center;margin-top:-30px}
.tile.wine .meta{margin-top:4px}
/* exceção: garrafas com fundo escuro queimado na foto ficam na caixa */
.tile.wine.boxed{background:#fff;border:1px solid var(--linha);border-radius:8px;overflow:hidden}
.tile.wine.boxed .thumb.bottle.photo{background:#fff}
.tile.wine.boxed .thumb.bottle.photo img{mix-blend-mode:normal}
.tile.wine.boxed .body{padding:20px 22px;text-align:left}

/* ---------- breadcrumb ---------- */
.crumb{font-family:"Cinzel",serif;font-size:10px;letter-spacing:.18em;text-transform:uppercase;
  color:#9a8f7d;padding:22px 0}
.crumb a:hover{color:var(--dourado)}
.crumb span{margin:0 8px;opacity:.5}

/* ---------- página de produtor ---------- */
.producer-hero{display:grid;grid-template-columns:1fr;gap:18px;padding:18px 0 50px;border-bottom:1px solid var(--linha)}
.producer-hero .banner{width:100%;aspect-ratio:21/9;object-fit:cover;border-radius:12px;
  margin-bottom:6px;box-shadow:0 18px 40px rgba(31,26,20,.14)}
@media(max-width:620px){.producer-hero .banner{aspect-ratio:16/9}}
.producer-hero .region{font-family:"Cinzel",serif;font-size:11px;letter-spacing:.24em;
  text-transform:uppercase;color:var(--dourado)}
.producer-hero h1{font-size:50px}
.producer-hero .bio{font-size:19px;color:#4a4036;max-width:70ch;margin-top:8px;line-height:1.7}
.producer-hero .site{font-style:italic;color:var(--ardosia);margin-top:6px}
.producer-hero .site:hover{color:var(--dourado)}

/* ---------- ficha de produto ---------- */
.product{display:grid;grid-template-columns:440px 1fr;gap:54px;padding:30px 0 70px;align-items:start}
.product .visual{background:var(--ardosia);border-radius:10px;aspect-ratio:3/4;
  display:flex;align-items:center;justify-content:center;position:sticky;top:98px}
.product .visual img.ph{width:78px;opacity:.5}
.product .visual.photo{background:#fff}
.product .visual.photo img{width:auto;height:auto;max-width:94%;max-height:96%;object-fit:contain}
.product .info .ey{font-family:"Cinzel",serif;font-size:11px;letter-spacing:.24em;
  text-transform:uppercase;color:var(--dourado)}
.product .info h1{font-size:44px;margin:8px 0 4px}
.product .info .type{font-style:italic;font-size:19px;color:#7a6f60;margin-bottom:22px}
.product .desc{font-size:19px;color:#3f372e;line-height:1.75;max-width:64ch}
.specs{margin-top:32px;border-top:1px solid var(--linha)}
.specs .row{display:grid;grid-template-columns:170px 1fr;gap:18px;padding:14px 0;border-bottom:1px solid var(--linha)}
.specs .k{font-family:"Cinzel",serif;font-size:10.5px;letter-spacing:.18em;
  text-transform:uppercase;color:#9a8f7d;padding-top:3px}
.specs .v{font-size:19px;color:var(--ardosia)}
.scores{margin-top:34px}
.scores .kicker{display:block;margin-bottom:14px}
.score-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.score{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--linha);
  border-radius:8px;padding:12px 14px}
.score .pts{font-family:"Cormorant Garamond",serif;font-weight:600;font-size:30px;color:var(--dourado);line-height:1}
.score .src{font-size:14px;color:#5a5347;line-height:1.25}
.score .src b{display:block;color:var(--ardosia);font-weight:600}

/* ---------- busca ---------- */
.search-box{display:flex;gap:12px;margin:26px 0 34px;max-width:560px}
.search-box input{flex:1;font-family:"Cormorant Garamond",serif;font-size:20px;
  padding:13px 18px;border:1px solid var(--linha);border-radius:8px;background:#fff;color:var(--tinta)}
.search-box input:focus{outline:none;border-color:var(--dourado)}
#results .tile .nm{font-size:21px}
.empty{color:#9a8f7d;font-style:italic}

/* ---------- footer ---------- */
.site-footer{background:var(--ardosia);color:var(--areia);text-align:center;padding:64px 32px}
.site-footer .m{height:88px;width:auto;margin:0 auto}
.site-footer nav{margin-top:22px;display:flex;gap:22px;justify-content:center;flex-wrap:wrap}
.site-footer nav a{font-family:"Cinzel",serif;font-size:10px;letter-spacing:.2em;
  text-transform:uppercase;color:rgba(246,241,231,.6)}
.site-footer nav a:hover{color:var(--dourado)}
.site-footer small{display:block;margin-top:26px;font-size:13px;color:rgba(246,241,231,.42)}

/* ---------- responsivo ---------- */
@media(max-width:980px){
  .country-grid{grid-template-columns:repeat(2,1fr)}
  .card-grid{grid-template-columns:repeat(2,1fr)}
  .product{grid-template-columns:1fr;gap:30px}
  .product .visual{position:static;max-width:300px}
}
@media(max-width:620px){
  .wrap{padding:0 20px}
  .site-header nav{gap:16px}
  .country-grid,.card-grid{grid-template-columns:1fr}
  h1{font-size:36px}
}
