/* ============================================
   FREEDOM COFFEE HOUSE — DESIGN TOKENS
   ============================================
   Color:
   --espresso  #2A1B12  deep coffee brown (dark sections, text)
   --espresso-2 #1E130C deepest brown (nav-solid, gradients)
   --cream     #F2E8D8  warm parchment (light sections)
   --paper     #FBF6EC  lighter card surface
   --sunrise   #D89B3C  warm gold/amber (signature accent)
   --sunrise-2 #E8B84B  lighter gold (gradient top)
   --brick     #8C3B2E  oxblood/brick (CTA, secondary accent)
   --sage      #4B5842  muted forest green (tiny accents)
   --ink       #241811  near-black text on cream
   ============================================ */

:root{
  --espresso:#2A1B12;
  --espresso-2:#1E130C;
  --cream:#F2E8D8;
  --paper:#FBF6EC;
  --sunrise:#D89B3C;
  --sunrise-2:#E8B84B;
  --brick:#8C3B2E;
  --sage:#4B5842;
  --ink:#241811;
  --ink-soft:#5A493C;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --max-w: 1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
h1,h2,h3{font-family:var(--font-display);margin:0;font-weight:600;}
p{margin:0;}

.wrap{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 28px;
}
.wrap--narrow{max-width:800px;}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important;}
}

:focus-visible{
  outline:3px solid var(--sunrise);
  outline-offset:3px;
}

/* ============ TYPOGRAPHY HELPERS ============ */
.eyebrow{
  font-family:var(--font-mono);
  font-size:0.78rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--brick);
  margin:0 0 14px;
}
.eyebrow--light{color:var(--sunrise-2);}

.section-title{
  font-size:clamp(2rem, 4vw, 2.9rem);
  line-height:1.1;
  margin-bottom:20px;
  color:var(--ink);
}
.section-title--light{color:var(--paper);}

.section-lede{
  font-size:1.05rem;
  color:var(--ink-soft);
  max-width:560px;
  line-height:1.6;
  margin-bottom:48px;
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 28px;
  border-radius:3px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:0.95rem;
  letter-spacing:0.01em;
  transition:transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border:1.5px solid transparent;
}
.btn--gold{
  background:var(--sunrise);
  color:var(--espresso-2);
}
.btn--gold:hover{
  background:var(--sunrise-2);
  transform:translateY(-2px);
  box-shadow:0 10px 24px -8px rgba(216,155,60,0.55);
}
.btn--ghost{
  border-color:rgba(251,246,236,0.55);
  color:var(--paper);
}
.btn--ghost:hover{
  background:rgba(251,246,236,0.12);
  transform:translateY(-2px);
}

.text-link{
  color:var(--brick);
  font-weight:600;
  border-bottom:1.5px solid rgba(140,59,46,0.3);
  padding-bottom:2px;
  transition:border-color 0.2s ease;
}
.text-link:hover{border-color:var(--brick);}

/* ============ NAV ============ */
.nav{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  padding:18px 0;
  transition:background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.nav.is-scrolled{
  background:var(--cream);
  padding:12px 0;
  box-shadow:0 6px 20px -10px rgba(0,0,0,0.25);
}
.nav__inner{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav__brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.nav__logo{
  width:44px;height:44px;
  border-radius:50%;
  object-fit:cover;
  background:var(--espresso-2);
  transition:width 0.3s ease, height 0.3s ease;
}
.nav.is-scrolled .nav__logo{width:38px;height:38px;}
.nav__brand-text{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.15rem;
  color:var(--paper);
  transition:color 0.3s ease;
}
.nav.is-scrolled .nav__brand-text{color:var(--ink);}

.nav__links{
  display:flex;
  align-items:center;
  gap:36px;
  font-weight:500;
  font-size:0.95rem;
  color:var(--paper);
  transition:color 0.3s ease;
}
.nav.is-scrolled .nav__links{color:var(--ink);}
.nav__links a{position:relative;}
.nav__links a:not(.nav__ig)::after{
  content:'';
  position:absolute;
  left:0; bottom:-6px;
  width:0; height:2px;
  background:var(--sunrise);
  transition:width 0.25s ease;
}
.nav__links a:not(.nav__ig):hover::after{width:100%;}
.nav__ig{display:flex;}

.nav__toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:32px;
  height:32px;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
  position:relative;
  z-index:120;
}
.nav__toggle span{
  width:24px;height:2px;
  background:var(--paper);
  transition:background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  transform-origin:center;
}
.nav.is-scrolled .nav__toggle span{background:var(--ink);}

/* When the mobile panel is open, force the icon to light-on-dark
   (it now sits over the dark slide-out panel) and morph into an X */
.nav__toggle.is-active span{background:var(--paper) !important;}
.nav__toggle.is-active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav__toggle.is-active span:nth-child(2){opacity:0;}
.nav__toggle.is-active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

@media (max-width: 760px){
  .nav__toggle{display:flex;}
  .nav__links{
    position:fixed;
    top:0; right:0;
    height:100vh;
    width:min(76vw, 320px);
    background:var(--espresso-2);
    color:var(--paper);
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    gap:28px;
    padding:40px;
    transform:translateX(100%);
    transition:transform 0.35s ease;
    z-index:110;
  }
  .nav__links.is-open{transform:translateX(0);}
  .nav.is-scrolled .nav__links{color:var(--paper);}

  .nav__backdrop{
    position:fixed;
    inset:0;
    background:rgba(20,12,7,0.45);
    opacity:0;
    pointer-events:none;
    transition:opacity 0.35s ease;
    z-index:105;
  }
  .nav__backdrop.is-open{
    opacity:1;
    pointer-events:auto;
  }
}

/* ============ HERO ============ */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:var(--espresso-2);
}
.hero__slides{
  position:absolute;
  inset:0;
}
.hero__slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1.8s ease;
}
.hero__slide.is-active{opacity:1;}
.hero__scrim{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(20,12,7,0.55) 0%, rgba(20,12,7,0.35) 35%, rgba(20,12,7,0.75) 100%),
    linear-gradient(90deg, rgba(20,12,7,0.65) 0%, rgba(20,12,7,0.15) 55%);
}
.hero__content{
  position:relative;
  z-index:2;
  max-width:var(--max-w);
  width:100%;
  margin:0 auto;
  padding:0 28px;
  padding-top:60px;
}
.hero__headline{
  font-size:clamp(2.6rem, 6vw, 4.6rem);
  color:var(--paper);
  line-height:1.05;
  margin:0 0 22px;
  max-width:720px;
  text-shadow:0 4px 30px rgba(0,0,0,0.25);
}
.hero__sub{
  font-size:1.15rem;
  color:rgba(251,246,236,0.88);
  max-width:480px;
  line-height:1.6;
  margin-bottom:36px;
}
.hero__cta-row{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}
.hero__horizon{
  position:absolute;
  bottom:-2px; left:0; right:0;
  z-index:3;
  line-height:0;
}
.hero__horizon svg{width:100%; height:auto; display:block;}

/* ============ MENU ============ */
.menu{
  padding:120px 0 100px;
  background:var(--cream);
}
.menu__grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}
@media (max-width:980px){
  .menu__grid{grid-template-columns:repeat(2, 1fr);}
}
@media (max-width:640px){
  .menu__grid{grid-template-columns:1fr;}
}

.menu-card{
  background:var(--paper);
  border:1px solid rgba(42,27,18,0.08);
  border-radius:4px;
  padding:30px 26px 32px;
  box-shadow:0 14px 34px -22px rgba(42,27,18,0.35);
}
.menu-card__head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
  padding-bottom:16px;
  border-bottom:2px solid var(--ink);
}
.menu-card__icon{
  width:38px; height:38px;
  color:var(--brick);
  flex-shrink:0;
}
.menu-card__icon svg{width:100%; height:100%;}
.menu-card__head h3{
  font-size:1.3rem;
  color:var(--ink);
}
.menu-card__cols{
  display:grid;
  grid-template-columns:1fr 52px 52px;
  font-family:var(--font-mono);
  font-size:0.7rem;
  color:var(--ink-soft);
  letter-spacing:0.04em;
  margin-bottom:6px;
}
.col-label{text-align:right;}

.menu-list--2col li{
  display:grid;
  grid-template-columns:1fr 52px 52px;
  align-items:baseline;
  padding:7px 0;
  border-bottom:1px dotted rgba(90,73,60,0.35);
  gap:4px;
}
.menu-list--1col li{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding:9px 0;
  border-bottom:1px dotted rgba(90,73,60,0.35);
  gap:12px;
}
.menu-list li:last-child{border-bottom:none;}
.menu-list .item{
  font-size:0.95rem;
  color:var(--ink);
}
.menu-list .price{
  font-family:var(--font-mono);
  font-size:0.85rem;
  text-align:right;
  color:var(--espresso);
  font-weight:700;
}
.menu-card__extra{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(42,27,18,0.12);
  font-size:0.9rem;
  color:var(--ink-soft);
}
.menu-card__extra strong{
  font-family:var(--font-mono);
  color:var(--espresso);
}

/* ============ STORY ============ */
.story{
  background:black;
  padding:110px 0 100px;
  position:relative;
}
.story__body{
  display:flex;
  flex-direction:column;
  gap:24px;
  margin-bottom:56px;
}
.story__body p{
  color:rgba(251,246,236,0.86);
  font-size:1.08rem;
  line-height:1.75;
}
/* Rich text body from OurStory.body (Trix editor).
   Trix emits <p> for some lines and bare <div> for others depending on
   how they were typed/pasted — style both the same way so nothing
   silently inherits the page's dark default text color and disappears
   against this section's black background. */
.story__body--rich p,
.story__body--rich div{
  color:rgba(251,246,236,0.86);
  font-size:1.08rem;
  line-height:1.75;
}
.story__body--rich blockquote{
  margin:8px 0;
  padding:26px 0 26px 30px;
  border-left:3px solid var(--sunrise);
  font-family:var(--font-display);
  font-style:italic;
  font-size:1.5rem;
  color:var(--sunrise-2);
  line-height:1.4;
}
.story__body--rich strong{color:var(--paper);}
.story__body--rich a{color:var(--sunrise-2); text-decoration:underline;}
/* Trix often leaves a trailing blank line (<div><br></div> or
   <div><br><br></div>) at the end of the body — hide any div whose
   only children are <br> tags so it doesn't add a stray empty gap. */
.story__body--rich div:empty,
.story__body--rich div:has(> br):not(:has(> :not(br))){display:none;}
.pull-quote{
  margin:12px 0 4px;
  padding:26px 0 26px 30px;
  border-left:3px solid var(--sunrise);
  font-family:var(--font-display);
  font-style:italic;
  font-size:1.5rem;
  color:var(--sunrise-2);
  line-height:1.4;
}
.pull-quote span{
  display:block;
  margin-top:10px;
  font-family:var(--font-mono);
  font-style:normal;
  font-size:0.8rem;
  color:rgba(251,246,236,0.6);
  letter-spacing:0.04em;
}

.press{
  border-top:1px solid rgba(251,246,236,0.15);
  padding-top:32px;
}
.press__label{
  font-family:var(--font-mono);
  font-size:0.75rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:rgba(251,246,236,0.5);
  margin-bottom:16px;
}
.press__links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.press__links a{
  font-size:0.88rem;
  font-weight:600;
  color:var(--paper);
  padding:9px 18px;
  border:1.5px solid rgba(251,246,236,0.28);
  border-radius:30px;
  transition:border-color 0.2s ease, background 0.2s ease;
}
.press__links a:hover{
  border-color:var(--sunrise);
  background:rgba(216,155,60,0.1);
}

/* ============ VISIT ============ */
.visit{
  padding:110px 0 120px;
  background:var(--cream);
}
.visit__grid{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:50px;
  align-items:stretch;
}
@media (max-width:860px){
  .visit__grid{grid-template-columns:1fr;}
}
.visit__info{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  align-content:start;
}
@media (max-width:480px){
  .visit__info{grid-template-columns:1fr;}
}
.info-block h3{
  font-family:var(--font-mono);
  font-size:0.78rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--brick);
  margin-bottom:10px;
}
.info-block p{
  font-size:1.02rem;
  color:var(--ink);
  line-height:1.55;
  margin-bottom:8px;
  overflow-wrap:anywhere;
}
.visit__map{
  min-height:340px;
  border-radius:4px;
  overflow:hidden;
  box-shadow:0 20px 44px -26px rgba(42,27,18,0.45);
}
.visit__map iframe{width:100%; height:100%; min-height:340px;}

/* ============ FOOTER ============ */
.footer{
  background:black;
  position:relative;
  padding-top:2px;
}
.footer__horizon{
  position:absolute;
  top:-98px; left:0; right:0;
  z-index:1;
  line-height:0;
  pointer-events:none;
}
.footer__horizon svg{width:100%; height:auto; display:block;}

.footer__inner{
  padding-top:70px;
  padding-bottom:50px;
  display:flex;
  flex-wrap:wrap;
  gap:40px;
  justify-content:space-between;
  border-bottom:1px solid rgba(251,246,236,0.12);
}
.footer__brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.footer__logo{
  width:52px; height:52px;
  border-radius:50%;
}
.footer__name{
  font-family:var(--font-display);
  font-size:1.15rem;
  color:var(--paper);
  margin-bottom:2px;
}
.footer__tag{
  font-family:var(--font-mono);
  font-size:0.78rem;
  color:rgba(251,246,236,0.55);
}
.footer__links{
  display:flex;
  gap:28px;
  align-items:center;
  font-weight:500;
  color:rgba(251,246,236,0.85);
}
.footer__links a:hover{color:var(--sunrise-2);}
.footer__contact{
  color:rgba(251,246,236,0.75);
  font-size:0.92rem;
  line-height:1.7;
  overflow-wrap:anywhere;
}
.footer__contact a:hover{color:var(--sunrise-2);}

.footer__bottom{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
  padding:22px 28px 28px;
  font-size:0.82rem;
  color:rgba(251,246,236,0.45);
}
.footer__bottom a{
  color:rgba(251,246,236,0.7);
  font-weight:600;
}
.footer__bottom a:hover{color:var(--sunrise-2);}
