:root {
  --navy: #071322;
  --navy-2: #0c1d31;
  --navy-3: #132a45;
  --paper: #f4f6f8;
  --white: #ffffff;
  --ink: #0b1626;
  --text: #27364a;
  --muted: #607086;
  --line: #dce3eb;
  --line-dark: rgba(255,255,255,.13);
  --yellow: #f4c542;
  --yellow-2: #ffdc68;
  --green: #31bd69;
  --orange: #ff7447;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 20px 55px rgba(7,19,34,.14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--paper { background: var(--paper); }
.section--navy { color: var(--white); background: var(--navy); }
.section--compact { padding: 62px 0; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 1000;
  padding: 11px 16px;
  border-radius: 10px;
  color: var(--navy);
  background: var(--yellow);
  font-weight: 800;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: rgba(7,19,34,.97);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(14px);
}
.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: var(--navy-2);
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; }
.brand__name { display: block; font-size: 1.04rem; font-weight: 900; line-height: 1.05; }
.brand__tag { display: block; margin-top: 5px; color: #aebbd0; font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #dce6f3;
  font-size: .9rem;
  font-weight: 760;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.09); }
.nav-links .nav-cta { margin-left: 6px; color: var(--navy); background: var(--yellow); }
.nav-links .nav-cta:hover { color: var(--navy); background: var(--yellow-2); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(49,189,105,.16), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(244,197,66,.13), transparent 28%),
    var(--navy);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.hero__grid > *,
.page-hero__grid > *,
.profile-grid > *,
.content-grid > *,
.link-panel > * { min-width: 0; }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .82fr);
  align-items: center;
  gap: 58px;
  padding: 68px 0 72px;
}
.eyebrow {
  margin: 0 0 12px;
  color: #9a7100;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero .eyebrow,
.section--navy .eyebrow,
.page-hero .eyebrow { color: var(--yellow); }
.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 5.7rem);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 950;
}
.hero h1 span { display: block; margin-top: 18px; color: var(--yellow); font-size: .39em; line-height: 1.05; letter-spacing: -.025em; }
.hero__lead,
.page-hero__lead {
  max-width: 670px;
  margin: 26px 0 0;
  color: #c5d1df;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 830;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: var(--navy); border-color: var(--yellow); background: var(--yellow); }
.btn--primary:hover { background: var(--yellow-2); }
.btn--light { color: var(--white); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.btn--light:hover { background: rgba(255,255,255,.11); }
.btn--dark { color: var(--white); border-color: var(--navy); background: var(--navy); }
.btn--dark:hover { background: var(--navy-2); }

.hero-media,
.page-hero__media {
  position: relative;
  width: min(100%, 500px);
  justify-self: end;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.055);
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.hero-media img,
.page-hero__media img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 24px;
  background: #11152f;
}
.hero-media__caption {
  margin-top: 13px;
  color: #b8c5d6;
  font-size: .82rem;
  text-align: center;
}

.proofbar { color: var(--white); background: #0b192b; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.proofbar__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof { min-height: 108px; display: flex; align-items: center; gap: 15px; padding: 24px 30px; border-right: 1px solid var(--line-dark); }
.proof:last-child { border-right: 0; }
.proof__number { color: var(--yellow); font-size: 1.55rem; font-weight: 950; line-height: 1; }
.proof strong { display: block; font-size: .98rem; }
.proof small { display: block; margin-top: 4px; color: #aebbd0; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 36px; }
.section-head__copy { max-width: 780px; }
.title { margin: 0; color: var(--ink); font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.03; letter-spacing: -.048em; font-weight: 930; }
.section--navy .title { color: var(--white); }
.lead { max-width: 690px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }
.section--navy .lead { color: #b5c2d3; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .24s ease, box-shadow .24s ease;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 26px 66px rgba(7,19,34,.18); }
.pillar-card__media { padding: 14px 14px 0; }
.pillar-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 24px; background: #eef2f6; }
.pillar-card__body { padding: 28px 30px 31px; }
.pillar-card__tag { display: inline-flex; padding: 7px 11px; border-radius: 999px; color: var(--navy); font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pillar-card--football .pillar-card__tag { background: #baf0ce; }
.pillar-card--auto .pillar-card__tag { background: #ffd0be; }
.pillar-card h3 { margin: 15px 0 0; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; letter-spacing: -.04em; }
.pillar-card p { margin: 14px 0 0; color: var(--muted); }
.pillar-card__link { display: inline-flex; margin-top: 18px; color: var(--ink); font-weight: 850; }

.profile-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 70px; align-items: center; }
.profile-image { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.profile-image img { width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 24px; background: #eef2f6; }
.profile-copy p { color: var(--muted); font-size: 1.06rem; }
.profile-copy strong { color: var(--ink); }
.topic-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 0; padding: 0; list-style: none; }
.topic-list li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #35455a; background: var(--white); font-size: .82rem; font-weight: 780; }

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 38px; }
.timeline-item { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.timeline-item time { color: #8b6500; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.timeline-item h3 { margin: 8px 0 0; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.timeline-item p { margin: 10px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #eef2f6; }
.gallery figcaption { padding: 16px 18px; color: var(--muted); font-size: .86rem; }
.gallery figcaption strong { display: block; margin-bottom: 4px; color: var(--ink); }

.link-panel { display: grid; grid-template-columns: 1.08fr .92fr; gap: 30px; padding: 42px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.link-panel h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -.045em; }
.link-panel p { color: #b7c4d5; }
.link-list { display: grid; gap: 11px; align-content: start; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; border: 1px solid var(--line-dark); border-radius: 17px; background: rgba(255,255,255,.045); font-weight: 820; }
.link-list a:hover { background: rgba(255,255,255,.08); }
.link-list small { display: block; color: #a9b7ca; font-weight: 600; }

.faq { max-width: 900px; margin: 34px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 23px 50px 23px 0; color: var(--ink); cursor: pointer; font-weight: 850; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--navy); font-size: 1.3rem; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: -4px 0 23px; color: var(--muted); }

.cta { padding: 72px 0; color: var(--navy); background: var(--yellow); }
.cta__grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { max-width: 760px; margin: 0; font-size: clamp(2.1rem, 4.5vw, 4.2rem); line-height: .98; letter-spacing: -.055em; }
.cta p { max-width: 720px; margin: 15px 0 0; color: #4d3d0d; }

.site-footer { color: #aebbd0; background: #040b14; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .7fr; gap: 48px; }
.footer-brand p { max-width: 470px; margin: 18px 0 0; }
.footer-title { margin: 0 0 14px; color: var(--white); font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); color: #7f8da1; font-size: .79rem; }
.footer-bottom a { color: #c9d4e2; }

/* Internal pages */
.page-hero { color: var(--white); background: var(--navy); padding: 58px 0 64px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .82fr); align-items: center; gap: 54px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: #9fafc4; font-size: .8rem; font-weight: 700; }
.breadcrumb span { color: #63758e; }
.page-hero h1 { font-size: clamp(2.8rem, 5.2vw, 5rem); }
.page-hero--football .eyebrow { color: #6ee49a; }
.page-hero--auto .eyebrow { color: #ff9b75; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 70px; align-items: start; }
.prose { max-width: 780px; }
.prose h2 { margin: 50px 0 14px; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.1; letter-spacing: -.035em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 10px; color: var(--ink); }
.prose p { color: var(--muted); font-size: 1.03rem; }
.prose strong { color: var(--ink); }
.quote { margin: 34px 0; padding: 24px 27px; border-left: 5px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; color: #3d320f; background: #fff7d8; font-size: 1.17rem; font-weight: 800; line-height: 1.45; }
.side-card { position: sticky; top: 106px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.side-card h2 { margin: 0; color: var(--ink); font-size: 1.15rem; }
.side-card p { color: var(--muted); font-size: .9rem; }
.side-card__links { display: grid; gap: 9px; margin-top: 17px; }
.side-card__links a { padding: 11px 13px; border-radius: 12px; color: #33445a; background: var(--paper); font-size: .88rem; font-weight: 760; }
.side-card__links a:hover { background: #e8edf3; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0; }
.stat { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.stat strong { display: block; color: var(--ink); font-size: 1.45rem; line-height: 1.05; }
.stat span { display: block; margin-top: 7px; color: var(--muted); font-size: .79rem; }
.image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.image-pair figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.image-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #eef2f6; }
.image-pair figcaption { padding: 14px 16px; color: var(--muted); font-size: .82rem; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.service-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.service-card h3 { margin: 0; color: var(--ink); font-size: 1.08rem; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

/* Auto-Giro directory */
.directory-shell { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.directory-toolbar { display: grid; grid-template-columns: minmax(0, 1.25fr) auto; gap: 18px; align-items: end; }
.control { display: grid; gap: 8px; }
.control span,
.filter-title { color: #45566c; font-size: .79rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.control input { width: 100%; min-height: 54px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fbfcfd; }
.sort-actions,
.alpha-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-title { margin-top: 22px; }
.alpha-filter { margin-top: 10px; }
.filter-btn { min-height: 42px; min-width: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: #35465b; background: var(--white); font-weight: 800; cursor: pointer; }
.filter-btn.is-active { color: var(--navy); border-color: #c7d1dd; background: #eaf0f6; }
.directory-status { margin: 16px 0 0; color: var(--muted); font-size: .91rem; }
.directory-empty { margin-top: 24px; padding: 28px; border: 1px dashed #c6d0dc; border-radius: var(--radius); background: #f8fafc; }
.directory-empty strong { display: block; color: var(--ink); font-size: 1.06rem; }
.directory-empty p { margin: 8px 0 0; color: var(--muted); }
.directory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.agency-card { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 28px rgba(7,19,34,.08); }
.agency-card__image { align-self: start; padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.agency-card__image img { width: 100%; height: auto; max-height: 110px; object-fit: contain; border-radius: 11px; background: #fff; }
.agency-card h3 { margin: 0; color: var(--ink); font-size: 1.12rem; }
.agency-card dl { margin: 12px 0 0; }
.agency-card dt { color: #526278; font-size: .74rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.agency-card dd { margin: 2px 0 10px; color: var(--muted); font-size: .9rem; }
.agency-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.agency-card__actions a { padding: 8px 12px; border-radius: 999px; color: var(--navy); background: #edf2f7; font-size: .82rem; font-weight: 820; }

.not-found { min-height: 65vh; display: grid; place-items: center; padding: 90px 20px; color: var(--white); background: var(--navy); text-align: center; }
.not-found h1 { margin: 0; color: var(--yellow); font-size: clamp(5rem, 18vw, 11rem); line-height: .8; letter-spacing: -.08em; }
.not-found h2 { margin: 24px 0 0; }
.not-found p { max-width: 560px; color: #b6c3d3; }

@media (max-width: 980px) {
  .hero__grid,
  .page-hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-media,
  .page-hero__media { width: min(100%, 560px); max-width: 560px; justify-self: start; }
  .proofbar__grid { grid-template-columns: 1fr; }
  .proof { min-height: 84px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .proof:last-child { border-bottom: 0; }
  .profile-grid { grid-template-columns: 1fr; gap: 44px; }
  .profile-image { max-width: 670px; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .link-panel { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; gap: 44px; }
  .side-card { position: static; }
  .directory-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 82px 0 auto;
    display: grid;
    gap: 4px;
    padding: 18px 20px 25px;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(7,19,34,.99);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { width: 100%; padding: 13px 14px; border-radius: 12px; }
  .nav-links .nav-cta { margin: 5px 0 0; text-align: center; }
  .pillars { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .cta__grid { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .directory-toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 66px 0; }
  .section--compact { padding: 50px 0; }
  .navbar { min-height: 74px; }
  .brand__logo { width: 48px; height: 48px; flex-basis: 48px; }
  .brand__tag { display: none; }
  .nav-links { top: 74px; }
  .hero__grid { padding: 38px 0 46px; }
  .hero h1 { font-size: clamp(2.75rem, 13.5vw, 4.4rem); }
  .page-hero { padding: 38px 0 48px; }
  .page-hero h1 { font-size: clamp(2.45rem, 12vw, 3.8rem); overflow-wrap: anywhere; }
  .hero-media,
  .page-hero__media,
  .profile-image { width: 100%; max-width: 100%; padding: 9px; border-radius: 25px; }
  .hero-media img,
  .page-hero__media img,
  .profile-image img { max-height: 420px; object-fit: contain; border-radius: 18px; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .pillar-card__media { padding: 10px 10px 0; }
  .pillar-card__media img { border-radius: 18px; }
  .pillar-card__body { padding: 23px; }
  .timeline { grid-template-columns: 1fr; }
  .gallery,
  .image-pair,
  .services,
  .stats { grid-template-columns: 1fr; }
  .link-panel { padding: 26px; }
  .cta { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .directory-shell { padding: 20px; }
  .alpha-filter { gap: 6px; }
  .filter-btn { min-width: 39px; min-height: 39px; padding: 0 10px; }
  .agency-card { grid-template-columns: 86px 1fr; gap: 14px; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Deployment-safe refinements */
.footer-credit { color: #9eacbf; }
.footer-credit a { color: #d7e1ed; font-weight: 760; }
@media (min-width: 981px) {
  .hero-copy { padding-block: 8px; }
}

/* =========================================================
   AUTO-GIRO PORTAL
   ========================================================= */
.auto-portal-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(7,19,34,.98) 0%, rgba(7,19,34,.94) 48%, rgba(10,31,52,.88) 100%),
    url('/assets/img/beto-brasil-atila-abreu-automobilismo.webp') center/cover no-repeat;
}
.auto-portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 18%, rgba(255,116,71,.26), transparent 25%),
    linear-gradient(90deg, transparent 0 59%, rgba(255,255,255,.04) 59% 60%, transparent 60% 100%);
}
.auto-portal-hero__grid {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  align-items: center;
  gap: 56px;
  padding: 74px 0 68px;
}
.auto-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #ffe1d4;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auto-brand::before {
  content: "";
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: var(--orange);
}
.auto-portal-hero h1 {
  margin: 0;
  font-size: clamp(3.9rem, 8.5vw, 8rem);
  line-height: .82;
  letter-spacing: -.075em;
  font-weight: 950;
}
.auto-portal-hero h1 span { color: var(--orange); }
.auto-portal-hero__lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: #d4deea;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.55;
}
.auto-portal-hero__lead strong { color: var(--white); }
.auto-search-box {
  margin-top: 32px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.auto-search-box input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
}
.auto-search-box button {
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  color: var(--navy);
  background: var(--orange);
  font-weight: 900;
  cursor: pointer;
}
.auto-search-box button:hover { background: #ff936d; }
.auto-portal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  color: #bac8d8;
  font-size: .88rem;
}
.auto-portal-hero__meta span {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
}
.auto-portal-hero__card {
  align-self: stretch;
  display: flex;
  align-items: end;
}
.auto-portal-hero__panel {
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(12,29,49,.54), rgba(5,14,25,.92));
  box-shadow: 0 28px 74px rgba(0,0,0,.26);
  backdrop-filter: blur(13px);
}
.auto-portal-hero__panel .kicker {
  margin: 0;
  color: #ffb398;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auto-portal-hero__panel h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.auto-portal-hero__panel p { color: #c3cfdd; }
.auto-portal-hero__panel .btn { width: 100%; margin-top: 10px; border-color: var(--orange); background: var(--orange); color: var(--navy); }

.auto-subnav {
  position: sticky;
  top: 82px;
  z-index: 40;
  color: #dce6f2;
  background: #0b1a2d;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.auto-subnav__inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.auto-subnav__inner::-webkit-scrollbar { display: none; }
.auto-subnav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
}
.auto-subnav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.auto-subnav a:last-child { margin-left: auto; color: var(--navy); background: var(--orange); }

.auto-section-intro {
  display: grid;
  grid-template-columns: 1fr minmax(300px, .72fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}
.auto-section-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.auto-section-intro p { margin: 0; color: var(--muted); font-size: 1.06rem; }

.auto-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.auto-category-card {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(7,19,34,.07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.auto-category-card:hover {
  transform: translateY(-4px);
  border-color: #bfcbd8;
  box-shadow: 0 20px 44px rgba(7,19,34,.12);
}
.auto-category-card svg { width: 34px; height: 34px; color: var(--orange); }
.auto-category-card h3 { margin: 22px 0 0; font-size: 1.05rem; line-height: 1.25; }
.auto-category-card p { margin: 8px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.auto-category-card span { margin-top: 18px; color: #8f3d1d; font-size: .8rem; font-weight: 850; }

.portal-directory {
  background: #eef2f6;
}
.portal-directory .directory-shell {
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
}
.portal-directory__head {
  padding: 28px 30px;
  color: var(--white);
  background: linear-gradient(135deg, #0a192a, #102b46);
}
.portal-directory__head h3 { margin: 0; font-size: 1.45rem; }
.portal-directory__head p { margin: 8px 0 0; color: #b9c6d7; }
.portal-directory__body { padding: 30px; }
.portal-directory .directory-toolbar { grid-template-columns: minmax(0,1.2fr) minmax(220px,.5fr) auto; }
.portal-directory .control select {
  width: 100%;
  min-height: 54px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: #fbfcfd;
}
.directory-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}
.directory-summary .directory-status { margin: 0; }
.directory-reset {
  border: 0;
  padding: 8px 11px;
  border-radius: 999px;
  color: #3a4a5f;
  background: #edf2f7;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.directory-empty--portal {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 26px;
  border-style: solid;
  background: linear-gradient(135deg, #fff, #f8fafc);
}
.directory-empty--portal h3 { margin: 0; color: var(--ink); font-size: 1.55rem; }
.directory-empty--portal p { max-width: 700px; }
.directory-empty--portal .actions { margin: 0; }
.agency-card {
  grid-template-columns: 132px 1fr;
  padding: 20px;
}
.agency-card__badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #8c3517;
  background: #ffe4d9;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.agency-card__description { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }

.auto-featured {
  color: var(--white);
  background: var(--navy);
}
.auto-featured .auto-section-intro h2 { color: var(--white); }
.auto-featured .auto-section-intro p { color: #b6c3d3; }
.auto-featured-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.auto-featured-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: #0d2036;
}
.auto-featured-card__media { aspect-ratio: 16/10; background: #152a42; }
.auto-featured-card__media img { width: 100%; height: 100%; object-fit: contain; }
.auto-featured-card__body { padding: 22px; }
.auto-featured-card__body small { color: #ffad8e; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.auto-featured-card h3 { margin: 9px 0 0; font-size: 1.2rem; }
.auto-featured-card p { color: #b8c5d5; font-size: .9rem; }
.auto-featured-card a { font-weight: 850; }
.auto-featured-empty {
  padding: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
}
.auto-featured-empty h3 { margin: 0; font-size: 1.55rem; }
.auto-featured-empty p { max-width: 760px; color: #b8c5d5; }

.auto-editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: 18px;
}
.auto-editorial-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  position: relative;
  padding: 26px;
  border-radius: 26px;
  color: var(--white);
  background: #10233a;
}
.auto-editorial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,11,20,.96), rgba(4,11,20,.1));
}
.auto-editorial-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auto-editorial-card__body { position: relative; z-index: 1; }
.auto-editorial-card small { color: #ffb092; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.auto-editorial-card h3 { margin: 10px 0 0; font-size: clamp(1.35rem,2.3vw,2.2rem); line-height: 1.05; }
.auto-editorial-card p { color: #d3dde8; }
.auto-editorial-card a { font-weight: 850; }

.auto-promo {
  overflow: hidden;
  position: relative;
  color: var(--navy);
  background: var(--orange);
}
.auto-promo::after {
  content: "AUTO-GIRO";
  position: absolute;
  right: -25px;
  bottom: -40px;
  color: rgba(7,19,34,.08);
  font-size: clamp(5rem,14vw,13rem);
  line-height: .8;
  font-weight: 950;
  letter-spacing: -.07em;
}
.auto-promo__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(300px,.65fr);
  gap: 46px;
  align-items: center;
}
.auto-promo h2 { margin: 0; font-size: clamp(2.4rem,5vw,5.2rem); line-height: .95; letter-spacing: -.06em; }
.auto-promo p { max-width: 720px; color: #4f2617; font-size: 1.07rem; }
.auto-promo__box { padding: 26px; border-radius: 24px; background: rgba(255,255,255,.45); border: 1px solid rgba(7,19,34,.12); }
.auto-promo__box ul { margin: 0; padding-left: 20px; }
.auto-promo__box li + li { margin-top: 8px; }

/* =========================================================
   PROJECT DIGITAL PAGE
   ========================================================= */
.project-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 84% 14%, rgba(244,197,66,.19), transparent 28%),
    linear-gradient(135deg, #071322, #0d263f);
}
.project-hero__grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr);
  align-items: center;
  gap: 60px;
  padding: 70px 0;
}
.project-hero h1 {
  margin: 0;
  font-size: clamp(3rem,6.7vw,6.6rem);
  line-height: .9;
  letter-spacing: -.065em;
}
.project-hero__lead { max-width: 760px; margin: 24px 0 0; color: #c4d0de; font-size: 1.18rem; }
.project-hero__media { padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 28px; background: rgba(255,255,255,.055); }
.project-hero__media img { width: 100%; height: auto; border-radius: 20px; }
.project-hero__media figcaption { padding: 12px 6px 2px; color: #aebcce; font-size: .82rem; }
.project-principles {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.project-principle { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.project-principle span { color: #8b6500; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.project-principle h3 { margin: 9px 0 0; color: var(--ink); font-size: 1.05rem; }
.project-principle p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.project-entities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.project-entity {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.project-entity__label { color: #8b6500; font-size: .75rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.project-entity h2 { margin: 10px 0 0; color: var(--ink); font-size: clamp(1.8rem,3vw,3rem); line-height: 1.05; }
.project-entity p { color: var(--muted); }
.project-entity .actions { margin-top: 20px; }
.project-flow {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 14px;
}
.project-flow__item { padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.045); }
.project-flow__item strong { display: block; color: var(--yellow); font-size: 1.35rem; }
.project-flow__item h3 { margin: 12px 0 0; font-size: 1rem; }
.project-flow__item p { color: #aebcce; font-size: .86rem; }
.project-context {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: 54px;
  align-items: center;
}
.project-context figure { padding: 12px; border: 1px solid var(--line); border-radius: 26px; background: var(--white); box-shadow: var(--shadow); }
.project-context figure img { width: 100%; height: auto; border-radius: 18px; }
.project-context figcaption { padding: 12px 5px 2px; color: var(--muted); font-size: .82rem; }
.project-context h2 { margin: 0; color: var(--ink); font-size: clamp(2.1rem,4vw,4rem); line-height: 1; letter-spacing: -.05em; }
.project-context p { color: var(--muted); }

.footer-project-link { color: #cbd7e5; font-weight: 760; }

@media (max-width: 1080px) {
  .auto-portal-hero__grid,
  .project-hero__grid { grid-template-columns: 1fr; min-height: auto; }
  .auto-portal-hero__card { max-width: 650px; }
  .auto-category-grid { grid-template-columns: repeat(2,1fr); }
  .auto-section-intro { grid-template-columns: 1fr; gap: 18px; }
  .portal-directory .directory-toolbar { grid-template-columns: 1fr 1fr; }
  .portal-directory .directory-toolbar .control:first-child { grid-column: 1 / -1; }
  .auto-featured-grid { grid-template-columns: 1fr 1fr; }
  .auto-editorial-grid { grid-template-columns: 1fr 1fr; }
  .auto-editorial-card:first-child { grid-column: 1 / -1; }
  .project-principles { grid-template-columns: 1fr 1fr; }
  .project-flow { grid-template-columns: repeat(3,1fr); }
  .project-context { grid-template-columns: 1fr; }
  .project-context figure { max-width: 720px; }
}

@media (max-width: 820px) {
  .auto-subnav { top: 74px; }
  .auto-subnav a:last-child { margin-left: 0; }
  .auto-promo__grid,
  .project-entities { grid-template-columns: 1fr; }
  .directory-empty--portal { grid-template-columns: 1fr; }
  .directory-empty--portal .actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .project-flow { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .auto-portal-hero__grid { padding: 48px 0 44px; gap: 34px; }
  .auto-portal-hero h1 { font-size: clamp(3.4rem,18vw,5.3rem); }
  .auto-search-box { grid-template-columns: 1fr; }
  .auto-search-box button { width: 100%; }
  .auto-portal-hero__panel { padding: 23px; }
  .auto-category-grid,
  .auto-featured-grid,
  .auto-editorial-grid,
  .project-principles,
  .project-flow { grid-template-columns: 1fr; }
  .auto-editorial-card:first-child { grid-column: auto; }
  .auto-category-card { min-height: 160px; }
  .portal-directory__head,
  .portal-directory__body { padding: 22px; }
  .portal-directory .directory-toolbar { grid-template-columns: 1fr; }
  .portal-directory .directory-toolbar .control:first-child { grid-column: auto; }
  .directory-summary { align-items: flex-start; flex-direction: column; }
  .auto-promo::after { display: none; }
  .project-hero__grid { padding: 46px 0; gap: 34px; }
  .project-hero h1 { font-size: clamp(2.8rem,14vw,4.8rem); }
  .project-entity { padding: 24px; }
}

/* Final UX corrections after visual audit */
#categorias,
#guia-agencias,
#destaques,
#conteudo-auto-giro,
#anuncie { scroll-margin-top: 155px; }

.auto-editorial-grid {
  align-items: stretch;
}
.auto-editorial-card,
.auto-editorial-card:first-child {
  min-height: 0;
  display: block;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.auto-editorial-card::before { display: none; }
.auto-editorial-card img {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eef2f6;
}
.auto-editorial-card__body {
  position: static;
  padding: 24px;
}
.auto-editorial-card small { color: #9b401f; }
.auto-editorial-card h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(1.35rem,2.2vw,2rem);
}
.auto-editorial-card p { color: var(--muted); }
.auto-editorial-card a { color: var(--ink); }

@media (max-width: 820px) {
  #categorias,
  #guia-agencias,
  #destaques,
  #conteudo-auto-giro,
  #anuncie { scroll-margin-top: 140px; }
}
