/* ========================================
   CFL Automotive LLC — Custom Styles
   Terracotta + Sand palette, fresh & airy
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-terracotta: #C07051;
  --color-terracotta-dark: #A85A3E;
  --color-terracotta-light: #D4916F;
  --color-sand: #F5EDE4;
  --color-sand-light: #FAF6F2;
  --color-sand-dark: #E8DDD2;
  --color-cream: #FDF9F5;
  --color-text: #3D2C24;
  --color-text-light: #7A6458;
  --color-white: #FFFFFF;
  --color-bg: #FDF9F5;
  --color-accent-warm: #E8C4A8;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(61,44,36,0.06), 0 1px 2px rgba(61,44,36,0.04);
  --shadow-md: 0 4px 16px rgba(61,44,36,0.08), 0 2px 4px rgba(61,44,36,0.04);
  --shadow-lg: 0 12px 40px rgba(61,44,36,0.10), 0 4px 12px rgba(61,44,36,0.05);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

ul { list-style: none; }

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

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

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

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

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

.btn-ghost-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 1rem;
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253,249,245,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192,112,81,0.08);
  transition: box-shadow var(--transition);
}

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

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

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

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--color-terracotta);
  background: var(--color-terracotta);
  color: var(--color-white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  letter-spacing: -0.02em;
}

.logo-wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

/* Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-nav ul {
  display: flex;
  gap: 8px;
}

.primary-nav a {
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.primary-nav a:hover {
  color: var(--color-terracotta);
  background: rgba(192,112,81,0.06);
}

.nav-cta {
  padding: 10px 20px !important;
  font-size: 0.875rem !important;
}

.nav-icon {
  width: 16px;
  height: 16px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--transition);
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  left: 0;
  transition: all var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- HERO --- */
.hero {
  position: relative;
  padding: 120px 0 0;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-cream) 0%, var(--color-sand-light) 50%, var(--color-sand) 100%);
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle at 2px 2px, var(--color-terracotta) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0 120px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-terracotta);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  color: var(--color-terracotta);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

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

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-terracotta);
  flex-shrink: 0;
}

.hero-image-wrapper {
  position: relative;
}

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

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-white);
  color: var(--color-text);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.hero-badge svg {
  width: 20px;
  height: 20px;
  color: var(--color-terracotta);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
  color: var(--color-bg);
}

/* --- Section Shared --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-terracotta);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--color-terracotta);
  font-style: italic;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- SERVICES --- */
.services {
  padding: 100px 0;
  background: var(--color-bg);
}

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

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(192,112,81,0.08);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(192,112,81,0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-sand-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-terracotta);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- WHY US --- */
.why-us {
  padding: 100px 0;
  background: var(--color-sand-light);
}

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

.why-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.why-content .section-eyebrow { text-align: left; }
.why-content .section-title { text-align: left; margin-bottom: 20px; }

.why-intro {
  font-size: 1.0625rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 36px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.why-check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--color-terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.why-check svg {
  width: 14px;
  height: 14px;
  color: var(--color-white);
}

.why-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.why-item p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* --- REVIEWS --- */
.reviews {
  padding: 100px 0;
  background: var(--color-bg);
}

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

.review-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(192,112,81,0.08);
  transition: all var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
  color: var(--color-terracotta);
}

.review-stars svg {
  width: 18px;
  height: 18px;
}

.review-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-light);
}

/* --- CTA BANNER --- */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.cta-text {
  flex: 1;
  min-width: 280px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- CONTACT --- */
.contact {
  padding: 100px 0;
  background: var(--color-sand-light);
}

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

.contact-info .section-eyebrow { text-align: left; }
.contact-info .section-title { text-align: left; margin-bottom: 16px; }

.contact-intro {
  font-size: 1.0625rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 36px;
}

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

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

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-terracotta);
  box-shadow: var(--shadow-sm);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-row strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.contact-row p {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
}

.contact-row a {
  color: var(--color-terracotta);
}

/* Form */
.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(192,112,81,0.08);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-sand-light);
  border: 1.5px solid var(--color-sand-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-terracotta);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(192,112,81,0.1);
}

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

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

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: #f0faf0;
  border: 1px solid #c8e6c8;
  border-radius: var(--radius-sm);
  color: #2d6a2d;
  font-weight: 500;
}

.form-success svg {
  width: 22px;
  height: 22px;
  color: #4caf50;
  flex-shrink: 0;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-terracotta-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* --- ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- MOBILE NAV OVERLAY --- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(61,44,36,0.4);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-nav-overlay.active {
  opacity: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }

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

  .why-grid,
  .contact-grid {
    gap: 40px;
  }
}

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

  .primary-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-cream);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 999;
  }

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

  .primary-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .primary-nav a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 1.0625rem;
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  .mobile-nav-overlay {
    display: block;
    pointer-events: none;
  }
  .mobile-nav-overlay.active {
    pointer-events: all;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding: 100px 0 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 40px 0 80px;
    gap: 40px;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-image img {
    height: 320px;
  }

  .hero-badge {
    left: 12px;
    bottom: -12px;
  }

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

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

  .hero-trust {
    gap: 16px;
  }

  /* Sections */
  .services,
  .why-us,
  .reviews,
  .contact {
    padding: 72px 0;
  }

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

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

  .why-image img,
  .contact-grid .contact-form-wrap {
    height: auto;
  }

  .why-content .section-title,
  .contact-info .section-title {
    text-align: center;
  }

  .why-content .section-eyebrow,
  .contact-info .section-eyebrow {
    text-align: center;
  }

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

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    justify-content: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
