/* =======================================================
   CAR CONNECT LOS ANGELES — GLOBAL STYLES
   ======================================================= */

:root {
  --bg: #f6f4ee;
  --bg-warm: #efebe1;
  --ink: #0f0f0e;
  --ink-soft: #2a2a28;
  --muted: #6f6c63;
  --line: #1f1f1d;
  --line-soft: #d9d4c6;
  --accent: #c1272d;       /* signature red */
  --accent-deep: #8b1a1f;
  --gold: #b08d3a;
  --white: #ffffff;
  --radius: 4px;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', ui-serif, Georgia, serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* ---------- TOP STRIP ---------- */
.topstrip {
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
}
.topstrip span { opacity: 0.75; }
.topstrip a { color: var(--bg); border-bottom: 1px dotted rgba(255,255,255,0.4); }

@media (max-width: 720px) {
  .topstrip { justify-content: center; }
  .topstrip .hide-mobile { display: none; }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 700;
}
.brand-top {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.brand-name {
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 10px 18px !important;
  border-radius: 99px;
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent); }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  width: 40px; height: 40px;
  cursor: pointer;
  border-radius: 99px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { bottom: 14px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--pad) 32px;
    gap: 20px;
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 18px; }
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(60px, 9vw, 120px) var(--pad) clamp(40px, 6vw, 80px);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 116px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 14ch;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-sub {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 19px);
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 99px;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .22s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); padding: 10px 0; }
.btn-ghost::after { content: '→'; transition: transform .22s; }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- SECTION SCAFFOLD ---------- */
section { padding: clamp(60px, 8vw, 110px) var(--pad); }
.wrap { max-width: var(--max); margin: 0 auto; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-top: 12px;
  max-width: 16ch;
}
.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.section-head .lead {
  max-width: 44ch;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- MISSION STRIP ---------- */
.mission {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(60px, 8vw, 110px) var(--pad);
}
.mission .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.mission .label { color: var(--accent); }
.mission p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.mission p em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
@media (max-width: 760px) { .mission .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stat {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .lbl {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}

/* ---------- COMPANY CARDS ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.featured-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.featured-card:hover { transform: translateY(-4px); border-color: var(--ink); }
.featured-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.featured-card .badge::before { content: '★'; font-size: 13px; }
.featured-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.featured-card .cat {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.featured-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.featured-card .meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.featured-card .meta a:hover { color: var(--accent); }

.standard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.standard-card {
  background: var(--bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .2s;
}
.standard-card:hover { background: var(--bg-warm); }
.standard-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.standard-card .cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.standard-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.standard-card .ph { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- NETWORK PAGE: COMPANY ROWS ---------- */
.company-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.company-row .idx {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.company-row.standard .idx { color: var(--ink); opacity: 0.25; }
.company-row .info h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 8px;
}
.company-row .cat {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.company-row .desc { color: var(--ink-soft); margin-bottom: 20px; }
.company-row .links { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 13px; color: var(--muted); }
.company-row .links a:hover { color: var(--accent); }
.company-row .gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.company-row .gallery img,
.company-row .gallery .ph-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-warm);
  border-radius: var(--radius);
}
.company-row .gallery .ph-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.company-row .reviews { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.company-row .review {
  background: var(--bg-warm);
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
}
.company-row .review .who { font-style: normal; font-weight: 600; color: var(--ink); margin-top: 6px; display: block; font-size: 12px; letter-spacing: 0.06em; }

@media (max-width: 880px) {
  .company-row { grid-template-columns: 1fr; gap: 16px; }
  .company-row .idx { font-size: 32px; }
}

/* ---------- SHOWCASE GRID ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.showcase-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.showcase-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ink);
  overflow: hidden;
}
.showcase-thumb iframe,
.showcase-thumb video,
.showcase-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}
.showcase-card .body { padding: 22px; }
.showcase-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.showcase-card .meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.showcase-card p { color: var(--ink-soft); font-size: 14px; }

/* ---------- FORMS ---------- */
.form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  transition: border-color .2s;
  font-family: var(--font-body);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-message { padding: 14px 16px; border-radius: var(--radius); font-size: 14px; }
.form-message.success { background: #e6f1e6; color: #1c5c1c; border: 1px solid #b3d6b3; }
.form-message.error { background: #fbe8e8; color: #8b1a1f; border: 1px solid #f0bcbc; }

/* ---------- CONTACT GRID ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-block .label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-block .val {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact-block a:hover { color: var(--accent); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px var(--pad) 32px;
  margin-top: 0;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer-brand p { color: rgba(246,244,238,0.65); max-width: 36ch; font-size: 14px; }
.footer h4 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--accent);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(246,244,238,0.75); font-size: 14px; }
.footer ul a:hover { color: var(--bg); }
.footer-bottom {
  max-width: var(--max);
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(246,244,238,0.12);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(246,244,238,0.5);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- EMPTY STATE ---------- */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius);
}

/* ---------- LOADING ---------- */
.skeleton { background: linear-gradient(90deg, var(--bg-warm) 25%, #e3deca 50%, var(--bg-warm) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: all .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- UTIL ---------- */
.text-accent { color: var(--accent); }
.divider { height: 1px; background: var(--line-soft); margin: 32px 0; }
