/*
Theme Name: Modaka
Description: Site institucional da Cacau Modaka.
Version: 0.1.0
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');
:root{--dark:#30201a;--brand:#492e29;--gold:#e6bd77;--paper:#faf5eb;--ink:#3c2a22;--soft:#ecdfcb;--green:#243a2c}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.65 'DM Sans',sans-serif}
img{display:block;max-width:100%}
a{color:inherit}
a:focus-visible,summary:focus-visible{outline:3px solid #b68531;outline-offset:5px}
.wrap{width:min(1180px,90%);margin:auto}
header{background:var(--brand);color:#fff4df}
.bar,footer .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px}
.bar img{height:auto;width:132px}
nav{display:flex;gap:clamp(12px,2.7vw,36px);flex-wrap:wrap}
nav a{text-decoration:none;font-size:.9rem}
nav a:hover{text-decoration:underline;text-underline-offset:5px}
.hero{display:grid;grid-template-columns:1.04fr 1fr;background:var(--dark);color:var(--paper)}
.intro{padding:clamp(50px,8vw,120px) clamp(26px,5vw,85px) clamp(50px,8vw,120px) max(5vw,calc((100vw - 1180px)/2))}
.intro>p:not(.label){max-width:39ch;color:#f1e0ca;margin:24px 0 32px}
.hero figure{margin:0;position:relative;min-height:440px}
.hero img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center 49%}
.label{font-size:.76rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin:0 0 16px}
.hero .label,.hero em{color:var(--gold)}
h1,h2,h3{font-family:'Instrument Serif',Georgia,serif;font-weight:400;line-height:1;margin:0}
h1{font-size:clamp(3.3rem,7.1vw,7.3rem);letter-spacing:-.025em}
h2{font-size:clamp(2.8rem,5vw,5rem)}
h3{font-size:2.25rem}
.button{display:inline-flex;gap:24px;padding:12px 18px;background:var(--gold);color:var(--dark);text-decoration:none;font-weight:700}
.button:hover{background:#f2d6a7}
.catalog,.section,.origin{padding-block:clamp(56px,8vw,110px)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:32px}
.cards article{background:#fffaf2;border:1px solid var(--soft)}
.cards img{width:100%;height:auto;aspect-ratio:1.65;object-fit:cover}
.cards article div{padding:24px}
.pack{font-weight:700;font-size:.88rem;margin-bottom:0}
details{border-top:1px solid currentColor;padding-top:12px}
summary{cursor:pointer;font-weight:700}
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,6vw,90px);align-items:start}
.split p:first-child{margin-top:0}
.origin{background:var(--green);color:#fff8e8}
.origin .label{color:var(--gold)}
.benefits{background:var(--soft)}
footer{background:var(--brand);color:#fff4df;padding:22px 0}
@media(max-width:740px){.bar{padding-bottom:16px;align-items:flex-start;flex-direction:column;gap:0}.hero,.split,.cards{grid-template-columns:1fr}.hero figure{min-height:0;aspect-ratio:1.25}.cards{max-width:520px}.intro{padding-inline:5vw}footer .wrap{align-items:flex-start;flex-direction:column;gap:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Full-width sections on the Fazenda page. */
.page-id-827 main.wrap { width: 100%; }
.page-id-827 .post-827 > div { max-width: none !important; }
.page-id-827 .post-827 > div > section:not(:first-child) {
  padding-inline: max(5vw, calc((100% - 1180px) / 2)) !important;
}
.page-id-827 .post-827 > div > section:first-child {
  display: grid !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
}
.page-id-827 .post-827 > div > section:first-child > div {
  padding-left: max(5vw, calc((100vw - 1180px) / 2)) !important;
}
.page-id-827 .post-827 > div > section:first-child > p { position: relative; margin: 0; min-height: 440px; }
.page-id-827 .post-827 > div > section:first-child > p img {
  position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none !important;
}
@media (max-width: 740px) {
  .page-id-827 .post-827 > div > section:first-child { grid-template-columns: minmax(0, 1fr); }
  .page-id-827 .post-827 > div > section:first-child > p { min-height: 0; aspect-ratio: 1.25; }
}
