/* ============================================
   Bigshow Towing — Main Stylesheet
   Design Language: Charcoal + Emergency Red + Hi-Vis Lime
   ============================================ */

/* --- CSS Custom Properties (Light Theme, default) --- */
:root {
  /* Brand colours */
  --color-primary: #1A1A1D;
  --color-accent-red: #E13B3B;
  --color-accent-red-hover: #c82e2e;
  --color-accent-lime: #C4F135;
  --color-accent-lime-dark: #9fc020;
  --color-neutral-offwhite: #F3F3F1;
  --color-neutral-grey: #6E6E72;

  /* Semantic tokens — page surfaces & text */
  --bg-page: #F3F3F1;
  --bg-card: #FFFFFF;
  --bg-card-alt: #EAEAE8;
  --text-heading: #1A1A1D;
  --text-body: #2D2D30;
  --text-muted: #6E6E72;
  --border-color: #D4D4D4;

  /* Semantic tokens — brand surfaces (hero, footer, nav) */
  --bg-brand: #1A1A1D;
  --text-on-brand: #FFFFFF;
  --text-on-brand-muted: #C8C8CA;

  /* CTA (red button) — text ON red should always stay white */
  --text-on-accent: #FFFFFF;

  /* Badge/lime highlight text */
  --text-on-lime: #1A1A1D;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);

  /* Layout */
  --container-max: 1200px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Typography */
  --font-heading: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg-page: #121214;
  --bg-card: #1E1E22;
  --bg-card-alt: #28282D;
  --text-heading: #F3F3F1;
  --text-body: #D4D4D6;
  --text-muted: #9A9A9E;
  --border-color: #3A3A3E;

  --bg-brand: #0D0D0F;
  --text-on-brand: #FFFFFF;
  --text-on-brand-muted: #A8A8AC;

  --color-accent-red: #F04848;
  --color-accent-red-hover: #d93c3c;
  --color-accent-lime: #D4FF3F;
  --color-accent-lime-dark: #b3d92e;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-page);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: var(--color-accent-red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-red-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* --- Header / Navigation --- */
.site-header {
  background: var(--bg-brand);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-on-brand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo .logo-accent {
  color: var(--color-accent-red);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-on-brand);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--text-on-brand-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-on-brand);
}

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

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-on-brand);
  transition: border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  border-color: var(--color-accent-lime);
  background: rgba(196, 241, 53, 0.1);
}

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

.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }

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

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent-red);
  color: var(--text-on-accent) !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}

.header-cta:hover {
  background: var(--color-accent-red-hover);
  color: var(--text-on-accent) !important;
}

.header-cta svg {
  width: 16px;
  height: 16px;
}

/* --- Hero Section --- */
.hero {
  background: var(--bg-brand);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(225, 59, 59, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--color-accent-lime);
  color: var(--text-on-lime);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  color: var(--text-on-brand);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-on-brand-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-accent-red);
  color: var(--text-on-accent) !important;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(225, 59, 59, 0.3);
}

.hero-cta:hover {
  background: var(--color-accent-red-hover);
  color: var(--text-on-accent) !important;
  transform: translateY(-2px);
}

.hero-cta svg {
  width: 22px;
  height: 22px;
}

.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-trust-item {
  color: var(--text-on-brand-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-lime);
}

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

.section-alt {
  background: var(--bg-card-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-brand);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent-lime);
}

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

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Credibility Badges --- */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
}

.badge svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent-lime);
  flex-shrink: 0;
}

/* --- Reviews Section --- */
.reviews-highlight {
  background: var(--bg-brand);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  color: var(--text-on-brand);
}

.reviews-highlight .review-stat {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-accent-lime);
  margin-bottom: 0.5rem;
}

.reviews-highlight p {
  color: var(--text-on-brand-muted);
  font-size: 1rem;
}

.reviews-highlight .review-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--text-on-brand);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.reviews-highlight .review-link:hover {
  border-color: var(--color-accent-lime);
  background: rgba(196, 241, 53, 0.1);
  color: var(--text-on-brand);
}

/* --- Image Placeholder --- */
.image-placeholder {
  background: var(--bg-card-alt);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  min-height: 250px;
  color: var(--text-muted);
}

.image-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.image-placeholder p {
  font-size: 0.9rem;
  max-width: 300px;
}

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-intro-text h2 {
  margin-bottom: 1rem;
}

.about-intro-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent-red);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

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

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--bg-brand);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent-lime);
}

.contact-item-text h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-item-text p,
.contact-item-text a {
  font-size: 1.05rem;
  color: var(--text-heading);
}

.contact-item-text a {
  color: var(--color-accent-red);
  font-weight: 600;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 100%;
  min-height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* --- Contact Form --- */
.contact-form {
  margin-top: 3rem;
}

.contact-form h2 {
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-heading);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

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

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent-red);
  color: var(--text-on-accent);
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--color-accent-red-hover);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-brand);
  padding: 4rem 1.5rem 2rem;
  color: var(--text-on-brand-muted);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .site-logo {
  margin-bottom: 1rem;
}

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

.footer-links h4,
.footer-contact h4 {
  color: var(--text-on-brand);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-on-brand-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-on-brand);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--text-on-brand-muted);
}

.footer-contact a:hover {
  color: var(--color-accent-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-on-brand-muted);
  transition: border-color 0.2s, color 0.2s;
}

.footer-social a:hover {
  border-color: var(--color-accent-lime);
  color: var(--color-accent-lime);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* --- Services Page --- */
.services-list {
  display: grid;
  gap: 2rem;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  align-items: center;
}

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

.service-card-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-tag {
  display: inline-block;
  background: rgba(196, 241, 53, 0.15);
  color: var(--color-accent-lime-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-right: 0.5rem;
}

[data-theme="dark"] .service-tag {
  background: rgba(212, 255, 63, 0.1);
  color: var(--color-accent-lime);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-accent-red);
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--text-on-accent);
}

.cta-banner h2 {
  color: var(--text-on-accent);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-banner .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-on-accent);
  color: var(--color-accent-red) !important;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-banner .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  color: var(--color-accent-red) !important;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: var(--bg-brand);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.page-header h1 {
  color: var(--text-on-brand);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-on-brand-muted);
  font-size: 1.05rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-brand);
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .main-nav a {
    font-size: 1.1rem;
  }

  .nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-on-brand);
    cursor: pointer;
    padding: 0.5rem;
  }

  .nav-close svg {
    width: 24px;
    height: 24px;
  }

  .header-cta span {
    display: none;
  }

  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

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

  .service-card {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .badges {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .header-cta {
    padding: 0.5rem 0.8rem;
  }

  .hero-cta {
    padding: 0.9rem 1.8rem;
    font-size: 1.05rem;
  }
}
