/* =========================================================
   Crema Coffee House | base.css
   Colours, fonts, header, buttons, page banner, footer and the
   scroll animations shared by every page. Each page loads this
   first, then its own stylesheet (index.css, menu.css, etc.).
   ========================================================= */

/* ---------- Tokens: change these to re-brand the template ---------- */
:root{
  --accent:#f26b3f;        /* buttons, labels, prices */
  --accent-dark:#d9552b;
  --gold:#d6b04a;          /* underlines and icons */
  --dark:#20212b;          /* dark sections */
  --dark-2:#2a2c38;
  --night:#17181f;         /* footer */
  --cream:#f4efe8;         /* light sections */
  --cream-2:#ebe4da;
  --ink:#1e1b18;           /* headings */
  --text:#625b54;          /* body copy */
  --muted:#8a837b;
  --line:#e3dcd2;
  --white:#ffffff;

  --display:'Oswald','Arial Narrow',Arial,sans-serif;
  --body:'Open Sans',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;

  --gutter:clamp(16px,5vw,56px);
  --max:1200px;
  --nav-h:84px;
  --radius:6px;
  --ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after{ margin:0; padding:0; box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  scroll-padding-top:90px;
  -webkit-text-size-adjust:100%;
}
body{
  min-height:100vh;
  background:var(--white);
  color:var(--text);
  font-family:var(--body);
  font-size:1rem;
  line-height:1.75;
  overflow-x:clip;
  -webkit-font-smoothing:antialiased;
}
img,svg{ display:block; max-width:100%; }
ul,ol{ list-style:none; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ background:none; border:0; cursor:pointer; }
::selection{ background:var(--accent); color:#fff; }
:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

h1,h2,h3,h4{
  font-family:var(--display);
  font-weight:700;
  color:var(--ink);
  line-height:1.1;
  text-transform:uppercase;
  letter-spacing:.01em;
}
p{ max-width:66ch; }

.skip-link{
  position:absolute;
  left:12px;
  top:-60px;
  z-index:200;
  padding:10px 18px;
  border-radius:var(--radius);
  background:var(--accent);
  color:#fff;
  font-weight:600;
  transition:top .2s ease;
}
.skip-link:focus{ top:12px; }

/* ---------- Layout ---------- */
.container{
  width:min(var(--max), 100% - 2 * var(--gutter));
  margin-inline:auto;
}
.container-wide{
  width:min(1320px, 100% - 2 * var(--gutter));
  margin-inline:auto;
}
.section{ padding-block:clamp(64px,9vw,112px); }
.section-cream{ background:var(--cream); }
.section-dark{ background:var(--dark); color:#b9b4ad; }
.section-dark .title,
.section-dark h3{ color:#fff; }
.center{ text-align:center; }

/* heading kit: orange label, condensed title, short gold rule */
.eyebrow{
  max-width:none;          /* full width, so centred labels really are centred */
  color:var(--accent);
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.title{
  margin-top:8px;
  font-size:clamp(2rem,4.4vw,3rem);
}
.divider{
  display:block;
  width:56px;
  height:3px;
  margin-top:18px;
  border-radius:3px;
  background:var(--gold);
}
.section-head{
  max-width:680px;
  margin:0 auto clamp(36px,5vw,56px);
  text-align:center;
}
.section-head .divider{ margin-inline:auto; }
.section-head p:not(.eyebrow){ margin:18px auto 0; }

/* the gold rule grows in when its block is revealed */
.js [data-reveal] .divider{
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .9s var(--ease) .35s;
}
.js .section-head[data-reveal] .divider,
.js .center[data-reveal] .divider{ transform-origin:center; }
.js [data-reveal].is-visible .divider{ transform:scaleX(1); }

/* ---------- Buttons ---------- */
.btn{
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 28px;
  border:1.5px solid transparent;
  border-radius:3px;
  font-family:var(--body);
  font-size:.9rem;
  font-weight:600;
  line-height:1.2;
  cursor:pointer;
  transition:background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.btn svg{ width:16px; height:16px; transition:transform .3s var(--ease); }
.btn:hover svg{ transform:translateX(4px); }
.btn-accent{
  background:var(--accent);
  color:#fff;
  box-shadow:0 10px 22px -12px rgba(242,107,63,.9);
}
.btn-accent:hover{
  background:var(--accent-dark);
  transform:translateY(-2px);
}
/* light sweep across the orange buttons on hover */
.btn-accent::after{
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:45%;
  height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);
  transform:translateX(-160%) skewX(-20deg);
  transition:transform .7s var(--ease);
  pointer-events:none;
}
.btn-accent:hover::after{ transform:translateX(320%) skewX(-20deg); }
.btn-outline-light{
  border-color:rgba(255,255,255,.7);
  color:#fff;
}
.btn-outline-light:hover{
  background:#fff;
  color:var(--ink);
  transform:translateY(-2px);
}
.btn-outline{
  border-color:var(--ink);
  color:var(--ink);
}
.btn-outline:hover{
  background:var(--ink);
  color:#fff;
}
.btn[disabled]{ opacity:.6; cursor:progress; transform:none; }

/* =========================================================
   HEADER
   Transparent over the photo at the top, solid once you scroll.
   Nothing on the header uses transform: that would trap the
   fixed mobile menu inside it.
   ========================================================= */
.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  color:#fff;
  transition:background .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled{
  background:rgba(27,28,36,.97);
  box-shadow:0 10px 30px -16px rgba(0,0,0,.7);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding-block:22px;
  transition:padding .35s var(--ease);
}
.site-header.is-scrolled .nav{ padding-block:12px; }

.logo{
  --crease:#1b1c24;
  position:relative;
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-family:var(--display);
  font-size:1.7rem;
  font-weight:700;
  letter-spacing:.02em;
  line-height:1;
  text-transform:uppercase;
}
.logo-bean{
  width:30px;
  height:30px;
  color:var(--accent);
  transition:transform .6s var(--ease);
}
.logo:hover .logo-bean{ transform:rotate(-25deg) scale(1.08); }

.nav-panel{
  display:flex;
  align-items:center;
}
.nav-links{
  display:flex;
  gap:clamp(18px,2.6vw,36px);
}
.nav-links a{
  position:relative;
  display:inline-block;
  padding:4px 0;
  font-family:var(--display);
  font-size:.95rem;
  font-weight:500;
  letter-spacing:.06em;
  text-transform:uppercase;
  transition:color .25s ease;
}
.nav-links a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-2px;
  width:100%;
  height:2px;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .35s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"]{ color:var(--accent); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after{
  transform:scaleX(1);
  transform-origin:left;
}
.nav-panel-cta{ display:none; }
.nav-cta{ padding:11px 24px; }

.nav-toggle{
  position:relative;
  z-index:3;
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:44px;
  height:44px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.08);
}
.nav-toggle span{
  width:20px;
  height:2px;
  background:#fff;
  transition:transform .3s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.nav-scrim{ display:none; }

@media (max-width:960px){
  .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }

  /* slide-in panel from the right */
  .nav-panel{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    z-index:2;
    width:min(340px,86vw);
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:28px;
    padding:96px 36px 40px;
    background:var(--dark);
    box-shadow:-20px 0 50px rgba(0,0,0,.4);
    transform:translateX(105%);
    visibility:hidden;
    transition:transform .45s var(--ease), visibility .45s;
  }
  .nav-panel.is-open{ transform:none; visibility:visible; }
  .nav-links{ flex-direction:column; gap:6px; }
  .nav-links li{
    opacity:0;
    transform:translateX(20px);
    transition:opacity .4s ease, transform .4s var(--ease);
  }
  .nav-panel.is-open .nav-links li{
    opacity:1;
    transform:none;
    transition-delay:calc(var(--i,0) * 60ms + 150ms);
  }
  .nav-links a{ font-size:1.8rem; font-weight:600; }
  .nav-panel-cta{ display:inline-flex; }

  .nav-scrim{
    display:block;
    position:fixed;
    inset:0;
    z-index:1;
    background:rgba(10,10,14,.6);
    opacity:0;
    visibility:hidden;
    transition:opacity .4s ease, visibility .4s;
  }
  .nav-scrim.is-open{ opacity:1; visibility:visible; }
}
body.menu-open{ overflow:hidden; }

/* =========================================================
   PAGE BANNER (inner pages)
   ========================================================= */
.page-banner{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  display:flex;
  align-items:center;
  min-height:clamp(340px,52vh,480px);
  padding:calc(var(--nav-h) + 40px) 0 64px;
  background:var(--dark);
  color:#fff;
  text-align:center;
}
.page-banner-img{
  position:absolute;
  inset:0;
  z-index:-2;
  width:100%;
  height:100%;
  object-fit:cover;
  animation:bannerZoom 14s ease-out both;
}
.page-banner::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(15,15,20,.75),rgba(15,15,20,.55) 50%,rgba(15,15,20,.8));
}
.page-banner h1{
  margin-top:8px;
  color:#fff;
  font-size:clamp(2.4rem,6vw,4rem);
}
.page-banner .divider{ margin-inline:auto; }
.crumbs{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:18px;
  color:rgba(255,255,255,.75);
  font-size:.85rem;
}
.crumbs li + li::before{
  content:'/';
  margin-right:8px;
  color:var(--gold);
}
.crumbs a:hover{ color:var(--accent); }
@keyframes bannerZoom{ from{ transform:scale(1.12); } }

/* =========================================================
   CTA BAND (photo behind, dark overlay)
   ========================================================= */
.cta-band{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  padding-block:clamp(80px,11vw,130px);
  color:rgba(255,255,255,.85);
  text-align:center;
}
.cta-bg{
  position:absolute;
  inset:0;
  z-index:-2;
  width:100%;
  height:100%;
  object-fit:cover;
}
.cta-band::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:rgba(20,20,28,.78);
}
.cta-band .title{ color:#fff; }
.cta-band .divider{ margin-inline:auto; }
.cta-band p:not(.eyebrow){ margin:18px auto 30px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background:var(--night);
  color:#a19b94;
  font-size:.92rem;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1.2fr;
  gap:40px clamp(28px,4vw,56px);
  padding-block:clamp(56px,8vw,88px);
}
.footer-brand p{ margin-top:18px; max-width:34ch; }
.footer-col h3{
  margin-bottom:16px;
  color:#fff;
  font-size:1.15rem;
  letter-spacing:.06em;
}
.footer-col h3::after{
  content:'';
  display:block;
  width:32px;
  height:2px;
  margin-top:10px;
  background:var(--gold);
}
.hours li{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:7px 0;
  border-bottom:1px dashed rgba(255,255,255,.1);
}
.hours li span:last-child{ color:#fff; }
.footer-links li,
.footer-contact li{ margin-bottom:9px; }
.footer-links a,
.footer-contact a{ transition:color .25s ease, padding .3s var(--ease); }
.footer-links a:hover{ color:var(--accent); padding-left:6px; }
.footer-contact a:hover{ color:var(--accent); }
.footer-contact li{ overflow-wrap:anywhere; }

.socials{ display:flex; gap:10px; margin-top:22px; }
.socials a{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:50%;
  background:rgba(255,255,255,.07);
  color:#fff;
  transition:background .3s ease, transform .3s var(--ease);
}
.socials a:hover{ background:var(--accent); transform:translateY(-3px); }
.socials svg{ width:17px; height:17px; }

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  font-size:.82rem;
}
.footer-bottom .container{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:8px 24px;
  padding-block:20px;
}
.footer-bottom a{ color:var(--gold); }
.footer-bottom a:hover{ color:#fff; }

@media (max-width:900px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:540px){
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom .container{ justify-content:center; text-align:center; }
}

/* ---------- Back to top button ---------- */
.to-top{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:90;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  box-shadow:0 10px 24px -10px rgba(242,107,63,.9);
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:opacity .35s ease, transform .35s var(--ease), visibility .35s, background .3s ease;
}
.to-top svg{ width:20px; height:20px; }
.to-top.is-shown{ opacity:1; visibility:visible; transform:none; }
.to-top:hover{ background:var(--accent-dark); }

/* =========================================================
   MOTION
   Only transform and opacity are animated, which keeps phones
   smooth. Everything switches off for "reduce motion".
   ========================================================= */
.js [data-reveal]{ opacity:0; }
.js [data-reveal].is-visible{
  opacity:1;
  animation:revealUp .9s var(--ease) backwards;
  animation-delay:calc(var(--d,0) * 110ms);
}
.js [data-reveal="left"].is-visible{ animation-name:revealLeft; }
.js [data-reveal="right"].is-visible{ animation-name:revealRight; }
.js [data-reveal="zoom"].is-visible{ animation-name:revealZoom; }
.js [data-reveal="fade"].is-visible{ animation-name:revealFade; }

@keyframes revealUp{ from{ opacity:0; transform:translateY(30px); } }
@keyframes revealLeft{ from{ opacity:0; transform:translateX(-40px); } }
@keyframes revealRight{ from{ opacity:0; transform:translateX(40px); } }
@keyframes revealZoom{ from{ opacity:0; transform:scale(.94); } }
@keyframes revealFade{ from{ opacity:0; } }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation:none !important;
    transition:none !important;
  }
  html{ scroll-behavior:auto; }
  .js [data-reveal]{ opacity:1 !important; }
  .js [data-reveal] .divider{ transform:none !important; }
}
