/* ============================================================
   SQUARE CAR - Design system
   Palette from brand kit + mockups.
   ============================================================ */

:root {
  /* Brand palette (Square Car Brand Identity System) */
  --sq-blue: #0d63d6;        /* action / CTA (matches mockup royal blue buttons) */
  --sq-blue-dark: #0a4fac;   /* CTA hover */
  --sq-cyan: #00a6d6;        /* highlights, pixel accents, secondary icons */
  --sq-deep: #00507c;        /* wordmark, headings, nav links deep */
  --sq-navy: #0b3a63;        /* strong headings */
  --graphite: #1e242b;       /* body copy */
  --slate: #5a6472;          /* muted text */
  --silver: #d8dee2;         /* dividers, borders */
  --silver-2: #e7ebee;       /* soft borders */
  --offwhite: #f7f8f8;       /* primary background */
  --panel: #ffffff;
  --panel-soft: #f2f5f7;     /* card media background */
  --focus: #1a73e8;

  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 33, 54, .06);
  --shadow: 0 8px 24px rgba(16, 33, 54, .08);
  --shadow-md: 0 14px 40px rgba(16, 33, 54, .12);
  --shadow-lg: 0 24px 60px rgba(16, 33, 54, .16);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--graphite);
  background: var(--offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; color: var(--sq-deep); font-weight: 800; letter-spacing: -.01em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--soft { background: var(--panel); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--sq-blue); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--sq-cyan); border-radius: 2px;
}
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin-top: 14px; }
.section-head p { color: var(--slate); margin-top: 14px; font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 700; font-size: .98rem;
  border: 1.5px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid rgba(13, 99, 214, .35); outline-offset: 2px; }
.btn--primary { background: var(--sq-blue); color: #fff; box-shadow: 0 8px 20px rgba(13, 99, 214, .25); }
.btn--primary:hover { background: var(--sq-blue-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(13, 99, 214, .32); }
.btn--outline { background: transparent; color: var(--sq-blue); border-color: var(--sq-blue); }
.btn--outline:hover { background: rgba(13, 99, 214, .06); transform: translateY(-2px); }
.btn--ghost { background: var(--panel); color: var(--sq-deep); border-color: var(--silver); }
.btn--ghost:hover { border-color: var(--sq-blue); color: var(--sq-blue); }
.btn--light { background: #fff; color: var(--sq-blue); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--silver-2);
}
.nav { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__link {
  position: relative; color: var(--graphite); font-weight: 600; font-size: .96rem;
  padding: 6px 0; transition: color .2s;
}
.nav__link:hover { color: var(--sq-blue); }
.nav__link.active { color: var(--sq-blue); }
.nav__link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--sq-blue); border-radius: 2px;
}
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--silver);
  border-radius: 10px; background: #fff; position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
  background: var(--sq-deep); transform: translate(-50%, -50%); transition: transform .25s var(--ease), opacity .2s;
}
.nav__toggle span::before { transform: translate(-50%, -7px); }
.nav__toggle span::after { transform: translate(-50%, 7px); }
.nav-open .nav__toggle span { background: transparent; }
.nav-open .nav__toggle span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav-open .nav__toggle span::after { transform: translate(-50%, 0) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; margin: 0; padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--silver-2); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .25s;
  }
  .nav-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--silver-2); font-size: 1.05rem; }
  .nav__link.active::after { display: none; }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero (home) - full-bleed background image ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(540px, 80vh, 780px);
  display: flex; align-items: center; color: #fff;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 28, 51, .84) 0%, rgba(6, 28, 51, .58) 44%, rgba(6, 28, 51, .12) 100%),
    linear-gradient(180deg, rgba(6, 28, 51, .30), rgba(6, 28, 51, .55));
}
.hero__inner { width: 100%; padding-block: clamp(56px, 9vw, 104px); }
.hero__content { max-width: 780px; position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(2.5rem, 6.4vw, 4.7rem); color: #fff; line-height: 1.03; letter-spacing: -.02em; font-weight: 800;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .38);
}
.hero__lead {
  color: rgba(255, 255, 255, .93); font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  margin-top: 22px; max-width: 56ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 32px; }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: .95rem; }
.hero__badge .ic { width: 20px; height: 20px; color: var(--sq-cyan); flex: none; }
/* light-on-dark secondary button for the hero */
.hero .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }
.hero .btn--outline:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

@media (max-width: 640px) {
  .hero { min-height: 82vh; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ---------- Search / booking bar ---------- */
.search {
  background: #fff; border: 1px solid var(--silver-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 20px;
}
.search-band { background: var(--offwhite); }
.search--float { margin-top: -52px; position: relative; z-index: 20; }
@media (max-width: 640px) { .search--float { margin-top: -32px; } }
.search__row {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 16px; align-items: end;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label { font-size: .82rem; font-weight: 700; color: var(--sq-deep); }
.field__control {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--silver); border-radius: var(--radius-sm); padding: 0 12px; height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field__control:focus-within { border-color: var(--sq-blue); box-shadow: 0 0 0 3px rgba(13, 99, 214, .12); }
.field__control .ic { width: 18px; height: 18px; color: var(--slate); flex: none; }
.field__control input,
.field__control select {
  border: 0; outline: 0; background: transparent; width: 100%; height: 100%; font-size: .95rem; color: var(--graphite);
}
.field__control input::placeholder { color: #9aa4b0; }
.search__submit { height: 50px; }

@media (max-width: 940px) {
  .search__row { grid-template-columns: 1fr 1fr; }
  .search__submit { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .search__row { grid-template-columns: 1fr; }
}

/* ---------- Trust row under search ---------- */
.trust-row { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; }
.trust-row .item { display: inline-flex; align-items: center; gap: 10px; color: var(--slate); font-weight: 600; font-size: .92rem; }
.trust-row .ic { width: 20px; height: 20px; color: var(--sq-cyan); flex: none; }

/* ---------- Filter tabs ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-tab {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--silver);
  background: #fff; color: var(--slate); font-weight: 600; font-size: .92rem; transition: all .2s;
}
.filter-tab:hover { border-color: var(--sq-blue); color: var(--sq-blue); }
.filter-tab.active { background: var(--sq-blue); border-color: var(--sq-blue); color: #fff; }

/* ---------- Fleet grid + car cards ---------- */
.fleet-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px;
}
.car-card {
  background: #fff; border: 1px solid var(--silver-2); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .2s;
}
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--silver); }
/* Entrance: transform-only so a card can never render invisible. */
.fleet-grid .car-card { animation: sq-cardin .55s var(--ease) both; }
.fleet-grid .car-card:nth-child(2) { animation-delay: .07s; }
.fleet-grid .car-card:nth-child(3) { animation-delay: .14s; }
.fleet-grid .car-card:nth-child(4) { animation-delay: .21s; }
.fleet-grid .car-card:nth-child(5) { animation-delay: .28s; }
@keyframes sq-cardin { from { transform: translateY(16px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fleet-grid .car-card { animation: none; } }
.car-card__media {
  aspect-ratio: 16 / 11; background: var(--panel-soft); overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.car-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.car-card:hover .car-card__media img { transform: scale(1.04); }
.car-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.car-card__cat { color: var(--sq-blue); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.car-card__name { color: var(--sq-navy); font-size: 1.18rem; font-weight: 800; }
.car-card__specs {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--silver-2);
}
.car-card__spec { display: inline-flex; align-items: center; gap: 7px; color: var(--slate); font-size: .84rem; font-weight: 600; }
.car-card__spec .ic { width: 16px; height: 16px; color: var(--sq-cyan); flex: none; }
.car-card__price { margin-top: 16px; color: var(--slate); font-size: .82rem; }
.car-card__price b { display: block; color: var(--sq-navy); font-size: 1.35rem; font-weight: 800; }
.car-card__price b span { font-size: .82rem; font-weight: 600; color: var(--slate); }
.car-card__cta { margin-top: 16px; }

/* ---------- Stat pills / counters ---------- */
.stat-inline { display: flex; flex-wrap: wrap; gap: 40px; }
.stat-inline .stat { display: flex; align-items: center; gap: 14px; }
.stat-inline .stat .ic { width: 30px; height: 30px; color: var(--sq-blue); flex: none; }
.stat-inline .stat b { display: block; font-size: 1.9rem; color: var(--sq-navy); font-weight: 800; line-height: 1; }
.stat-inline .stat span { color: var(--slate); font-size: .92rem; }

/* ---------- Feature cards (services / values) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--silver-2); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .2s;
  text-align: center;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--silver); }
.feature-card__ic {
  width: 54px; height: 54px; margin: 0 auto 16px; color: var(--sq-deep);
}
.feature-card__ic img { width: 100%; height: 100%; object-fit: contain; }
.feature-card h3 { font-size: 1.12rem; color: var(--sq-navy); }
.feature-card .rule { width: 30px; height: 3px; background: var(--sq-cyan); border-radius: 2px; margin: 12px auto; }
.feature-card p { color: var(--slate); font-size: .95rem; }

/* compact left-aligned feature (services mockup grid) */
.feature-card--compact { text-align: left; padding: 22px; }
.feature-card--compact .feature-card__ic { width: 40px; height: 40px; margin: 0 0 14px; }
.feature-card--compact h3 { font-size: 1.02rem; }
.feature-card--compact p { font-size: .9rem; margin-top: 8px; }

/* ---------- Split content (services/about hero) ---------- */
.split {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.split--rev .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--panel-soft);
  border: 1px solid var(--silver-2); aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: -1; }
}

/* ---------- About proof row ---------- */
.proof-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; }
.proof {
  background: #fff; border: 1px solid var(--silver-2); border-radius: var(--radius); padding: 22px; text-align: center;
}
.proof b { display: block; font-size: 2rem; color: var(--sq-blue); font-weight: 800; line-height: 1; }
.proof span { color: var(--slate); font-size: .9rem; margin-top: 6px; display: block; }

/* small icon-title-text list (about values) */
.value-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px; }
.value__ic { width: 40px; height: 40px; color: var(--sq-deep); margin-bottom: 12px; }
.value h3 { font-size: 1.05rem; color: var(--sq-navy); }
.value p { color: var(--slate); font-size: .92rem; margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--sq-deep), var(--sq-blue));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: 8px; max-width: 52ch; }
.cta-band__inner { position: relative; z-index: 1; }
.cta-band__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__pixel { position: absolute; right: -20px; bottom: -30px; width: 220px; opacity: .18; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.form .field__control { height: auto; min-height: 50px; }
.form textarea { border: 0; outline: 0; background: transparent; width: 100%; resize: vertical; min-height: 120px; padding: 12px 0; font-size: .95rem; }
.form .field--textarea .field__control { align-items: flex-start; padding: 4px 12px; }
.form__submit { gap: 12px; }
.form__submit .ic { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.form__submit:hover .ic { transform: translateX(4px); }
.form-note { color: var(--slate); font-size: .82rem; display: flex; gap: 8px; align-items: flex-start; }
.form-note .ic { width: 16px; height: 16px; color: var(--sq-cyan); flex: none; margin-top: 2px; }
.field .error-msg { color: #c62828; font-size: .8rem; display: none; }
.field.invalid .field__control { border-color: #c62828; box-shadow: 0 0 0 3px rgba(198, 40, 40, .12); }
.field.invalid .error-msg { display: block; }
.form-success {
  display: none; align-items: center; gap: 12px; background: #e8f5ee; border: 1px solid #b7e0c6;
  color: #1b7a44; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600;
}
.form-success.show { display: flex; }
.form-success .ic { width: 22px; height: 22px; flex: none; }

.contact-cards { display: grid; gap: 18px; }
.contact-photo {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--silver-2);
  background: var(--panel-soft); aspect-ratio: 16 / 9;
}
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .info-cards { grid-template-columns: 1fr; } }
.info-card {
  background: #fff; border: 1px solid var(--silver-2); border-radius: var(--radius); padding: 18px;
  display: flex; gap: 14px;
}
.info-card .ic { width: 26px; height: 26px; color: var(--sq-blue); flex: none; }
.info-card h4 { color: var(--sq-navy); font-size: 1rem; margin-bottom: 4px; }
.info-card p { color: var(--slate); font-size: .9rem; }
.info-card a { color: var(--sq-blue); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--silver-2); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.gallery__main {
  background: var(--panel-soft); border: 1px solid var(--silver-2); border-radius: var(--radius-lg);
  aspect-ratio: 16 / 11; display: flex; align-items: center; justify-content: center; padding: 26px; overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 34px rgba(16,33,54,.20)); }
.gallery__thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gallery__thumb {
  width: 92px; aspect-ratio: 16/11; border-radius: var(--radius-sm); border: 1.5px solid var(--silver-2);
  background: var(--panel-soft); padding: 6px; overflow: hidden; transition: border-color .2s; cursor: pointer;
}
.gallery__thumb.active { border-color: var(--sq-blue); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.book-panel {
  position: sticky; top: 96px; background: #fff; border: 1px solid var(--silver-2);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px;
}
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.spec-item {
  border: 1px solid var(--silver-2); border-radius: var(--radius-sm); padding: 14px; display: flex; gap: 12px; align-items: center;
}
.spec-item .ic { width: 22px; height: 22px; color: var(--sq-cyan); flex: none; }
.spec-item small { color: var(--slate); font-size: .78rem; display: block; }
.spec-item b { color: var(--sq-navy); font-size: .96rem; }
.included { list-style: none; padding: 0; display: grid; gap: 10px; }
.included li { display: flex; gap: 10px; align-items: flex-start; color: var(--graphite); font-size: .95rem; }
.included .ic { width: 18px; height: 18px; color: #1fb574; flex: none; margin-top: 3px; }

/* ---------- Icons (inline svg) ---------- */
.ic { display: inline-block; vertical-align: middle; }
svg.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--silver-2); padding-block: 40px 28px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer__logo img { height: 30px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 26px; margin-inline: auto; }
.footer__nav a { color: var(--graphite); font-weight: 600; font-size: .94rem; transition: color .2s; }
.footer__nav a:hover, .footer__nav a.active { color: var(--sq-blue); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px; border: 1px solid var(--silver); border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--sq-deep); transition: all .2s;
}
.footer__social a:hover { border-color: var(--sq-blue); color: var(--sq-blue); transform: translateY(-2px); }
.footer__social .ic { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--silver-2);
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center;
  color: var(--slate); font-size: .86rem; text-align: center;
}
.footer__credit { color: var(--slate); }
.footer__credit a { color: var(--sq-deep); font-weight: 600; }
.footer__credit a:hover { color: var(--sq-blue); }

@media (max-width: 760px) {
  .footer__nav { width: 100%; order: 3; justify-content: center; margin: 6px 0; }
  .footer__top { justify-content: center; text-align: center; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(0, 166, 214, .10), transparent 60%),
    linear-gradient(180deg, #fbfcfd, #eef2f6);
  padding-block: clamp(48px, 7vw, 90px);
}
.page-hero__title { font-size: clamp(1.9rem, 4.6vw, 3.1rem); color: var(--sq-navy); max-width: 20ch; }
.page-hero__lead { color: var(--slate); font-size: 1.08rem; margin-top: 18px; max-width: 56ch; }

/* ---------- Immersive banner (full-bleed background image + text over) ---------- */
.banner {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  min-height: clamp(440px, 62vh, 620px);
  display: flex; align-items: center;
}
.banner__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
}
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 28, 51, .82) 0%, rgba(6, 28, 51, .58) 46%, rgba(6, 28, 51, .18) 100%),
    linear-gradient(180deg, rgba(6, 28, 51, .28), rgba(6, 28, 51, .52));
}
.banner--right::before {
  background:
    linear-gradient(270deg, rgba(6, 28, 51, .82) 0%, rgba(6, 28, 51, .58) 46%, rgba(6, 28, 51, .18) 100%),
    linear-gradient(180deg, rgba(6, 28, 51, .28), rgba(6, 28, 51, .52));
}
.banner__inner { width: 100%; padding-block: clamp(52px, 8vw, 92px); }
.banner__content { max-width: 640px; position: relative; z-index: 1; }
.banner--right .banner__content { margin-left: auto; text-align: right; }
.banner .eyebrow { color: #fff; }
.banner .eyebrow::before { background: var(--sq-cyan); }
.banner__title {
  font-size: clamp(2rem, 4.8vw, 3.4rem); color: #fff; line-height: 1.06; letter-spacing: -.02em;
  font-weight: 800; margin-top: 14px; text-shadow: 0 2px 22px rgba(0, 0, 0, .38);
}
.banner__lead {
  color: rgba(255, 255, 255, .93); font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  margin-top: 18px; max-width: 54ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.banner--right .banner__lead { margin-left: auto; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.banner--right .banner__actions { justify-content: flex-end; }
.banner .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }
.banner .btn--outline:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.banner__bg { animation: sq-hero-zoom 16s ease-out both; }

/* value tiles that sit on the banner (about page) */
.banner .value-list { margin-top: 30px; }
.banner .value h3 { color: #fff; }
.banner .value p { color: rgba(255, 255, 255, .86); }
.banner .value__ic { color: var(--sq-cyan); }

@media (max-width: 720px) {
  .banner { min-height: 74vh; }
  .banner--right .banner__content, .banner--right .banner__lead { text-align: left; margin-left: 0; }
  .banner--right .banner__actions { justify-content: flex-start; }
  .banner__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .banner__bg { animation: none; } }

/* ---------- Reveal animation (scroll) ----------
   Scoped to .js: without JavaScript, content stays fully visible. */
.js [data-reveal] {
  opacity: 0; transform: translateY(34px) scale(.97);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: .1s; }
.js [data-reveal-delay="2"] { transition-delay: .2s; }
.js [data-reveal-delay="3"] { transition-delay: .3s; }

/* Auto-cascade children of a revealed grid */
.js [data-reveal-group] > * {
  opacity: 0; transform: translateY(30px) scale(.97);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js [data-reveal-group].in > * { opacity: 1; transform: none; }
[data-reveal-group].in > *:nth-child(1) { transition-delay: .05s; }
[data-reveal-group].in > *:nth-child(2) { transition-delay: .13s; }
[data-reveal-group].in > *:nth-child(3) { transition-delay: .21s; }
[data-reveal-group].in > *:nth-child(4) { transition-delay: .29s; }
[data-reveal-group].in > *:nth-child(5) { transition-delay: .37s; }
[data-reveal-group].in > *:nth-child(6) { transition-delay: .45s; }

/* ---------- Page transition (enter / leave) ---------- */
@keyframes sq-page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.js body { animation: sq-page-in .45s var(--ease) both; }
.js body.is-leaving { opacity: 0; transform: translateY(-8px); transition: opacity .28s var(--ease), transform .28s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js body { animation: none; }
  .js body.is-leaving { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero entrance + float ---------- */
@keyframes sq-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes sq-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sq-float { 0%, 100% { transform: translateX(2%) translateY(0); } 50% { transform: translateX(2%) translateY(-12px); } }
@keyframes sq-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero__content > * { animation: sq-rise .8s var(--ease) both; }
.hero__content > *:nth-child(1) { animation-delay: .05s; }
.hero__content > *:nth-child(2) { animation-delay: .16s; }
.hero__content > *:nth-child(3) { animation-delay: .27s; }
.hero__content > *:nth-child(4) { animation-delay: .38s; }
.hero__bg { animation: sq-hero-zoom 14s ease-out both; }
@keyframes sq-hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.search--float { animation: sq-rise .7s var(--ease) both .3s; }

/* Split media gentle zoom on hover */
.split__media img, .contact-photo img { transition: transform .6s var(--ease); }
.split__media:hover img, .contact-photo:hover img { transform: scale(1.03); }

/* ---------- Shimmer sweep on primary buttons ---------- */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg); transition: none;
}
.btn--primary:hover::after { animation: sq-sweep .8s var(--ease); }
@keyframes sq-sweep { from { left: -120%; } to { left: 140%; } }

/* Filter tab pop */
.filter-tab { transition: background .2s, border-color .2s, color .2s, transform .18s var(--ease); }
.filter-tab:active { transform: scale(.96); }

/* Card media parallax-lift on hover already via .car-card:hover */

@media (prefers-reduced-motion: reduce) {
  .hero__content > *, .hero__bg, .search--float { animation: none !important; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .btn--primary:hover::after { animation: none !important; }
}

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.empty-state { text-align: center; color: var(--slate); padding: 40px 0; grid-column: 1 / -1; }
