/* Cobblestone Coffee & Co. — public theme stylesheet (v2 editorial).

   The page bodies are authored with inline styles in the templates so the
   markup stays byte-faithful to the design export. This file carries:
     - the single source of truth for brand tokens (:root variables);
     - the global reset, keyframes and the arrow nudge;
     - :hover states (inline styles can't express :hover);
     - the responsive nav + full-screen mobile drawer behaviour;
     - the marquee, menu deep-link flash and scroll-to-top helpers. */

/* ── Brand tokens — ONE place. Templates mirror these hexes inline for
      export fidelity; author all *new* CSS against the variables. ─────────── */
:root{
  --cc-cream:#EAE2CF;        /* page ground            */
  --cc-paper:#F1E8D6;        /* warm paper band        */
  --cc-card:#FBF8EF;         /* card surface           */
  --cc-teal:#2F5961;         /* deep logo blue         */
  --cc-teal-2:#386A74;       /* blue hover             */
  --cc-teal-dark:#223F46;    /* darkest blue surface   */
  --cc-teal-dark-2:#1B3338;
  --cc-botanical:#315F68;    /* botanical blue         */
  --cc-line:#315F68;         /* blue line / price      */
  --cc-brass:#C9A455;        /* brass (gold buttons)   */
  --cc-brass-hi:#D8B463;     /* brass hover            */
  --cc-gold-border:#8A6A26;  /* gold button border     */
  --cc-eyebrow:#A6803A;      /* eyebrow gold           */
  --cc-underline:#B98F3E;    /* active nav underline   */
  --cc-oak:#9C6B33;          /* arch frame oak         */
  --cc-ink:#23211C;          /* headline ink           */
  --cc-body:#564E40;         /* body copy              */
  --cc-muted:#6E6553;
  --cc-muted-2:#7A6A45;
  --cc-cream-teal:#F4EEE0;   /* cream on teal          */
  --cc-cream-teal-2:#F6EFDF;
  --cc-cream-teal-3:#E7D6A8;
  --cc-red:#B0503C;          /* reddish */
  --cc-red-hi:#C26049;       /* reddish hover          */
  --cc-logo-blue:#A3C2C9;    /* cup/horse logo blue    */
  --cc-logo-blue-hi:#B9D4DA;
  --cc-logo-dark:#1F1D18;
  --cc-logo-dark-hi:#2B2924;
  --cc-serif:'Rokkitt',serif;
  --cc-sans:'Mulish',system-ui,-apple-system,sans-serif;
  --cc-slab:'Rokkitt',serif;
}

/* ── Reset (mirrors the export's global <style>) ─────────────────────────── */
*{box-sizing:border-box;margin:0;padding:0;}
html{min-height:100%;-webkit-text-size-adjust:100%;background-color:var(--cc-teal-dark);}
body{min-height:100vh;min-height:100svh;background:var(--cc-teal-dark);color:#221F1A;font-family:var(--cc-sans);
  display:flex;flex-direction:column;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
body > main{flex:1 0 auto;background:var(--cc-cream);}
body > footer{flex-shrink:0;}
button{font-family:inherit;color:inherit;}
img{display:block;max-width:100%;}
a{color:inherit;}
::selection{background:var(--cc-brass);color:var(--cc-teal);}
.cc-sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important;}
.cc-menu-title-word{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;}
.cc-menu-horse{display:block;width:clamp(86px,12vw,132px);height:auto;margin-inline:auto;opacity:.95;}
.cc-menu-horse--footer{width:clamp(58px,8vw,86px);opacity:.6;}
.cc-menu-horse--home{width:clamp(74px,10vw,112px);opacity:.58;margin:0;}

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes ccSteam{0%{transform:translateY(3px) scaleX(.9);opacity:0;}35%{opacity:.6;}100%{transform:translateY(-15px) scaleX(1.25);opacity:0;}}
@keyframes ccFade{from{opacity:0;transform:translateY(16px);}to{opacity:1;transform:translateY(0);}}
@keyframes ccMarquee{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@keyframes ccPulse{0%{box-shadow:0 0 0 0 rgba(23,59,60,.55);}70%{box-shadow:0 0 0 7px rgba(23,59,60,0);}100%{box-shadow:0 0 0 0 rgba(23,59,60,0);}}
@keyframes ccNudge{0%,100%{transform:translateX(0);}50%{transform:translateX(5px);}}

/* Arrow glyphs (→) nudge right-and-back on hover of their link/button. */
.cc-arrow{display:inline-block;transition:transform .25s ease;}
a:hover .cc-arrow,button:hover .cc-arrow{animation:ccNudge .9s ease-in-out infinite;}

/* ── Hover states ─────────────────────────────────────────────────────────
   Base appearance lives inline; :hover overrides win with !important. */
.cc-hov-teal:hover{background:var(--cc-teal-2) !important;}
.cc-hov-gold:hover{background:var(--cc-brass-hi) !important;}
.cc-hov-red:hover{background:var(--cc-red-hi) !important;}
.cc-hov-ghost:hover{border-color:var(--cc-cream-teal) !important;background:rgba(244,238,224,.08) !important;}
.cc-hov-ghostteal:hover{background:var(--cc-teal-2) !important;border-color:var(--cc-teal-2) !important;}
.cc-hov-outline-teal:hover{background:rgba(47,89,97,.07) !important;}
.cc-hov-border-cream:hover{border-color:var(--cc-cream-teal) !important;}
.cc-hov-link-teal:hover{color:var(--cc-line) !important;}
.cc-hov-link-gold:hover{color:var(--cc-brass) !important;}
.cc-hov-link-white:hover{color:#fff !important;}
.cc-hov-white:hover{background:#fff !important;}
.cc-hov-border-gold:hover{border-color:var(--cc-brass) !important;}
.cc-hov-jump:hover{color:var(--cc-eyebrow) !important;border-bottom-color:var(--cc-brass) !important;}
.cc-hov-card{transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;}
.cc-hov-card:hover{border-color:var(--cc-line) !important;box-shadow:0 8px 22px rgba(47,89,97,.1);transform:translateY(-2px);}
.cc-hov-ordercard{transition:border-color .18s ease,background .18s ease;}
.cc-hov-ordercard:hover{border-color:var(--cc-line) !important;background:#FFFBF1 !important;}

/* ── Responsive nav (replaces the export's JS isMobile/<880 switch) ──────── */
.cc-desktop-nav{display:flex;}
.cc-mobile-btn{display:none;}
@media (max-width:879px){
  .cc-desktop-nav{display:none;}
  .cc-mobile-btn{display:inline-flex;}
}

/* Hamburger morphs to an X in place (same button, in the header). */
.cc-mobile-btn .cc-burger{display:flex;}
.cc-mobile-btn .cc-x{display:none;}
body.cc-drawer-lock .cc-mobile-btn .cc-burger{display:none;}
body.cc-drawer-lock .cc-mobile-btn .cc-x{display:block;}

/* ── Full-screen mobile drawer ───────────────────────────────────────────── */
.cc-drawer{display:none;}
.cc-drawer.is-open{display:flex;}
body.cc-drawer-lock{overflow:hidden;}

/* ── Smooth in-page jumps (menu Jump-to + marquee deep-links + scroll-top) ── */
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}

/* ── Marquee (home) ──────────────────────────────────────────────────────── */
.cc-marquee-track{display:flex;width:max-content;animation:ccMarquee 48s linear infinite;}
.cc-marquee-track:hover{animation-play-state:paused;}
@media (prefers-reduced-motion:reduce){.cc-marquee-track{animation:none;}}

/* ── Menu deep-link flash (marquee → menu item). JS toggles this class. ───── */
.cc-flash{border-radius:5px;background:rgba(201,164,85,.16);
  box-shadow:0 0 0 2px var(--cc-brass), 0 0 0 7px rgba(201,164,85,.16);
  transition:box-shadow 1.7s ease, background 1.7s ease;}

/* ── Floating scroll-to-top button ───────────────────────────────────────── */
.cc-scrolltop{
  position:fixed;right:clamp(14px,4vw,28px);
  bottom:calc(clamp(14px,4vw,28px) + env(safe-area-inset-bottom, 0px));z-index:70;
  width:46px;height:46px;border-radius:50%;border:0;cursor:pointer;
  background:var(--cc-teal);color:var(--cc-cream-teal);box-shadow:0 6px 18px rgba(0,0,0,.28);
  display:inline-flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s;
}
.cc-scrolltop.is-visible{opacity:1;visibility:visible;pointer-events:auto;transform:none;}
.cc-scrolltop:hover{background:var(--cc-teal-2);}

/* ── Footer columns ─────────────────────────────────────────────────────────
   4-up on desktop, a tidy 2-up on phones (matches the previous, cleaner
   cobblestone.standardmagic.com layout). The wider 190px min avoids the cramped
   3-up-then-1 stagger the inline 128px grid produced at in-between widths. */
.cc-footer-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));}
.cc-foot-logo{height:104px;width:auto;}
@media (max-width:640px){
  .cc-footer-grid{grid-template-columns:repeat(2,1fr);}
  .cc-foot-logo{height:72px;}
}
@media (max-width:760px){
  .cc-footer-find{grid-column:1/-1;width:100%;}
  .cc-footer-social{width:100%;flex-wrap:nowrap !important;justify-content:center;}
}

/* ── Announcement bar on phones ─────────────────────────────────────────────
   Drop the address (and its separator) under 600px, and the bakery line under
   460px, so the bar reads as one tidy line instead of wrapping awkwardly. */
@media (max-width:600px){ .cc-ann-drop{display:none !important;} }
@media (max-width:460px){ .cc-ann-drop2{display:none !important;} }

/* ── Home hero eyebrow strip on phones ──────────────────────────────────────
   Drop the location and stack the two remaining lines centered (Coffee · Bakery
   · Brunch above Open daily, 6am to 3pm) instead of pinning them to the edges. */
@media (max-width:600px){
  .cc-hero-eyebrow{flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:7px;}
  .cc-eyebrow-loc{display:none;}
}

/* Keep the home hero CTAs paired on phone widths. The template preserves the
   export's desktop button metrics inline, so mobile needs important overrides. */
@media (max-width:520px){
  .cc-hero-actions{width:100%;max-width:430px;flex-wrap:nowrap !important;gap:8px !important;}
  .cc-hero-actions a{flex:1 1 0;min-width:0;justify-content:center;padding:15px clamp(10px,3vw,18px) !important;font-size:clamp(12.25px,3.15vw,14px) !important;letter-spacing:.02em !important;gap:clamp(6px,1.8vw,8px) !important;}
  .cc-hero-actions a svg{width:14px;height:14px;flex:0 0 14px;}
  .cc-hero-actions a > span{font-size:14px !important;}
}

/* Visit contact CTAs: keep Takeout / Directions in one row at every
   viewport while letting the typography tighten before anything wraps. */
.cc-visit-actions{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
.cc-visit-action{min-height:50px;}
.cc-visit-action svg{flex:0 0 15px;}
@media (max-width:760px){
  .cc-visit-actions{gap:8px !important;}
  .cc-visit-action{
    padding:13px clamp(7px,2.2vw,14px) !important;
    font-size:clamp(10.5px,2.8vw,13px) !important;
    letter-spacing:.015em !important;
    gap:clamp(4px,1.2vw,7px) !important;
    line-height:1.05 !important;
  }
  .cc-visit-action svg{width:13px;height:13px;flex-basis:13px;}
  .cc-visit-action .cc-arrow{font-size:13px !important;}
}
@media (max-width:380px){
  .cc-visit-actions{gap:6px !important;}
  .cc-visit-action{
    min-height:46px;
    padding:12px 6px !important;
    font-size:clamp(9.5px,2.85vw,11px) !important;
    gap:4px !important;
  }
  .cc-visit-action svg{width:12px;height:12px;flex-basis:12px;}
  .cc-visit-action .cc-arrow{display:none;}
}

/* Visit map: real Leaflet/OpenStreetMap tiles with a branded business popup. */
.cc-osm-map{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-height:clamp(260px,34vw,420px);
  background:var(--cc-cream);
  z-index:0;
}
.cc-osm-map.leaflet-container,
.cc-osm-map .leaflet-container,
.cc-osm-map .leaflet-control,
.cc-osm-map .leaflet-popup-content{
  font-family:var(--cc-sans);
}
.cc-osm-map .leaflet-control-attribution{
  font-size:10px;
}
.cc-osm-map .leaflet-control-attribution a,
.cc-osm-map .leaflet-control-zoom a{
  color:var(--cc-teal);
}
.cc-osm-map .leaflet-popup-content-wrapper{
  border:1px solid rgba(49,95,104,.24);
  border-radius:6px;
  box-shadow:0 10px 28px rgba(35,33,28,.18);
}
.cc-osm-map .leaflet-popup-content{
  margin:14px 16px;
  min-width:220px;
}
.cc-osm-map .leaflet-popup-tip{
  border:1px solid rgba(49,95,104,.18);
}
.cc-map-popup h3{
  margin:0 0 8px;
  color:var(--cc-ink);
  font:700 15px/1.2 var(--cc-sans);
}
.cc-map-popup p{
  margin:0 0 6px;
  color:var(--cc-body);
  font:500 12.5px/1.45 var(--cc-sans);
}
.cc-map-popup p a{
  color:var(--cc-teal);
  font-weight:700;
  text-decoration:none;
}
.cc-map-popup div{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.cc-map-popup div a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(47,89,97,.26);
  border-radius:3px;
  color:var(--cc-teal);
  background:#FBF8EF;
  font:800 11px/1 var(--cc-sans);
  letter-spacing:.04em;
  text-decoration:none;
  text-transform:uppercase;
  padding:8px 10px;
}
.cc-map-popup div a:first-child{
  background:var(--cc-teal);
  border-color:var(--cc-teal);
  color:var(--cc-cream-teal);
}

/* Pair two-button CTA rows on phones instead of stacking them when they fit. */
@media (max-width:520px){
  main div[style*="flex-wrap:wrap"]:has(> a:nth-of-type(2)):not(:has(> a:nth-of-type(3))){
    width:100%;max-width:430px;flex-wrap:nowrap !important;gap:8px !important;
  }
  main div[style*="flex-wrap:wrap"]:has(> a:nth-of-type(2)):not(:has(> a:nth-of-type(3))) > a{
    flex:1 1 0;min-width:0;display:inline-flex !important;align-items:center;justify-content:center;text-align:center;white-space:nowrap !important;
    padding:14px clamp(8px,2.8vw,16px) !important;font-size:clamp(10.5px,2.9vw,13px) !important;letter-spacing:.02em !important;gap:clamp(5px,1.7vw,8px) !important;
  }
  main div[style*="flex-wrap:wrap"]:has(> a:nth-of-type(2)):not(:has(> a:nth-of-type(3))) > a svg{width:13px;height:13px;flex:0 0 13px;}
}

/* The menu templates use desktop minmax values inline. Drop to a fluid single
   column on the narrowest phones so 330/340px tracks do not create overflow. */
@media (max-width:420px){
  #cc-coffee div[style*="grid-template-columns"],
  #cc-food div[style*="grid-template-columns"],
  #cc-drinks div[style*="grid-template-columns"]{
    grid-template-columns:minmax(0,1fr) !important;
  }
}

.cc-menu-mimosa-options{
  margin:8px 0 0 1.15rem;
  padding:0;
  display:grid;
  gap:4px;
  font:400 13.5px/1.45 'Mulish',system-ui,-apple-system,sans-serif;
  color:#4A453C;
}
.cc-menu-mimosa-options li{padding-left:4px;}
.cc-menu-mimosa-options em{font-style:normal;color:#23211C;}
@media (max-width:420px){
  .cc-menu-mimosa-options{font-size:13px;margin-left:1rem;}
}

/* ── Botanical-pattern textured buttons (reusable) ──────────────────────────
   A colored button carrying the footer's teal leaf pattern as a subtle
   soft-light texture, so the same motif ties buttons to the footer. The
   pattern rides a ::before behind the label (overflow-clipped to the radius).
   Variants: green (teal), gold (yellow) and red. Apply .cc-pat plus a colour. */
.cc-pat{position:relative;overflow:hidden;isolation:isolate;}
.cc-pat::before{content:"";position:absolute;inset:0;
  background:url("/assets/botanical-5e013dc64c.svg") center/200px;
  opacity:.18;mix-blend-mode:soft-light;pointer-events:none;z-index:-1;}
.cc-pat-green{background:var(--cc-teal) !important;color:var(--cc-cream-teal) !important;}
.cc-pat-gold{background:var(--cc-brass) !important;color:var(--cc-ink) !important;}
.cc-pat-red{background:var(--cc-red) !important;color:#F8EFE4 !important;}

/* ── Cookie consent banner — flat jali-corner treatment.
   The engine injects #blackrail-cookie-css AFTER this file, so colours use
   !important to win; layout/visibility (position, .is-visible) is left to the
   engine. Keep this plain: no top stripe, gradients, or faux lighting accents. */
.blackrail-cookie-banner{
  position:fixed;overflow:hidden;isolation:isolate;
  --cc-cookie-jali:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Cpath d='M7 47V20C7 12.8 12.8 7 20 7h27' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M15 47V23c0-4.4 3.6-8 8-8h24' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M7 36h13c4.4 0 8-3.6 8-8V15' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='round'/%3E%3Ccircle cx='15' cy='36' r='1.5' fill='%23000'/%3E%3Ccircle cx='28' cy='15' r='1.5' fill='%23000'/%3E%3C/svg%3E");
  background:var(--cc-logo-dark) !important;color:var(--cc-cream-teal) !important;
  border:1px solid rgba(163,194,201,.46) !important;
  border-radius:8px !important;box-shadow:0 12px 34px rgba(0,0,0,.32) !important;
  font-family:'Mulish',system-ui,-apple-system,sans-serif !important;
  /* Clear the corner jali flourishes so the text/buttons never overlap them. */
  padding:16px 72px !important;
}
.blackrail-cookie-banner::before,.blackrail-cookie-banner::after{content:"" !important;position:absolute;width:48px;height:48px;background:var(--cc-logo-blue);opacity:.32;pointer-events:none;z-index:0;-webkit-mask:var(--cc-cookie-jali) center/contain no-repeat;mask:var(--cc-cookie-jali) center/contain no-repeat;}
.blackrail-cookie-banner::before{left:10px;top:10px;}
.blackrail-cookie-banner::after{right:10px;bottom:10px;transform:rotate(180deg);}
.blackrail-cookie-banner > *{position:relative;z-index:1;}
.blackrail-cookie-banner p{color:rgba(244,238,224,.86) !important;}
.blackrail-cookie-banner button{
  position:relative;overflow:hidden;
  border:1px solid transparent !important;border-radius:6px !important;
  font-weight:700 !important;letter-spacing:.02em;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.blackrail-cookie-banner button::before{content:none !important;}
.blackrail-cookie-banner .blackrail-cookie-accept{background:var(--cc-logo-blue) !important;color:var(--cc-logo-dark) !important;border-color:var(--cc-logo-blue) !important;}
.blackrail-cookie-banner .blackrail-cookie-accept:hover{background:var(--cc-logo-blue-hi) !important;color:var(--cc-logo-dark) !important;border-color:var(--cc-logo-blue-hi) !important;}
.blackrail-cookie-banner .blackrail-cookie-decline{background:var(--cc-logo-dark-hi) !important;color:var(--cc-cream-teal) !important;border-color:rgba(163,194,201,.48) !important;}
.blackrail-cookie-banner .blackrail-cookie-decline:hover{background:#34312B !important;color:#FFFFFF !important;border-color:rgba(163,194,201,.72) !important;}
/* Phones: the banner stacks and centres, leaving no room for corner flourishes — drop them and restore compact padding. */
@media (max-width:640px){
  .blackrail-cookie-banner{padding:14px !important;}
  .blackrail-cookie-banner::before,.blackrail-cookie-banner::after{display:none !important;}
}
