/* ============================================================
   Country Croppin' Co. — Custom Styles
   Country retail craft shop
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg: #faf8f4;
  --bg-alt: #f2ede5;
  --bg-card: #ffffff;
  --bg-dark: #2c2419;
  --text: #2c2419;
  --text-muted: #6b5d4f;
  --text-faint: #9a8d7e;
  --primary: #b5694d;
  --primary-rgb: 181, 105, 77;
  --primary-hover: #9a553c;
  --primary-light: #f5e6dd;
  --accent: #6b7f56;
  --accent-light: #e2ead8;
  --border: #d4cabb;
  --border-light: #e8e0d3;
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --bg: #1a1610;
  --bg-alt: #231e16;
  --bg-card: #2e2820;
  --bg-dark: #110e0a;
  --text: #ede6db;
  --text-muted: #a89a89;
  --text-faint: #756859;
  --primary: #d4845e;
  --primary-hover: #e09570;
  --primary-light: #3a2a1e;
  --accent: #8ba06e;
  --accent-light: #2a3321;
  --border: #3e3629;
  --border-light: #332c22;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2.25rem;
}

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

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

a:hover {
  color: var(--primary-hover);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem);
}

h3 {
  font-size: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  line-height: 1.2;
}

p {
  text-wrap: pretty;
}

/* --- Kicker Labels --- */
.kicker {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-light {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background-color var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background-color: var(--bg);
  box-shadow: 0 1px 0 var(--border-light);
  padding: 0.625rem 0;
}

[data-theme="dark"] .site-header.scrolled {
  background-color: var(--bg-dark);
}

.has-dark-hero .site-header:not(.scrolled) {
  color: #ffffff;
}

.has-dark-hero .site-header:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.has-dark-hero .site-header:not(.scrolled) .nav-link:hover {
  color: #ffffff;
}

.has-dark-hero .site-header:not(.scrolled) .logo {
  color: #ffffff;
}

.has-dark-hero .site-header:not(.scrolled) .theme-toggle {
  color: rgba(255, 255, 255, 0.85);
}

.has-dark-hero .site-header:not(.scrolled) .hamburger span {
  background-color: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color var(--transition);
}

.logo:hover {
  color: var(--primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
  }
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  border-radius: var(--radius);
}

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

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

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

/* --- Hamburger --- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  z-index: 110;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  transition: all var(--transition);
  border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Nav --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

[data-theme="dark"] .mobile-nav {
  background-color: var(--bg-dark);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav .nav-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.mobile-nav .btn {
  margin-top: 1rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: #ffffff;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,36,25,0.85) 0%, rgba(44,36,25,0.4) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 8rem 0 4rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 0;
  }
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-subtext {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Section Spacing --- */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0;
}

.section-header p {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.0625rem;
}

/* --- Stitch Divider (Distinctive Moment #1) --- */
.stitch-divider {
  height: 8px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 8px,
    var(--primary) 8px,
    var(--primary) 16px,
    transparent 16px,
    transparent 24px
  );
  opacity: 0.25;
}

[data-theme="dark"] .stitch-divider {
  opacity: 0.35;
}

/* --- Categories Grid --- */
.categories-section {
  background-color: var(--bg);
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-alt);
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .category-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,25,0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.category-card-overlay h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.category-card-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* --- Featured / About Split --- */
.about-section {
  background-color: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 45% 1fr;
    gap: 4rem;
  }
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.about-content p:last-of-type {
  margin-bottom: 1.75rem;
}

/* --- Values / Promise --- */
.values-section {
  background-color: var(--bg-alt);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  padding: 2rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

[data-theme="dark"] .value-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.value-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Testimonial --- */
.testimonial-section {
  background-color: var(--bg-alt);
  text-align: center;
}

.testimonial-block {
  max-width: 680px;
  margin: 0 auto;
}

.testimonial-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin: 2rem 0;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.25;
  margin-bottom: -0.75rem;
  font-style: normal;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9375rem;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

/* --- CTA Section (Distinctive Moment #2: Quilt Pattern Border) --- */
.cta-section {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 5rem 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0px,
    var(--primary) 12px,
    var(--accent) 12px,
    var(--accent) 24px,
    #d4a574 24px,
    #d4a574 36px
  );
}

.cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* --- Product / Service Row --- */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
  position: relative;
  border-left: 3px solid transparent;
  padding-left: 1rem;
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.product-row:first-child {
  border-top: 1px solid var(--border-light);
}

.product-row:hover {
  border-left-color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.03);
}

@media (min-width: 768px) {
  .product-row {
    grid-template-columns: 4rem 1fr 2fr;
    gap: 2rem;
    align-items: baseline;
  }
}

.product-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
}

.product-row:hover .product-number {
  opacity: 0.6;
  transition: opacity 0.35s ease;
}

.product-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.product-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Workshop/Classes Section --- */
.workshops-section {
  background-color: var(--bg-alt);
}

.workshop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .workshop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.workshop-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.workshop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .workshop-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.workshop-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.workshop-card-body {
  padding: 1.5rem;
}

.workshop-card-body h3 {
  margin-bottom: 0.5rem;
}

.workshop-card-body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.workshop-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 4rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand .logo {
  color: #ffffff;
  font-size: 1.125rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.footer-credit {
  font-size: 0.85rem;
}

.footer-credit a {
  color: var(--primary);
}

.footer-credit a:hover {
  color: #ffffff;
}

/* --- Contact Page --- */
.contact-section {
  background-color: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b5d4f' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

[data-theme="dark"] .contact-info-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.contact-info-item h3 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- Form Feedback --- */
.form-status {
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-top: 1rem;
  display: none;
}

.form-status.success {
  display: block;
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.form-status.error {
  display: block;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* --- Page Header (Inner Pages) --- */
.page-header {
  padding: 9rem 0 4rem;
  background-color: var(--bg-alt);
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 560px;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- About Page: Story Timeline --- */
.story-timeline {
  position: relative;
  padding-left: 2rem;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-light);
}

.story-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.story-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  transform: translateX(-4px);
}

.story-item h3 {
  margin-bottom: 0.5rem;
}

.story-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- About Page Images --- */
.about-images-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .about-images-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-images-grid img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Turnstile --- */
.cf-turnstile {
  margin-top: 0.5rem;
}

/* --- Misc --- */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* --- Whimsy: Button press feedback --- */
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-outline:active, .btn-outline-light:active { transform: translateY(1px); }

/* --- Stitch animation (motion-safe only) --- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes stitch-move {
    from { background-position: 0 0; }
    to { background-position: 24px 0; }
  }

  .stitch-divider {
    animation: stitch-move 3s linear infinite;
  }

  @keyframes quilt-slide {
    from { background-position: 0 0; }
    to { background-position: 36px 0; }
  }

  .cta-section::before {
    animation: quilt-slide 4s linear infinite;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .category-card,
  .value-card,
  .contact-info-item,
  .workshop-card,
  .btn,
  .form-input,
  .form-select,
  .form-textarea {
    transition: none !important;
  }

  .category-card:hover,
  .value-card:hover,
  .contact-info-item:hover,
  .workshop-card:hover,
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    transform: none !important;
  }

  .category-card:hover img {
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- 404 Page --- */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 1.25rem 5rem;
}

.error-page .error-code {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(6rem, 4rem + 10vw, 12rem);
  line-height: 1;
  color: var(--primary);
  opacity: 0.12;
  letter-spacing: -0.05em;
  margin-bottom: -1rem;
}

.error-page h1 {
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.error-page .btn {
  margin: 0 0.375rem;
}

/* --- Print --- */
@media print {
  .site-header,
  .mobile-nav,
  .theme-toggle,
  .hamburger,
  .cta-section {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* ----- Disclaimer Bar ----- */
.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-alt, #f5f5f5);
  border-top: 1px solid var(--border-light, #e0e0e0);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  text-align: center;
  z-index: 101;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
}
