/* All Terrain Repair - shared styles (dark theme) */
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@700&display=swap");

:root {
  --color-primary: #0a0a0a;
  --color-primary-light: #1a1a1a;
  --color-accent: #F73600;
  --color-accent-hover: #d92f00;
  --color-bg: #0a0a0a;
  --color-text: #f5f5f5;
  --color-text-muted: #a3a3a3;
  --color-surface: #141414;
  --color-border: rgba(255, 255, 255, 0.12);
  --font-sans: "Segoe UI", system-ui, sans-serif;
  --font-display: "Georgia", serif;
  --max-width: 960px;
  --header-height: 80px;
  --space: 1.25rem;
  --radius: 8px;
}

.accent {
  color: var(--color-accent);
  display: block;
}

#headerSpan {
  color: var(--color-accent)
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--space) 3rem;
}

main.has-hero {
  padding-top: 0;
  max-width: none;
}

/* Header */
.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

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

.site-logo {
  margin: 0;
}

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

.site-logo-img {
  height: 4rem;
  width: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.site-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--color-primary-light);
  color: #fff;
}

.header-cta {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
}

.btn.header-cta {
  background: var(--color-accent);
  border: none;
  box-shadow: none;
}

.btn.header-cta:hover {
  background: var(--color-accent-hover);
  box-shadow: none;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 280px;
  }

  .site-nav ul {
    flex-direction: column;
    padding: var(--space);
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 1rem;
  }
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  margin-top: auto;
  padding: 2rem var(--space) 1.5rem;
}

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

.footer-col {
  min-width: 0;
}

.footer-copy {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  opacity: 0.8;
  text-align: center;
}

.footer-address {
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0 0 1rem;
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-hours {
  font-size: 0.9rem;
}

.footer-hours table,
.footer-hours-table {
  border-collapse: collapse;
}

.footer-hours th,
.footer-hours td,
.footer-hours-table th,
.footer-hours-table td {
  padding: 0.2rem 0.5rem 0.2rem 0;
  text-align: left;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  display: block;
  margin-bottom: 0.4rem;
}

.footer-col-contact p {
  margin: 0 0 0.5rem;
}

.footer-col-contact p:last-child {
  margin-bottom: 0;
}

.footer-col-contact .footer-social {
  margin-top: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-social .social-facebook { background: #1877f2; }
.footer-social .social-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.footer-social .social-linkedin { background: #0a66c2; }
.footer-social .social-twitter { background: #1da1f2; }
.footer-social .social-youtube { background: #ff0000; }

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-hours table {
    margin: 0 auto;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  margin-top: 0;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; }

.page-title {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section > h2.page-title {
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

/* Buttons & links - solid dark, clean */
.btn {
  display: inline-block;
  background: var(--color-surface);
  color: #fff;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn:hover {
  background: var(--color-primary-light);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary);
}

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

/* Hero with background image */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  background: var(--color-primary) no-repeat center / cover;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--space) 4rem;
  width: 100%;
}

.hero-centered {
  text-align: center;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  animation: fadeUp 0.6s ease-out forwards;
}

.hero .slogan {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 0.25em;
  margin-bottom: 0.75em;
  letter-spacing: 0.02em;
}

.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.3s forwards;
}

.hero-centered .cta {
  justify-content: center;
}

.hero .cta .btn {
  background: var(--color-surface);
  color: #fff;
  border: none;
}

.hero .cta .btn:hover {
  background: var(--color-primary-light);
}

.btn-glow {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.btn-glow:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

@media (min-width: 600px) {
  .hero h1 { font-size: 2.75rem; }
  .hero .slogan { font-size: 1.5rem; }
}

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

/* Cards / sections */
.section {
  margin-bottom: 3rem;
}

/* Service cards (image + number + title + description) */
.service-cards {
  display: grid;
  gap: var(--space);
}

@media (min-width: 600px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-cards-many {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .service-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .service-cards-many {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.2);
}

.service-card-image {
  aspect-ratio: 4/3;
  background: var(--color-primary-light) no-repeat center / cover;
}

.service-card-body {
  padding: 1.25rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

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

.service-card .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.service-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  column-count: 2;
  column-gap: 1rem;
}

@media (min-width: 900px) {
  .service-cards-many .service-card-list {
    column-count: 3;
  }
}

.service-card-list li {
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
  break-inside: avoid;
}

.service-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 0.8rem;
}

.section-our-service {
  padding-top: 2.5rem;
}

.section-our-service .section-intro {
  margin-bottom: 3rem;
}

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

@media (min-width: 600px) {
  .service-cards-three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card-simple {
  border: 1px solid var(--color-border);
}

.service-card-simple .service-card-body {
  padding: 1.75rem;
}

.service-card-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  transition: color 0.2s, gap 0.2s;
}

.read-more-link:hover {
  color: var(--color-accent);
  gap: 0.5rem;
}

/* Who We Are block */
.who-we-are {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.who-we-are h2 {
  color: var(--color-text);
  margin-bottom: 1rem;
}

.who-we-are p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.who-we-are p:last-child {
  margin-bottom: 0;
}

/* Team section */
.team-section h2 {
  color: var(--color-text);
  margin-bottom: 1rem;
}

.team-grid {
  display: grid;
  gap: var(--space);
}

/* Single team card: wider, centered; center heading above */
.team-section:has(.team-grid:has(.team-card:only-child)) h2 {
  text-align: center;
}

.team-grid:has(.team-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin-inline: auto;
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .team-grid:has(.team-card:only-child) {
    max-width: 480px;
  }
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.team-card-image {
  aspect-ratio: 1;
  background: var(--color-primary-light) no-repeat center / cover;
}

.team-card-body {
  padding: 1.25rem;
}

.team-card h3 {
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.team-card .role {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* Main content wrapper for full-width hero + constrained content */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--space) 0;
}

/* Contact */
.contact-block {
  margin-bottom: 1.5rem;
}

.contact-block h3 {
  margin-bottom: 0.25rem;
}

.contact-block p {
  margin: 0;
  color: var(--color-text-muted);
}

.contact-block a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.contact-block-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-block-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 0.15rem;
}

.contact-block-with-icon h3 {
  margin-top: 0;
}

/* Contact page */
.contact-section-wrap {
  padding: 0 0 3rem;
}

.contact-two-col {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;
}

@media (min-width: 700px) {
  .contact-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact-info-col h2,
.contact-form-col h2 {
  color: var(--color-text);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.contact-lead {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 28em;
}

.contact-social-block {
  margin-top: 1.5rem;
}

.contact-social-block h3 {
  color: var(--color-text);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

#contact-page-social {
  display: flex;
  gap: 0.75rem;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.social-icon-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  text-decoration: none;
}

.social-icon-link.social-facebook { background: #1877f2; }
.social-icon-link.social-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.social-icon-link.social-linkedin { background: #0a66c2; }
.social-icon-link.social-twitter { background: #1da1f2; }
.social-icon-link.social-youtube { background: #ff0000; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

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

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

.contact-form .btn {
  margin-top: 0.25rem;
  cursor: pointer;
  width: 100%;
  max-width: 160px;
}

/* Hours table (contact / footer) */
.hours-table {
  width: 100%;
  max-width: 320px;
  border-collapse: collapse;
  margin: 0.5rem 0;
}

.hours-table th,
.hours-table td {
  padding: 0.4rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
