/* ========================================
   Grease Rags Garage — Custom Styles
   Deep Navy + Warm Gold Editorial Theme
======================================== */

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

:root {
  --navy: #0f1e3a;
  --navy-light: #1a2d4f;
  --navy-dark: #091428;
  --gold: #c8973e;
  --gold-light: #d4a84b;
  --gold-dark: #b08230;
  --cream: #f8f5ef;
  --cream-dark: #efe9dd;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #6b6b6b;
  --text-on-dark: #e8e4dc;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --radius: 8px;
  --transition: 0.3s ease;
}

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

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

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--spacing-xs);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: var(--spacing-md);
}

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

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

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

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

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

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

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

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

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 30, 58, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 151, 62, 0.15);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.125rem;
  border-radius: var(--radius);
}

.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  list-style: none;
}

.main-nav a {
  color: var(--text-on-dark);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

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

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

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

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

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

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

/* --- Nav Overlay --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.nav-overlay a {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--white);
  transition: color var(--transition);
}

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 20, 40, 0.82) 0%,
    rgba(15, 30, 58, 0.88) 50%,
    rgba(9, 20, 40, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: var(--spacing-md) 0;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--spacing-sm);
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  line-height: 1.05;
}

.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  color: var(--text-on-dark);
  max-width: 600px;
  margin: 0 auto var(--spacing-md);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Services --- */
.services {
  padding: var(--spacing-xl) 0;
  background: var(--cream);
}

.services .section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  box-shadow: 0 2px 12px rgba(15, 30, 58, 0.06);
  border: 1px solid rgba(15, 30, 58, 0.06);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(15, 30, 58, 0.12);
  border-color: rgba(200, 151, 62, 0.2);
}

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

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

/* --- About --- */
.about {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: 0 8px 32px rgba(15, 30, 58, 0.15);
}

.about-content {
  padding: var(--spacing-md) 0;
}

.about-content p {
  color: var(--text-light);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: var(--spacing-sm);
}

.about-stats {
  display: flex;
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0;
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.stat {
  text-align: center;
  flex: 1;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Why Us --- */
.why-us {
  padding: var(--spacing-xl) 0;
  background: var(--navy);
}

.why-us .section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

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

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.why-card {
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  border: 1px solid rgba(200, 151, 62, 0.12);
  transition: all var(--transition);
}

.why-card:hover {
  border-color: rgba(200, 151, 62, 0.35);
}

.why-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
  opacity: 0.6;
}

.why-card h3 {
  font-size: 1.375rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

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

/* --- CTA Banner --- */
.cta-banner {
  padding: var(--spacing-xl) 0;
  background: var(--cream);
}

.cta-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: var(--spacing-sm);
}

.cta-sub {
  font-size: 1.0625rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.cta-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Contact --- */
.contact {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.contact-info {
  padding: var(--spacing-md) 0;
}

.contact-info .section-title {
  margin-bottom: var(--spacing-md);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.contact-item {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
}

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

.contact-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.125rem;
}

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

.contact-item a {
  color: var(--gold-dark);
}

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

/* --- Contact Form --- */
.contact-form-wrap {
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  border: 1px solid var(--cream-dark);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.form-success {
  display: none;
  margin-top: var(--spacing-sm);
  padding: 1rem;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius);
  color: #2e7d32;
  font-weight: 500;
  text-align: center;
}

.form-success.show {
  display: block;
}

/* --- Map --- */
.map-section {
  background: var(--navy-dark);
}

.map-section iframe {
  display: block;
  filter: grayscale(0.3);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand .logo {
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  color: var(--text-on-dark);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

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

.footer-links a,
.footer-contact a {
  color: var(--text-on-dark);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

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

.footer-contact li {
  color: var(--text-on-dark);
  font-size: 0.9375rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--spacing-md);
  text-align: center;
}

.footer-bottom p {
  color: rgba(232, 228, 220, 0.4);
  font-size: 0.8125rem;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

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

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

  .main-nav {
    display: none;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

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

  .about-image {
    order: -1;
  }

  .about-image img {
    aspect-ratio: 16/9;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .about-stats {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

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