/* =====================================================
   KALIBER PRIMA MOTOR — brand tokens
   Pulled from the shop's own Instagram campaign:
   deep navy ground, one gold accent, heavy condensed
   poster type, flat hard edges, diagonal cut dividers.
   ===================================================== */
:root {
  --navy-950: #0a1220;   /* deepest — bars, footer */
  --navy-900: #0f1e36;   /* section background */
  --navy-800: #17304f;   /* panels, borders on dark */
  --navy-700: #23456c;   /* hover / lighter border */
  --gold:      #f5a623;  /* the one accent */
  --gold-dark: #d38c12;
  --paper:     #ffffff;
  --paper-alt: #eef0f3;
  --ink:       #101826;
  --ink-muted: #4b5768;
  --white:     #f7f8fa;
  --line-on-dark: rgba(247,248,250,.16);
  --line-on-paper: #d7dce3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
h1, h2, h3 {
  font-family: 'Anton', 'Archivo Black', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.02;
  margin: 0;
}
.gold { color: var(--gold); }

/* ---------- Buttons — square, flat, no shadow ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-block { width: 100%; }
.btn-gold {
  background: var(--gold);
  color: var(--navy-950);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-line-dark {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-line-dark:hover { background: var(--white); color: var(--navy-950); }
.btn-line-paper {
  background: transparent;
  border-color: var(--navy-950);
  color: var(--navy-950);
}
.btn-line-paper:hover { background: var(--navy-950); color: var(--white); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-950);
  border-bottom: 3px solid var(--gold);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 26px;
  width: auto;
  display: block;
}
@media (min-width: 420px) {
  .logo-img { height: 32px; }
}
.topbar-wa {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  border: 2px solid var(--white);
  padding: 9px 14px;
}
.topbar-wa:hover { background: var(--white); color: var(--navy-950); }
.topbar-wa svg { flex-shrink: 0; }
.topbar-wa .wa-number { display: none; }
@media (min-width: 480px) {
  .topbar-wa .wa-number { display: inline; }
}

/* ---------- Hero — full photo background ---------- */
.hero {
  position: relative;
  color: var(--white);
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%);
}
.hero-text {
  position: relative;
  z-index: 2;
  padding: 56px 20px 48px;
}
.hero-text h1 {
  font-size: clamp(2.1rem, 9vw, 3.6rem);
  margin: 0 0 20px;
}
.hero-text p {
  max-width: 46ch;
  color: rgba(247,248,250,.9);
  font-size: 1.02rem;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Contact strip (signature bar, slim) ---------- */
.contact-strip {
  background: var(--navy-950);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--white);
  padding: 16px 0;
}
.contact-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .82rem;
}
.contact-tagline {
  color: rgba(247,248,250,.9);
}
.contact-tagline strong { color: var(--gold); }
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  color: rgba(247,248,250,.75);
  font-weight: 600;
}
.contact-meta .dot { color: var(--gold); }
.contact-meta a { color: var(--white); }
.contact-meta a:hover { color: var(--gold); }

/* ---------- Stat row ---------- */
.stat-row {
  background: var(--navy-900);
  color: var(--white);
  padding: 30px 0;
}
.stat-row-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stat-item {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}
.stat-item strong {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: 1.6rem;
  color: var(--gold);
}
.stat-item span {
  display: block;
  font-size: .8rem;
  color: rgba(247,248,250,.75);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-top: 2px;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-paper { background: var(--paper); }
.section-header { margin-bottom: 34px; max-width: 560px; }
.section-header h2 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin-bottom: 10px;
}
.section-dark .section-header h2 { color: var(--white); }
.section-paper .section-header h2 { color: var(--navy-950); }
.section-header p { color: var(--ink-muted); margin: 0; }
.section-dark .section-header p { color: rgba(247,248,250,.75); }

/* ---------- Services — flat checklist cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 2px solid var(--navy-950);
  border-left: 2px solid var(--navy-950);
}
.service-card {
  background: var(--paper);
  border-right: 2px solid var(--navy-950);
  border-bottom: 2px solid var(--navy-950);
  padding: 26px 24px;
}
.service-card h3 {
  font-size: 1.1rem;
  color: var(--navy-950);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-muted);
  font-size: .92rem;
  margin-bottom: 10px;
}
.service-card li svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.services-note {
  margin-top: 22px;
  font-size: .88rem;
  color: var(--ink-muted);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--navy-950);
}
.gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--navy-950);
}
.gallery-item-photo { aspect-ratio: 4/5; overflow: hidden; }
.gallery-item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-cap {
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 10px 12px;
  border-top: 2px solid var(--gold);
}

/* ---------- Branches ---------- */
.branch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.branch-card {
  border: 2px solid var(--navy-950);
  background: var(--paper);
}
.branch-photo {
  position: relative;
  height: 190px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
}
.branch-photo img { width: 100%; height: 100%; object-fit: cover; }
.branch-flagship .branch-photo { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.branch-badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--gold);
  color: var(--navy-950);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 12px;
}
.branch-body { padding: 22px; }
.branch-body h3 { font-size: 1.3rem; color: var(--navy-950); margin-bottom: 10px; }
.branch-tag {
  display: inline-block;
  font-size: .62rem;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--navy-950);
  border: 1.5px solid var(--navy-950);
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}
.branch-address, .branch-phone {
  font-size: .88rem;
  color: var(--ink-muted);
  margin: 0 0 6px;
}
.branch-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

/* ---------- Testimonials — "phone review" motif ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.testimonial {
  background: var(--paper);
  border: 2px solid var(--navy-950);
  padding: 0;
  margin: 0;
}
.testimonial-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--navy-950);
  background: var(--paper-alt);
}
.testimonial-avatar {
  width: 34px; height: 34px;
  background: var(--navy-950);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: .95rem;
  flex-shrink: 0;
}
.testimonial-head strong { display: block; font-size: .88rem; color: var(--navy-950); }
.testimonial-head span { display: block; font-size: .72rem; color: var(--ink-muted); }
.testimonial-body { padding: 18px; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; font-size: .9rem; }
.testimonial-body p { color: var(--ink); margin: 0; font-size: .92rem; }

/* ---------- Footer (the locked brand bar, expanded) ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--white);
  border-top: 3px solid var(--gold);
}
.site-footer .container { padding-left: 26px; padding-right: 26px; }
@media (min-width: 720px) {
  .site-footer .container { padding-left: 20px; padding-right: 20px; }
}
.footer-tagline {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-on-dark);
  font-size: .88rem;
  color: rgba(247,248,250,.9);
  text-align: center;
}
.footer-tagline strong { color: var(--gold); }
.footer-main {
  padding-top: 34px;
  padding-bottom: 34px;
  display: grid;
  gap: 26px;
}
.footer-brand {
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.footer-col p { font-size: .85rem; color: rgba(247,248,250,.75); margin: 0 0 6px; }
.footer-col strong { color: var(--white); }
.footer-pins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 16px;
  padding-bottom: 88px;
  border-top: 1px solid var(--line-on-dark);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: rgba(247,248,250,.85);
}
@media (min-width: 720px) {
  .footer-pins { padding-bottom: 16px; }
}
.footer-pins .dot { color: var(--gold); }

/* ---------- Floating WhatsApp button — flat square, draggable, snaps to an edge ---------- */
.floating-wa {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy-950);
  border: 2px solid var(--navy-950);
  cursor: grab;
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
  transition: left .18s ease, right .18s ease, top .18s ease, bottom .18s ease;
}
.floating-wa:hover { background: var(--navy-950); color: var(--gold); border-color: var(--gold); }
.floating-wa.is-dragging {
  cursor: grabbing;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .floating-wa { transition: none; }
}

/* ---------- Tablet / desktop ---------- */
@media (min-width: 720px) {
  .hero-text { padding: 100px 20px 80px; max-width: 720px; }
  .contact-strip-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .stat-row-inner { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .branch-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Reduced motion / focus ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
