/*
Theme Name: Roastery India
Theme URI: https://roasteryindia.com
Author: Hashtagweb.in
Author URI: https://hashtagweb.in
Description: A custom theme for an Indian specialty coffee roastery. Three coffees on the shelf, each with a Get Quote modal emailed to the site admin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: roastery
*/

:root{
  --lichen:#EDEFE9; --paper:#F8F9F5; --estate:#17352B; --estate-2:#21493B; --roast:#2A1710;
  --cherry:#B3262E; --ink:#1D2420; --muted:#5E675F; --line:#D2D8CD;
  --r-green:#9AA55B; --r-light:#C98B3E; --r-medium:#8A5226; --r-meddark:#5A3319; --r-dark:#2A1710;
  --serif:'Young Serif',Georgia,'Times New Roman',serif;
  --sans:'Instrument Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --wrap:1240px; --gut:clamp(1rem,4vw,2.5rem);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.6 var(--sans);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.2em}
a:hover{color:var(--cherry)}
h1,h2,h3,h4{font-family:var(--serif);font-weight:400;line-height:1.12;margin:0 0 .5em;letter-spacing:-.01em}
h1{font-size:clamp(2.4rem,6vw,4.6rem)}
h2{font-size:clamp(1.8rem,3.4vw,2.6rem)}
h3{font-size:1.25rem}
p{margin:0 0 1em}
:focus-visible{outline:3px solid var(--cherry);outline-offset:3px}
.wrap{width:min(100% - var(--gut)*2,var(--wrap));margin-inline:auto}
.screen-reader-text,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link:focus{position:fixed;top:.5rem;left:.5rem;z-index:100;background:#fff;padding:.6rem 1rem}

/* Buttons */
.btn,.wp-block-button__link,input[type=submit]{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font:600 .95rem/1 var(--sans);
  padding:.85rem 1.3rem;border:0;border-radius:4px;background:var(--estate);color:#fff;text-decoration:none;cursor:pointer;transition:background .2s}
.btn:hover,.wp-block-button__link:hover,input[type=submit]:hover{background:var(--cherry);color:#fff}
.btn--ghost{background:transparent;color:inherit;box-shadow:inset 0 0 0 1.5px currentColor}
.btn--ghost:hover{background:#fff;color:var(--estate)}

/* Announcement + header */
.announce{background:var(--roast);color:#E9DCCB;font-size:.875rem;text-align:center;padding:.5rem var(--gut)}
.site-header{background:var(--lichen);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header .wrap{display:flex;align-items:center;gap:2rem;min-height:72px}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;font:400 1.5rem/1 var(--serif);color:var(--estate)}
.brand svg{width:34px;height:34px;flex:none}
.brand .custom-logo{max-height:48px;width:auto}
.nav{margin-left:auto}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1.75rem}
.nav a{text-decoration:none;font-weight:500;padding:.4rem 0;border-bottom:2px solid transparent}
.nav a:hover,.nav .current-menu-item>a{border-color:var(--cherry);color:inherit}
.nav-toggle{display:none;background:none;border:1.5px solid var(--estate);border-radius:4px;padding:.5rem .8rem;font:600 .9rem var(--sans);color:var(--estate)}

/* Hero + roast scale */
.hero{background:var(--lichen);padding:clamp(2.5rem,6vw,5rem) 0 clamp(2rem,4vw,3.5rem)}
.hero h1{max-width:15ch;color:var(--estate)}
.hero__lede{max-width:52ch;color:var(--muted);font-size:1.15rem;margin-bottom:2.2rem}
.roastscale{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.roastscale button{appearance:none;border:0;cursor:pointer;text-align:left;font:600 1rem/1.2 var(--sans);
  min-height:96px;padding:.9rem 1rem;display:flex;align-items:flex-end;background:var(--c);color:var(--t);
  border-radius:4px;transition:transform .2s,box-shadow .2s}
.roastscale button:first-child{border-radius:44px 4px 4px 44px}
.roastscale button:last-child{border-radius:4px 44px 44px 4px}
.roastscale button[aria-pressed=true]{transform:translateY(-8px);box-shadow:0 14px 0 -8px var(--cherry)}
.roastscale-note{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 2rem;margin:1.1rem 0 0;color:var(--muted);min-height:3.2em}
.roastscale-note a{font-weight:600;color:var(--estate)}

/* Shelf */
.shelf{padding:clamp(2rem,5vw,3.5rem) 0 clamp(3rem,7vw,5.5rem)}
.shelf__head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:1.5rem}
.shelf__head h2{margin:0}
.shelf__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.75rem 1.25rem}
.bean[hidden]{display:none}
.bean{display:flex;flex-direction:column}
.bean__img{display:block;background:var(--lichen);border-radius:18px 18px 4px 4px;overflow:hidden;aspect-ratio:4/5;border-bottom:6px solid var(--roast-color,var(--line))}
.bean__img img{width:100%;height:100%;object-fit:cover}
.bean__roast{display:flex;align-items:center;gap:.5rem;margin:.9rem 0 .2rem;font-size:.9rem;color:var(--muted)}
.bean__roast i{width:.8rem;height:.8rem;border-radius:50%;background:var(--roast-color)}
.bean h3{margin:0 0 .3rem}
.bean h3 a{text-decoration:none}
.bean__notes{font-size:.95rem;color:var(--muted);flex:1}
.bean__foot{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.5rem}
.bean__foot .price{font-weight:700}
.bean__foot .btn{padding:.65rem .9rem;font-size:.875rem}
.empty{padding:2rem;border:1.5px dashed var(--line);border-radius:8px;color:var(--muted)}

/* Estates */
.estates{background:var(--estate);color:#EAF0EA;padding:clamp(3rem,7vw,5.5rem) 0}
.estates .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:3rem}
.estates h2{color:#fff}
.estates p{color:#B9CBBF;max-width:40ch}
.estate-list{list-style:none;margin:0;padding:0}
.estate-list li{display:grid;grid-template-columns:1.1fr 1fr 1.3fr;gap:1rem;padding:1.05rem 0;border-top:1px solid rgba(255,255,255,.18)}
.estate-list li:last-child{border-bottom:1px solid rgba(255,255,255,.18)}
.estate-list strong{font:400 1.25rem var(--serif);color:#fff}
.estate-list span{color:#B9CBBF;font-size:.95rem}

/* Brew guide */
.brew{padding:clamp(3rem,7vw,5.5rem) 0}
.brew__intro{max-width:56ch;color:var(--muted)}
.table-scroll{overflow-x:auto}
.brew table{width:100%;border-collapse:collapse;min-width:560px}
.brew th,.brew td{text-align:left;padding:1rem 1rem 1rem 0;border-bottom:1px solid var(--line);vertical-align:top}
.brew th{font-weight:600;color:var(--estate);width:20%}
.brew thead th{font-size:.9rem;color:var(--muted);font-weight:500;border-bottom:2px solid var(--estate)}

/* Subscribe */
.subscribe{background:var(--roast);color:#F2E7D8;padding:clamp(2.5rem,6vw,4.5rem) 0}
.subscribe .wrap{display:flex;flex-wrap:wrap;gap:2rem;justify-content:space-between;align-items:center}
.subscribe h2{color:#fff;max-width:18ch;margin:0}
.subscribe p{max-width:46ch;margin:0;color:#D5C4AE}
.subscribe .btn{background:var(--r-light);color:#1A0F0A}
.subscribe .btn:hover{background:#fff;color:var(--roast)}

/* Journal + content */
.journal{padding:clamp(3rem,7vw,5.5rem) 0}
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.post-card img{border-radius:4px;aspect-ratio:3/2;object-fit:cover;margin-bottom:1rem;background:var(--lichen)}
.post-card h3 a{text-decoration:none}
.post-card time{color:var(--muted);font-size:.9rem}
.content{padding:clamp(2.5rem,6vw,4.5rem) 0}
.entry{max-width:720px}
.entry h1{font-size:clamp(2rem,4.5vw,3.2rem)}
.entry-content{font-size:1.125rem;line-height:1.75}
.entry-content img{border-radius:6px}
.pagination{margin-top:2.5rem}

/* Quote notices + modal */
.notice{padding:1rem 1.25rem;border-radius:8px;margin-bottom:1.5rem}
.notice--ok{background:var(--lichen);border-left:4px solid var(--estate)}
.notice--err{background:#FBEDEC;border-left:4px solid var(--cherry)}
.quote-modal[hidden]{display:none}
.quote-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:1rem}
.quote-modal__backdrop{position:absolute;inset:0;background:rgba(29,36,32,.6)}
.quote-modal__box{position:relative;background:#fff;border-radius:12px;max-width:480px;width:100%;max-height:90vh;overflow:auto;padding:1.75rem}
.quote-modal__x{position:absolute;top:.6rem;right:.6rem;border:0;background:none;font-size:1.6rem;line-height:1;cursor:pointer;color:var(--muted)}
.quote-modal__for{color:var(--muted);margin-top:-.5rem}
.quote-modal form p{margin:0 0 .9rem}
.quote-modal label{display:grid;gap:.35rem;font-weight:600;font-size:.95rem}
.quote-modal input,.quote-modal textarea{font:400 1rem/1.5 var(--sans);padding:.65rem .8rem;border:1.5px solid var(--line);border-radius:6px;width:100%}
.quote-modal input:focus,.quote-modal textarea:focus{outline:3px solid var(--cherry);outline-offset:1px;border-color:var(--cherry)}
.quote-trap{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Footer */
.site-footer{background:var(--lichen);border-top:1px solid var(--line);padding:3rem 0 2rem}
.site-footer .wrap{display:grid;grid-template-columns:1.4fr 1fr;gap:2rem}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.site-footer small{grid-column:1/-1;color:var(--muted);border-top:1px solid var(--line);padding-top:1.25rem}

@media (max-width:1000px){
  .shelf__grid{grid-template-columns:repeat(2,1fr)}
  .estates .wrap{grid-template-columns:1fr}
  .posts{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .nav-toggle{display:block;margin-left:auto}
  .nav{position:absolute;left:0;right:0;top:100%;background:var(--lichen);border-bottom:1px solid var(--line);padding:1rem var(--gut);display:none;margin:0}
  .nav.is-open{display:block}
  .nav ul{flex-direction:column;gap:.5rem}
  .site-header .wrap{gap:1rem}
  .roastscale{grid-template-columns:1fr;gap:4px}
  .roastscale button,.roastscale button:first-child,.roastscale button:last-child{min-height:56px;border-radius:4px;align-items:center}
  .roastscale button[aria-pressed=true]{transform:translateX(8px);box-shadow:-8px 0 0 var(--cherry)}
  .estate-list li{grid-template-columns:1fr 1fr}
  .estate-list li span:last-child{grid-column:1/-1}
  .posts,.site-footer .wrap{grid-template-columns:1fr}
}
@media (max-width:480px){.shelf__grid{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Image slots (assets/images) */
.hero__top{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:end;margin-bottom:2.2rem}
.hero__top .hero__lede{margin-bottom:0}
.hero__top:not(:has(img)){grid-template-columns:1fr}
.hero__img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:120px 8px 8px 8px}
.story{padding:clamp(3rem,7vw,5.5rem) 0}
.story .wrap{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,5vw,4rem);align-items:center}
.story img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:8px 8px 8px 120px}
.story p{color:var(--muted);max-width:44ch}
.estates__img{width:100%;max-width:420px;aspect-ratio:3/2;object-fit:cover;border-radius:6px;margin-top:1.5rem}
.brew__head{display:grid;grid-template-columns:1.3fr 1fr;gap:2rem;align-items:center;margin-bottom:2rem}
.brew__img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px}
.subscribe__img{width:min(100%,380px);aspect-ratio:3/2;object-fit:cover;border-radius:6px}
.subscribe__text p:last-child{margin-top:1.5rem}
@media (max-width:760px){
  .hero__top,.story .wrap,.brew__head{grid-template-columns:1fr}
  .hero__img{border-radius:60px 8px 8px 8px}
}
