/* ==========================================================================
   The Olive Branch — Coffee & Café
   Sunlit olive / tan / white theme
   ========================================================================== */

:root {
  /* -- surfaces -- */
  --paper: #FBF6EA;        /* page background — warm ivory white */
  --paper-2: #F1E3C4;      /* alternate section background — light tan */
  --surface: #FFFFFF;      /* card / panel surface */
  --surface-2: #F6ECD6;    /* elevated / hover surface */
  --hairline: rgba(98, 103, 59, 0.20);

  /* -- brand colors — sampled directly from the logo (img/brand/logo.svg) -- */
  --cream: #F4EBDC;        /* light fill — illustration highlights, text on dark accent surfaces */
  --cream-dim: rgba(244, 235, 220, 0.72);
  --ink: #120D09;          /* primary dark text, headings, photo-frame ink */
  --ink-2: #1C140D;        /* secondary dark ink — photo-frame variant */
  --ink-dim: rgba(18, 13, 9, 0.68);
  --olive-dark: #777D49;   /* logo's ring/wordmark green, lightened — icons, borders */
  --olive: #8B9163;
  --olive-light: #B7BC99;
  --olive-deep: #62673B;   /* exact logo green — primary accent: labels, links, icons */
  --brown: #6B482B;        /* logo's small coffee-cup brown */
  --brown-dark: #3E2A19;
  --gold: #D1AA55;         /* sampled from the logo's coffee-cup gradient — secondary accent */
  --gold-soft: #F0D491;
  --gold-deep: #8E733A;    /* deepened logo gold — readable text on light surfaces */
  --text: var(--ink);

  /* display + accent fonts chosen to match the logo's wordmark and slab-serif subtitle */
  --font-display: 'Rozha One', Georgia, serif;
  --font-accent: 'Arvo', Georgia, serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-deep);
  font-weight: 700;
  margin: 0 0 0.9em;
}
.eyebrow--light { color: var(--olive-deep); }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}
.section-inner--narrow { max-width: 640px; }

.section-lede {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: var(--ink-dim);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.btn--solid {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(209, 170, 85, 0.18);
}
.btn--solid:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(209, 170, 85, 0.28); }

.btn--outline {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
  background: transparent;
}
.btn--outline:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 246, 234, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
.brand__logo { height: 48px; width: auto; flex-shrink: 0; }
.brand--footer .brand__logo { height: 56px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}
.brand__tagline {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
.brand--footer .brand__name { font-size: 1.5rem; }
.brand--footer .brand__tagline { font-size: 0.68rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.main-nav a { transition: color 0.2s ease; }
.main-nav a:not(.main-nav__cta):hover { color: var(--olive-deep); }
.main-nav__cta {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink) !important;
}
.main-nav__cta:hover { background: var(--gold-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 9rem 1.5rem 5rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(98, 103, 59, 0.22), transparent 45%),
    radial-gradient(circle at 85% 78%, rgba(209, 170, 85, 0.22), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(210, 178, 120, 0.4), transparent 60%),
    var(--paper);
  z-index: -1;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__copy { text-align: left; }
.hero__title {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero__sub {
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--ink-dim);
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

.hero__info { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero__info-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.hero__info-label {
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__media { position: relative; }
.hero__photo-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  border: 8px solid var(--ink-2);
  box-shadow: 0 24px 48px rgba(36, 26, 16, 0.22);
  background: var(--ink-2);
}
.hero__photo-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust-strip {
  background: var(--paper-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.trust-strip__inner {
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
.trust-item__icon { width: 28px; height: 28px; color: var(--olive-deep); flex-shrink: 0; }

/* ==========================================================================
   HOW WE POUR (static photo strip)
   ========================================================================== */
.pour-strip { background: var(--paper); }
.pour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
  text-align: left;
}
.pour-card { margin: 0; }
.pour-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid var(--ink-2);
  box-shadow: 0 16px 32px rgba(36, 26, 16, 0.16);
  background: var(--ink-2);
  margin-bottom: 1.1rem;
}
.pour-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pour-card__num {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--olive-deep);
  display: block;
  margin-bottom: 0.3rem;
}
.pour-card h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.pour-card p { color: var(--ink-dim); font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   MENU
   ========================================================================== */
.menu { background: var(--paper-2); }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  text-align: left;
  margin-top: 1rem;
}
.menu-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--hairline);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(36, 26, 16, 0.16);
  border-color: rgba(209, 170, 85, 0.5);
}
.menu-card__icon { color: var(--gold-deep); width: 40px; height: 40px; margin-bottom: 1rem; }
.menu-card h3 { margin-bottom: 0.5rem; }
.menu-card p { color: var(--ink-dim); font-size: 0.95rem; margin-bottom: 0; }

.menu__order-cta { display: inline-block; margin-top: 2.5rem; }

/* ==========================================================================
   SPACE
   ========================================================================== */
.space { background: var(--paper); }
.space-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
  text-align: left;
}
.space-card {
  padding: 1.75rem;
  border-top: 2px solid var(--olive-dark);
  background: var(--surface);
  border-radius: 0 0 14px 14px;
}
.space-card p { color: var(--ink-dim); font-size: 0.95rem; margin-bottom: 0; }
.space-card--accent {
  border-top-color: var(--olive-deep);
  background: var(--surface-2);
}
.space-card__cta {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--gold-deep);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.space-card__cta:hover { color: var(--gold); }

/* ==========================================================================
   COMMUNITY
   ========================================================================== */
.community { background: var(--paper-2); }
.social-row { display: flex; gap: 1rem; justify-content: center; }
.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--olive-deep);
  color: var(--olive-deep);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.social-icon svg { width: 20px; height: 20px; }
.social-icon:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }

/* ==========================================================================
   VISIT / FOOTER
   ========================================================================== */
.visit {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--ink);
}
.visit .eyebrow { color: var(--olive-deep); }
.visit__title { color: var(--ink); }

.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1rem;
  text-align: left;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.visit-layout .visit-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 0;
  max-width: none;
}
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.visit-block h3 { color: var(--olive-deep); font-size: 1.05rem; }
.visit-block p { color: var(--ink-dim); margin-bottom: 0; }

.visit-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 16px 32px rgba(36, 26, 16, 0.12);
}
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.contact-form-wrap {
  max-width: 560px;
  margin: 3.5rem auto 0;
  text-align: center;
}
.contact-form-wrap h3 { margin-bottom: 0.4rem; }
.contact-form__lede {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-form__row {
  display: flex;
  gap: 0.75rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  border: 1.5px solid var(--hairline);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  width: 100%;
}
.contact-form__row input { flex: 1; border-radius: 999px; }
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(18, 13, 9, 0.42); }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.contact-form .btn { align-self: center; margin-top: 0.4rem; }
.contact-form__note {
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--olive-deep);
  margin: 0.75rem 0 0;
}

.site-footer { border-top: 1px solid var(--hairline); }
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  text-align: left;
}
.site-footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__col a { color: var(--ink-dim); font-size: 0.92rem; transition: color 0.2s ease; }
.site-footer__col a:hover { color: var(--olive-deep); }
.site-footer__heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.site-footer__col--brand p { color: var(--ink-dim); font-size: 0.9rem; margin: 0.4rem 0 0; }
.site-footer__copy {
  text-align: center;
  margin: 0;
  padding: 1.5rem 1.5rem 2rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* ==========================================================================
   REVEAL-ON-SCROLL (menu / space / community / visit)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 12px 24px rgba(36, 26, 16, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { padding: 0.7rem 0; width: 100%; }
  .main-nav__cta { margin-top: 0.4rem; text-align: center; }
  .nav-toggle { display: flex; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__info { justify-content: center; }
  .hero__media { max-width: 480px; margin: 0 auto; }

  .pour-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .menu-grid { grid-template-columns: 1fr; }
  .space-grid { grid-template-columns: repeat(2, 1fr); }

  .visit-layout { grid-template-columns: 1fr; }
  .visit-layout .visit-map { max-width: 480px; margin: 0 auto; }

  .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .site-footer__col { align-items: center; }
  .site-footer__col--brand .brand { justify-content: center; }
}

@media (max-width: 560px) {
  .space-grid { grid-template-columns: 1fr; }
  .contact-form__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
