/* ============================================
   Frank Rauchfuss's Garage — Stylesheet
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy:        #0f2744;
  --navy-light:  #163558;
  --navy-dark:   #0a1d33;
  --gold:        #c8962e;
  --gold-light:  #dbb056;
  --gold-dark:   #a67a1e;
  --white:       #ffffff;
  --off-white:   #f7f5f0;
  --gray-50:     #faf9f7;
  --gray-100:    #f2f0ec;
  --gray-200:    #e6e2db;
  --gray-300:    #ccc6bc;
  --gray-400:    #a09888;
  --gray-500:    #6e665a;
  --gray-600:    #4a443a;
  --gray-700:    #2e2820;
  --text:        #1a1612;
  --text-muted:  #5c554a;
  --shadow-sm:   0 1px 3px rgba(15,39,68,0.06), 0 1px 2px rgba(15,39,68,0.04);
  --shadow-md:   0 4px 16px rgba(15,39,68,0.08), 0 2px 6px rgba(15,39,68,0.04);
  --shadow-lg:   0 12px 40px rgba(15,39,68,0.12), 0 4px 12px rgba(15,39,68,0.06);
  --shadow-xl:   0 24px 60px rgba(15,39,68,0.16);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
}

/* ---------- 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-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-gold { color: var(--gold); }

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

/* ---------- Section Shared ---------- */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-sub { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border: 2px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border: 2px solid var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-white-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 39, 68, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.header.scrolled { background: rgba(10, 29, 51, 0.97); box-shadow: var(--shadow-lg); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
}
.logo-icon { color: var(--gold); flex-shrink: 0; }
.logo-text { font-family: var(--font-serif); }
.logo-dot { color: var(--gold); }

/* Nav */
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-list a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle-bar {
  width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, #1a3a5c 70%, #1e4468 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("https://images.pexels.com/photos/8478239/pexels-photo-8478239.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080");
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  mix-blend-mode: luminosity;
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 780px;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 28px; height: 1.5px; background: var(--gold); opacity: 0.6;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.hero-trust { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 14px; font-weight: 500;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }
.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ---------- SERVICES ---------- */
.services {
  padding: 100px 0;
  background: var(--gray-50);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- ABOUT ---------- */
.about { padding: 100px 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image { position: relative; }
.about-image img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.about-image-accent {
  position: absolute; bottom: -20px; right: -20px;
  width: 160px; height: 160px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.3;
}
.about-content .lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-content p { font-size: 1rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }
.about-features { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-feature { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 500; color: var(--gray-700); }

/* ---------- WHY US ---------- */
.why-us {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("https://images.pexels.com/photos/3807811/pexels-photo-3807811.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=800");
  background-size: cover; background-position: center;
  opacity: 0.06;
}
.why-us .container { position: relative; z-index: 1; }
.why-us .section-eyebrow { color: var(--gold-light); }
.why-us .section-title { color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.why-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
}
.why-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.why-card p { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.75; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("https://images.pexels.com/photos/12555015/pexels-photo-12555015.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=600");
  background-size: cover; background-position: center;
  opacity: 0.1;
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-text { font-size: 1.1rem; color: rgba(15,39,68,0.7); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white-outline { border-color: rgba(15,39,68,0.4); color: var(--navy-dark); }
.btn-white-outline:hover { background: var(--navy-dark); color: var(--white); border-color: var(--navy-dark); }

/* ---------- CONTACT ---------- */
.contact { padding: 100px 0; background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-lead { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; }
.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.contact-item strong { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 4px; }
.contact-item span, .contact-item a { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.contact-item a:hover { color: var(--gold); }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-sub { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200,150,46,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-privacy { font-size: 12px; color: var(--gray-400); text-align: center; margin-top: 14px; }
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success svg { margin: 0 auto 16px; }
.form-success h4 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.form-success p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.6); }
.footer-inner { padding: 64px 0 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.logo-light { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; transition: var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-col address { font-size: 0.9rem; line-height: 1.7; }
.footer-col a[href^="tel"] { color: var(--gold); font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; }

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
  .about-image img { height: 380px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(10,29,51,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: var(--transition);
  }
  .nav-list.open { transform: translateX(0); }
  .nav-list a { font-size: 17px; padding: 14px 16px; width: 100%; }
  .nav-cta { margin-left: 0 !important; text-align: center; margin-top: 12px; }

  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero-trust { gap: 16px; }
  .hero-wave svg { height: 40px; }

  .services { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 24px; }

  .about { padding: 72px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image img { height: 280px; }
  .about-image-accent { width: 100px; height: 100px; bottom: -12px; right: -12px; }
  .about-features { grid-template-columns: 1fr; }

  .why-us { padding: 72px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 28px 24px; }

  .cta-banner { padding: 56px 0; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  .contact { padding: 72px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 36px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-title { font-size: 1.75rem; }
  .hero-title { font-size: 1.85rem; }
  .hero-sub { font-size: 0.95rem; }
  .footer-links { grid-template-columns: 1fr; }
}
