/*
Theme Name: Castil Shop
Description: Storefront for Castil Shop with a WooCommerce product showcase.
Version: 1.1.0
Requires PHP: 7.4
Text Domain: castil-shop
License: GNU General Public License v2 or later
*/

:root{--ink:#171916;--paper:#f8f7f2;--accent:#ff633c;--line:#deddd5;--muted:#555951}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 Arial,sans-serif}img{width:100%;display:block;object-fit:cover}h1,h2,h3,p{margin:0}h1,h2{letter-spacing:-.07em;line-height:.98}h2{font-size:clamp(2.3rem,5vw,4.1rem)}a{color:inherit;text-decoration:none}a:focus-visible,summary:focus-visible{outline:3px solid #3862ed;outline-offset:4px}.wrap{width:min(1240px,92%);margin:auto}.announce{text-align:center;background:var(--ink);color:white;padding:8px 12px;font-size:.78rem}.head{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:70px}.brand{font-weight:900;font-size:1.35rem;letter-spacing:-.075em;white-space:nowrap}.brand b{color:#c03a1a}.nav,.actions{display:flex;gap:20px;font-size:.88rem;align-items:center}.nav a:hover,.actions a:hover,.foot a:hover{text-decoration:underline}.hero{background:#191b18;color:#fff;display:grid;grid-template-columns:1fr 1.12fr;min-height:480px}.hero-copy{padding:clamp(30px,6vw,85px);align-self:center}.hero h1{font-size:clamp(3.2rem,6.4vw,6.5rem)}.hero h1 span{color:var(--accent)}.hero p{color:#e3e2dc;max-width:36ch;margin:23px 0}.hero img{height:100%;min-height:0}.buttons{display:flex;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 19px;border:1px solid transparent;background:var(--accent);color:var(--ink);border-radius:4px;font-weight:800}.btn:hover{filter:brightness(.92)}.ghost{background:transparent;border-color:#adaea7;color:white}.benefits{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;border-bottom:1px solid var(--line);padding:16px 0;gap:12px;font-size:.82rem;font-weight:700}.section{padding:clamp(48px,7vw,96px) 0}.section+.section{border-top:1px solid var(--line)}.heading{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:24px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.card{background:white;border:1px solid var(--line);overflow:hidden;border-radius:6px;display:flex;flex-direction:column}.card img{aspect-ratio:4/3}.card-body{padding:16px;flex:1}.card h3{font-size:1.18rem;line-height:1.15}.card p,.sub{color:var(--muted);margin-top:8px;font-size:.9rem}.link{display:inline-block;margin-top:10px;text-decoration:underline;text-underline-offset:4px;font-weight:700;font-size:.88rem}.tag{display:inline-block;margin-bottom:8px;color:#555951;font-size:.72rem;font-weight:700}.price{font-weight:800;margin-top:8px}.goal{border-top:2px solid var(--ink);padding:16px 2px}.goal p{color:var(--muted);margin-top:8px}.editorial{display:grid;grid-template-columns:1fr 1fr;background:#eae9e0}.editorial img{height:100%;min-height:270px}.editorial div{padding:clamp(28px,6vw,72px);align-self:center}.editorial p{margin-top:18px;max-width:50ch}.faq{max-width:800px;margin:auto}.faq h2{margin-bottom:24px}details{border-top:1px solid var(--line);padding:16px 0}summary{cursor:pointer;font-weight:700}details p{padding-top:8px;color:var(--muted)}.foot{background:var(--ink);color:white;padding:30px 0}.foot .wrap{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between}.foot small{color:#d8d8cf}.skip{position:absolute;left:-999px}.skip:focus{left:12px;top:12px;background:white;padding:12px;z-index:5}
@media(max-width:850px){.head{flex-wrap:wrap;padding:12px 0;gap:8px}.nav{order:3;width:100%;gap:9px 16px;flex-wrap:wrap}.hero{min-height:0}.hero-copy{padding:26px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.hero,.editorial{grid-template-columns:1fr}.hero img{aspect-ratio:2/1}.hero h1{font-size:clamp(2.8rem,12vw,4.2rem)}.hero p{margin:14px 0}.benefits{font-size:.72rem}.grid{gap:8px}.card-body{padding:12px}.heading{align-items:start;flex-direction:column}.actions{gap:14px}.editorial img{min-height:0;aspect-ratio:2/1}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.content-page h1{font-size:clamp(2rem,5vw,3.4rem);margin-bottom:24px}
.content-page h2{font-size:clamp(1.5rem,4vw,2.5rem);margin:18px 0}
.content-page p{margin:0 0 1em}
.content-page a:not(.button){text-decoration:underline}
.content-page img,.woocommerce img{height:auto}
.content-page figure{max-width:100%}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.screen-reader-text:focus{width:auto;height:auto;clip-path:none;z-index:100000;background:white;padding:10px}
.woocommerce ul.products li.product a img{aspect-ratio:4/3;object-fit:cover;border-radius:6px}
:target{scroll-margin-top:48px}

.language-picker{flex:none}
.language-picker select{font:inherit;font-size:.86rem;color:var(--ink);background:var(--paper);border:1px solid #777970;border-radius:4px;padding:7px;max-width:100%}
.language-picker select:focus-visible{outline:3px solid #3862ed;outline-offset:3px}
@media(max-width:380px){.head{justify-content:flex-start}.head .brand{margin-right:auto}.actions{gap:10px}}
