/* ==========================================================================
   Lyhnidas Auto Group – Landing page styles
   ========================================================================== */

:root {
  --navy: #071A33;
  --deep-blue: #0F3D75;
  --accent-blue: #0F63B8;
  --gold: #B8914B;
  --gold-light: #D6B36A;
  --white: #FFFFFF;
  --bg-soft: #F7F9FC;
  --charcoal: #1D2633;
  --border: #E5EAF1;

  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --header-h: 76px;
  --radius: 14px;
  --shadow-card: 0 10px 30px rgba(7, 26, 51, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(7, 26, 51, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em; }

p { margin: 0 0 1em; }
a { color: var(--accent-blue); }

.container { width: min(1160px, 92%); margin-inline: auto; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.section-head { max-width: 780px; margin: 0 auto clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.section-lead { font-size: 1.06rem; color: #46536a; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  position: relative;
}

.icon {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 0.6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-heading);
  font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 10px;
  padding: 0.8em 1.5em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1em 1.8em; font-size: 0.98rem; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(184, 145, 75, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 28px rgba(184, 145, 75, 0.45); }

.btn-navy { background: var(--navy); color: var(--white); box-shadow: 0 8px 22px rgba(7, 26, 51, 0.25); }
.btn-navy:hover { background: var(--deep-blue); box-shadow: 0 12px 28px rgba(7, 26, 51, 0.3); }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.75); color: var(--white); background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(2px); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(7, 26, 51, 0.1); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--header-h);
}

.brand img { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav ul { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  font-family: var(--font-heading);
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  padding: 0.4em 0; position: relative;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav ul a:hover::after, .main-nav ul a:focus-visible::after { transform: scaleX(1); }

.nav-cta { padding: 0.65em 1.3em; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; border-radius: 2px;
  background: var(--navy); margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  overflow: hidden;
}

.hero-bg, .hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7, 26, 51, 0.94) 0%, rgba(7, 26, 51, 0.82) 45%, rgba(15, 61, 117, 0.55) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 860px; }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(214, 179, 106, 0.45);
  border-radius: 999px;
  padding: 0.5em 1.2em;
  margin-bottom: 1.6rem;
  background: rgba(7, 26, 51, 0.35);
}

.hero h1 { color: var(--white); margin-bottom: 0.5em; }
.hero h1 .gold { color: var(--gold-light); display: block; margin-top: 0.25em; }

.hero-sub {
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  max-width: 640px;
}

.hero-support {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 660px;
  margin-bottom: 2rem;
}

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

.hero-serving {
  display: flex; align-items: flex-start; gap: 0.5em;
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); margin: 0;
}
.hero-serving .icon { color: var(--gold-light); margin-top: 0.2em; }

/* ==========================================================================
   Inventory intro
   ========================================================================== */

.inventory-intro { background: var(--bg-soft); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(184, 145, 75, 0.45);
}

.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--deep-blue));
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}
.feature-icon .icon { width: 26px; height: 26px; }

.feature-card h3 { margin-bottom: 0.4em; }
.feature-card p { margin: 0; font-size: 0.95rem; color: #46536a; }

.availability-cta {
  margin-top: 2.6rem;
  display: flex; align-items: center; gap: 1.2rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.8rem;
}
.availability-cta > .icon { width: 42px; height: 42px; color: var(--accent-blue); }
.availability-cta strong { font-family: var(--font-heading); color: var(--navy); letter-spacing: 0.02em; }
.availability-cta p { margin: 0.15em 0 0; font-size: 0.95rem; color: #46536a; }

/* ==========================================================================
   Split sections (Why / Local)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.split-text .eyebrow { margin-bottom: 0.7rem; }
.split-text h2 { text-align: left; }

.split-media {
  margin: 0; position: relative;
  border-radius: var(--radius);
}
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover);
  width: 100%; object-fit: cover;
}
.split-media::after {
  content: "";
  position: absolute; inset: auto -14px -14px auto;
  width: 55%; height: 55%;
  border: 3px solid var(--gold-light);
  border-radius: var(--radius);
  z-index: -1;
  transform: translate(0, 0);
}

.feature-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-list .check {
  flex: none;
  width: 30px; height: 30px; margin-top: 0.15em;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
}
.feature-list .check .icon { width: 16px; height: 16px; stroke-width: 3; }
.feature-list strong { font-family: var(--font-heading); font-size: 1rem; color: var(--navy); letter-spacing: 0.02em; }
.feature-list p { margin: 0.2em 0 0; font-size: 0.95rem; color: #46536a; }

/* Local section */
.local { background: var(--bg-soft); }
.local-media img { max-height: 520px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 0; padding: 0; }
.chips li {
  font-family: var(--font-heading);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--deep-blue);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  box-shadow: 0 3px 10px rgba(7, 26, 51, 0.05);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.chips li:hover {
  background: var(--navy); color: var(--gold-light);
  border-color: var(--navy); transform: translateY(-2px);
}

/* ==========================================================================
   Trust
   ========================================================================== */

.trust {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(15, 99, 184, 0.35), transparent 60%),
    radial-gradient(700px 340px at 0% 110%, rgba(184, 145, 75, 0.18), transparent 60%),
    var(--navy);
  color: var(--white);
}

.section-head-light h2 { color: var(--white); }
.section-head-light .section-lead { color: rgba(255, 255, 255, 0.78); }
.eyebrow-gold { color: var(--gold-light); }

.badges {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.badges li {
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.8rem 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.badges li:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 179, 106, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.badges span:last-child {
  font-family: var(--font-heading);
  font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(214, 179, 106, 0.6);
  color: var(--gold-light);
  background: rgba(184, 145, 75, 0.1);
}
.badge-icon .icon { width: 26px; height: 26px; stroke-width: 1.8; }

/* ==========================================================================
   Lead capture
   ========================================================================== */

.notify { background: var(--white); }

.form-card {
  max-width: 880px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(7, 26, 51, 0.12);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-top: 5px solid var(--gold);
}

.form-intro { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.4rem;
  margin-bottom: 1.6rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-heading);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy);
}

.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem; color: var(--charcoal);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.8em 1em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 99, 184, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa7ba; }

.honey { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

.microcopy {
  margin: 1rem 0 0; text-align: center;
  font-size: 0.84rem; color: #7b8698;
}

.form-status { text-align: center; font-weight: 600; margin: 0.8rem 0 0; min-height: 1.4em; }
.form-status.success { color: #1d7a3d; }
.form-status.error { color: #b0322f; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--bg-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2.4rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}

.contact-details { margin: 0; display: grid; gap: 1.3rem; }
.contact-details dt {
  font-family: var(--font-heading);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.contact-details dd { margin: 0; font-size: 1.02rem; color: var(--charcoal); }
.contact-details a { color: var(--deep-blue); font-weight: 600; text-decoration: none; }
.contact-details a:hover { color: var(--accent-blue); text-decoration: underline; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.contact-actions .btn { font-size: 0.84rem; padding: 0.75em 1.3em; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  min-height: 420px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); }

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}

.footer-logo-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  width: 230px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-light);
  margin: 1.1rem 0 0;
}

.footer-about p { max-width: 480px; font-size: 0.95rem; margin: 0; }

.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85); text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.4rem 0;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Stagger cards and badges slightly */
.card-grid .reveal:nth-child(2), .badges .reveal:nth-child(2) { transition-delay: 0.08s; }
.card-grid .reveal:nth-child(3), .badges .reveal:nth-child(3) { transition-delay: 0.16s; }
.card-grid .reveal:nth-child(4), .badges .reveal:nth-child(4) { transition-delay: 0.24s; }
.badges .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature-card, .badges li, .chips li { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; }
  .footer-nav ul { display: flex; flex-wrap: wrap; gap: 1.4rem; }
}

@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 2; }
  .split-text h2 { text-align: left; }
  .local-media img { max-height: 360px; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(7, 26, 51, 0.12);
    padding: 0.6rem 4% 1.2rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 0.9em 0.2em; border-bottom: 1px solid var(--border); }
  .main-nav ul a::after { display: none; }
  .nav-cta { margin-top: 1rem; justify-content: center; }
}

@media (max-width: 560px) {
  .brand img { height: 44px; }
  .card-grid, .badges { grid-template-columns: 1fr; }
  .badges li { flex-direction: row; text-align: left; padding: 1.1rem 1.2rem; }
  .badge-icon { width: 46px; height: 46px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .availability-cta { flex-direction: column; align-items: flex-start; }
  .contact-card { padding: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
