/* =========================
   1. VARIABLES
========================= */

:root {
  --navy: #0b2341;
  --navy-2: #123a63;
  --blue: #1d75bd;
  --gold: #c9a34a;

  --gray: #f3f6f9;
  --text: #263342;
  --muted: #667789;
  --white: #ffffff;
  --line: #dce5ee;

  --shadow: 0 18px 45px rgba(11, 35, 65, 0.12);
  --radius: 22px;
  --max: 1180px;
}

/* =========================
   2. BASE
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

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

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

p {
  margin: 0 0 1rem;
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: auto;
}

/* =========================
   3. HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  width: 260px;
  height: 90px;
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 90px;
}

.logo-fallback {
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

/* =========================
   4. MENU
========================= */

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.menu a {
  font-weight: 650;
  color: #314255;
  font-size: 15px;
}

.menu a:hover,
.menu a.active {
  color: var(--blue);
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* =========================
   5. LANGUAGE SWITCH
========================= */

.lang-toggle {
  display: flex;
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 3px;
  overflow: hidden;
  background: #ffffff;
}

.lang-toggle a {
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue);
}

.lang-toggle a.active {
  background: var(--blue);
  color: #ffffff;
}

/* =========================
   6. BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border: 0;
  border-radius: 999px;
  padding: 13px 22px;

  font-weight: 800;
  cursor: pointer;
  transition: 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(29, 117, 189, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #1666a8;
}

.btn-secondary {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* =========================
   7. BURGER
========================= */

.burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
}

/* =========================
   8. HERO
========================= */

.hero {
  padding: 86px 0 64px;
  background: linear-gradient(135deg, #f7faff 0%, #ffffff 52%, #edf4fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--navy);
  letter-spacing: -0.04em;
}

.lead {
  font-size: 19px;
  color: #4d5f71;
  max-width: 720px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.caption {
  margin-top: 13px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

/* =========================
   9. SECTIONS
========================= */

.section {
  padding: 82px 0;
}

.section.alt {
  background: var(--gray);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head h2,
.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: var(--navy);
  margin: 0;
}

.section-head p {
  color: var(--muted);
  max-width: 680px;
}

/* =========================
   10. GRID
========================= */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* =========================
   11. CARDS
========================= */

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(11, 35, 65, 0.07);
  overflow: hidden;
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  line-height: 1.22;
}

.card p {
  color: var(--muted);
}

.card-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #dbe8f5, #f8fafc);
}

/* =========================
   12. ICON CARDS
========================= */

.icon-card {
  text-align: left;
  padding: 30px;
}

.icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #eef6fd;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 20px;
  color: var(--blue);
}

.icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

/* =========================
   13. SERVICE LIST
========================= */

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.small-link {
  font-weight: 850;
  color: var(--blue);
}

/* =========================
   14. REVIEWS SLIDER
========================= */

.reviews-slider {
  position: relative;
  overflow: hidden;
}

.review-track {
  display: flex;
  transition: transform 0.45s ease;
}

.review {
  min-width: 33.333%;
  padding: 0 12px;
}

.stars {
  color: #e2a900;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  background: #eef6fd;
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 12px;
}

.slider-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.ctrl {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
}

/* =========================
   15. STATS
========================= */

.stats {
  background: var(--navy);
  color: #ffffff;
}

.stats .section-head h2,
.stats .section-head p {
  color: #ffffff;
}

.stat {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.stat strong {
  display: block;
  font-size: 38px;
  color: #ffffff;
}

.stat span {
  color: #c9d6e4;
  font-weight: 700;
}

/* =========================
   16. CTA
========================= */

.cta {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #ffffff;
  text-align: center;
}

.cta h2 {
  color: #ffffff;
}

.cta p {
  color: #d7e3ee;
  max-width: 680px;
  margin: 12px auto 26px;
}

/* =========================
   17. PAGE HERO
========================= */

.page-hero {
  padding: 70px 0;
  background: linear-gradient(135deg, #f4f8fc, #ffffff);
}

.page-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 820px;
}

/* =========================
   18. SPLIT BLOCK
========================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;

  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}

.split img {
  height: 360px;
  width: 100%;
  object-fit: cover;
}

.split-text {
  padding: 48px;
}

.split-text h2 {
  color: var(--navy);
  font-size: 34px;
  margin: 0 0 12px;
}

/* =========================
   19. FORM / CONTACT
========================= */

.form-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-box,
.form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(11, 35, 65, 0.07);
}

.form label {
  display: block;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 16px;
  font: inherit;
}

.form textarea {
  min-height: 135px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}

.check input {
  width: auto;
  margin-top: 5px;
}

/* =========================
   20. MAP
========================= */

.map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 24px;
  margin-top: 28px;
}

/* =========================
   21. ARTICLE / BLOG
========================= */

.article {
  max-width: 880px;
  margin: auto;
}

.article img {
  height: 620px;
  width: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 25px 0;
}

.article h2 {
  color: var(--navy);
  margin-top: 34px;
}

/* =========================
   22. FOOTER
========================= */

.footer {
  background: #071b31;
  color: #d7e3ee;
  padding: 56px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer h3 {
  color: #ffffff;
  margin-top: 0;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: #d7e3ee;
}

.footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding-top: 18px;

  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.legal-links {
  display: flex;
  gap: 16px;
}

.legal-links a {
  margin: 0;
}

/* =========================
   23. REVIEWS EXTRA
========================= */

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: #dbe8f5;
}

.review-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.date {
  color: var(--blue);
  font-weight: 850;
  font-size: 14px;
}

/* =========================
   24. RESPONSIVE TABLET
========================= */

@media (max-width: 980px) {

  .menu,
  .actions .btn-primary {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav.open {
    height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px 0;
  }

  .nav.open .menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    order: 3;
    width: 100%;
    padding: 14px 0;
  }

  .nav.open .actions {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .hero-grid,
  .form-wrap,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-photo img {
    height: 650px;
  }

  .grid-3,
  .grid-4,
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .review {
    min-width: 50%;
  }

  .split img {
    height: 280px;
  }

}

/* =========================
   25. RESPONSIVE MOBILE
========================= */

@media (max-width: 640px) {

  .container {
    width: min(100% - 24px, var(--max));
  }

  .nav {
    height: 72px;
  }

  .hero {
    padding: 52px 0;
  }

  .section {
    padding: 56px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .service-list {
    grid-template-columns: 1fr;
  }

  .review {
    min-width: 100%;
  }

  .hero-buttons,
  .section-head {
    display: block;
  }

  .btn {
    width: 100%;
    margin-top: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo img,
  .article img {
    height: 550px;
  }

  .split-text {
    padding: 28px;
  }

  .logo {
    width: 120px;
  }

}
/* =========================
   ACE AUTO CLUB PROMO
========================= */

.ace-promo {
  position: relative;
  padding: 95px 0;
  background: #dce3eb;
  border-top: 1px solid #c9d3de;
  border-bottom: 1px solid #c9d3de;
  overflow: hidden;
}

.ace-promo::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 34px;
  pointer-events: none;
}

.ace-promo-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.ace-promo-image {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(11, 35, 65, 0.18);
}

.ace-promo-image img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.ace-promo-content {
  max-width: 700px;
}

.ace-promo-content .eyebrow {
  color: var(--navy);
  margin-bottom: 16px;
}

.ace-badge {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 12px 18px;
  background: #d71920;
  color: #ffffff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(215, 25, 32, 0.28);
}

.ace-promo-content h2 {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ace-promo-content p {
  margin: 0 0 16px;
  color: #34465a;
  font-size: 18px;
  line-height: 1.75;
}

.ace-promo-actions {
  margin-top: 30px;
}

.ace-promo-actions .btn {
  width: auto;
}

/* TABLET */
@media (max-width: 980px) {
  .ace-promo {
    padding: 70px 0;
  }

  .ace-promo::before {
    inset: 14px;
  }

  .ace-promo-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ace-promo-image img {
    height: 360px;
  }
}

/* MOBILE */
@media (max-width: 640px) {
  .ace-promo {
    padding: 56px 0;
  }

  .ace-promo-content h2 {
    font-size: 34px;
  }

  .ace-promo-content p {
    font-size: 16px;
  }

  .ace-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
    border-radius: 18px;
    line-height: 1.35;
  }

  .ace-promo-actions .btn {
    width: 100%;
  }

  .ace-promo-image img {
    height: 300px;
  }
}