/* ============================================
   Schipp's Automotive Repair — Stylesheet
   Palette: Deep Navy (#0f1d36) + Warm Gold (#c9a84c)
   Fonts: Playfair Display + Inter
============================================ */

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

:root {
  --navy: #0f1d36;
  --navy-light: #1a2d4a;
  --navy-dark: #091324;
  --gold: #c9a84c;
  --gold-light: #dfc06e;
  --gold-dark: #a8872e;
  --cream: #f7f4ee;
  --cream-dark: #efe9dd;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --text-muted: #8a8a8a;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 29, 54, 0.08);
  --shadow-md: 0 8px 30px rgba(15, 29, 54, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 29, 54, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
}

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

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

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

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

/* ============================================
   HEADER
============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 29, 54, 0.08);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(247, 244, 238, 0.97);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo-mark {
  color: var(--gold);
}

.logo-light {
  color: var(--white);
}

.logo-light .logo-mark {
  color: var(--gold);
}

/* NAV */
.nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav a {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav a:hover {
  color: var(--navy);
  background: rgba(15, 29, 54, 0.06);
}

.nav-cta {
  background: var(--navy) !important;
  color: var(--gold) !important;
  border-radius: var(--radius) !important;
  padding: 10px 20px !important;
  margin-left: 8px;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: var(--navy-light) !important;
  transform: translateY(-1px);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
============================================ */
.hero {
  padding-top: 76px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 24px;
}

.gold-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

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

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

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

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

.trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Hero Image */
.hero-image {
  position: relative;
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 200px;
  height: 200px;
  background: var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.2;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

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

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

/* ============================================
   SECTION COMMON
============================================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

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

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title--light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
}

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

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

.service-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, 0.2);
  background: var(--white);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: var(--gold);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

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

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

.about-image {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--cream);
}

.about-img-accent img {
  display: block;
}

.about-content .section-eyebrow {
  text-align: left;
}

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

.about-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 28px 0 32px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.value-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-content .btn {
  margin-top: 8px;
}

/* ============================================
   WHY US
============================================ */
.why {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  position: relative;
}

.why-card {
  padding: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
}

.why-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.why-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.why-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.925rem;
  line-height: 1.75;
}

/* ============================================
   CTA BANNER
============================================ */
.cta-banner {
  padding: 80px 0;
  background: var(--cream-dark);
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

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

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.cta-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 480px;
  line-height: 1.7;
}

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

/* ============================================
   CONTACT
============================================ */
.contact {
  padding: 100px 0;
  background: var(--white);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: var(--radius);
  color: var(--gold);
  flex-shrink: 0;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.info-card p,
.info-card a {
  font-size: 0.925rem;
  color: var(--text-light);
  line-height: 1.6;
}

.info-card a:hover {
  color: var(--gold-dark);
}

/* Form */
.contact-form-wrap {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 28px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(15, 29, 54, 0.15);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

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

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

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-success svg {
  color: var(--gold-dark);
  flex-shrink: 0;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 0;
}

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

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

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

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

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

.footer-contact li:not(:last-child) {
  /* spacing handled by gap */
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   ANIMATIONS
============================================ */
.fade-up {
  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);
}

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

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

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

  .why-grid {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 80px 0 60px;
  }

  .hero-desc {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-trust {
    justify-content: center;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }

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

  .about-content .section-eyebrow,
  .about-content .section-title {
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-content .btn {
    display: inline-flex;
  }

  .about-content {
    text-align: center;
  }

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

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

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

  .nav ul {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(247, 244, 238, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(15, 29, 54, 0.08);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav ul.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
    margin-top: 8px;
  }

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

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

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

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

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

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

  .about-img-accent {
    right: -10px;
    bottom: -16px;
  }

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

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

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

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

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

  .about-values {
    grid-template-columns: 1fr;
  }

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

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