/*
Theme Name: Ford Parts Theme
Theme URI: https://fordpartsmexico.example
Author: Ford Parts México
Author URI: https://fordpartsmexico.example
Description: Tema a medida para Ford Parts México — refaccionaria Ford y Motorcraft en Iztapalapa, CDMX.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ford-parts-theme
*/

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f7f9;
  --bg-2:      #eef1f6;
  --paper:     #ffffff;
  --ink:       #11141a;
  --ink-soft:  #363b46;
  --mute:      #667085;
  --navy:      #00095b;
  --navy-2:    #1c2f8f;
  --blue:      #1c64c9;
  --blue-soft: #eaf1fb;
  --red:       #df0a22;
  --red-dark:  #a3081a;
  --line:      rgba(17, 20, 26, 0.11);
  --line-soft: rgba(17, 20, 26, 0.07);

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --disp:  "Oswald", var(--sans);
  --brand: "Fraunces", Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 96px;
  --ticker-h: 38px;
  --container: 1320px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--ticker-h));
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; font-family: var(--disp); font-weight: 600; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.1rem; }
@media (min-width: 720px) { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

.mono { font-family: var(--mono); letter-spacing: 0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--navy); color: #fff;
  z-index: 9999; font-weight: 600; border-radius: 6px; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(3.2rem, 6.5vw, 6rem); }
.section-tight { padding-block: clamp(2.2rem, 4.5vw, 3.6rem); }
.section-alt { background: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); font-weight: 500; margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); }

.section-head { max-width: 660px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
.section-head p { margin-top: .9rem; color: var(--mute); font-size: 1.03rem; }

[data-reveal], .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .75s var(--ease-soft), transform .75s var(--ease-soft);
}
[data-reveal].is-visible, .reveal.is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* =============================================================
   4. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.7rem;
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  letter-spacing: .01em;
  border-radius: 4px; border: 1.5px solid transparent;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .12s; }
.btn svg { width: 17px; height: 17px; flex: none; }
.icon-mercadolibre { width: 20px !important; height: 20px !important; }

.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(223,10,34,0.28); }
.btn-red:hover { background: var(--red-dark); box-shadow: 0 16px 32px rgba(223,10,34,0.34); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(28,100,201,0.28); }
.btn-blue:hover { background: var(--navy-2); box-shadow: 0 16px 32px rgba(28,100,201,0.32); }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,0.32); }
.btn-whatsapp:hover { background: #1ebe57; box-shadow: 0 16px 32px rgba(37,211,102,0.38); }
.btn-mercadolibre { background: #fff159; color: #2d3277; box-shadow: 0 10px 24px rgba(0,0,0,0.14); }
.btn-mercadolibre:hover { background: #ffe600; box-shadow: 0 16px 32px rgba(0,0,0,0.18); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(17,20,26,0.14); }
.btn-light:hover { box-shadow: 0 16px 32px rgba(17,20,26,0.18); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-block { width: 100%; }

/* --- Nav --- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--navy);
  transition: box-shadow .4s var(--ease-out);
  /* Forces its own compositing layer — works around a scroll-lock bug that
     in-app WebViews (WhatsApp, Instagram, Facebook) have with fixed headers. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,0.1), 0 16px 34px -20px rgba(0,0,0,0.45);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .9rem; }
@media (min-width: 720px) { .brand { margin-left: -40px; } }
.brand-logo { height: 74px; width: auto; display: block; }

.main-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 960px) { .main-nav { display: flex; } }
.main-nav a {
  position: relative; padding: .3rem 0;
  font-size: .89rem; font-weight: 500; color: rgba(255,255,255,0.85);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: .8rem; }
.header-brands { display: none; align-items: center; gap: .5rem; }
@media (min-width: 720px) { .header-brands { display: flex; } }
.header-brand-link {
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px; padding: .2rem;
  transition: transform .3s var(--ease-soft);
}
.header-brand-link:hover { transform: translateY(-2px); }
.header-brand-link img { height: 36px; width: auto; display: block; }

.nav-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.3); flex: none;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; transition: transform .3s var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-nav {
  position: fixed; inset: calc(var(--nav-h) + var(--ticker-h)) 0 auto 0; z-index: 190;
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 40px -20px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; padding: .6rem 1.1rem 1.4rem;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), visibility .3s;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav a { padding: .9rem .2rem; border-bottom: 1px solid rgba(255,255,255,0.12); font-weight: 500; color: rgba(255,255,255,0.9); }
.mobile-nav .btn { margin-top: 1rem; }
@media (min-width: 960px) { .mobile-nav { display: none; } }

/* --- Hero --- */
.hero { position: relative; padding-top: calc(var(--nav-h) + var(--ticker-h)); }
.hero-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: stretch; min-height: 82vh; } }
.hero-panel {
  background: linear-gradient(165deg, var(--navy) 0%, #000434 100%);
  color: #fff;
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}
.hero-panel .eyebrow { color: #ffd7dc; }
.hero-panel .eyebrow::before { background: #ff5a72; }
.hero-panel h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.9rem); }
.hero-panel h1 em { font-style: normal; color: #6fa8ff; }
.hero-panel p { color: rgba(255,255,255,0.82); margin-top: 1.1rem; font-size: 1.06rem; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.16); }
.hero-stats span { display: block; }
.hero-stats strong { display: block; font-family: var(--disp); font-size: 1.35rem; color: #fff; }
.hero-stats em { font-style: normal; font-size: .8rem; color: rgba(255,255,255,0.65); }

.hero-figure { position: relative; overflow: hidden; min-height: 340px; }
@media (min-width: 960px) { .hero-figure { min-height: auto; } }
.hero-figure img, .hero-figure video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; filter: saturate(1.05) contrast(1.02); background: var(--ink); }
.hero-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,15,25,0.35) 0%, rgba(10,15,25,0) 35%); }
.hero-scroll {
  position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 1.6rem); z-index: 3;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--red); color: #fff;
}
.hero-scroll svg { width: 17px; height: 17px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll svg { animation: none; } }

/* --- Ticker bar --- */
.ticker-bar {
  position: fixed; top: var(--nav-h); inset-inline: 0; z-index: 199;
  height: var(--ticker-h); overflow: hidden;
  background: #fff; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.ticker-track {
  display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: .5rem;
  padding-inline: 1.4rem; font-family: var(--mono); font-size: .76rem; font-weight: 500;
  color: var(--ink-soft); letter-spacing: .01em;
}
.ticker-item svg { width: 14px; height: 14px; color: var(--red); flex: none; }
.ticker-item strong { color: var(--navy); font-weight: 700; }
.ticker-horse {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; color: var(--navy); opacity: .5;
}
.ticker-horse svg { display: block; height: 100%; width: auto; }
.ticker-horse-run { height: 15px; }
.ticker-horse-rear { height: 22px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* --- Fact strip --- */
.fact-strip { background: var(--ink); }
.fact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.1);
}
@media (min-width: 720px) { .fact-grid { grid-template-columns: repeat(4, 1fr); } }
.fact-item { background: var(--ink); color: #fff; padding: 1.5rem 1.4rem; text-align: center; }
.fact-item strong { display: block; font-family: var(--disp); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: #fff; }
.fact-item span { display: block; margin-top: .3rem; font-size: .78rem; color: rgba(255,255,255,0.6); letter-spacing: .03em; }

/* --- Category cards --- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 1.5rem 1.35rem;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), border-color .3s var(--ease-out);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -28px rgba(17,20,26,0.3); border-color: var(--blue-soft); }
.cat-n { display: block; font-family: var(--mono); font-size: .72rem; color: var(--blue); margin-bottom: .7rem; }
.cat-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px;
  background: var(--blue-soft); color: var(--navy); margin-bottom: .9rem;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.cat-icon svg { width: 22px; height: 22px; }
.cat-card:hover .cat-icon { background: var(--red); color: #fff; }
.cat-card h3 { font-size: 1.04rem; margin-bottom: .35rem; }
.cat-card p { font-size: .87rem; color: var(--mute); margin-bottom: .9rem; }
.cat-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 600; color: var(--red);
}
.cat-link svg { width: 13px; height: 13px; transition: transform .35s var(--ease-out); }
.cat-card:hover .cat-link svg { transform: translateX(4px); }

.brand-badge-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.brand-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .9rem .4rem .5rem; border-radius: 999px; margin-bottom: 0;
  background: #fdeaec; color: var(--red-dark); font-size: .78rem; font-weight: 700;
  border: 1px solid rgba(223,10,34,0.18);
}
.brand-badge img { height: 18px; width: auto; display: block; border-radius: 3px; }

/* --- Alternating rows --- */
.alt-row { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.alt-row + .alt-row { margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 860px) { .alt-row { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .alt-row.is-reverse .alt-figure { order: 2; } }
.alt-figure { aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; }
.alt-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.alt-figure:hover img { transform: scale(1.05); }
.alt-text h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1rem; }
.alt-text p { color: var(--mute); }
.alt-text p + p { margin-top: .8rem; }
.alt-list { margin-top: 1.3rem; display: grid; gap: .65rem; }
.alt-list li { display: flex; align-items: baseline; gap: .6rem; font-size: .95rem; color: var(--ink-soft); }
.alt-list li::before { content: "—"; color: var(--red); flex: none; }

.ml-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1rem;
  background: #fff3b0; color: #4a3d00; font-size: .78rem; font-weight: 700;
}

/* --- Steps --- */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-item { position: relative; padding-left: 3.6rem; }
.step-num {
  position: absolute; left: 0; top: -.3rem;
  font-family: var(--disp); font-size: 2.3rem; color: var(--blue-soft);
  -webkit-text-stroke: 1.5px var(--blue);
}
.step-item h4 { font-size: 1.1rem; margin-bottom: .5rem; }
.step-item p { color: var(--mute); font-size: .92rem; }

/* --- Reviews --- */
.reviews-panel {
  display: grid; grid-template-columns: 1fr; gap: 1.6rem;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px; padding: clamp(1.6rem, 3vw, 2.4rem);
}
@media (min-width: 860px) { .reviews-panel { grid-template-columns: .8fr 1.2fr; gap: 2.5rem; } }
.reviews-score { display: flex; flex-direction: column; justify-content: center; gap: .4rem; }
.reviews-score-n { font-family: var(--disp); font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1; color: var(--navy); }
.reviews-stars { color: var(--red); font-size: 1.3rem; letter-spacing: .08em; }
.reviews-score p { color: var(--mute); font-size: .92rem; }
.reviews-score .btn { margin-top: 1rem; align-self: flex-start; }
.reviews-highlights { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .reviews-highlights { grid-template-columns: 1fr 1fr 1fr; } }
.review-highlight h4 { font-size: .98rem; margin-bottom: .4rem; }
.review-highlight p { font-size: .87rem; color: var(--mute); }

/* --- Trust grid --- */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { background: var(--bg-2); padding: 1.9rem 1.5rem; }
.trust-item svg { width: 28px; height: 28px; color: var(--navy); margin-bottom: 1rem; }
.trust-item h4 { font-family: var(--sans); font-size: .96rem; font-weight: 600; margin-bottom: .4rem; }
.trust-item p { font-size: .85rem; color: var(--mute); }

/* --- Channels --- */
.channels-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 720px) { .channels-grid { grid-template-columns: repeat(3, 1fr); } }
.channel-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 1.7rem 1.5rem; display: flex; flex-direction: column; gap: .3rem;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), border-color .3s var(--ease-out);
}
.channel-card:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -28px rgba(17,20,26,0.28); border-color: var(--blue-soft); }
.channel-card .cat-icon { margin-bottom: 1rem; }
.channel-card h3 { font-size: 1.08rem; margin: 0 0 .3rem; }
.channel-card p { color: var(--mute); font-size: .9rem; flex: 1; }
.channel-cta { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--navy); margin-top: 1rem; }
.channel-cta svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.channel-card:hover .channel-cta svg { transform: translateX(4px); }

/* --- Location --- */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 960px) { .location-grid { grid-template-columns: 5fr 7fr; } }
.location-info { background: var(--paper); padding: 1.9rem; display: flex; flex-direction: column; gap: 1.2rem; }
.location-info dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.1rem; font-size: .93rem; }
.location-info dt { font-family: var(--mono); color: var(--blue); font-size: .74rem; text-transform: uppercase; align-self: start; padding-top: .15rem; }
.location-info dd a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.location-map { background: var(--paper); min-height: 320px; }
.location-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(0.15); }

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #000434 100%);
  color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: .8rem; max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* --- Footer --- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 2.2rem; padding-bottom: 2.6rem; }
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand p { font-size: .9rem; margin-top: 1rem; max-width: 34ch; color: rgba(255,255,255,0.55); }
.footer-badge {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem;
  padding: .35rem .8rem .35rem .4rem; border-radius: 999px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}
.footer-badge img { height: 22px; width: auto; display: block; }
.footer-badge span { font-size: .76rem; font-weight: 600; color: rgba(255,255,255,0.75); }
.footer-brand .brand-logo { height: 48px; filter: brightness(0) invert(1); }
.footer-col h5 { font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; font-weight: 600; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a, .footer-col span { font-size: .9rem; color: rgba(255,255,255,0.6); transition: color .3s var(--ease-out); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: grid; place-items: center; transition: all .3s var(--ease-out);
}
.footer-social a:hover { border-color: var(--red); background: rgba(223,10,34,0.18); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.5rem; margin-top: 1rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; justify-content: space-between;
  font-size: .78rem; color: rgba(255,255,255,0.45);
}

/* --- Whatsapp float --- */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 32px rgba(37,211,102,0.42);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transition: transform .4s var(--ease-bounce);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 27px; height: 27px; }

/* =============================================================
   5. Responsive helpers
   ============================================================= */
@media (min-width: 540px) { .container { padding-inline: 1.6rem; } }

/* =============================================================
   6. WordPress core block defaults (safety net)
   ============================================================= */
.wp-block-image, .wp-block-group { max-width: 100%; }

/* =============================================================
   7. WordPress admin bar offset — our header/ticker/mobile-nav are
   fixed to the viewport, which sits *under* #wpadminbar (also fixed,
   higher z-index) for logged-in users. Push them down by its height.
   ============================================================= */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .ticker-bar { top: calc(32px + var(--nav-h)); }
body.admin-bar .mobile-nav { top: calc(32px + var(--nav-h) + var(--ticker-h)); }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .ticker-bar { top: calc(46px + var(--nav-h)); }
  body.admin-bar .mobile-nav { top: calc(46px + var(--nav-h) + var(--ticker-h)); }
}
