/* ==========================================================================
   Involved Holidays — Agent Hub
   Location: wp-content/themes/seventy9-child/blocks/css/agent-hub.css
   Loaded ONLY on pages using template-agent-hub.php.

   - No JavaScript. No @import. No webfont downloads.
   - Everything namespaced `ahx-` / `--ahx-` and scoped inside `.ahx-hub`, so
     it cannot collide with or leak into the parent theme.
   - Icons are inline SVG in the markup — no icon font, no CDN request.
   ========================================================================== */

.ahx-hub{
  /* ---- palette (Agent Hub uses the deeper trade blues) ---- */
  --ahx-blue-900:#0a2450;
  --ahx-blue-800:#0f3370;
  --ahx-blue-700:#154390;
  --ahx-blue-600:#1d55ad;
  --ahx-blue-500:#2595c6;
  --ahx-blue-100:#e6f2f9;
  --ahx-blue-050:#f3f9fc;

  --ahx-gold-600:#a8812f;
  --ahx-gold-500:#c69a40;
  --ahx-gold-400:#d5ac57;
  --ahx-gold-300:#e2c384;
  --ahx-gold-200:#efdcb6;

  --ahx-sand:#f6f2e9;
  --ahx-grey-800:#39434e;
  --ahx-grey-700:#54606d;
  --ahx-grey-600:#6f7c8a;
  --ahx-grey-300:#d3dae0;
  --ahx-grey-200:#e6eaee;
  --ahx-grey-100:#f2f5f7;

  /* ---- semantic ---- */
  --ahx-primary:var(--ahx-blue-700);
  --ahx-primary-hover:var(--ahx-blue-800);
  --ahx-primary-active:var(--ahx-blue-900);
  --ahx-accent:var(--ahx-gold-500);
  --ahx-accent-hover:var(--ahx-gold-600);
  --ahx-heading:var(--ahx-blue-700);
  --ahx-text:var(--ahx-grey-800);
  --ahx-muted:var(--ahx-grey-600);
  --ahx-link:var(--ahx-blue-500);
  --ahx-border:var(--ahx-grey-300);
  --ahx-border-subtle:var(--ahx-grey-200);
  --ahx-surface:#fff;
  --ahx-surface-subtle:var(--ahx-blue-050);
  --ahx-surface-inverse:var(--ahx-blue-800);
  --ahx-focus:0 0 0 3px rgba(37,149,198,.45);

  --ahx-scrim:linear-gradient(to top,rgba(10,36,80,.94) 0%,rgba(10,36,80,.82) 42%,rgba(10,36,80,.52) 72%,rgba(10,36,80,.3) 100%);

  /* ---- type (no webfont request) ---- */
  --ahx-font:"Lato","Helvetica Neue",Helvetica,Arial,sans-serif;
  --ahx-fs-xs:13px;
  --ahx-fs-sm:15px;
  --ahx-fs-base:17px;
  --ahx-fs-md:19px;
  --ahx-fs-lg:23px;

  --ahx-body:400 var(--ahx-fs-base)/1.6 var(--ahx-font);
  --ahx-body-sm:400 var(--ahx-fs-sm)/1.6 var(--ahx-font);
  --ahx-lead:300 var(--ahx-fs-md)/1.6 var(--ahx-font);
  --ahx-label:700 var(--ahx-fs-xs)/1.35 var(--ahx-font);
  --ahx-nav:700 var(--ahx-fs-sm)/1 var(--ahx-font);

  /* ---- layout ---- */
  --ahx-container:1240px;
  --ahx-gutter:24px;
  --ahx-radius-md:10px;
  --ahx-radius-lg:16px;
  --ahx-radius-pill:999px;

  --ahx-shadow-sm:0 2px 6px rgba(18,40,63,.08);
  --ahx-shadow-lg:0 14px 36px rgba(18,40,63,.14);

  --ahx-dur:160ms;
  --ahx-ease:cubic-bezier(.4,0,.2,1);

  --ahx-anchor-offset:90px;

  font:var(--ahx-body);
  color:var(--ahx-text);
  background:var(--ahx-surface);
  width:100%;
  overflow-x:hidden;
}

.ahx-hub *,
.ahx-hub *::before,
.ahx-hub *::after{box-sizing:border-box}

.ahx-hub h1,.ahx-hub h2,.ahx-hub h3{margin:0;color:var(--ahx-heading)}
.ahx-hub p{margin:0}
.ahx-hub img{max-width:100%;display:block}
.ahx-hub ul{margin:0;padding:0;list-style:none}

.ahx-hub a{color:var(--ahx-link);text-decoration:none;transition:color var(--ahx-dur) var(--ahx-ease)}
.ahx-hub a:focus-visible,
.ahx-hub button:focus-visible{outline:none;box-shadow:var(--ahx-focus)}

.ahx-container{max-width:var(--ahx-container);margin:0 auto;padding-inline:var(--ahx-gutter)}
.ahx-eyebrow{
  display:block;
  font:var(--ahx-label);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ahx-accent);
}
.ahx-icon{flex:0 0 auto}

/* -------------------- Buttons -------------------- */
.ahx-hub .ahx-btn{
  display:inline-flex;align-items:center;justify-content:center;
  font:var(--ahx-nav);letter-spacing:.04em;
  padding:15px 26px;min-height:48px;border-radius:var(--ahx-radius-pill);
  border:2px solid transparent;text-align:center;cursor:pointer;
  background:var(--ahx-primary);color:#fff;
  transition:background-color var(--ahx-dur) var(--ahx-ease),
             border-color var(--ahx-dur) var(--ahx-ease),
             color var(--ahx-dur) var(--ahx-ease);
}
.ahx-hub .ahx-btn:hover{background:var(--ahx-primary-hover);color:#fff;text-decoration:none}
.ahx-hub .ahx-btn--lg{padding:17px 30px;min-height:54px;font-size:var(--ahx-fs-base)}
.ahx-hub .ahx-btn--gold{background:var(--ahx-accent);color:#fff}
.ahx-hub .ahx-btn--gold:hover{background:var(--ahx-accent-hover);color:#fff}
.ahx-hub .ahx-btn--inverse{background:transparent;color:#fff;border-color:rgba(255,255,255,.75)}
.ahx-hub .ahx-btn--inverse:hover{background:rgba(255,255,255,.14);border-color:#fff;color:#fff}
.ahx-hub .ahx-btn--outline{background:transparent;color:var(--ahx-primary);border-color:var(--ahx-border)}
.ahx-hub .ahx-btn--outline:hover{background:var(--ahx-blue-050);border-color:var(--ahx-primary);color:var(--ahx-primary)}

/* -------------------- Hero -------------------- */
.ahx-hero{
  position:relative;width:100%;
  min-height:clamp(420px,58vh,620px);
  display:flex;align-items:flex-end;
  background:var(--ahx-blue-900);overflow:hidden;
}
.ahx-hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 60%}
.ahx-hero__scrim{position:absolute;inset:0;background:var(--ahx-scrim)}
.ahx-hero__inner{
  position:relative;width:100%;
  padding-top:clamp(40px,7vw,88px);
  padding-bottom:clamp(32px,5vw,56px);
}
.ahx-hero .ahx-eyebrow{color:var(--ahx-gold-300);margin-bottom:14px}
.ahx-hero__title{
  font:700 clamp(34px,6vw,54px)/1.1 var(--ahx-font);
  color:#fff;margin:0 0 18px;max-width:20ch;
}
.ahx-hero__lead{
  font:var(--ahx-lead);font-size:clamp(17px,2.2vw,19px);
  color:rgba(255,255,255,.92);max-width:56ch;margin:0 0 28px;
}
.ahx-hero__actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.ahx-hero__meta{
  display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:26px;align-items:center;
  font:var(--ahx-body-sm);color:rgba(255,255,255,.85);
}
.ahx-badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 14px;border-radius:var(--ahx-radius-pill);
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);
  font:var(--ahx-label);letter-spacing:.02em;
}
p.ahx-hero__lead {
    margin-bottom: 15px;
}
/* -------------------- Quick links bar -------------------- */
.ahx-quick{
  width:100%;background:var(--ahx-surface-subtle);
  border-bottom:1px solid var(--ahx-border-subtle);
}
.ahx-quick__inner{padding-block:clamp(24px,3vw,32px)}
.ahx-quick__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.ahx-hub .ahx-quick__link{
  display:flex;align-items:center;gap:12px;
  background:var(--ahx-surface);border-radius:var(--ahx-radius-md);
  padding:16px 18px;min-height:64px;box-shadow:var(--ahx-shadow-sm);
  color:var(--ahx-heading);font:var(--ahx-nav);font-size:15px;
  transition:box-shadow var(--ahx-dur) var(--ahx-ease),transform var(--ahx-dur) var(--ahx-ease);
}
.ahx-hub .ahx-quick__link:hover{box-shadow:var(--ahx-shadow-lg);transform:translateY(-2px);text-decoration:none}
.ahx-quick__link .ahx-icon{color:var(--ahx-blue-500)}

/* -------------------- Sections -------------------- */
.ahx-section{width:100%;scroll-margin-top:var(--ahx-anchor-offset)}
.ahx-section__inner{padding-block:clamp(48px,6vw,80px)}
.ahx-section--subtle{background:var(--ahx-surface-subtle)}
.ahx-section--sand{background:var(--ahx-sand)}
.ahx-section__head{margin-bottom:28px}
.ahx-section__head h2{
  font:700 clamp(26px,3.4vw,34px)/1.2 var(--ahx-font);
  color:var(--ahx-heading);margin-top:10px;
}

/* -------------------- Offer cards -------------------- */
.ahx-grid-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}

.ahx-card{
  display:flex;flex-direction:column;
  background:var(--ahx-surface);border-radius:var(--ahx-radius-md);
  overflow:hidden;box-shadow:var(--ahx-shadow-sm);
}
.ahx-card__media{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--ahx-grey-100)}
.ahx-card__media img{width:100%;height:100%;object-fit:cover}
.ahx-card__flag{
  position:absolute;top:14px;left:14px;
  padding:7px 14px;border-radius:var(--ahx-radius-pill);
  background:#fff;color:var(--ahx-heading);font:var(--ahx-label);
}
.ahx-card__body{display:flex;flex-direction:column;gap:12px;padding:24px;flex:1}
.ahx-card__body h3{font:700 var(--ahx-fs-lg)/1.25 var(--ahx-font);color:var(--ahx-heading)}
.ahx-card__body p{font:var(--ahx-body);color:var(--ahx-text)}
.ahx-card__actions{margin-top:auto;padding-top:8px}

/* Plain (image-less) card variant */
.ahx-card--plain{
  background:var(--ahx-sand);box-shadow:none;
  padding:clamp(24px,3vw,36px);gap:12px;
}
.ahx-card--plain .ahx-card__body{padding:0}
.ahx-card--plain .ahx-eyebrow{color:var(--ahx-gold-600)}

.ahx-ticks{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.ahx-ticks li{
  display:flex;gap:10px;align-items:flex-start;
  font:var(--ahx-body-sm);color:var(--ahx-text);
}
.ahx-ticks .ahx-icon{color:var(--ahx-accent);margin-top:2px}

/* -------------------- Brochure block -------------------- */
.ahx-split{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:clamp(28px,4vw,56px);align-items:center;
}
.ahx-split__media{display:flex;justify-content:center}
.ahx-split__media img{
  width:100%;max-width:360px;
  border-radius:var(--ahx-radius-md);box-shadow:var(--ahx-shadow-lg);
}
.ahx-split__body{display:flex;flex-direction:column;gap:16px}
.ahx-split__body h2{font:700 clamp(26px,3.4vw,34px)/1.2 var(--ahx-font);color:var(--ahx-heading)}
.ahx-split__body p{font:var(--ahx-body);color:var(--ahx-text);max-width:52ch}
.ahx-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:4px}

/* -------------------- Support cards -------------------- */
.ahx-card--tall .ahx-card__media{aspect-ratio:4/3}
.ahx-card--tall .ahx-card__body h3{font-size:var(--ahx-fs-lg)}
.ahx-card--tall .ahx-card__body p{font:var(--ahx-body-sm)}

/* Dark socials card */
.ahx-social-card{
  display:flex;flex-direction:column;gap:16px;
  background:var(--ahx-surface-inverse);border-radius:var(--ahx-radius-md);
  padding:clamp(24px,3vw,32px);color:#fff;
}
.ahx-social-card h3{color:#fff;font:700 var(--ahx-fs-lg)/1.25 var(--ahx-font)}
.ahx-social-card p{font:var(--ahx-body-sm);color:rgba(255,255,255,.85)}
.ahx-social-card__links{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto}
.ahx-hub .ahx-social{
  display:inline-flex;align-items:center;gap:9px;
  min-height:44px;padding:11px 18px;border-radius:var(--ahx-radius-pill);
  background:rgba(198,154,64,.16);border:1px solid var(--ahx-gold-400);
  color:var(--ahx-gold-200);font:var(--ahx-nav);
  transition:background-color var(--ahx-dur) var(--ahx-ease),color var(--ahx-dur) var(--ahx-ease);
}
.ahx-hub .ahx-social:hover{background:var(--ahx-accent);color:#fff;text-decoration:none}

/* -------------------- Image library -------------------- */
.ahx-library{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:clamp(28px,4vw,48px)}
.ahx-library__intro{display:flex;flex-direction:column;gap:14px}
.ahx-library__intro h2{font:700 clamp(26px,3.4vw,34px)/1.2 var(--ahx-font);color:var(--ahx-heading)}
.ahx-library__intro p{font:var(--ahx-body);color:var(--ahx-text);max-width:48ch}
.ahx-library__list{display:flex;flex-direction:column;gap:12px}
.ahx-hub .ahx-download{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  background:var(--ahx-surface);border-radius:var(--ahx-radius-md);
  padding:20px 22px;min-height:72px;box-shadow:var(--ahx-shadow-sm);
  color:var(--ahx-heading);
  transition:box-shadow var(--ahx-dur) var(--ahx-ease),transform var(--ahx-dur) var(--ahx-ease);
}
.ahx-hub .ahx-download:hover{box-shadow:var(--ahx-shadow-lg);transform:translateY(-2px);text-decoration:none}
.ahx-download__label{display:flex;align-items:center;gap:14px;min-width:0}
.ahx-download__label .ahx-icon{color:var(--ahx-accent)}
.ahx-download__label span{font:700 17px/1.35 var(--ahx-font);color:var(--ahx-heading)}
.ahx-download__cta{
  display:inline-flex;align-items:center;gap:8px;
  font:var(--ahx-label);color:var(--ahx-link);flex:0 0 auto;
}

/* -------------------- Contact panel -------------------- */
.ahx-contact{
  background:var(--ahx-surface-inverse);border-radius:var(--ahx-radius-lg);
  padding:clamp(28px,4vw,56px);color:#fff;
}
.ahx-contact__grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:clamp(24px,3vw,48px);align-items:start;
}
.ahx-contact__intro{display:flex;flex-direction:column;gap:16px}
.ahx-contact__intro h2{font:700 clamp(26px,3.4vw,34px)/1.2 var(--ahx-font);color:#fff}
.ahx-contact__intro p{font:var(--ahx-body);color:rgba(255,255,255,.85);max-width:48ch}
.ahx-contact__badge{
  display:inline-flex;align-items:center;gap:10px;align-self:flex-start;
  padding:8px 16px;border-radius:var(--ahx-radius-pill);
  background:rgba(171,139,68,.22);border:1px solid var(--ahx-gold-400);
  color:var(--ahx-gold-200);font:var(--ahx-label);
}
.ahx-contact__list{display:flex;flex-direction:column;gap:14px}
.ahx-hub .ahx-contact__item{
  display:flex;align-items:center;gap:16px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);
  border-radius:var(--ahx-radius-md);padding:20px 22px;color:#fff;
  transition:background-color var(--ahx-dur) var(--ahx-ease);
}
.ahx-hub .ahx-contact__item:hover{background:rgba(255,255,255,.16);text-decoration:none}
.ahx-contact__item .ahx-icon{color:var(--ahx-gold-300)}
.ahx-contact__text{display:flex;flex-direction:column;gap:4px;min-width:0}
.ahx-contact__big{font:700 var(--ahx-fs-lg)/1.25 var(--ahx-font);color:#fff;overflow-wrap:anywhere}
.ahx-contact__big--sm{font-size:var(--ahx-fs-md)}
.ahx-contact__note{font:var(--ahx-body-sm);color:rgba(255,255,255,.75)}

/* -------------------- Reduced motion -------------------- */
@media (prefers-reduced-motion:reduce){
  .ahx-hub *{animation-duration:.01ms;transition-duration:.01ms}
  .ahx-hub .ahx-quick__link:hover,
  .ahx-hub .ahx-download:hover{transform:none}
}

/* ==========================================================================
   PARENT THEME OVERRIDES
   --------------------------------------------------------------------------
   The Seventy9 theme applies global heading styles (uppercase, forced colour,
   decorative ::before/::after rules) and global button styling that bleed into
   custom layouts. `!important` is used deliberately and ONLY here, and every
   selector is scoped inside `.ahx-hub`.
   ========================================================================== */

.ahx-hub h1,
.ahx-hub h2,
.ahx-hub h3,
.ahx-hub h4{
  text-transform:none !important;
  letter-spacing:normal !important;
  font-family:var(--ahx-font) !important;
  text-decoration:none !important;
  text-align:left !important;
  margin:0 !important;
}

.ahx-hub h1::before, .ahx-hub h1::after,
.ahx-hub h2::before, .ahx-hub h2::after,
.ahx-hub h3::before, .ahx-hub h3::after,
.ahx-hub h4::before, .ahx-hub h4::after{
  content:none !important;
  display:none !important;
  background:none !important;
  border:0 !important;
}

.ahx-hub .ahx-hero__title{color:#fff !important;font-weight:700 !important;margin:0 0 18px !important}
.ahx-hub .ahx-section__head h2{color:var(--ahx-heading) !important;margin:10px 0 0 !important}
.ahx-hub .ahx-split__body h2,
.ahx-hub .ahx-library__intro h2{color:var(--ahx-heading) !important}
.ahx-hub .ahx-contact__intro h2,
.ahx-hub .ahx-social-card h3{color:#fff !important}
.ahx-hub .ahx-card__body h3{color:var(--ahx-heading) !important;font-weight:700 !important}

.ahx-hub .ahx-eyebrow{
  text-transform:uppercase !important;
  letter-spacing:.14em !important;
  font-size:var(--ahx-fs-xs) !important;
  font-weight:700 !important;
}

.ahx-hub p{font-family:var(--ahx-font) !important;text-transform:none !important}
.ahx-hub .ahx-hero__lead{color:rgba(255,255,255,.92) !important}
.ahx-hub .ahx-card__body p{color:var(--ahx-text) !important}
.ahx-hub .ahx-social-card p,
.ahx-hub .ahx-contact__intro p{color:rgba(255,255,255,.85) !important}
.ahx-hub .ahx-contact__note{color:rgba(255,255,255,.75) !important}

.ahx-hub .ahx-btn{
  text-transform:none !important;
  letter-spacing:.04em !important;
  font-family:var(--ahx-font) !important;
  font-weight:700 !important;
  text-decoration:none !important;
  width:auto !important;
  box-shadow:none !important;
}
.ahx-hub .ahx-btn:hover{text-decoration:none !important}
.ahx-hub .ahx-btn:focus-visible{box-shadow:var(--ahx-focus) !important}

/* Full-bleed: the theme wraps page content in a max-width container. */
.ahx-hub{max-width:none !important;margin:0 !important;padding:0 !important}
.ahx-hub .ahx-hero,
.ahx-hub .ahx-quick,
.ahx-hub .ahx-section{max-width:none !important}

/* The theme adds list bullets/margins globally. */
.ahx-hub ul{list-style:none !important;margin:0 !important;padding:0 !important}
.ahx-hub .ahx-ticks li{margin:0 !important}
