/* =========================================================
   ATTITUDE AUTOWORKS — site.css
   Dark, modern automotive aesthetic
   Fonts: Syne (headings) + Inter (body) via Google Fonts
   ========================================================= */

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Custom properties ──────────────────────────────────── */
:root {
  --bg:         #080808;
  --surface:    #111111;
  --surface-2:  #1c1c1c;
  --navy:       #0f2460;
  --blue:       #3b82f6;
  --blue-dim:   rgba(59, 130, 246, 0.12);
  --blue-glow:  rgba(59, 130, 246, 0.25);
  --white:      #f0f0f0;
  --muted:      #555;
  --muted-2:    #999;
  --border:     rgba(255, 255, 255, 0.06);
  --border-2:   rgba(255, 255, 255, 0.12);
  --radius:     10px;
  --radius-lg:  18px;
  --max-w:      1200px;
  --nav-h:      72px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle film-grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Container ──────────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100% - 2rem);
  margin-inline: auto;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: 99px;
  flex-shrink: 0;
}

/* ── Navigation ─────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    background var(--transition),
    border-color var(--transition),
    backdrop-filter var(--transition);
}
.site-nav.scrolled {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

/* Logo badge — white pill so navy logo reads cleanly on dark bg */
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-badge {
  background: #fff;
  border-radius: 7px;
  padding: 5px 10px;
  line-height: 0;
  transition: opacity var(--transition);
}
.nav-logo-badge:hover { opacity: 0.85; }
.nav-logo-badge img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 0.125rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  color: var(--muted-2);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--blue-glow);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 99px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8,8,8,0.97);
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--blue); }
.mobile-nav .mobile-cta {
  margin-top: 1.5rem;
  font-size: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--blue);
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  border-bottom: none;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  letter-spacing: -0.01em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--blue-glow);
}
.btn-ghost {
  border: 1px solid var(--border-2);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(8,8,8,0.97) 32%, rgba(8,8,8,0.78) 58%, rgba(8,8,8,0.35) 100%),
    url('../images/997 White.png');
  background-size: cover;
  background-position: center right;
  transform: scale(1.04);
  will-change: transform;
}

.hero-inner {
  position: relative;
  max-width: 640px;
  padding-block: 6rem;
}

.hero-inner h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.02;
}
.hero-inner h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero-inner > p {
  font-size: 1.125rem;
  color: var(--muted-2);
  max-width: 44ch;
  margin-bottom: 2.25rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.hero-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.hero-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  color: var(--muted-2);
}

/* ── Section common ─────────────────────────────────────── */
section { padding-block: 5rem; }

.section-head {
  margin-bottom: 3rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}
.section-head p {
  font-size: 1.0625rem;
  color: var(--muted-2);
  max-width: 54ch;
  margin-top: 0.75rem;
  line-height: 1.72;
}

/* ── Service cards ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.875rem;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dim) 0%, transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.service-card:hover {
  border-color: rgba(59, 130, 246, 0.28);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--blue-dim);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}
.service-card > p {
  font-size: 0.9375rem;
  color: var(--muted-2);
  line-height: 1.65;
}
.service-list {
  margin-top: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.service-list li {
  font-size: 0.875rem;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.service-list li::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ── Horizontal scroll gallery ──────────────────────────── */
.work-scroll-wrap { overflow: hidden; }

.work-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  cursor: grab;
  user-select: none;
}
.work-scroll::-webkit-scrollbar { display: none; }
.work-scroll.dragging { cursor: grabbing; }

.work-card {
  flex: 0 0 370px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.work-card:hover img { transform: scale(1.06); }

.work-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.25rem 1.125rem;
  background: linear-gradient(transparent, rgba(8,8,8,0.92));
}
.work-label strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.work-label span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted-2);
  margin-top: 0.15rem;
}

/* ── Full gallery grid (work.html) ──────────────────────── */
.gallery-grid {
  columns: 3;
  column-gap: 1.25rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
  border-color: rgba(59,130,246,0.2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.55s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-label {
  padding: 0.875rem 1rem;
}
.gallery-label strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.gallery-label span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-2);
  margin-top: 0.15rem;
}

/* ── About / split section ──────────────────────────────── */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.split-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1.125rem;
}
.split-text p {
  font-size: 1rem;
  color: var(--muted-2);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.stat-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item .num {
  font-family: 'Syne', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
}
.stat-item .lbl {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* ── CTA band ───────────────────────────────────────────── */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  position: relative;
}
.cta-band p {
  font-size: 1rem;
  color: var(--muted-2);
  margin-top: 0.4rem;
  position: relative;
}
.cta-band .btn { flex-shrink: 0; position: relative; }

/* ── Contact page ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4.5rem;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.contact-info > p {
  color: var(--muted-2);
  line-height: 1.72;
  margin-bottom: 2.25rem;
}
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.375rem;
}
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--blue-dim);
  border: 1px solid rgba(59,130,246,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-copy strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.contact-copy a,
.contact-copy span {
  font-size: 0.9rem;
  color: var(--muted-2);
  transition: color var(--transition);
}
.contact-copy a:hover { color: var(--blue); }

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.125rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: #111; }

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
}

/* ── Page hero (inner pages) ────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.0;
}
.page-hero p {
  font-size: 1.0625rem;
  color: var(--muted-2);
  max-width: 55ch;
  line-height: 1.7;
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
}

/* ── Services detail sections ───────────────────────────── */
.services-detail-section {
  padding-block: 4.5rem;
}
.services-detail-section + .services-detail-section {
  border-top: 1px solid var(--border);
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo-badge {
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px 8px;
  line-height: 0;
}
.footer-logo-badge img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.reveal-group > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.25s; }

/* ── Responsive: tablet ─────────────────────────────────── */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .split-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 2.5rem; }
  .gallery-grid { columns: 2; }
  .hero-bg {
    background-image:
      linear-gradient(to bottom, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.7) 50%, rgba(8,8,8,0.85) 100%),
      url('../images/997 White.png');
    background-position: center center;
  }
}

/* ── Responsive: mobile ─────────────────────────────────── */
@media (max-width: 600px) {
  :root { --nav-h: 62px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  section { padding-block: 3.5rem; }
  .hero-inner { padding-block: 4rem; }
  .hero-inner h1 { font-size: 2.75rem; }
  .gallery-grid { columns: 1; }
  .work-card { flex: 0 0 280px; }
  .stat-row { gap: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-links { gap: 1rem; }
  .cta-band { padding: 2rem 1.5rem; }
  .contact-form { padding: 1.5rem; }
}
