/* Modern, warm editorial theme for H&C Sandwiches */

:root {
  --bg-canvas: #faf6f0;
  --bg-band: #f1e8dc;
  --bg-surface: #fffdf9;
  --bg-dark: #1c1815;
  --text-primary: #1f1b18;
  --text-secondary: #524942;
  --accent: #b45309;
  --accent-hover: #92400e;
  --accent-soft: #f7ead9;
  --border-subtle: rgba(31, 27, 24, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Avenir Next', Avenir, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Header & Hero */
.site-header {
  background-color: var(--bg-dark);
  background-image: url('/images/sandwich.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(22, 18, 15, 0.72) 0%,
    rgba(22, 18, 15, 0.56) 50%,
    rgba(22, 18, 15, 0.82) 100%
  );
}

.navbar {
  max-width: 62rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  gap: 0.5rem 1rem;
}

.brand {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hero-content {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.25rem 3.75rem;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f7ead9;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.hero-title {
  margin: 0 0 0.85rem;
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #ffffff;
  animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.hero-subtitle {
  margin: 0 auto 1.75rem;
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary {
  background-color: #d97706;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: #b45309;
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.45);
}

.btn--secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: rgba(255, 255, 255, 0.22);
}

/* Sections & Layout */
main {
  flex: 1 0 auto;
}

.band {
  padding: 2.75rem 1.25rem;
}

.band--alt {
  background-color: var(--bg-band);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.container {
  max-width: 56rem;
  margin: 0 auto;
}

.page-section {
  scroll-margin-top: 1rem;
}

.section-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  margin: 0 0 1.25rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.25;
}

.about-copy {
  max-width: 44rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Product Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 2px 10px rgba(31, 27, 24, 0.04);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31, 27, 24, 0.08);
  border-color: rgba(180, 83, 9, 0.2);
}

.card-title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-pills {
  list-style: none;
  margin: 0.85rem 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand-pills li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background-color: var(--bg-band);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

.brand-pills li:hover {
  transform: translateY(-2px);
  background-color: var(--accent-soft);
}

/* Contact Section */
.contact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(31, 27, 24, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-address {
  font-style: normal;
  color: var(--text-primary);
  line-height: 1.65;
}

.contact-address strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  background-color: var(--bg-band);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  background-color: var(--accent-soft);
  border-color: rgba(180, 83, 9, 0.28);
  transform: translateY(-2px);
}

.contact-link:active {
  transform: translateY(0) scale(0.98);
}

.contact-link--primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
}

.contact-link--primary:hover,
.contact-link--primary:focus-visible {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(146, 64, 14, 0.35);
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 1.4rem 1.25rem;
  font-size: 0.875rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-link:hover {
  color: #ffffff;
}

.build-sha {
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  margin-left: 0.35rem;
}

/* Tablet & Desktop */
@media (min-width: 44rem) {
  body {
    font-size: 1.0625rem;
  }

  .navbar {
    padding: 1rem 1.5rem;
  }

  .brand {
    font-size: 1.3rem;
  }

  .hero-content {
    padding: 4.75rem 2rem 5.5rem;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .band {
    padding: 4rem 1.5rem;
  }

  .section-heading {
    font-size: 1.9rem;
  }

  .card {
    padding: 1.65rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .card--full {
    grid-column: 1 / -1;
  }

  .contact-card {
    padding: 2rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Micro-animations & scroll reveal */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
