/* True North Emporium - Redesign
   Swiss structure + rustic paper texture
   All sans-serif (Inter), bold borders, warm off-white base
*/

/* ── Design Tokens ────────────────────────────────────────── */

:root {
  /* Brand colours - warm, grounded */
  --color-red: #DC2626;
  --color-red-dark: #B91C1C;
  --color-red-light: #FEE2E2;

  /* Warm neutrals - paper/stone inspired */
  --color-black: #1C1C1C;
  --color-grey-dark: #3D3D3D;
  --color-grey: #6B6B6B;
  --color-grey-light: #9C9C9C;
  --color-grey-lighter: #E8E5DF;
  --color-grey-lightest: #F3F1EC;

  /* Surface colours */
  --bg-primary: #F8F6F2;        /* Warm paper */
  --bg-secondary: #F0EDE7;      /* Slightly darker paper */
  --bg-tertiary: #1C1C1C;        /* Black */
  --bg-card: #FDFCFA;           /* Card surface - brighter paper */

  /* Text colours */
  --text-primary: #1C1C1C;
  --text-secondary: #3D3D3D;
  --text-muted: #6B6B6B;
  --text-inverse: #F8F6F2;
  --text-on-red: #FFFFFF;

  /* Structure - thin, refined borders */
  --border-black: 2px solid #1C1C1C;
  --border-thick: 2px solid #1C1C1C;
  --border-medium: 1px solid #1C1C1C;
  --border-thin: 1px solid #1C1C1C;
  --border-light: 1px solid #E8E5DF;
  --border-red: 2px solid #DC2626;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --transition-fast: 0.15s ease;
  --transition-medium: 0.25s ease;

  /* No rounded corners - Swiss */
  --radius-none: 0;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-full: 0;

  /* No shadows */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  /* Logo */
  --logo-filter: none;
}

/* ── Dark Mode ────────────────────────────────────────────── */

[data-theme="dark"] {
  --color-black: #E8E5DF;
  --color-grey-dark: #B0AFA8;
  --color-grey: #8A8984;
  --color-grey-light: #6B6A66;
  --color-grey-lighter: #2A2926;
  --color-grey-lightest: #22211E;

  --bg-primary: #161514;
  --bg-secondary: #1E1D1B;
  --bg-tertiary: #1E1D1B;
  --bg-card: #22211E;

  --text-primary: #E8E5DF;
  --text-secondary: #B0AFA8;
  --text-muted: #8A8984;
  --text-inverse: #E8E5DF;

  --border-black: 2px solid #E8E5DF;
  --border-thick: 2px solid #E8E5DF;
  --border-medium: 1px solid #E8E5DF;
  --border-thin: 1px solid #E8E5DF;
  --border-light: 1px solid #2A2926;

  --logo-filter: brightness(0) invert(0.9);
}

/* ── Paper Texture ────────────────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0, 0, 0, 0.015) 1px,
      rgba(0, 0, 0, 0.015) 2px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.008) 2px,
      rgba(0, 0, 0, 0.008) 4px
    );
}

[data-theme="dark"] body::before {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.015) 1px,
      rgba(255, 255, 255, 0.015) 2px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.008) 2px,
      rgba(255, 255, 255, 0.008) 4px
    );
}

/* Dark mode: carousel arrows - drop shadow for visibility */
[data-theme="dark"] .carousel-arrow {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

/* Dark mode: section header boxes - subtle border to stand out */
[data-theme="dark"] .section-header {
  border: 1px solid #2A2926;
  border-left: 3px solid var(--color-red);
}

/* Dark mode: invert signature image to white on dark */
[data-theme="dark"] .signature-img {
  filter: invert(1);
  opacity: 0.7;
}

/* ── Reset & Base ─────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: var(--font-weight-regular);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-medium), color var(--transition-medium);
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* ── Typography ───────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color var(--transition-medium);
}

h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: var(--font-weight-black);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  transition: color var(--transition-medium);
}

/* ── Container ────────────────────────────────────────────── */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Section Header ───────────────────────────────────────── */

.section-header {
  text-align: left;
  margin-bottom: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--bg-card);
  border-left: 3px solid var(--color-red);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
}

.section-header p {
  max-width: 600px;
  color: var(--text-muted);
}

/* ── Navigation ───────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--bg-primary);
  border-top: 6px solid var(--color-red);
  border-bottom: var(--border-thin);
  transition: background-color var(--transition-medium);
}

.navbar.scrolled {
  /* No shadow - Swiss doesn't float */
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 155px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 130px;
  width: auto;
  filter: var(--logo-filter);
  transition: filter var(--transition-medium);
}

.logo-text {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-links a {
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: width var(--transition-medium);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* External link button - Visit Polaris */
.nav-external-link {
  background-color: var(--color-red) !important;
  color: var(--text-on-red) !important;
  padding: 0.625rem 1.25rem !important;
  font-weight: var(--font-weight-semibold) !important;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  transition: background-color 0.2s ease;
}

.nav-external-link:hover {
  background-color: #FFFFFF !important;
  color: var(--color-red) !important;
}

/* ── Theme Toggle ─────────────────────────────────────────── */

.theme-toggle {
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: var(--space-md);
  color: var(--text-primary);
}

.theme-toggle:hover {
  color: var(--color-red);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* ── Mobile Menu Button ───────────────────────────────────── */

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* ── Breadcrumb ───────────────────────────────────────────── */

.breadcrumb-nav {
  padding: 1.5rem 0 0.75rem;
  margin-top: 190px;
  background-color: var(--bg-primary);
}

.breadcrumb-list {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  list-style: none;
}

.breadcrumb-link {
  color: var(--text-muted);
}

.breadcrumb-link:hover {
  color: var(--color-red);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-primary {
  background-color: var(--color-red);
  color: var(--text-on-red);
}

.btn-primary:hover {
  background-color: var(--color-red-dark);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--color-grey-lighter);
}

.btn-white {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.btn-white:hover {
  background-color: var(--bg-secondary);
}

/* ── Hero Section ─────────────────────────────────────────── */

.hero {
  height: auto;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: 155px;
  padding-bottom: var(--space-lg);
}

.hero-carousel {
  position: absolute;
  top: 155px;
  left: 0;
  width: 100%;
  height: calc(100% - 155px);
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.05);
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-carousel {
  position: absolute;
  top: 155px;
  left: 0;
  width: 100%;
  height: calc(100% - 155px);
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.05);
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-content {
  display: none;
}

/* Carousel controls */
.carousel-controls {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}

/* ── Announcement Bar (Top Strip) ─────────────────────────── */

.top-strip {
  background-color: var(--color-red);
  padding: 0.5rem 0;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.top-strip-text {
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.03em;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* When top strip is visible, shift navbar down */
.navbar {
  margin-top: 36px;
}

.hero {
  padding-top: calc(145px + 36px);
}

.hero-carousel {
  top: calc(145px + 36px);
  height: calc(100% - (145px + 36px));
}

.breadcrumb-nav {
  margin-top: calc(165px + 36px);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #FFFFFF;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-fast);
}

.carousel-dot.active {
  background-color: #FFFFFF;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  line-height: 1;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: #FFFFFF;
}

.carousel-arrow.prev { left: var(--space-md); }
.carousel-arrow.next { right: var(--space-md); }

/* Wrapper to prevent markdown wrapping buttons in <p> */
.carousel-arrows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
}

.carousel-arrows .carousel-arrow {
  pointer-events: auto;
}

/* ── Categories Grid ──────────────────────────────────────── */

.categories {
  padding: var(--space-xl) 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
}

.category-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.category-card-overlay {
  padding: var(--space-md);
  background-color: var(--bg-card);
}

.category-card-overlay h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-card-overlay p {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* ── Makers Grid (shared) ─────────────────────────────────── */

.makers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.featured-makers {
  padding: var(--space-lg) 0 var(--space-lg);
}

.featured-food {
  padding: var(--space-lg) 0 var(--space-md);
}

.maker-card {
  background-color: var(--bg-card);
  transition: opacity var(--transition-medium);
}

.maker-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.maker-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.maker-card-content {
  padding: var(--space-md);
}

.craft-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  margin-bottom: var(--space-xs);
}

.maker-card-content h3 {
  margin-bottom: var(--space-sm);
}

.maker-card-content p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

/* ── Food & Drink Grid (shared) ───────────────────────────── */

.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.food-card {
  background-color: var(--bg-card);
  transition: opacity var(--transition-medium);
}

.food-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.food-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-card-content {
  padding: var(--space-md);
}

.food-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  margin-bottom: var(--space-xs);
}

.food-card-content h3 {
  margin-bottom: var(--space-xs);
}

.food-price {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-red);
  margin-bottom: var(--space-xs);
}

.food-excerpt {
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

/* ── Why I Do This ─────────────────────────────────────────── */

.why-local {
  padding: var(--space-lg) 0 var(--space-sm);
  background-color: var(--bg-secondary);
}

.why-local-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  background-color: transparent;
  text-align: left;
}

.why-local-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-red);
  margin-bottom: var(--space-sm);
}

.why-local-content h2 {
  margin-bottom: var(--space-md);
}

.why-local-bar {
  display: none;
}

.why-local-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.why-local-item {
  display: block;
  padding-left: 1.5rem;
  position: relative;
}

.why-local-marker {
  position: absolute;
  left: 0;
  top: 0.125rem;
  color: var(--color-red);
  font-size: 0.5rem;
  line-height: 1.65rem;
}

.why-local-item p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ── Newsletter ───────────────────────────────────────────── */

.newsletter {
  padding: var(--space-xl) 0;
  text-align: center;
  background-color: var(--bg-secondary);
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: var(--space-lg) auto 0;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem var(--space-md);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form .btn {
  border: none;
  border-left: var(--border-medium);
}

/* ── Supplier CTA ─────────────────────────────────────────── */

.supplier-cta {
  padding: 0.25rem 0 1rem;
}

.supplier-cta-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1rem;
  background-color: var(--bg-card);
  border-left: 3px solid var(--color-red);
  text-align: left;
}

.supplier-label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-red);
  margin-bottom: 0.125rem;
}

.supplier-cta-card h2 {
  margin-bottom: 0.1875rem;
}

.supplier-cta-card p {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  max-width: 550px;
}

/* ── Footer ───────────────────────────────────────────────── */

.footer {
  background-color: var(--bg-tertiary);
  color: var(--text-inverse);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: var(--border-thin);
  border-color: var(--color-red);
}

.footer h4 {
  color: var(--text-inverse);
  margin-bottom: var(--space-md);
  font-size: 0.8125rem;
}

.footer p,
.footer li,
.footer a {
  color: rgba(248, 246, 242, 0.7);
  font-size: 0.9375rem;
}

.footer a:hover {
  color: #FFFFFF;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section ul li {
  margin-bottom: var(--space-xs);
}

.footer-section ul li a {
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(248, 246, 242, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(248, 246, 242, 0.5);
}

.footer-legal-link {
  color: rgba(248, 246, 242, 0.4);
  text-decoration: none;
  font-size: inherit;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: rgba(248, 246, 242, 0.8);
  text-decoration: underline;
}

.footer p.footer-company-info {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 0.75rem;
  color: rgba(248, 246, 242, 0.4);
  letter-spacing: 0.02em;
}

/* Social links in footer */
.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(248, 246, 242, 0.3);
  color: rgba(248, 246, 242, 0.7);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.social-links a:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* ── Maker Profile Page ───────────────────────────────────── */

.maker-profile-hero {
  padding-top: 2rem;
  background-color: var(--bg-secondary);
}

.maker-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 1.5rem 0;
}

.maker-profile-content h1 {
  margin-bottom: var(--space-md);
}

.maker-profile-content .craft-badges + h1,
.food-profile-content .craft-badges + h1 {
  margin-top: var(--space-xs);
}

.maker-profile-image {
  position: relative;
}

.maker-profile-image > div:first-child {
  max-width: 75%;
  margin: 0 auto;
}

.maker-bio {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.maker-bio p {
  margin-bottom: var(--space-md);
}

/* Craft badges on profile */
.craft-badge {
  display: inline-block;
  background-color: var(--color-red);
  color: var(--text-on-red);
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Quote/excerpt block */
.maker-quote {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin-bottom: 1.125rem;
  border-left: 4px solid var(--color-red);
  background: var(--bg-primary);
}

/* ── Signature Section ────────────────────────────────────── */

.signature-section {
  padding: 0 0 var(--space-2xl);
  margin-top: -1.5rem;
  text-align: center;
}

.signature-img {
  max-width: 200px;
  height: auto;
  opacity: 0.8;
}

/* ── Testimonials ──────────────────────────────────────────── */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.testimonial-card {
  background-color: var(--bg-card);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-stars {
  color: var(--color-red);
  font-size: 0.875rem;
  letter-spacing: 2px;
}

.testimonial-name {
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.maker-quote p {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  margin: 0;
}

/* ── Legal Pages ──────────────────────────────────────────── */

.content-width {
  max-width: 720px;
  margin: 0 auto;
}

.content-width h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.content-width h2:first-of-type {
  margin-top: 0;
}

.content-width ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.content-width ul li {
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.connect-box {
  margin: var(--space-lg) 0;
}

.connect-box h4 {
  margin-bottom: var(--space-xs);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Maker social links */
.maker-link,
.food-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  font-size: 0.8rem;
  border-radius: 4px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.maker-link:hover,
.food-link:hover {
  background-color: var(--color-black);
  color: var(--bg-primary);
}

/* ── Image Gallery ────────────────────────────────────────── */

.gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.image-gallery {
  margin-top: 1.5rem;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter var(--transition-fast);
}

.gallery-thumb:hover {
  filter: brightness(1.2);
}

.gallery-thumb.active {
  filter: brightness(1.35);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Maker Filter Section ─────────────────────────────────── */

.makers-filter-section,
.food-filter-section {
  padding: 1.5rem 0;
  background-color: var(--bg-secondary);
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  background-color: var(--bg-secondary);
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-btn:hover {
  background-color: var(--color-grey-lighter);
  color: var(--color-red);
}

.filter-btn.active {
  background-color: var(--color-red);
  color: var(--text-on-red);
}

.maker-card.hidden,
.food-card.hidden {
  display: none;
}

/* ── Section Content ──────────────────────────────────────── */

.content-section,
section:not(.hero):not(.navbar):not(.about-hero):not(.makers-filter-section):not(.food-filter-section):not(.breadcrumb-nav):not(.intro-section):not(.supplier-cta):not(.why-local) {
  padding: var(--space-xl) 0;
}

/* ── Homepage Intro Section ───────────────────────────────── */

.intro-section {
  padding: var(--space-lg) 0 var(--space-lg);
}

.intro-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.intro-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-red);
  margin-bottom: var(--space-md);
}

.intro-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: var(--font-weight-black);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.intro-bar {
  width: 40px;
  height: 3px;
  background-color: var(--color-red);
  margin: 0 auto var(--space-lg);
}

.intro-detail {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.intro-links {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── About Page ───────────────────────────────────────────── */

.about-hero {
  padding: var(--space-xl) 0 var(--space-md);
  background-color: var(--bg-secondary);
}

.about-content {
  max-width: 720px;
}

.about-content h1 {
  margin-bottom: var(--space-md);
}

.about-content h1::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--color-red);
  margin-top: var(--space-md);
}

.about-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.about-story {
  padding: var(--space-xl) 0 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.story-content h2 {
  margin-bottom: var(--space-md);
}

.story-content p {
  margin-bottom: var(--space-sm);
}

.about-highlight {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: var(--border-thin);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.story-image img {
  width: 100%;
}

/* ── Values Section ───────────────────────────────────────── */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.value-card {
  padding: var(--space-lg);
  background-color: var(--bg-card);
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.value-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ── Visit Page ───────────────────────────────────────────── */

.visit-hero {
  padding: var(--space-xl) 0;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.visit-info h2 {
  margin-bottom: var(--space-lg);
}

.visit-contact-details {
  margin-bottom: var(--space-xl);
}

.visit-contact-item {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background-color: var(--bg-card);
}

.visit-contact-item h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
  color: var(--color-red);
}

.visit-contact-item p {
  margin-bottom: 0;
}

.visit-hours {
  padding: var(--space-md);
  background-color: var(--bg-card);
}

.visit-hours h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  color: var(--color-red);
}

.hours-table {
  display: flex;
  flex-direction: column;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.hours-time {
  color: var(--text-secondary);
}

.hours-time.closed {
  color: var(--color-red);
  font-weight: var(--font-weight-semibold);
}

.visit-map h2 {
  margin-bottom: var(--space-lg);
}

.map-container {
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

.visit-form {
  margin-top: var(--space-lg);
}

.visit-form h2 {
  margin-bottom: var(--space-sm);
}

.visit-form .btn {
  margin-top: 0.25rem;
}

/* ── Contact Page ─────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0;
}

.contact-form h2 {
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem var(--space-sm);
  border: var(--border-medium);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-red);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background-color: var(--bg-card);
}

.contact-info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info-content h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
  color: var(--color-red);
}

.contact-info-content p {
  margin-bottom: 0;
}

/* ── FAQ Section ──────────────────────────────────────────── */

.faq-item {
  margin-bottom: 0;
  border-bottom: var(--border-thin);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  transition: color var(--transition-fast);
  user-select: none;
}

.faq-question:hover {
  color: var(--color-red);
}

.faq-question span:last-child {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
  padding: 0 var(--space-md) var(--space-md);
}

.faq-answer p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* ── Background utility ───────────────────────────────────── */

.bg-grey {
  background-color: var(--bg-secondary);
}

/* ── Text utility ─────────────────────────────────────────── */

.text-center {
  text-align: center;
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

/* ── Scroll Animation ─────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Notification ─────────────────────────────────────────── */

.notification {
  position: fixed;
  top: 110px;
  right: 20px;
  padding: 1rem 1.5rem;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10000;
  border: 2px solid #FFF;
  animation: slideIn 0.3s ease;
}

.notification-close {
  background: none;
  border: none;
  color: #FFF;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ── Food Profile Page ────────────────────────────────────── */

.food-profile-hero {
  padding-top: 2rem;
  background-color: var(--bg-secondary);
}

.food-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 1.5rem 0;
}

.food-profile-content h1 {
  margin-bottom: var(--space-md);
}

.food-profile-image {
  position: relative;
}

.food-profile-image > div:first-child {
  max-width: 75%;
  margin: 0 auto;
}

.food-description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ── Profile utilities ──────────────────────────────────────── */

.craft-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.profile-section {
  padding: var(--space-xl) 0 var(--space-md) 0;
}

.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.cta-box {
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--bg-secondary);
}

.cta-box h3 {
  margin-bottom: var(--space-sm);
}

.cta-box p {
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
}

.cta-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.divider-red {
  width: 100px;
  height: 3px;
  background-color: var(--color-red);
  margin: var(--space-lg) auto;
}

.more-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-secondary);
}

.maker-bio p {
  margin-bottom: var(--space-md);
}

.maker-byline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ── Tablet Responsive ────────────────────────────────────── */

@media (max-width: 1100px) {
  .navbar-container {
    height: 115px;
  }

  .logo img {
    height: 99px;
  }

  .nav-links {
    gap: var(--space-sm);
  }

  .nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  .nav-external-link {
    padding: 0.5rem 0.875rem !important;
    font-size: 0.6875rem;
  }

  .hero {
    padding-top: 115px;
  }

  .hero-carousel {
    top: 115px;
    height: calc(100% - 115px);
  }

  .breadcrumb-nav {
    margin-top: 115px;
  }

  /* Announcement bar tablet sizing - navbar height is 115px on tablet */
  .navbar {
    margin-top: 32px;
  }

  .hero {
    padding-top: calc(115px + 32px);
  }

  .hero-carousel {
    top: calc(115px + 32px);
    height: calc(100% - (115px + 32px));
  }

  .breadcrumb-nav {
    margin-top: calc(130px + 32px);
  }

  .top-strip-text {
    font-size: 0.75rem;
  }
}

/* ── Mobile Responsive ────────────────────────────────────── */

@media (max-width: 900px) {
  .navbar-container {
    height: 63px;
  }

  .logo img {
    height: 45px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-md);
    background-color: var(--bg-primary);
    border-bottom: var(--border-thin);
    gap: var(--space-sm);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Top strip mobile sizing */
  .top-strip {
    position: relative;
    padding: 0.4rem 0;
  }

  .top-strip-text {
    font-size: 0.625rem;
    line-height: 1.3;
  }

  /* Announcement bar mobile - strip and navbar flow in document */
  .top-strip {
    position: relative;
  }

  .navbar {
    position: relative;
    top: 0;
    margin-top: 0;
  }

  .hero {
    padding-top: 0;
  }

  .hero-carousel {
    top: 0;
    height: 100%;
  }

  .breadcrumb-nav {
    margin-top: 0;
  }

  .nav-links.active {
    top: 63px;
  }

  .breadcrumb-nav {
    margin-top: 63px;
  }

  .hero {
    padding-top: 0;
  }

  .hero-carousel {
    top: 0;
    height: 100%;
  }

  .hero-slide img {
    object-position: top center;
  }

  .hero-content {
    padding: var(--space-md);
    margin: var(--space-md);
  }

  .maker-profile-grid,
  .food-profile-grid,
  .story-grid,
  .visit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .maker-profile-image > div:first-child,
  .food-profile-image > div:first-child {
    max-width: 100%;
  }

  .maker-profile-image {
    order: -1;
  }

  .food-profile-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .gallery-thumb {
    width: 70px;
    height: 70px;
  }

  .filter-container {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid,
  .makers-grid,
  .food-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .maker-card-image {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }
}

@media (max-width: 400px) {
  .makers-grid,
  .food-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .maker-card-content {
    padding: var(--space-sm);
  }

  .maker-card-image {
    aspect-ratio: 1 / 1;
    max-height: none;
  }
}


/* Form group compact variant */
.form-group-compact {
  margin-bottom: 0.75rem;
}

.form-group-compact input,
.form-group-compact select,
.form-group-compact textarea {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.form-privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.5rem 0;
  line-height: 1.4;
}

.form-privacy-note a {
  color: var(--color-red);
  text-decoration: underline;
}

/* ── Skip to Content ───────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: #DC2626;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* ── Error / 404 Page ──────────────────────────────────────── */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-section {
  width: 100%;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: #DC2626;
  line-height: 1;
  margin: 0 0 0.5rem;
}

.error-heading {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.error-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions .btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.error-actions .btn-secondary:hover {
  background: var(--bg-card);
}
