/* =============================================================
   IRONWOOD KITCHEN & COFFEE — style.css
   Editorial centered layout · DM Serif Display + Lato
   ============================================================= */

/* ── Variables ── */
:root {
  --terracotta: #C4714A;
  --terracotta-dark: #a85d38;
  --cream: #FAF6EF;
  --cream-dark: #F2EAD9;
  --white: #ffffff;
  --espresso: #2C1A0E;
  --espresso-light: #4a2f1a;
  --sage: #7A9E7E;
  --warm-card: #F5EDE1;
  --text: #3A2215;
  --text-muted: #7A6655;
  --border: rgba(44, 26, 14, 0.12);
  --border-strong: rgba(44, 26, 14, 0.22);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: 'Lato', sans-serif; color: var(--text); background: var(--cream); line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--espresso);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  border: 2px solid transparent;
  text-align: center;
}
.btn--primary { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.btn--primary:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.9); }
.btn--full { width: 100%; display: block; }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav__checkbox { display: none; }

.nav__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem 1rem;
  gap: 0.6rem;
  position: relative;
}

.nav__brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 0.03em;
  transition: color 0.3s;
  line-height: 1;
}

.nav__links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
}
.nav__links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color 0.2s;
  padding: 0.25rem 0;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.nav__toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

/* JS hamburger button */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.28s ease;
  transform-origin: center;
}
.nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scrolled state (JS-only) */
.js .nav--scrolled {
  background: var(--espresso);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  background: url('images/hero-cafe.webp') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.68) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
  max-width: 820px;
}
.hero__title {
  font-family: 'DM Serif Display', serif;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.45);
  line-height: 1.1;
}
.hero__tagline {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  font-style: italic;
}
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Sections ── */
.section { padding: 6rem 1.5rem; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.container { max-width: 1100px; margin: 0 auto; }
.container--narrow { max-width: 680px; margin: 0 auto; }

.section__heading {
  text-align: center;
  color: var(--espresso);
  margin-bottom: 1.5rem;
}
.section__subhead {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ── About ── */
.about__body {
  text-align: center;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 3.5rem;
}
.about__body p { margin-bottom: 1.35rem; }

.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}
.stat { text-align: center; }
.stat__value {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat__divider { width: 1px; height: 52px; background: var(--border-strong); flex-shrink: 0; }

/* ── Menu Tabs ── */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: -0.5rem 0 4rem;
  border-bottom: 2px solid var(--border);
}
.menu-tab {
  padding: 0.75rem 1.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.menu-tab:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

/* ── Menu Categories ── */
.menu-category { margin-bottom: 4.5rem; }
.menu-category:last-child { margin-bottom: 0; }
.menu-category__title {
  text-align: center;
  color: var(--espresso);
  margin-bottom: 2rem;
  font-size: 1.75rem;
  position: relative;
  padding-bottom: 1rem;
}
.menu-category__title::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--terracotta);
}

/* ── Menu Cards ── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.5rem;
}
.menu-card {
  background: var(--warm-card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 14px rgba(44, 26, 14, 0.07), 0 1px 3px rgba(44,26,14,0.05);
  transition: box-shadow 0.25s, transform 0.25s;
}
.menu-card:hover {
  box-shadow: 0 8px 28px rgba(44, 26, 14, 0.12);
  transform: translateY(-2px);
}
.menu-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.menu-card__name { color: var(--espresso); font-size: 1.05rem; line-height: 1.3; }
.menu-card__price {
  font-weight: 700;
  color: var(--terracotta);
  white-space: nowrap;
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  flex-shrink: 0;
}
.menu-card__desc { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ── Visit ── */
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
.visit__info h3 { color: var(--espresso); margin-bottom: 0.75rem; font-size: 1.25rem; }
.visit__info address { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.9; font-size: 1rem; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th,
.hours-table td { padding: 0.55rem 0; text-align: left; font-size: 0.9rem; }
.hours-table th {
  color: var(--espresso);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  width: 42%;
}
.hours-table td { color: var(--text-muted); }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }

.map-placeholder {
  background: var(--espresso);
  border-radius: 16px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 2.5rem;
}
.map-placeholder__heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.map-placeholder__sub { font-size: 0.875rem; color: rgba(255,255,255,0.55); margin: 0; }

/* ── Contact Form ── */
.contact-form { margin-top: 2.5rem; }
.form-group { margin-bottom: 1.35rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: auto;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196,113,74,0.12);
}
.form-group textarea { resize: vertical; }
.form-message {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

/* ── Footer ── */
.site-footer {
  background: var(--espresso);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.footer__inner { max-width: 580px; margin: 0 auto; }
.footer__name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.footer__tagline { font-style: italic; color: rgba(255,255,255,0.7); margin-bottom: 0.75rem; }
.footer__address { font-size: 0.875rem; margin-bottom: 1.5rem; }
.footer__copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin: 0; }

/* ── Scroll Reveal (JS-enhanced) ── */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile (max 767px) ── */
@media (max-width: 767px) {
  .nav__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: relative;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--espresso);
    padding: 0.75rem 0 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 99;
  }
  .nav__links a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.88);
    font-size: 0.82rem;
  }
  .nav__links a::after { display: none; }

  /* No-JS: checkbox controls menu */
  .nav__toggle-label { display: flex; }
  .nav__checkbox:checked ~ .nav__inner .nav__links { display: flex; }

  /* JS: nav--open class controls menu */
  .js .nav--open .nav__links { display: flex; }
  .nav__burger { display: none; }
  .js .nav__burger { display: flex; }

  .section { padding: 4rem 1.25rem; }
  .visit__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stat__divider { width: 60px; height: 1px; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .menu-grid { grid-template-columns: 1fr; }
  .stats { gap: 1.5rem; }
}

/* ── Desktop: hide hamburger controls ── */
@media (min-width: 768px) {
  .nav__toggle-label { display: none !important; }
  .nav__burger { display: none !important; }
  .nav__links { display: flex !important; }
}

@media (max-width: 900px) {
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ── Active nav link ── */
.nav__links a.active { color: #fff; }
.nav__links a.active::after { transform: scaleX(1); }

/* ── Inner page: solid nav from start (no JS needed) ── */
body.inner-page .site-nav {
  background: var(--espresso);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}

/* ── Page Banner (inner pages) ── */
.page-banner {
  min-height: 38vh;
  background: url('../images/portfolio-cafe.webp') center 30% / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 26, 14, 0.65);
}
.page-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 2.5rem 1.5rem;
  max-width: 700px;
}
.page-banner__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.page-banner__desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin: 0;
  letter-spacing: 0.03em;
}

/* ── CTA Strip (inner pages) ── */
.section--cta {
  text-align: center;
  background: var(--espresso);
  padding: 5rem 1.5rem;
}
.section--cta .section__heading { color: #fff; margin-bottom: 1rem; }
.section--cta p { color: rgba(255,255,255,0.65); margin-bottom: 2rem; font-size: 1rem; }

/* ── Team section ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--warm-card);
  border-radius: 12px;
}
.team-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: #fff;
}
.team-card__name { color: var(--espresso); margin-bottom: 0.25rem; font-size: 1.15rem; }
.team-card__role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}
.team-card__bio { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ── Values section ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
.value-item { text-align: center; }
.value-item__icon {
  width: 48px; height: 48px;
  color: var(--sage);
  margin: 0 auto 1.25rem;
}
.value-item__icon svg { width: 100%; height: 100%; }
.value-item__title { color: var(--espresso); margin-bottom: 0.75rem; font-size: 1.35rem; }
.value-item__text { font-size: 0.925rem; color: var(--text-muted); margin: 0; }

/* ── Contact info block ── */
.contact-details { margin-top: 3rem; }
.contact-detail-row {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.contact-detail-row:last-child { border-bottom: none; }
.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  min-width: 80px;
}
.contact-detail-value { font-size: 0.925rem; color: var(--text); }
.contact-detail-value a { color: var(--terracotta); }

/* ── Visit page extras ── */
.visit__extras { margin-top: 4rem; }
.visit__extra-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.visit__extra-section:last-child { border-bottom: none; }
.visit__extra-section h3 { color: var(--espresso); margin-bottom: 0.75rem; font-size: 1.25rem; }
.visit__extra-section p { font-size: 0.95rem; color: var(--text-muted); }

@media (max-width: 767px) {
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .page-banner { min-height: 45vh; }
}
