/* ==========================================================================
   Boho Coffee Bothy — Doune
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;400;500;600;700&family=Libre+Bodoni:ital,wght@0,600;1,500;1,600&display=swap');

:root {
  /* palette */
  --color-cream:      #F5EFE6;
  --color-cream-dark: #EAE0CE;
  --color-charcoal:   #2B2420;
  --color-brown:      #3B2E22;
  --color-terracotta: #C1663B;
  --color-terracotta-dark: #A6512C;
  --color-olive:      #5B6B4F;
  --color-mustard:    #D9A441;
  --color-white:      #FFFFFF;

  --font-body: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Libre Bodoni', Georgia, serif;

  --container-w: 1180px;
  --nav-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 .5em;
  color: var(--color-brown);
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: .9em;
}

p { line-height: 1.7; }
.lede { font-size: 1.15rem; line-height: 1.75; color: #5a4f42; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .95em 2.1em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}
.btn--primary:hover { background: var(--color-terracotta-dark); border-color: var(--color-terracotta-dark); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn--outline:hover { background: currentColor; color: var(--color-brown); transform: translateY(-2px); }
.btn--light { color: var(--color-white); }
.btn--light:hover { background: var(--color-white); color: var(--color-brown); }

/* ---------- reveal-on-scroll (mirrors Lula's .revealable pattern) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; transition: opacity .9s linear; transition-delay: var(--reveal-delay, 0s); }
.reveal-fade.is-visible { opacity: 1; }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--color-brown);
  color: var(--color-cream-dark);
  font-size: .78rem;
  letter-spacing: .03em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a:hover { color: var(--color-mustard); }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__social { display: flex; gap: 14px; }
.topbar__social a { font-size: .95rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 230, 0.0);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .3s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  transition: height .3s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--color-cream);
  box-shadow: 0 6px 24px rgba(43,36,32,.08);
}
.site-header.is-scrolled .container { height: 62px; }

.brand img { height: 46px; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 38px; }

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-links a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active { color: var(--color-terracotta); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-brown); transition: transform .3s, opacity .3s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
  margin-top: calc(-1 * (var(--nav-h) + 38px));
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.2s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,.55) 0%, rgba(20,15,10,.28) 42%, rgba(20,15,10,.65) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
}
.hero__eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-mustard);
  margin-bottom: 18px;
  opacity: 0;
  animation: heroUp .9s var(--ease) .2s forwards;
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-style: italic;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
  margin-bottom: 22px;
  opacity: 0;
  animation: heroUp 1s var(--ease) .4s forwards;
}
.hero__sub {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 34px;
  color: var(--color-cream-dark);
  opacity: 0;
  animation: heroUp 1s var(--ease) .6s forwards;
}
.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroUp 1s var(--ease) .8s forwards;
}
@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 20px;
}
.hero__scroll::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--color-white);
  border-radius: 3px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--color-olive);
  color: var(--color-cream);
  padding: 46px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h3 { color: var(--color-white); margin: 0; font-size: 1.5rem; font-style: italic; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 110px 0; }
.section--tight { padding: 80px 0; }
.section--cream { background: var(--color-cream); }
.section--dark { background: var(--color-brown); color: var(--color-cream-dark); }
.section--dark h2 { color: var(--color-white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split img { border-radius: 6px; }
.split--reverse .split__media { order: 2; }

/* editorial quote section */
.editorial {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.editorial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.5;
  color: var(--color-brown);
  margin: 0 0 24px;
}
.editorial cite {
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-terracotta);
}

/* cards grid (menu teaser / features) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(43,36,32,.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(43,36,32,.12); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 26px 28px 30px; }
.card__body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card__body p { color: #6b6053; font-size: .95rem; }

/* visit us */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(43,36,32,.1);
}
.visit-grid__info {
  background: var(--color-brown);
  color: var(--color-cream-dark);
  padding: 60px 56px;
}
.visit-grid__info h2 { color: var(--color-white); }
.visit-row { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(245,239,230,.14); }
.visit-row:first-of-type { border-top: none; }
.visit-row .icon { color: var(--color-mustard); width: 20px; flex-shrink: 0; text-align: center; }
.visit-row h4 { color: var(--color-white); font-family: var(--font-body); font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.visit-grid__media { position: relative; min-height: 340px; }
.visit-grid__media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-cream-dark);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(245,239,230,.12);
}
.footer-grid h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--color-mustard); }
.footer-brand img { height: 60px; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; color: #a89a86; max-width: 260px; }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(245,239,230,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
}
.footer-social a:hover { background: var(--color-terracotta); border-color: var(--color-terracotta); }

.newsletter-form { display: flex; gap: 10px; margin-top: 4px; }
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(245,239,230,.3);
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: .88rem;
}
.newsletter-form input::placeholder { color: #a89a86; }
.newsletter-form button {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: var(--color-terracotta);
  color: var(--color-white);
  cursor: pointer;
  transition: background .3s;
}
.newsletter-form button:hover { background: var(--color-terracotta-dark); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: .8rem;
  color: #a89a86;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Page header (for interior pages)
   ========================================================================== */
.page-header {
  padding: 190px 0 90px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-cream-dark), var(--color-cream));
  margin-top: calc(-1 * var(--nav-h));
}
.page-header h1 { font-style: italic; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-header .eyebrow { margin-bottom: 16px; }

/* menu page */
.menu-block { margin-bottom: 64px; }
.menu-block h3 {
  font-size: 1.6rem;
  font-style: italic;
  border-bottom: 2px solid var(--color-terracotta);
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 30px;
}
.menu-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(43,36,32,.15);
}
.menu-item__name { font-weight: 600; white-space: nowrap; }
.menu-item__leader { flex: 1; border-bottom: 1px dotted rgba(43,36,32,.3); transform: translateY(-4px); }
.menu-item__price { font-weight: 600; color: var(--color-terracotta); white-space: nowrap; }
.menu-item__desc { flex-basis: 100%; font-size: .88rem; color: #6b6053; margin-top: -6px; }

/* about page */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.values-grid .icon-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  color: var(--color-terracotta);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.4rem;
}

/* contact / visit page form */
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; color: var(--color-brown); font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(43,36,32,.15);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--color-white);
  transition: border-color .3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-terracotta); }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.map-frame { border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(43,36,32,.1); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn--outline { display: none; }
  .nav-toggle { display: flex; }
  .split, .visit-grid, .grid-3, .footer-grid, .values-grid, .contact-form .row-2 {
    grid-template-columns: 1fr;
  }
  .split__media { order: -1 !important; }
  section { padding: 70px 0; }
  .page-header { padding: 150px 0 60px; }
  .topbar__contact { gap: 12px; }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78vw;
    max-width: 340px;
    background: var(--color-cream);
    padding: 110px 40px;
    gap: 26px;
    box-shadow: -10px 0 40px rgba(0,0,0,.15);
    z-index: 99;
    transform: translateX(0);
    transition: transform .4s var(--ease);
  }
}
@media (min-width: 901px) {
  .nav-links { transform: none !important; }
}

@media (max-width: 600px) {
  .topbar__contact a:nth-child(2) { display: none; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .hero__buttons { flex-direction: column; width: 100%; }
  .hero__buttons .btn { width: 100%; justify-content: center; }
}
