/* ==========================================================================
   AATA shared layout — styles for the site shell used on EVERY page:
   design tokens, .container, buttons, top bar, header + navigation, footer,
   WhatsApp float. The markup lives in layout/site-layout.html.

   Loaded last on every page, after the homepage stylesheet (assets/css/style.css)
   or the Stadum/Bootstrap stylesheets of the inner pages, so the shell looks the
   same everywhere. Rules are written to stand on their own: the shell sets its own
   font, size, colours and resets instead of relying on a page's base styles, and
   the few class names Bootstrap also styles (.btn, .nav, .dropdown, .container)
   are overridden here with equal or higher specificity.
   ========================================================================== */

:root {
  --navy: #262261;
  --navy-700: #1d1a4f;
  --navy-900: #120f33;
  --red: #ec1c24;
  --red-600: #c9141b;
  --sky-50: #f3f6fc;
  --sky-100: #e6edf9;
  --sky-500: #2f6fd6;
  --ink: #16152b;
  --body: #4a4d63;
  --muted: #6a6d82;
  --line: #e3e5ef;
  --white: #ffffff;
  --gold: #e9b949;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(18, 15, 51, .06);
  --shadow: 0 18px 40px -18px rgba(18, 15, 51, .28);
  --shadow-lg: 0 30px 70px -25px rgba(18, 15, 51, .45);

  --container: 1240px;
  --gutter: 24px;
  --header-h: 84px;
}

html { scroll-padding-top: calc(var(--header-h) + 12px); }

/* One content width for header, page sections and footer (also overrides Bootstrap's
   breakpoint widths and Stadum's 1620px .th-container4 on the inner pages). */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font: 600 15px/1.4 var(--font-sans); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons (shared by the header and the homepage sections) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: 0; white-space: nowrap;
  text-decoration: none; cursor: pointer; background: none; color: inherit;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn i { transition: transform .25s; }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 12px 26px -12px rgba(236,28,36,.7); }
.btn--red:hover { background: var(--red-600); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--navy); }
.btn--whatsapp { background: #0f7a3e; color: #fff; }
.btn--whatsapp:hover { background: #0b6331; transform: translateY(-2px); }
.btn--block { width: 100%; }
/* Bootstrap (inner pages) also styles .btn on hover/focus/press with variables it never
   defines, which would blank the colours; these doubled-class rules outrank it. */
.btn.btn:is(:hover, :focus-visible, :active) { text-decoration: none; outline-offset: 3px; }
.btn.btn:focus-visible { outline: 3px solid var(--sky-500); }
.btn--red.btn--red:is(:hover, :focus-visible, :active) { background: var(--red-600); color: #fff; border-color: transparent; box-shadow: 0 12px 26px -12px rgba(236,28,36,.7); }
.btn--navy.btn--navy:is(:hover, :focus-visible, :active) { background: var(--navy-700); color: #fff; border-color: transparent; }
.btn--ghost.btn--ghost:is(:hover, :focus-visible, :active) { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline.btn--outline:is(:hover, :focus-visible, :active) { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--whatsapp.btn--whatsapp:is(:hover, :focus-visible, :active) { background: #0b6331; color: #fff; border-color: transparent; }

.icon-circle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sky-100); color: var(--navy); flex-shrink: 0; }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar, .header, .footer { font-family: var(--font-sans); line-height: 1.7; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
.topbar a, .header a, .footer a { text-decoration: none; }
.topbar a, .footer a, .brand { color: inherit; } /* buttons, nav links and dropdown links set their own colours */
.topbar i, .header i, .footer i { font-style: normal; }
.header img, .footer img { display: block; max-width: 100%; height: auto; border: 0; }

.topbar { background: var(--navy-900); color: rgba(255,255,255,.75); font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; }
.topbar__badges, .topbar__contact { display: flex; align-items: center; gap: 22px; }
.topbar__badges > span, .topbar__contact > a { white-space: nowrap; }
.topbar i { color: var(--red); margin-right: 7px; }
.topbar a:hover { color: #fff; }
.topbar__social { display: flex; gap: 14px; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.15); }
.topbar__social i { color: rgba(255,255,255,.75); margin: 0; }
.topbar__social a:hover i { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; font-size: 16px; color: var(--body);
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(18,15,51,.35); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand__text { font-size: 11.5px; line-height: 1.3; font-weight: 700; color: var(--navy); letter-spacing: .06em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid var(--line); }

.nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  padding: 10px 14px; font-family: var(--font-sans); font-weight: 600; font-size: 15px; line-height: 1.7; color: var(--ink);
  border-radius: 8px; background: none; border: 0; white-space: nowrap; text-transform: none; cursor: pointer;
  transition: color .2s;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--red); }
.nav__link i { font-size: 11px; transition: transform .2s; }
.nav__item:hover > .nav__link i { transform: rotate(180deg); }
.nav__link[aria-current="page"], .nav__item.is-current > .nav__link { color: var(--red); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.nav__item:hover > .dropdown, .nav__item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__item.is-dismissed > .dropdown { opacity: 0; visibility: hidden; transform: translateY(8px); }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.7; color: var(--ink); }
.dropdown a small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.dropdown a:hover { background: var(--sky-50); color: var(--navy); }
.dropdown a[aria-current="page"] { background: var(--sky-50); color: var(--red); }
.dropdown .dropdown__all { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 6px; padding-bottom: 12px; color: var(--navy); }

.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sky-100); color: var(--navy); font-size: 18px; transition: background .2s, color .2s; }
.header__phone:hover, .header__phone:focus-visible { background: #0f7a3e; color: #fff; }
.nav-toggle { display: none; width: 46px; height: 46px; margin: 0; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 20px; line-height: 1; cursor: pointer; }

/* ==========================================================================
   Footer + WhatsApp float
   ========================================================================== */
.footer { background: var(--navy-900); color: rgba(255,255,255,.65); font-size: 15px; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer p { margin: 0 0 1em; color: inherit; font-size: inherit; line-height: inherit; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 50px; padding-top: 90px; padding-bottom: 60px; }
.footer__brand img { height: 56px; width: auto; margin-bottom: 22px; }
.footer h4 { font-family: var(--font-sans); color: #fff; font-size: 17px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-transform: none; margin: 0 0 20px; }
.footer ul li { padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; margin-top: 24px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s; }
.footer__social a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.footer__contact li { display: flex; gap: 12px; }
.footer__contact i { color: var(--red); margin-top: 6px; width: 16px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer__bottom nav { display: flex; gap: 22px; flex-shrink: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; min-width: 0; }
.footer__legal { gap: 10px 0; }
.footer__credit { margin-left: 18px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.22); }
@media (max-width: 720px) { .footer__legal { flex-direction: column; } .footer__credit { margin-left: 0; padding-left: 0; border-left: 0; } }
.footer__credit a { color: #fff; font-weight: 600; }
.footer__credit a:hover { color: var(--red); }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 14px 30px -10px rgba(37,211,102,.8); transition: transform .25s; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: wa-ping 2.2s infinite; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

:is(.topbar, .header, .footer, .wa-float) :focus-visible, .wa-float:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; border-radius: 4px; }
.nav-toggle:focus-visible, .btn:focus-visible { border-radius: 999px; }
.nav-toggle:focus-visible { border-radius: 10px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1400px) {
  /* keep the fixed WhatsApp button off the footer's "Back to top" link when the container nears the viewport edge */
  .footer__bottom nav { padding-right: 70px; }
}
@media (max-width: 1400px) { /* was 1280px: the menu now has eight items (Blog added) */
  .header__phone { display: none; }
  .nav__link { padding: 10px 10px; }
}
@media (min-width: 1101px) and (max-width: 1200px) {
  .brand__text { display: none; }
  .topbar__badges > span + span { display: none; } /* two phone numbers + email need the room */
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0; background: #fff;
    padding: 16px var(--gutter) 40px; overflow-y: auto; border-top: 1px solid var(--line);
  }
  .nav.is-open .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav.is-open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 10px 10px; display: none; min-width: 0; }
  .nav.is-open .nav__item.is-expanded .dropdown { display: block; }
  .nav.is-open .nav__item:hover > .nav__link i { transform: none; }
  .nav.is-open .nav__item.is-expanded > .nav__link i { transform: rotate(180deg); }
  body.nav-open { overflow: hidden; }
  /* The header's backdrop-filter would make it the containing block of the fixed menu; drop it while open */
  body.nav-open .header { backdrop-filter: none; }
  .topbar__badges { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 72px; }
  .topbar__contact .hide-sm { display: none; }
  .topbar__social { border: 0; padding: 0; }
  .brand img { height: 36px; }
  .brand__text { display: none; }
  .header__cta .btn { display: none; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; }
  .wa-float { width: 54px; height: 54px; font-size: 27px; right: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
  /* both sales numbers stay visible on phones; the social links are in the footer */
  .topbar__social { display: none; }
  .topbar__contact { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (max-width: 350px) {
  .topbar { font-size: 12.5px; }
  .topbar i { margin-right: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::after { animation: none; }
  .btn, .nav__link, .nav__link i, .dropdown, .header__phone, .footer__social a, .wa-float { transition: none; }
}

/* ==========================================================================
   Section label: the small tag above section headings, on every page.
   Homepage markup uses .eyebrow, inner pages use .sub-title.
   Navy on light sections, red on dark / photo sections.
   Flight animation: layout.js adds .is-airborne when a label scrolls into view.
   The plane takes off (climbs, nose up, then levels), a light glint sweeps
   across the tag, then the plane cruises gently. Hover replays the fly-by.
   ========================================================================== */
.eyebrow, .sub-title, .title-area .sub-title {
  --tag-bg: linear-gradient(135deg, #3a3592 0%, #262261 46%, #16133d 100%);
  --tag-edge: rgba(255,255,255,.16);
  --tag-shadow: 0 10px 22px -12px rgba(22,19,61,.85);
  --tag-plane: #ff5d63;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  width: fit-content; max-width: 100%;
  padding: 7px 17px 7px 13px; border: 0; border-radius: 999px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 700; line-height: 1.3;
  letter-spacing: 0; text-transform: none; color: #fff;
  background: var(--tag-bg);
  box-shadow: var(--tag-shadow), inset 0 1px 0 var(--tag-edge);
  margin-bottom: 16px;
}
/* Dark / photo sections: red tag, white plane */
.eyebrow--light, .section--image .eyebrow, .is-dark .sub-title, .title-area.is-light .sub-title {
  --tag-bg: linear-gradient(135deg, #db1d25 0%, #c9141b 50%, #a10e14 100%);
  --tag-edge: rgba(255,255,255,.24);
  --tag-shadow: 0 10px 24px -10px rgba(236,28,36,.7);
  --tag-plane: #fff;
}
/* White cards inside dark sections go back to navy */
.section--image .callout .eyebrow, .is-dark .aata-feature:not(.is-dark) .sub-title {
  --tag-bg: linear-gradient(135deg, #3a3592 0%, #262261 46%, #16133d 100%);
  --tag-edge: rgba(255,255,255,.16);
  --tag-shadow: 0 10px 22px -12px rgba(22,19,61,.85);
  --tag-plane: #ff5d63;
}
/* The plane (Font Awesome solid "plane"); also resets the template's old rule line */
.eyebrow::before, .sub-title::before {
  content: "\f072"; font-family: "Font Awesome 6 Pro"; font-weight: 900; font-style: normal;
  font-size: 11.5px; line-height: 1; color: var(--tag-plane);
  position: relative; left: auto; top: auto; width: auto; height: auto;
  background: none; display: inline-block; flex-shrink: 0;
  transform: none; transform-origin: 60% 50%;
}
/* The glint: a band of light that sweeps across the tag, under the text */
.eyebrow::after, .sub-title::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 28%, rgba(255,255,255,.34) 48%, rgba(255,255,255,.08) 56%, transparent 72%);
  transform: translateX(-130%);
}

/* Before it scrolls into view, the plane waits off the runway */
.tags-ready :is(.eyebrow, .sub-title):not(.is-airborne)::before { opacity: 0; transform: translate(-20px, 7px) rotate(-4deg); }
/* Hover appends a fly-by to the list (rather than replacing it), so takeoff doesn't replay on mouse-out */
.is-airborne { --tag-takeoff: tag-takeoff 1s cubic-bezier(.22,.8,.25,1) .1s both, tag-cruise 4.5s ease-in-out 1.3s infinite; --tag-glint: tag-glint 1.1s cubic-bezier(.4,0,.2,1) .55s both; }
.is-airborne::before { animation: var(--tag-takeoff); }
.is-airborne::after { animation: var(--tag-glint); }
.is-airborne:hover::before { animation: var(--tag-takeoff), tag-flyby .7s cubic-bezier(.22,.8,.25,1) both; }
.is-airborne:hover::after { animation: var(--tag-glint), tag-glint-again .9s cubic-bezier(.4,0,.2,1) both; }

@keyframes tag-takeoff {
  0%   { opacity: 0; transform: translate(-20px, 7px) rotate(-4deg); text-shadow: none; }
  45%  { opacity: 1; transform: translate(2px, -3px) rotate(-24deg);
         text-shadow: -5px 0 0 rgba(255,255,255,.35), -10px 0 0 rgba(255,255,255,.18), -15px 0 0 rgba(255,255,255,.08); }
  75%  { transform: translate(0, -1px) rotate(-6deg); text-shadow: -4px 0 0 rgba(255,255,255,.12); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0); text-shadow: none; }
}
@keyframes tag-cruise {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50%      { transform: translate(0, -1.5px) rotate(-4deg); }
}
@keyframes tag-flyby {
  0%   { transform: translate(0, 0) rotate(0); }
  40%  { transform: translate(3px, -2px) rotate(-18deg);
         text-shadow: -5px 0 0 rgba(255,255,255,.3), -10px 0 0 rgba(255,255,255,.12); }
  100% { transform: translate(0, 0) rotate(0); text-shadow: none; }
}
@keyframes tag-glint       { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@keyframes tag-glint-again { from { transform: translateX(-130%); } to { transform: translateX(130%); } }

@media (prefers-reduced-motion: reduce) {
  .eyebrow::before, .sub-title::before, .eyebrow::after, .sub-title::after { animation: none !important; }
  .tags-ready :is(.eyebrow, .sub-title):not(.is-airborne)::before { opacity: 1; transform: none; }
}
