/* ============================================
   FANGMANN PERFORMANCE AND REPAIR
   Bold Editorial — Forest Green + Off-White
   ============================================ */

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

:root {
  --green-dark: #1a3a2a;
  --green: #2d5a3f;
  --green-mid: #3d7a56;
  --green-light: #5a9e74;
  --cream: #f5f0e8;
  --cream-light: #faf7f2;
  --cream-dark: #e8e0d0;
  --gold: #c8a96e;
  --gold-light: #dbbf8a;
  --text-dark: #1a1a1a;
  --text-mid: #3a3a3a;
  --text-light: #6a6a6a;
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(26, 58, 42, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 58, 42, 0.1);
  --shadow-lg: 0 8px 40px rgba(26, 58, 42, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 58, 42, 0.08);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(245, 240, 232, 0.97);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-brand-mark {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--green);
  border-radius: 8px;
}

.nav-brand-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nav-brand-text em {
  font-style: italic;
  font-weight: 400;
  color: var(--green-mid);
  font-size: 14px;
}

.nav-brand-text--light {
  color: var(--cream);
}

.nav-brand-text--light em {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--green);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--green);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--green-mid);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

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

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/8986132/pexels-photo-8986132.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 58, 42, 0.88) 0%,
    rgba(45, 90, 63, 0.75) 50%,
    rgba(26, 58, 42, 0.85) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 860px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(245, 240, 232, 0.8);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 44px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245, 240, 232, 0.5);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 90, 63, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 240, 232, 0.4);
}

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

.btn-light {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 240, 232, 0.4);
}

.btn-outline-light:hover {
  background: var(--cream);
  color: var(--green-dark);
  border-color: var(--cream);
  transform: translateY(-2px);
}

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

/* ---- SECTION HEADERS ---- */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--green-dark);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--green-mid);
}

/* ---- SERVICES ---- */
.services {
  padding: 120px 0;
  background: var(--cream-light);
}

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

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  border: 1px solid rgba(26, 58, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

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

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 90, 63, 0.08);
  border-radius: var(--radius);
  margin-bottom: 24px;
  color: var(--green);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--green);
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

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

/* ---- ABOUT ---- */
.about {
  padding: 120px 0;
  background: var(--cream);
}

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

.about-image {
  position: relative;
}

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

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--green);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.15;
}

.about-content .section-title {
  margin-bottom: 28px;
}

.about-content p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--cream-dark);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--cream-dark);
}

/* ---- WHY US ---- */
.why {
  padding: 120px 0;
  background: var(--green-dark);
  color: var(--cream);
}

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

.why .section-eyebrow {
  color: var(--gold);
}

.why .section-title {
  color: var(--cream);
  margin-bottom: 48px;
}

.why-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.why-item:first-child {
  border-top: 1px solid rgba(245, 240, 232, 0.1);
}

.why-item-num {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  padding-top: 4px;
}

.why-item h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.why-item p {
  font-size: 15px;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.7;
}

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

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.why-image:hover img {
  transform: scale(1.05);
}

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

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-sub {
  font-size: 18px;
  color: rgba(245, 240, 232, 0.75);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- CONTACT ---- */
.contact {
  padding: 120px 0;
  background: var(--cream-light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info .section-title {
  margin-bottom: 44px;
}

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

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

.contact-item svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

.contact-item a {
  color: var(--green);
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--green-mid);
  text-decoration: underline;
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26, 58, 42, 0.06);
}

.contact-form-wrap h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--cream-light);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45, 90, 63, 0.1);
}

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

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

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  color: var(--green);
}

.form-success svg {
  width: 48px;
  height: 48px;
}

.form-success p {
  font-size: 16px;
  color: var(--text-mid);
}

/* ---- MAP ---- */
.map-section {
  background: var(--cream);
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 380px;
  filter: saturate(0.6) contrast(1.1);
  transition: filter var(--transition);
}

.map-section:hover iframe {
  filter: saturate(0.8) contrast(1.05);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--green-dark);
  color: var(--cream);
  padding: 80px 0 0;
}

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

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-brand-mark {
  color: var(--cream);
  border-color: var(--cream);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 15px;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.7;
  margin-top: 20px;
}

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

.footer-links strong,
.footer-contact strong {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.55);
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.8;
}

.footer-contact a {
  color: rgba(245, 240, 232, 0.55);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.35);
  text-align: center;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .about-image {
    order: -1;
    max-width: 500px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(245, 240, 232, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 20px;
    color: var(--green-dark);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    padding: 14px 32px;
    font-size: 16px;
  }

  .hero-container {
    padding: 100px 20px 80px;
  }

  .services {
    padding: 80px 0;
  }

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

  .service-card {
    padding: 28px 24px;
  }

  .about,
  .why,
  .contact {
    padding: 80px 0;
  }

  .about-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .why-grid {
    gap: 48px;
  }

  .why-image {
    order: -1;
  }

  .cta-banner {
    padding: 80px 0;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .hero-scroll {
    display: none;
  }
}

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

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

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

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

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