/* ============================================================
   AutEk — Shared Stylesheet
   ============================================================ */

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

:root {
  --black:        #0e0e0e;
  --white:        #f8f7f4;
  --gray:         #5c5c6e;
  --gray-light:   #8888a0;
  --border:       #e2e0da;
  --accent-deep:  #3d3d8f;
  --accent-mid:   #5a5fc8;
  --accent-light: #8b8fd4;
  --accent-pale:  #eeeef8;
  --sans:         'DM Sans', sans-serif;
  --mono:         'DM Mono', monospace;
  --max:          1200px;
  --pad:          0 5vw;
  --focus-ring:   0 0 0 3px rgba(90,95,200,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent-deep);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: var(--mono);
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ── FOCUS ── */
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 2px;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-size: clamp(2.6rem, 4.5vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

h1 em, h2 em, h3 em { font-style: normal; color: var(--accent-mid); }
p { line-height: 1.8; font-size: 1rem; }

/* ── LAYOUT ── */
.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
}

section { padding: 6rem 0; }
.full-bleed { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); }

/* ── DEV BANNER ── */
.dev-banner {
  background: var(--accent-deep);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 0.55rem 1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  width: 100%;
  display: block;
  line-height: 1.4;
}

/* ── SITE HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* ── NAV ── */
nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 5vw;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-links li { margin: 0; padding: 0; }

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--accent-mid); }
.nav-links a.active { color: var(--accent-mid); }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-deep);
  border: 1px solid var(--accent-deep);
  padding: 0.45rem 1.25rem;
  border-radius: 2px;
  letter-spacing: 0.07em;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--accent-deep);
  color: var(--white) !important;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 0.75rem 5vw 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent-mid); }

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent-mid);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent-deep);
  border: 1px solid var(--accent-deep);
  padding: 0.9rem 2.25rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  border-radius: 2px;
  cursor: pointer;
}

.btn:hover { background: var(--accent-mid); border-color: var(--accent-mid); }

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

.btn-outline:hover {
  background: var(--accent-pale);
  border-color: var(--accent-mid);
  color: var(--accent-mid);
}

.btn-white {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--white);
  padding: 0.9rem 2.25rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
  white-space: nowrap;
  font-weight: 400;
}

.btn-white:hover { background: var(--accent-pale); }

/* ── HERO (home) ── */
.hero-section {
  padding: 5rem 0 5rem;
  min-height: calc(90vh - 100px);
  display: flex;
  align-items: center;
}

.hero-section .inner { position: relative; width: 100%; }

/* ── PAGE HERO (interior) ── */
.page-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { max-width: 800px; }

/* ── SHARED HERO ELEMENTS ── */
.hero-label {
  font-family: var(--mono);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-label::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--accent-mid);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 580px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

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

/* ── PIN DECORATION ── */
.pin-decoration {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.1;
  pointer-events: none;
}

.pin-line {
  width: 2px;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--accent-mid));
}

.pin-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-mid);
}

/* ── SERVICES GRID ── */
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.service-card {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.service-card:hover { background: var(--accent-pale); }

.service-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent-light);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.service-card p { font-size: 0.95rem; color: var(--gray); line-height: 1.75; }

/* ── PROCESS STEPS ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.process-step {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: background 0.2s;
}

.process-step:hover { background: var(--accent-pale); }

.process-step-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.process-step p { font-size: 0.92rem; color: var(--gray); line-height: 1.7; }

/* ── WHY GRID ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.why-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent-light);
  opacity: 0.5;
  margin-bottom: 1rem;
  line-height: 1;
}

.why-title { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.why-desc { font-size: 0.95rem; color: var(--gray); line-height: 1.75; }

/* ── CONTACT BAND (full bleed) ── */
.contact-band {
  background: var(--accent-deep);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.contact-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.contact-band::before {
  content: '';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-band::after {
  content: '';
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
}

.contact-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.contact-band-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 420px;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-logo { height: 26px; width: auto; }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.75rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray-light);
  font-family: var(--mono);
}

/* ── SKILL LIST ── */
.skill-list { list-style: none; border-top: 1px solid var(--border); }

.skill-list li {
  font-size: 0.95rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: color 0.2s;
}

.skill-list li:hover { color: var(--accent-mid); }

.skill-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── PLACEHOLDER ── */
.placeholder,
.form-placeholder {
  border: 1.5px dashed var(--accent-light);
  background: var(--accent-pale);
  border-radius: 4px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--accent-mid);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── SECTION SEPARATOR (alternating feel) ── */
.section-alt {
  background: rgba(238,238,248,0.35);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── TABLET (max 1024px) ── */
@media (max-width: 1024px) {
  :root { --max: 100%; --pad: 0 3rem; }
  .why-grid { gap: 2rem; }
}

/* ── MOBILE (max 700px) ── */
@media (max-width: 700px) {
  :root { --pad: 0 1.25rem; }

  section { padding: 4rem 0; }

  /* Nav */
  nav { height: 56px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-section { min-height: auto; padding: 3rem 0 3.5rem; }
  .pin-decoration { display: none; }
  .hero-label { font-size: 0.72rem; flex-wrap: wrap; margin-bottom: 1rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 2rem; }

  /* Page heroes */
  .page-hero { padding: 3rem 0 2.5rem; }
  .page-hero h1 { max-width: 100%; }

  /* Grids */
  .services-preview-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Contact band */
  .contact-band { padding: 3rem 0; }
  .contact-band-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-right { align-items: flex-start; }
  .footer-links { gap: 1.25rem; justify-content: flex-start; }

  /* Buttons */
  .btn, .btn-outline { padding: 0.8rem 1.75rem; }
}
