/* ===== Web Activa — shared design system (restaurant pilot) ===== */
/* Per-client theme overrides live in each site's assets/css/style.css :root block. */
:root{
  --bg:#FAF6F0; --surface:#FFFFFF; --ink:#1E1B18; --muted:#6B635B;
  --brand:#B5532A; --brand-ink:#8E3F1F; --line:#E7DED3;
  --maxw:1140px; --radius:12px; --shadow:0 8px 30px rgba(30,27,24,.08);
  --font-display:"Fraunces",Georgia,serif; --font-body:"Inter",system-ui,sans-serif;
  --step--1:.875rem; --step-0:1rem; --step-1:1.125rem; --step-2:1.375rem;
  --step-3:1.75rem; --step-4:2.5rem; --step-5:3.5rem;
  --sp-1:.5rem; --sp-2:1rem; --sp-3:1.5rem; --sp-4:2rem; --sp-6:3rem;
  --sp-8:5rem; --sp-10:7.5rem;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--font-body);font-size:var(--step-0);line-height:1.6;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;display:block;height:auto}
h1,h2,h3{font-family:var(--font-display);font-weight:600;line-height:1.1;margin:0 0 .4em}
h1{font-size:var(--step-5)} h2{font-size:var(--step-4)} h3{font-size:var(--step-2)}
p{margin:0 0 1em;max-width:68ch}
a{color:var(--brand);text-decoration:none}
a:hover{color:var(--brand-ink)}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:4px}
.container{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--sp-3)}
.section{padding-block:var(--sp-8)}
.price{font-variant-numeric:tabular-nums}
.btn{display:inline-flex;align-items:center;gap:.5rem;min-height:48px;
  padding:.8rem 1.4rem;border-radius:var(--radius);background:var(--brand);
  color:#fff;font-weight:600;border:0;cursor:pointer;
  transition:transform .15s ease-out,background .15s ease-out}
.btn:hover{background:var(--brand-ink);color:#fff}
.btn:active{transform:scale(.97)}
.btn--ghost{background:transparent;color:var(--brand);border:1px solid var(--line)}
/* reveal-on-scroll */
.reveal{opacity:0;transform:translateY(24px);
  transition:opacity .5s ease-out,transform .5s ease-out}
.reveal.is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
}
/* header states */
[data-block="header"]{position:sticky;top:0;z-index:40;background:rgba(250,246,240,.85);
  backdrop-filter:blur(8px);transition:box-shadow .2s ease-out,background .2s ease-out}
[data-block="header"].is-stuck{box-shadow:0 1px 0 var(--line),var(--shadow)}
/* lightbox */
[data-lightbox]{position:fixed;inset:0;z-index:100;display:none;place-items:center;
  background:rgba(30,27,24,.55);padding:var(--sp-3)}
[data-lightbox].is-open{display:grid}
[data-lightbox] img{max-height:86vh;border-radius:var(--radius)}
[data-lightbox-close]{position:absolute;top:1rem;right:1rem;min-width:48px;min-height:48px;
  border:0;border-radius:50%;background:#fff;color:var(--ink);font-size:1.25rem;cursor:pointer}

/* ===== Shared section labels ===== */
.section-label{
  display:block;font-size:var(--step--1);font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--brand);margin-bottom:var(--sp-2)}
.section-title{margin-bottom:var(--sp-4)}

/* ===== BLOCK: header ===== */
.header__inner{
  display:flex;align-items:center;justify-content:space-between;
  min-height:64px;gap:var(--sp-2)}
.header__brand{color:var(--ink);font-family:var(--font-display);font-size:var(--step-2);
  font-weight:600;letter-spacing:-.01em}
.header__brand:hover{color:var(--brand)}
.header__brand-name{display:block}
.header__nav{margin-left:auto}
.header__nav-list{display:flex;align-items:center;gap:var(--sp-1);
  list-style:none;margin:0;padding:0}
.header__nav-link{
  display:flex;align-items:center;min-height:44px;padding:.4rem var(--sp-2);
  color:var(--ink);font-size:var(--step--1);font-weight:500;letter-spacing:.02em;
  border-radius:6px;transition:color .15s ease-out,background .15s ease-out}
.header__nav-link:hover{color:var(--brand);background:rgba(181,83,42,.06)}
.header__nav-link--cta{
  background:var(--brand);color:#fff !important;padding:.4rem var(--sp-2);
  border-radius:var(--radius)}
.header__nav-link--cta:hover{background:var(--brand-ink)}
/* hamburger */
.header__toggle{
  display:none;flex-direction:column;justify-content:center;align-items:center;gap:5px;
  min-width:44px;min-height:44px;border:0;background:transparent;cursor:pointer;padding:.4rem}
.header__toggle-bar{
  display:block;width:22px;height:2px;background:var(--ink);
  border-radius:2px;transition:transform .2s ease-out,opacity .2s ease-out}
/* mobile nav */
@media (max-width:767px){
  .header__toggle{display:flex}
  .header__nav{
    position:absolute;top:100%;left:0;right:0;
    background:rgba(250,246,240,.98);backdrop-filter:blur(8px);
    border-top:1px solid var(--line);max-height:0;overflow:hidden;
    transition:max-height .25s ease-out}
  .header__nav.is-open{max-height:320px}
  .header__nav-list{flex-direction:column;align-items:stretch;padding:var(--sp-2) var(--sp-3) var(--sp-3)}
  .header__nav-link{font-size:var(--step-0);min-height:48px}
  .header__nav-link--cta{text-align:center;justify-content:center;margin-top:var(--sp-1)}
}
@media (min-width:768px){.header__toggle{display:none}}

/* ===== BLOCK: hero ===== */
[data-block="hero"]{position:relative;display:grid;min-height:92svh;min-height:92vh}
.hero__media{position:absolute;inset:0;overflow:hidden}
.hero__img{width:100%;height:100%;object-fit:cover;
  will-change:transform;transition:transform 8s ease-out}
@media (prefers-reduced-motion:reduce){.hero__img{transition:none}}
.hero__overlay{
  position:absolute;inset:0;
  background:linear-gradient(
    to bottom,
    rgba(30,27,24,.15) 0%,
    rgba(30,27,24,.5) 60%,
    rgba(30,27,24,.75) 100%
  )}
.hero__content{
  position:relative;z-index:1;display:flex;flex-direction:column;
  justify-content:flex-end;padding-bottom:var(--sp-10);
  padding-top:var(--sp-10);color:#fff}
.hero__label{
  font-size:var(--step--1);font-weight:600;letter-spacing:.15em;
  text-transform:uppercase;color:rgba(255,255,255,.75);margin-bottom:var(--sp-1)}
.hero__title{
  font-size:clamp(3rem,8vw,var(--step-5));color:#fff;
  margin-bottom:var(--sp-2);line-height:1}
.hero__tagline{
  font-size:var(--step-1);color:rgba(255,255,255,.88);
  max-width:52ch;margin-bottom:var(--sp-4);line-height:1.55}
.hero__actions{display:flex;flex-wrap:wrap;gap:var(--sp-2)}
.hero__btn.btn--ghost{color:#fff;border-color:rgba(255,255,255,.4)}
.hero__btn.btn--ghost:hover{background:rgba(255,255,255,.12);color:#fff}

/* ===== BLOCK: about ===== */
.about__inner{
  display:grid;grid-template-columns:1fr;gap:var(--sp-6);align-items:center}
@media (min-width:768px){
  .about__inner{grid-template-columns:1fr 1fr;gap:var(--sp-8)}}
.about__label{
  display:block;font-size:var(--step--1);font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--brand);margin-bottom:var(--sp-2)}
.about__title{margin-bottom:var(--sp-4)}
.about__stats{
  display:flex;flex-wrap:wrap;gap:var(--sp-4);list-style:none;
  margin:var(--sp-6) 0 0;padding:0;border-top:1px solid var(--line);padding-top:var(--sp-4)}
.about__stat{display:flex;flex-direction:column;gap:.1em}
.about__stat-num{
  font-family:var(--font-display);font-size:var(--step-3);
  font-weight:600;color:var(--brand);line-height:1}
.about__stat-label{font-size:var(--step--1);color:var(--muted)}
.about__media{order:-1}
@media (min-width:768px){.about__media{order:0}}
.about__img{
  width:100%;aspect-ratio:4/3;object-fit:cover;
  border-radius:var(--radius);box-shadow:var(--shadow)}

/* ===== BLOCK: gallery ===== */
.gallery__grid{
  display:grid;grid-template-columns:repeat(2,1fr);
  gap:var(--sp-2);list-style:none;margin:var(--sp-4) 0 0;padding:0}
@media (min-width:600px){.gallery__grid{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1024px){.gallery__grid{grid-template-columns:repeat(4,1fr)}}
.gallery__img{
  width:100%;aspect-ratio:4/3;object-fit:cover;
  border-radius:8px;cursor:zoom-in;
  transition:transform .25s ease-out,box-shadow .25s ease-out}
.gallery__img:hover{transform:scale(1.03);box-shadow:var(--shadow)}
@media (prefers-reduced-motion:reduce){.gallery__img{transition:none}}
.gallery__img:focus-visible{
  outline:3px solid var(--brand);outline-offset:2px;transform:none}

/* ===== BLOCK: hours-location ===== */
.hours__inner{
  display:grid;grid-template-columns:1fr;gap:var(--sp-6);align-items:start}
@media (min-width:768px){
  .hours__inner{grid-template-columns:1fr 1fr;gap:var(--sp-8)}}
.hours__title{margin-bottom:var(--sp-4)}
.hours__table{margin:0 0 var(--sp-4);padding:0}
.hours__row{
  display:flex;justify-content:space-between;align-items:center;
  padding:.6rem 0;border-bottom:1px solid var(--line)}
.hours__row:first-child{border-top:1px solid var(--line)}
.hours__day{font-weight:500;color:var(--ink)}
.hours__time{font-weight:600;color:var(--brand);font-variant-numeric:tabular-nums}
.hours__row--closed .hours__time{color:var(--muted);font-weight:400}
.hours__address{
  font-style:normal;margin:var(--sp-4) 0;line-height:1.7;color:var(--muted)}
.hours__address p{margin-bottom:.4rem}
.hours__phone{
  display:inline-flex;align-items:center;min-height:44px;
  font-size:var(--step-1);font-weight:600;color:var(--brand)}
.hours__phone:hover{color:var(--brand-ink)}
.hours__chips{
  display:flex;flex-wrap:wrap;gap:var(--sp-1);
  list-style:none;margin:var(--sp-4) 0 0;padding:0}
.hours__chip{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.4rem .8rem;border:1px solid var(--line);border-radius:999px;
  font-size:var(--step--1);color:var(--muted);background:var(--surface)}
.hours__map{border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow);height:350px}
.hours__map iframe{width:100%;height:100%;border:0;display:block}
@media (min-width:768px){.hours__map{height:420px}}

/* ===== BLOCK: contact ===== */
.contact__inner{
  display:grid;grid-template-columns:1fr;gap:var(--sp-6)}
@media (min-width:768px){
  .contact__inner{grid-template-columns:1fr 1fr;gap:var(--sp-10);align-items:start}}
.contact__title{margin-bottom:var(--sp-2)}
.contact__desc{color:var(--muted);max-width:40ch;margin-bottom:var(--sp-4)}
.contact__tel{
  display:inline-flex;align-items:center;min-height:44px;
  font-family:var(--font-display);font-size:var(--step-2);
  font-weight:600;color:var(--brand)}
.contact__tel:hover{color:var(--brand-ink)}
.contact__form{display:flex;flex-direction:column;gap:var(--sp-3)}
.contact__field{display:flex;flex-direction:column;gap:.4rem}
.contact__label{
  font-size:var(--step--1);font-weight:600;color:var(--ink);letter-spacing:.02em}
.contact__required{color:var(--brand);margin-left:.2em}
.contact__input{
  min-height:48px;padding:.7rem var(--sp-2);
  border:1.5px solid var(--line);border-radius:8px;
  background:var(--surface);color:var(--ink);font-size:var(--step-0);
  font-family:var(--font-body);transition:border-color .15s ease-out,box-shadow .15s ease-out}
.contact__input:focus{
  outline:none;border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(181,83,42,.18)}
/* error state: border + icon (not color-only) */
.contact__input[aria-invalid="true"]{
  border-color:#c0392b;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23c0392b' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right .75rem center;padding-right:2.5rem}
.contact__input--narrow{max-width:120px}
.contact__input--textarea{min-height:120px;resize:vertical}
.contact__hint{font-size:var(--step--1);color:var(--muted);margin-top:-.1rem}
.contact__required-note{font-size:var(--step--1);color:var(--muted);margin:0}
.contact__submit{align-self:flex-start}

/* ===== BLOCK: footer ===== */
[data-block="footer"]{background:var(--ink);color:rgba(255,255,255,.8)}
[data-block="footer"] a{color:rgba(255,255,255,.7)}
[data-block="footer"] a:hover{color:#fff}
.footer__inner{
  display:grid;grid-template-columns:1fr;gap:var(--sp-6);
  padding-top:var(--sp-8);padding-bottom:var(--sp-6)}
@media (min-width:600px){.footer__inner{grid-template-columns:repeat(2,1fr)}}
@media (min-width:900px){.footer__inner{grid-template-columns:2fr 1fr 1fr 1fr}}
.footer__brand-name{
  display:block;font-family:var(--font-display);font-size:var(--step-2);
  font-weight:600;color:#fff;margin-bottom:.3rem}
.footer__brand-tagline{font-size:var(--step--1);color:rgba(255,255,255,.5);margin:0}
.footer__col-title{
  font-size:var(--step--1);font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:rgba(255,255,255,.45);margin-bottom:var(--sp-2)}
.footer__address{font-style:normal;line-height:1.7;font-size:var(--step--1)}
.footer__hours{font-size:var(--step--1);line-height:1.7;margin:0}
.footer__hours-closed{color:rgba(255,255,255,.4)}
.footer__nav-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.3rem}
.footer__link{font-size:var(--step--1)}
.footer__bottom{border-top:1px solid rgba(255,255,255,.1);padding-block:var(--sp-3)}
.footer__bottom-inner{
  display:flex;flex-wrap:wrap;justify-content:space-between;
  gap:var(--sp-2);font-size:var(--step--1);color:rgba(255,255,255,.4)}
.footer__copy,.footer__credit{margin:0}

/* ===== BLOCK: menu ===== */
[data-block="menu"]{background:var(--bg)}
.menu__category{
  margin-bottom:var(--sp-8);
  border-top:2px solid var(--brand);
  padding-top:var(--sp-4)}
.menu__cat-title{
  font-family:var(--font-display);font-size:var(--step-2);font-weight:600;
  color:var(--ink);margin-bottom:var(--sp-4);line-height:1.2}
.menu__list{
  list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;gap:0}
.menu__item{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:var(--sp-2);
  padding:.75rem 0;
  border-bottom:1px dashed var(--line)}
.menu__item:last-child{border-bottom:none}
.menu__item-text{
  flex:1 1 0;min-width:0;
  display:flex;flex-direction:column;gap:.15rem}
.menu__dish{
  font-weight:600;color:var(--ink);font-size:var(--step-0);line-height:1.3}
.menu__desc{
  font-size:var(--step--1);color:var(--muted);line-height:1.4;max-width:55ch}
.menu__price{
  flex-shrink:0;
  font-weight:600;font-size:var(--step-0);
  color:var(--brand);
  white-space:nowrap;
  padding-left:var(--sp-3)}
/* dotted leader via padding keeps price always right-aligned */
.menu__note{
  margin-top:var(--sp-6);font-size:var(--step--1);
  color:var(--muted);border-top:1px solid var(--line);padding-top:var(--sp-3);
  max-width:none}
/* two-column dish rows on wide screens */
@media (min-width:900px){
  .menu__list{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 var(--sp-8)}
  .menu__item{
    border-bottom:1px dashed var(--line)}
}
/* mobile: single column, full width */
@media (max-width:599px){
  .menu__price{font-size:var(--step--1);padding-left:var(--sp-2)}
}
