/* ============================================
   We2Friends Coffeehouse — Design System
   Brand: Restored 1950 General Store
   Palette: Sage Green + Warm Beige + Charcoal
   ============================================ */

/* Fonts are loaded via <link> tags in each page's <head>
   (an @import here would block rendering and double-load) */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --sage: #8E9E8E;
  --sage-light: #A8B5A8;
  --sage-dark: #6B7D6B;
  --sage-muted: #C5CEC5;
  --beige: #C4B9A0;
  --beige-light: #D9D1BF;
  --beige-dark: #A89B80;
  --cream: #FAF7F2;
  --cream-dark: #F0EBE2;
  --charcoal: #3A3A35;
  --charcoal-light: #5A5A54;
  --charcoal-dark: #2A2A26;
  --white: #FFFFFF;
  --warm-white: #FDFCFA;

  /* Accent */
  --rust: #A0522D;
  --navy: #2C3E50;
  --red-flag: #B22234;

  /* Functional */
  --text: #3A3A35;
  --text-light: #6B6B64;
  --text-muted: #63635C;
  --border: #E0DCD5;
  --border-light: #ECE9E3;
  --shadow: rgba(58, 58, 53, 0.08);
  --shadow-md: rgba(58, 58, 53, 0.12);
  --shadow-lg: rgba(58, 58, 53, 0.18);

  /* Typography */
  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-script: 'Satisfy', cursive;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1400px;
  --max-width-narrow: 800px;
  --nav-height: 92px;
  --border-radius: 8px;
  --border-radius-lg: 16px;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sage-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--charcoal); }

ul, ol { list-style: none; }
address { font-style: normal; }

::selection {
  background: var(--sage-muted);
  color: var(--charcoal-dark);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--sage {
  background: var(--sage);
  color: var(--cream);
}
.section--sage a { color: var(--beige-light); }
.section--sage a:hover { color: var(--white); }
.section--sage .heading-lg,
.section--sage .heading-md { color: var(--white); }

.section--cream {
  background: var(--cream);
}

.section--dark {
  background: var(--charcoal-dark);
  color: var(--cream);
}
.section--dark a { color: var(--beige-light); }
.section--dark .heading-lg,
.section--dark .heading-md { color: var(--white); }
.section--dark .lead,
.section--dark blockquote { color: var(--beige-light); }
.section--dark blockquote { border-left-color: var(--beige); }
.section--dark .museum-caption { color: var(--beige); }

/* Parchment — aged-paper tone for the heritage/records sections */
.section--parchment {
  background: var(--cream-dark);
}

/* Subtle gold hairline at the top edge of the dark "legacy" sections */
.section--dark,
.archive-gallery {
  border-top: 1px solid rgba(196, 185, 160, 0.22);
}

.section--pattern {
  background-color: var(--charcoal-dark);
  background-image: url('/images/pattern/brand-pattern.png');
  background-size: 400px;
  background-repeat: repeat;
  background-blend-mode: soft-light;
  opacity: 1;
  color: var(--cream);
}

.section--pattern .heading-lg,
.section--pattern .heading-md { color: var(--white); }
.section--pattern .lead { color: var(--beige-light); }

.section--beige {
  background: var(--beige-light);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Typography --- */
.heading-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.heading-md {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--charcoal);
}

.heading-sm {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-script {
  font-family: var(--font-script);
  font-weight: 400;
}

.text-serif {
  font-family: var(--font-serif);
}

.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-center { text-align: center; }

.tagline {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--charcoal);
  line-height: 1.3;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 680px;
}

.lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-height);
  transition: all var(--transition);
}

.nav--scrolled {
  box-shadow: 0 2px 20px var(--shadow);
  height: 92px;
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-sm);
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 78px;
  width: auto;
  max-height: 78px;
}

.nav--scrolled .nav__logo-img {
  height: 78px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width var(--transition);
}

.nav__link:hover { color: var(--sage-dark); }
.nav__link:hover::after,
.nav__link--active::after { width: 100%; }

.nav__link--cta {
  background: #4F604F;
  color: var(--white) !important;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  font-weight: 600;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--sage-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
@media (max-width: 768px) {
  /* Shorter bar on phones so the logo fits comfortably */
  .nav { height: 76px; }
  .nav--scrolled { height: 76px; }
  .nav__container { align-items: center; padding-bottom: 0; }
  .nav__logo-img {
    height: 56px;
    max-height: 56px;
  }
  .nav--scrolled .nav__logo-img { height: 56px; }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-md);
    transform: translateY(-120%);
    transition: transform var(--transition), visibility 0s linear 0.3s;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 30px var(--shadow-md);
    visibility: hidden;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .nav__menu--open {
    transform: translateY(0);
    visibility: visible;
    transition: transform var(--transition), visibility 0s linear 0s;
  }

  .nav__link {
    font-size: 1.1rem;
    padding: var(--space-md) 0;
    width: 100%;
    text-align: center;
  }

  .nav__link--cta {
    width: auto;
    padding: var(--space-md) var(--space-2xl);
  }

  /* Hamburger animation */
  .nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__toggle--active span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Homepage hero only — taller to show full storefront */
.hero--home {
  min-height: 95vh;
}
@media (min-width: 1100px) {
  .hero--home {
    min-height: 100vh;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 42, 38, 0.2) 0%,
    rgba(42, 42, 38, 0.4) 50%,
    rgba(42, 42, 38, 0.7) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: var(--space-2xl);
  max-width: 650px;
  align-self: flex-end;
  margin-bottom: var(--space-3xl);
}

.hero__content .heading-xl {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: var(--space-md);
}

.hero__content .tagline {
  color: var(--beige-light);
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
  margin-bottom: var(--space-xl);
}

.hero__content p {
  color: rgba(255,255,255,0.95);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--beige-light);
  border: 1px solid rgba(255,255,255,0.3);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Page hero (shorter, for inner pages) */
.hero--page {
  min-height: 75vh;
  align-items: center;
  justify-content: center;
}

/* Our Story hero — shorter than community */
.hero--story {
  min-height: 50vh;
}

.hero--page .hero__content {
  text-align: center;
  align-self: center;
  margin-bottom: 0;
}

.hero--page .hero__actions {
  justify-content: center;
}

.hero--page .hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(42, 42, 38, 0.1) 0%,
    rgba(42, 42, 38, 0.35) 100%
  );
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  background: #4F604F;
  color: var(--white);
}

.btn:hover {
  background: #3D4D3D;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(107, 125, 107, 0.3);
}

.btn--outline {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-color: var(--white);
  color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn--dark {
  background: var(--charcoal);
  color: var(--cream);
}
.btn--dark:hover {
  background: var(--charcoal-dark);
  color: var(--white);
}

.btn--beige {
  background: var(--beige);
  color: var(--charcoal);
}
.btn--beige:hover {
  background: var(--beige-dark);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 15px var(--shadow);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-md);
}

.card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card__body {
  padding: var(--space-xl);
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--text-light);
  line-height: 1.7;
}

/* Feature card */
.card--feature {
  text-align: center;
  padding: var(--space-2xl);
  border: 1px solid var(--border-light);
}

.card--feature:hover {
  border-color: var(--sage-muted);
}

.card--feature .card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  display: block;
}

/* Menu card (chalkboard style) */
.card--menu {
  background: var(--charcoal-dark);
  color: var(--cream);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.card--menu::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: calc(var(--border-radius-lg) - 4px);
  pointer-events: none;
}

.card--menu .heading-md {
  color: var(--beige-light);
  text-align: center;
  margin-bottom: var(--space-xl);
  font-family: var(--font-script);
  font-size: 1.75rem;
}

/* --- Menu Components --- */
.menu-category {
  margin-bottom: var(--space-3xl);
}

.menu-category__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-md);
  position: relative;
}

.menu-category__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--sage);
}

.menu-category__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-md) 0;
  border-bottom: 1px dotted var(--border);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item__info {
  flex: 1;
  padding-right: var(--space-lg);
}

.menu-item__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
}

.menu-item__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-style: italic;
}

.menu-item__price {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sage-dark);
  white-space: nowrap;
}

.menu-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-md);
  border: 1px dashed var(--border);
  border-radius: var(--border-radius);
  margin-top: var(--space-lg);
}

/* --- Specials Grid --- */
.special-card {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition);
}

.special-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(107, 125, 107, 0.35);
}

.special-card__name {
  font-family: var(--font-script);
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

.special-card__desc {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.special-card__price {
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(255,255,255,0.15);
  display: inline-block;
  padding: var(--space-xs) var(--space-lg);
  border-radius: 50px;
}

/* Special card color variants */
.special-card--warm {
  background: linear-gradient(135deg, var(--beige-dark) 0%, var(--rust) 100%);
}

.special-card--warm:hover {
  box-shadow: 0 8px 30px rgba(160, 82, 45, 0.35);
}

.special-card--dark {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-dark) 100%);
}

.special-card--dark:hover {
  box-shadow: 0 8px 30px rgba(58, 58, 53, 0.4);
}

/* Center orphan items in last row */
.grid--center-last {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.grid--center-last > * {
  flex: 0 1 calc(33.333% - var(--space-xl));
  min-width: 280px;
}

@media (max-width: 768px) {
  .grid--center-last > * {
    flex: 1 1 100%;
  }
}

/* Divider strip */
.divider-strip {
  padding: var(--space-2xl) 0;
  background: var(--cream-dark);
  text-align: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
  margin-top: -60px;
}

.divider-strip__icon {
  font-size: 1.5rem;
  color: var(--sage);
  opacity: 0.7;
}

.divider-strip__text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.7;
}

/* --- Timeline (Story page) --- */
.timeline {
  position: relative;
  padding: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sage-muted);
  transform: translateX(-50%);
}

.timeline__item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-3xl);
  position: relative;
}

.timeline__item:nth-child(odd) { flex-direction: row; }
.timeline__item:nth-child(even) { flex-direction: row-reverse; }

.timeline__content {
  width: 45%;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 15px var(--shadow);
}

.timeline__dot {
  position: absolute;
  left: 50%;
  top: var(--space-xl);
  width: 16px;
  height: 16px;
  background: var(--sage);
  border-radius: 50%;
  border: 3px solid var(--white);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--sage-muted);
  z-index: 1;
}

.timeline__year {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.timeline__image {
  border-radius: var(--border-radius);
  margin-top: var(--space-md);
  box-shadow: 0 2px 10px var(--shadow);
}

@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline__item,
  .timeline__item:nth-child(even) {
    flex-direction: column;
    padding-left: 50px;
  }
  .timeline__content { width: 100%; }
  .timeline__dot {
    left: 20px;
    top: 0;
  }
}

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery__item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(transparent, rgba(42,42,38,0.8));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Info Card --- */
.info-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  box-shadow: 0 2px 15px var(--shadow);
  border-left: 4px solid var(--sage);
}

.info-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
}

.info-card__text {
  color: var(--text-light);
  line-height: 1.8;
}

/* --- CTA Strip --- */
.cta-strip {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-dark) 100%);
  color: var(--white);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-strip .heading-lg {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta-strip .tagline {
  color: var(--beige-light);
  margin-bottom: var(--space-xl);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--sage-dark);
  outline-offset: 1px;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-muted);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- Map --- */
.map-embed {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 15px var(--shadow);
  aspect-ratio: 16/9;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Decorative Divider --- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider__icon {
  font-size: 1.5rem;
  color: var(--sage);
}

/* --- Footer --- */
.footer {
  background: var(--charcoal-dark);
  color: var(--beige-light);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer__logo {
  height: 80px;
  width: auto;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .footer__logo {
    margin: 0 auto var(--space-lg);
  }
}

.footer__tagline {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xl);
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage-light);
  margin-bottom: var(--space-lg);
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__nav a {
  color: var(--beige-light);
  font-size: 0.95rem;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }

.footer__info {
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer__info a {
  color: var(--beige-light);
  word-break: break-all;
}
.footer__info a:hover { color: var(--white); }

.footer__form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer__input {
  flex: 1;
  padding: 0.7rem var(--space-md);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer__input::placeholder {
  color: rgba(255,255,255,0.4);
}

.footer__input:focus {
  outline: 2px solid var(--sage-dark);
  outline-offset: 1px;
  border-color: var(--sage);
  background: rgba(255,255,255,0.12);
}

.footer__form .btn {
  padding: 0.7rem var(--space-lg);
  font-size: 0.85rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .footer__form {
    flex-direction: column;
  }
}

.footer__bottom {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left--visible,
.fade-in-right--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }

/* --- Story Page Specific --- */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.story-block--reverse {
  direction: rtl;
}
.story-block--reverse > * {
  direction: ltr;
}

.story-block__image {
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 25px var(--shadow-md);
  overflow: hidden;
}

.story-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.story-block__image:hover img {
  transform: scale(1.03);
}

.story-block__text .heading-md {
  margin-bottom: var(--space-md);
}

.story-block__text p {
  color: var(--text-light);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.story-block__text blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sage-dark);
  border-left: 3px solid var(--sage);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .story-block,
  .story-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .story-block__image {
    max-height: 400px;
  }
}

/* --- Badge/Label --- */
.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--beige-light);
  color: var(--charcoal-dark);
}

.badge--dark {
  background: var(--charcoal);
  color: var(--cream);
}

/* --- Content spacer (after nav) --- */
.page-content {
  margin-top: var(--nav-height);
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   Museum / General Store Page Styles
   ============================================ */

/* --- Archive Gallery (newspaper clippings section) --- */
.archive-gallery {
  background: var(--charcoal-dark);
  padding: 2.5rem 0;
}

.archive-gallery .heading-lg,
.archive-gallery .heading-md { color: var(--white); }
.archive-gallery .tagline { color: var(--beige-light); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.archive-card {
  background: var(--cream);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.archive-card:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.archive-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: top;
  filter: sepia(15%);
  transition: filter var(--transition);
}

.archive-card:hover img {
  filter: sepia(0%);
}

.archive-card__caption {
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
}

.archive-card__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.archive-card__desc {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Subtle rotation for scrapbook feel */
.archive-card:nth-child(1) { transform: rotate(-1deg); }
.archive-card:nth-child(2) { transform: rotate(0.5deg); }
.archive-card:nth-child(3) { transform: rotate(-0.5deg); }
.archive-card:nth-child(4) { transform: rotate(1deg); }

/* --- Generation / Honor Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.gen-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.gen-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}
.gen-card__label { color: var(--beige); font-family: var(--font-sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: var(--space-md); }
.gen-card__photo { width: 180px; height: 225px; object-fit: cover; object-position: top; border-radius: 4px; border: 2px solid rgba(255,255,255,0.15); box-shadow: 0 4px 20px rgba(0,0,0,0.4); margin-bottom: var(--space-md); }
.gen-card__placeholder { width: 180px; height: 225px; background: rgba(255,255,255,0.06); border-radius: 4px; border: 2px solid rgba(255,255,255,0.1); margin: 0 auto var(--space-md); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); font-size: 0.7rem; }
.gen-card__name { color: var(--white); font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: var(--space-xs); }
.gen-card__meta { color: var(--beige); font-size: 0.8rem; margin-bottom: var(--space-xs); }
.gen-card__aircraft { color: var(--beige-light); font-size: 0.8rem; margin-bottom: var(--space-sm); }
.gen-card__summary { color: var(--beige-light); font-size: 0.85rem; line-height: 1.7; margin-bottom: var(--space-md); text-align: left; }

.honor-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.honor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.honor-card__icon { width: 60px; height: 60px; background: var(--charcoal); border-radius: 50%; margin: 0 auto var(--space-md); display: flex; align-items: center; justify-content: center; color: var(--beige); font-size: 1.2rem; }
.honor-card__name { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: var(--space-xs); }
.honor-card__meta { color: var(--text-muted); font-size: 0.8rem; margin-bottom: var(--space-xs); }
.honor-card__unit { color: var(--text-muted); font-size: 0.8rem; margin-bottom: var(--space-md); }
.honor-card__summary { color: var(--text-light); font-size: 0.85rem; line-height: 1.7; margin-bottom: var(--space-md); }
.honor-card__portrait { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto var(--space-md); border: 2px solid rgba(0,0,0,0.1); filter: contrast(1.05) brightness(1.02); box-shadow: 0 2px 10px rgba(0,0,0,0.15); }

.story-link { display: inline-block; font-size: 0.75rem; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; padding: 0.5rem 1.25rem; border-radius: 4px; text-decoration: none; transition: all 0.3s ease; }
.story-link--dark { color: var(--beige); border: 1px solid rgba(255,255,255,0.2); }
.story-link--dark:hover { background: rgba(255,255,255,0.1); border-color: var(--beige); color: var(--white); }
.story-link--light { color: var(--sage-dark); border: 1px solid rgba(0,0,0,0.15); }
.story-link--light:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

/* --- Award Section --- */
.award-section {
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-dark) 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.award-section .heading-lg,
.award-section .heading-md { color: var(--white); }

.award-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

.award-plaque {
  width: 220px;
  height: 175px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.award-text {
  text-align: left;
  max-width: 500px;
}

.award-text p {
  color: var(--beige-light);
  line-height: 1.8;
}

.award-text .heading-md {
  margin-bottom: var(--space-md);
}

/* --- Image Grid (restoration photos) --- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.image-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.image-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px var(--shadow-lg);
}

/* --- Remodel Gallery (vintage "before" photos) --- */
.remodel-gallery {
  margin-top: var(--space-xl);
  background: var(--charcoal);
  border-radius: var(--border-radius);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

.remodel-gallery__track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-md) var(--space-sm) var(--space-lg);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
  align-items: stretch;
}

.remodel-gallery__track::-webkit-scrollbar {
  height: 4px;
}

.remodel-gallery__track::-webkit-scrollbar-track {
  background: transparent;
}

.remodel-gallery__track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.remodel-gallery__track img {
  flex: 0 0 calc(33.333% - var(--space-lg) * 2 / 3);
  height: 300px;
  object-fit: cover;
  border: 6px solid #f5f0e8;
  border-bottom-width: 28px;
  border-radius: 2px;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0,0,0,0.1);
  scroll-snap-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  filter: sepia(15%) contrast(1.05) brightness(0.98);
  background: #f5f0e8;
}

.remodel-gallery__track img:hover {
  transform: scale(1.03);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.5),
    0 0 0 1px rgba(0,0,0,0.1);
  filter: sepia(5%) contrast(1.1) brightness(1.02);
  z-index: 2;
}

.remodel-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.remodel-gallery__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--beige-light);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.remodel-gallery__btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
  transform: scale(1.1);
}

.remodel-gallery__hint {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .image-grid img {
    height: 220px;
  }
  
  .archive-grid {
    grid-template-columns: 1fr;
  }
  
  .archive-card:nth-child(n) {
    transform: rotate(0deg);
  }
  
  .award-content {
    flex-direction: column;
    text-align: center;
  }
  
  .award-text {
    text-align: center;
  }

  .remodel-gallery {
    padding: var(--space-lg) var(--space-md);
  }

  .remodel-gallery__track img {
    flex: 0 0 70%;
    height: 260px;
    border-bottom-width: 20px;
  }

  .remodel-gallery__hint {
    font-size: 0.65rem;
  }
}

/* --- Museum Caption --- */
.museum-caption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-sm);
  font-style: italic;
}

/* --- Then & Now comparison --- */
.then-now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.then-now__item {
  text-align: center;
}

.then-now__item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow-md);
}

.then-now__year {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: var(--space-md);
}

.then-now__desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: var(--space-xs);
}

@media (max-width: 768px) {
  .then-now {
    grid-template-columns: 1fr;
  }
  
  .then-now__item img {
    height: 250px;
  }
}

/* --- Pull Stat (for newspaper data highlights) --- */
.pull-stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  border-left: 4px solid var(--beige);
  background: var(--cream);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.pull-stat__number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  flex-shrink: 0;
}

.pull-stat__text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}


/* Skip Navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  background: var(--charcoal-dark);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  z-index: 10000;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--space-md);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
}
.btn:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
}

/* --- Mobile: match hero/page top-spacing to the shorter 76px nav bar --- */
@media (max-width: 768px) {
  .hero { margin-top: 76px; }
  .page-content { margin-top: 76px; }

  /* Reduce section padding on mobile — 96px is excessive */
  .section { padding: var(--space-2xl) 0; }


  /* Tap targets — minimum 44px */
  .btn { padding: 1rem 2rem; min-height: 44px; }
  .story-link { padding: 0.75rem 1.5rem; font-size: 0.85rem; }

  /* Font sizes — ensure nothing below 12px */
  .badge { font-size: 0.75rem; }
  .hero__badge { font-size: 0.8rem; }

  /* Divider strip — prevent plaque overlap */
  .divider-strip { margin-top: -30px; padding-bottom: var(--space-3xl); }
  .divider-strip a[style*="position: absolute"] {
    position: static !important;
    transform: none !important;
    display: block;
    margin: var(--space-md) auto 0;
    width: fit-content;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Stylesheet */
@media print {
  .nav, .hero, .footer, .skip-link,
  .map-embed, iframe,
  .btn, .btn--dark, .btn--outline,
  .remodel-gallery__btn { display: none !important; }

  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  main { margin-top: 0 !important; }

  .typed-column {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
  }
  .typed-column__title,
  .typed-item__name { color: #000 !important; }
  .typed-item__price { color: #333 !important; }

  .section, .section--sage, .section--charcoal {
    background: #fff !important;
    color: #000 !important;
  }

  a { color: #000 !important; text-decoration: underline !important; }
  img { max-width: 100% !important; }
}
