/* ============================================================
   Arrow Carton — Custom Styles
   Corrugated packaging manufacturer, Richfield WI
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700;800&family=Source+Sans+3:wght@400;500;600&display=swap');

/* --- Custom Properties --- */
:root {
  --bg: #f5f2ed;
  --bg-alt: #ebe7df;
  --bg-card: #ffffff;
  --bg-dark: #1a1714;
  --text: #1a1714;
  --text-muted: #5c564d;
  --text-faint: #8f877b;
  --primary: #c44b1a;
  --primary-rgb: 196, 75, 26;
  --primary-light: #f0d8c8;
  --accent: #2c6e49;
  --accent-light: #d4e8dc;
  --border: #c7bfb3;
  --border-light: #ddd7cd;
  --radius: 4px;
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --bg: #141210;
  --bg-alt: #1e1b17;
  --bg-card: #262219;
  --bg-dark: #0d0c0a;
  --text: #e8e2d8;
  --text-muted: #a89d8e;
  --text-faint: #6b6156;
  --primary: #e06830;
  --primary-light: #3a2a1e;
  --accent: #3d9c66;
  --accent-light: #1e3328;
  --border: #3a342b;
  --border-light: #2e2922;
}

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

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

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', 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(--accent);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 2rem + 3.5vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.15;
}

p {
  text-wrap: pretty;
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  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: 'Source Sans 3', sans-serif;
  font-weight: 600;
  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: #a33e15;
  border-color: #a33e15;
  color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
  background-color: #c45520;
  border-color: #c45520;
}

.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.3);
}

.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: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  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: 'Source Sans 3', sans-serif;
  font-weight: 500;
  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: 600;
  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-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 8rem 0 4rem;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 55% 45%;
    gap: 3rem;
    padding: 0;
    min-height: 100vh;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

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

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

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

.hero-image {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-image {
    height: 100vh;
  }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .hero-image img {
    border-radius: 0;
  }
}

/* --- Stats Bar --- */
.stats-bar {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 3rem 0;
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0px,
    var(--primary) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  letter-spacing: -0.025em;
  color: var(--primary);
}

[data-theme="dark"] .stats-bar .stat-value {
  color: var(--primary);
}

.stat-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- 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: 600px;
  font-size: 1.0625rem;
}

/* --- Flute Texture Divider --- */
.flute-divider {
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--border-light) 0px,
    var(--border-light) 4px,
    var(--bg-alt) 4px,
    var(--bg-alt) 8px
  );
  opacity: 0.5;
}

[data-theme="dark"] .flute-divider {
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0px,
    var(--border) 4px,
    var(--bg-alt) 4px,
    var(--bg-alt) 8px
  );
}

/* --- Services (Numbered Rows) --- */
.services-section {
  background-color: var(--bg);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

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

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

.service-number {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
}

.service-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

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

/* --- Process (3-col Staggered) --- */
.process-section {
  background-color: var(--bg-alt);
}

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

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

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

.process-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

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

@media (min-width: 768px) {
  .process-card:nth-child(2) {
    margin-top: 3rem;
  }

  .process-card:nth-child(3) {
    margin-top: 6rem;
  }
}

.process-step {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 1rem;
}

.process-card h3 {
  margin-bottom: 0.75rem;
}

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

/* --- About (60/40 Reversed) --- */
.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: 40% 1fr;
    gap: 4rem;
  }
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  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-child {
  margin-bottom: 0;
}

/* --- About Page Values --- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

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

.value-card {
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.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;
}

/* --- About Page Two-Image Grid --- */
.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);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

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

.testimonial-rule {
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  border: none;
  margin: 0 auto;
}

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

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

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

/* --- CTA Section (Die-Cut Corners) --- */
.cta-section {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 5rem 0;
  position: relative;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  clip-path: polygon(
    0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px,
    100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px)
  );
  background-color: rgba(255, 255, 255, 0.04);
  padding: 3.5rem 2rem;
  border-radius: 0;
}

.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;
}

/* --- 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: 'Source Sans 3', sans-serif;
  font-weight: 600;
  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 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: 500;
  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: 'Source Sans 3', 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='%235c564d' 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);
  background-color: var(--bg-card);
}

.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: 600px;
}

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

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

/* --- 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); }
.mt-0 { margin-top: 0; }

/* --- Subtle Whimsy: Micro-interactions --- */

/* Service rows: left border slides in on hover */
.service-row {
  position: relative;
  border-left: 3px solid transparent;
  padding-left: 1rem;
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

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

/* Service number shifts on row hover */
.service-row:hover .service-number {
  opacity: 0.6;
  transition: opacity 0.35s ease;
}

/* Value cards and contact info items: lift on hover */
.value-card,
.contact-info-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-card:hover,
.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"] .value-card:hover,
[data-theme="dark"] .contact-info-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Button press: tactile feedback */
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-outline:active, .btn-outline-light:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  .btn-primary:active, .btn-outline:active, .btn-outline-light:active { transform: none; }
}

/* Stats bar: staggered reveal for each stat item */
.stats-bar .stat-item.reveal {
  transition-delay: 0s;
}
.stats-bar .stat-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-bar .stat-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-bar .stat-item.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Flute divider: subtle scroll shimmer */
.flute-divider {
  background-size: 200% 100%;
  transition: background-position 0.6s ease;
}

/* Logo: subtle weight shift on hover */
.footer-brand .logo:hover,
header .logo:hover {
  letter-spacing: 0.02em;
  transition: letter-spacing 0.3s ease, color 0.3s ease;
}

/* Form inputs: smooth focus state */
.form-input,
.form-select,
.form-textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  transform: translateY(-1px);
}

/* Testimonial: quote marks via CSS with fade */
.testimonial-quote::before {
  content: '\201C';
  display: block;
  font-family: 'Archivo', serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.2;
  margin-bottom: -1rem;
  font-style: normal;
}

/* --- Reduced motion: disable all animation/transition whimsy --- */
@media (prefers-reduced-motion: reduce) {
  .service-row,
  .value-card,
  .contact-info-item,
  .process-card,
  .btn,
  .form-input,
  .form-select,
  .form-textarea,
  .flute-divider,
  .logo {
    transition: none !important;
  }

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

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

/* --- Whimsy Animations (motion-safe only) --- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes conveyor {
    from { background-position: 0 0; }
    to { background-position: 16px 0; }
  }

  .flute-divider {
    animation: conveyor 1.2s linear infinite;
  }

  @keyframes stripe-slide {
    from { background-position: 0 0; }
    to { background-position: 32px 0; }
  }

  .stats-bar::before {
    animation: stripe-slide 2s linear infinite;
  }
}

/* --- 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: 'Archivo', sans-serif;
  font-weight: 800;
  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: 100;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
}
