/* ============================================================
   ARES — Automotive Real Estate Solutions
   Brand: Navy #0A0F1E | Red #C8102E | White #F5F5F5 | Steel #B0B8C1
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,600;0,700;1,300&family=Barlow+Condensed:wght@400;600;700&display=swap');

:root {
  --navy:    #0A0F1E;
  --navy2:   #111827;
  --red:     #C8102E;
  --red2:    #E8102E;
  --white:   #F5F5F5;
  --steel:   #B0B8C1;
  --dim:     #6B7280;
  --card-bg: #141B2D;
  --border:  rgba(200,16,46,0.25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 88px;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .nav-logo img {
  height: 80px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

nav ul a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1px;
  background: var(--red);
  transition: right 0.25s ease;
}

nav ul a:hover,
nav ul a.active { color: var(--white); }
nav ul a:hover::after,
nav ul a.active::after { right: 0; }

nav .nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 2px;
  transition: background 0.2s !important;
}
nav .nav-cta:hover { background: var(--red2) !important; }
nav .nav-cta::after { display: none !important; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── SECTION BASE ── */
section {
  position: relative;
  z-index: 1;
  padding: 120px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(200,16,46,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 10% 80%, rgba(200,16,46,0.06) 0%, transparent 60%),
              var(--navy);
  z-index: 0;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,16,46,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,16,46,0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-top: 80px;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--red);
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 32px;
}

.hero h1 span { color: var(--red); }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 300;
  color: var(--steel);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.6;
}

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

.btn-primary {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 14px 36px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--red2); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  text-decoration: none;
  padding: 13px 36px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(245,245,245,0.3);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--white); }

/* ── SECTION HEADINGS ── */
.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--red);
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

h2 span { color: var(--red); }

.section-lead {
  font-size: 1.05rem;
  color: var(--steel);
  max-width: 600px;
  margin-bottom: 60px;
  line-height: 1.7;
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px;
  transition: border-color 0.25s, transform 0.2s;
}
.card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(200,16,46,0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  color: var(--steel);
  line-height: 1.65;
}

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 24px 0 40px;
}

/* ── RED ACCENT LINE ── */
.accent-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
  margin: 0 0 60px;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding: 48px;
  text-align: center;
}

footer img { height: 84px; margin-bottom: 20px; }

footer p {
  font-size: 0.85rem;
  color: var(--dim);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 20px 0;
  list-style: none;
}

footer .footer-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--red); }

/* ── FADE IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.7s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding-top: 176px;
  padding-bottom: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
  position: relative;
  z-index: 1;
}

.page-hero-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(200,16,46,0.08) 0%, transparent 60%),
              var(--navy);
  z-index: 0;
}

/* ── STAT BAND ── */
.stat-band {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px;
  display: flex;
  justify-content: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 6px;
}

/* ── FORM ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 14px 18px;
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.2s;
  outline: none;
}

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

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

/* ── JOURNEY MAP ── */
.journey-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 36px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 16px;
  transition: border-color 0.25s;
}
.journey-step:hover { border-color: var(--red); }

.step-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
  min-width: 60px;
  opacity: 0.5;
}

.step-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.step-content p { font-size: 0.95rem; color: var(--steel); }

.step-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  background: rgba(200,16,46,0.12);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: 2px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

/* ── HAMBURGER OPEN STATE (X animation) ── */
.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); }

/* ── RESPONSIVE — TABLET / SMALL DESKTOP ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 88px; left: 0; right: 0;
    background: var(--navy2);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 200;
  }
  nav ul.open { display: flex; }
  .hamburger { display: flex; }
  .hero { padding-left: 24px; padding-right: 24px; }
  section { padding: 80px 24px 60px; }
  .page-hero { padding-top: 140px; padding-left: 24px; padding-right: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-band { flex-direction: column; gap: 36px; padding: 36px 24px; }
  .journey-step { flex-direction: column; gap: 16px; padding: 24px; }
  .step-number { font-size: 2rem; min-width: auto; }
  footer { padding: 36px 24px; }
  footer .footer-links { flex-wrap: wrap; gap: 16px; }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}

/* ── RESPONSIVE — MOBILE ── */
@media (max-width: 600px) {
  nav { height: 72px; }
  nav .nav-logo img { height: 60px; }
  nav ul { top: 72px; }
  .hero { padding-left: 16px; padding-right: 16px; padding-top: 72px; }
  section { padding: 60px 16px 40px; }
  .page-hero { padding-top: 110px; padding-left: 16px; padding-right: 16px; padding-bottom: 40px; }
  .card { padding: 24px 20px; }
  .stat-band { padding: 28px 16px; gap: 28px; }
  .stat-num { font-size: 2.8rem; }
  footer { padding: 28px 16px; }
  footer img { height: 64px; }
  footer .footer-links { gap: 12px; }
  .journey-step { padding: 20px 16px; }
  h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .section-lead { font-size: 0.95rem; margin-bottom: 40px; }
  .btn-primary, .btn-secondary { padding: 13px 24px; font-size: 0.85rem; }
}
