/* DESIGN SYSTEM & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary: #E30613; /* Performance Red */
  --primary-hover: #C20510;
  --secondary: #121212; /* Black */
  --accent: #7A7A7A; /* Steel Grey */
  --bg-dark: #1C1C1C; /* Dark Carbon */
  --bg-darker: #151515;
  --bg-card: #242424;
  --white: #FFFFFF;
  
  /* Typography */
  --font-hero: 'Montserrat', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
  --section-pad: 80px 20px;
}

/* BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* TYPOGRAPHY COMPONENTS */
h1, h2, h3, h4, .font-heading {
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-hero);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 15px;
  color: var(--white);
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

p {
  font-size: 1.125rem;
  color: #D1D1D1;
  margin-bottom: 20px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--white);
  color: var(--secondary);
}

.btn-large {
  padding: 20px 48px;
  font-size: 1.25rem;
  width: 100%;
  max-width: 400px;
}

/* HEADER & NAV */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.header-phone {
  display: flex;
  align-items: center;
  gap: 15px;
}

.phone-numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-weight: 600;
  font-size: 0.9rem;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 60px;
  /* Background image injected via HTML style tag */
  background-size: cover;
  background-position: center;
  background-color: var(--secondary);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(18,18,18,0.95) 0%, rgba(18,18,18,0.7) 50%, rgba(18,18,18,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-subheadline {
  font-size: 1.5rem;
  color: #E0E0E0;
  margin-bottom: 40px;
  font-weight: 500;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* EMERGENCY BANNER */
.emergency-banner {
  background-color: var(--primary);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(0,0,0,0.05) 20px,
    rgba(0,0,0,0.05) 40px
  );
}

.emergency-banner h2 {
  font-family: var(--font-hero);
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.emergency-banner p {
  color: var(--white);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 30px;
}

.emergency-banner .btn {
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  font-size: 1.25rem;
  padding: 18px 40px;
}

.emergency-banner .btn:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: scale(1.05);
}

/* TRUST BAR */
.trust-bar {
  background-color: var(--bg-darker);
  padding: 40px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trust-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 200px;
}

.trust-icon {
  color: var(--primary);
  font-size: 24px;
  background: rgba(227, 6, 19, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.trust-item span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}

/* SERVICES SECTION */
.services {
  padding: var(--section-pad);
  background-color: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary);
}

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

.service-card {
  background-color: var(--bg-card);
  padding: 40px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 20px;
}

/* MOBILE FEATURE SPLIT */
.mobile-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-darker);
}

.mobile-feature-img {
  /* Image injected via HTML style or img tag */
  min-height: 500px;
  background-size: cover;
  background-position: center;
}

.mobile-feature-content {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* SOCIAL PROOF */
.social-proof {
  padding: var(--section-pad);
  background-color: var(--bg-dark);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.review-card {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.stars {
  color: #FFB800;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.review-text {
  font-style: italic;
  font-size: 1.1rem;
}

/* HOW IT WORKS */
.how-it-works {
  padding: var(--section-pad);
  background-color: var(--bg-darker);
}

.steps-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 220px;
}

.step-num {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hero);
  font-size: 1.5rem;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: rgba(255,255,255,0.1);
  z-index: 1;
}

.step h3 {
  color: var(--white);
}

/* ABOUT SECTION */
.about {
  padding: var(--section-pad);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* CONTACT & MAP */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-info {
  background-color: var(--secondary);
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon {
  background: var(--primary);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-text h4 {
  color: var(--accent);
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.contact-text a, .contact-text p {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
}

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

.map-container {
  min-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* FOOTER */
footer {
  background-color: #0d0d0d;
  padding: 60px 20px 20px;
  border-top: 2px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  margin-bottom: 20px;
  color: var(--white);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--accent);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--accent);
  font-size: 0.9rem;
}

/* STICKY MOBILE CTA */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  padding: 15px;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.sticky-mobile-cta a {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .mobile-feature, .contact-section {
    grid-template-columns: 1fr;
  }
  .mobile-feature-img {
    min-height: 300px;
  }
  .mobile-feature-content, .contact-info {
    padding: 60px 30px;
  }
  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  body {
    padding-bottom: 60px; /* space for sticky cta */
  }
  .header-phone {
    display: none; /* Hide top phone on small screens to fit logo */
  }
  .hero {
    padding-top: 100px;
    align-items: flex-start;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn-large {
    width: 100%;
  }
  .sticky-mobile-cta {
    display: block;
  }
}
