/* ========================================
   R J Hallisey Truck Repair — Stylesheet
   ======================================== */

:root {
  --red: #E63946;
  --red-dark: #c62828;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --gray-900: #212529;
  --gray-800: #343a40;
  --gray-700: #495057;
  --gray-600: #6c757d;
  --gray-400: #ced4da;
  --gray-200: #e9ecef;
  --gray-100: #f8f9fa;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

address {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}

.btn-dark:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--gray-400);
}

.btn-outline-dark:hover {
  background: var(--gray-100);
  border-color: var(--gray-700);
  color: var(--gray-900);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ========================================
   Header
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gray-900);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
}

.logo-text span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-nav a {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-radius: 6px;
  transition: all var(--transition);
}

.main-nav a:hover {
  color: var(--red);
  background: rgba(230, 57, 70, 0.06);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.header-cta:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.88) 0%, rgba(22, 33, 62, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  max-width: 750px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

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

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  font-weight: 500;
}

.trust-item svg {
  color: #4ade80;
  flex-shrink: 0;
}

/* ========================================
   Section Shared
   ======================================== */

section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(230, 57, 70, 0.08);
  color: var(--red);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
}

/* ========================================
   Services
   ======================================== */

.services {
  background: var(--gray-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 57, 70, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--red);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========================================
   About
   ======================================== */

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

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

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

.about-content .section-tag {
  margin-bottom: 16px;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-content > p {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-features {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--gray-800);
  font-size: 1rem;
}

.about-features svg {
  flex-shrink: 0;
}

/* ========================================
   Gallery
   ======================================== */

.gallery {
  background: var(--gray-100);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}

.gallery-grid--extended {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid--extended .gallery-item--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid--extended .gallery-item--featured img {
  min-height: 100%;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* ========================================
   Testimonials
   ======================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}

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

.stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
}

.testimonial-card footer strong {
  font-weight: 700;
  color: var(--gray-900);
}

.testimonial-card footer span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ========================================
   Service Area
   ======================================== */

.service-area {
  background: var(--dark);
  color: var(--white);
}

.service-area .section-header h2 {
  color: var(--white);
}

.service-area .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.service-area .section-tag {
  background: rgba(230, 57, 70, 0.2);
}

.area-towns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.area-towns span {
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition);
}

.area-towns span:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.area-towns--links .area-towns-link {
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition);
  text-decoration: none;
}

.area-towns--links .area-towns-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.area-towns--links .area-towns-link--current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.area-towns--links .area-towns-link--static {
  cursor: default;
}

.town-nearby .area-towns--links .area-towns-link {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-700);
}

.town-nearby .area-towns--links .area-towns-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ========================================
   Town Landing Pages
   ======================================== */

.town-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: var(--white);
}

.town-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 700px;
}

.town-hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.town-content {
  padding: 80px 0;
}

.town-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.town-article p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.town-article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 36px 0 16px;
}

.town-services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.town-services-list li {
  padding: 14px 18px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-size: 0.98rem;
  line-height: 1.6;
}

.town-sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.town-sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.town-sidebar-card address,
.town-sidebar-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

.town-drive {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

.town-sidebar-map {
  padding: 0;
  overflow: hidden;
}

.town-nearby {
  padding: 80px 0;
  background: var(--gray-100);
}

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

  .town-hero {
    padding: 100px 0 50px;
  }
}

/* ========================================
   CTA Banner
   ======================================== */

.cta-banner {
  background: var(--red);
  padding: 60px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.cta-actions .btn-primary {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  font-size: 1.1rem;
}

.cta-actions .btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Contact
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info .section-tag {
  margin-bottom: 16px;
}

.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item address,
.contact-item a {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

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

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text strong {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a:hover {
  color: var(--white);
}

.footer-services li {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.footer-contact address {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-contact > a {
  color: var(--red);
  font-weight: 600;
  font-size: 1rem;
}

.footer-contact > a:hover {
  color: #ff6b6b;
}

.footer-social {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--red);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ========================================
   Animations
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .gallery-grid--extended {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid--extended .gallery-item--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 100px 32px 40px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
    z-index: 999;
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 85vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .hero-trust {
    flex-direction: column;
    gap: 12px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

  .gallery-grid--extended {
    grid-template-columns: 1fr;
  }

  .gallery-grid--extended .gallery-item--featured {
    grid-column: span 1;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .gallery-item img {
    min-height: 240px;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
