/*
 * agx.css - Avant-Garde Pools & Spas Homepage V2 Components
 * Prefix: agx-
 * Scope: Global header + Homepage V2 components
 * Phase: 2
 * Do not add legacy-prefix classes to this file.
 * Phase 3 will migrate ag- → agx- in separate files per component.
 */

:root {
  --agx-bg-primary: #DCEAF2;
  --agx-bg-secondary: #FFFFFF;
  --agx-color-navy: #17324D;
  --agx-color-gold: #C9A96B;
  --agx-text-primary: #223548;
  --agx-text-secondary: #6E7D8B;
  --agx-font-heading: 'Satoshi', sans-serif;
  --agx-font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--agx-font-body) !important;
  color: var(--agx-text-primary) !important;
  background: var(--agx-bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body.agx-menu-open {
  overflow: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* =============================================
   HERO SYSTEM (REFINED SPACING & TYPOGRAPHY)
   ============================================= */
.agx-hero {
  position: relative;
  height: calc(100vh - 100px);
  min-height: calc(100svh - 100px);
  width: 100%;
  display: flex;
  align-items: flex-start;
  background-color: var(--agx-bg-primary);
  margin-top: 100px;
  overflow: hidden;
}
.agx-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.agx-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,40,60,0.55) 0%, rgba(18,40,60,0.25) 35%, rgba(18,40,60,0) 65%);
  z-index: 1;
}
.agx-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(34px, 4vw, 72px) clamp(48px, 5vw, 96px) 0;
}
.agx-hero-eyebrow {
  font-family: var(--agx-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--agx-color-gold);
  margin-bottom: 32px;
  display: none;
}
.agx-hero-headline {
  font-family: var(--agx-font-heading);
  font-size: clamp(72px, 6.2vw, 118px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -1.8px;
  color: #FFFFFF;
  margin-bottom: clamp(34px, 3vw, 50px);
  margin-top: 0;
  max-width: 1120px;
}
.agx-hero-subheadline {
  font-family: var(--agx-font-body);
  font-size: clamp(20px, 1.35vw, 25px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 760px;
  margin-bottom: clamp(46px, 4vw, 70px);
  letter-spacing: 0.2px;
}
.agx-hero-actions {
  display: flex;
  gap: 34px;
  align-items: center;
  margin-bottom: 52px;
}
.agx-btn-primary, .agx-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--agx-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  height: 68px;
  min-width: 300px;
  padding: 0 44px;
  border-radius: 4px;
  transition: all 0.4s ease;
  white-space: nowrap;
}
.agx-btn-primary {
  background: var(--agx-bg-secondary);
  color: var(--agx-color-navy);
  border: 1px solid var(--agx-bg-secondary);
}
.agx-btn-primary:hover {
  background: rgba(255,255,255,0.05);
  color: #FFFFFF;
}
.agx-btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  min-width: 260px;
}
.agx-btn-secondary:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}
.agx-trust-line {
  font-family: var(--agx-font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2.2px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

@media (max-width: 1279px) {
  .agx-hero {
    height: calc(100vh - 92px);
    min-height: calc(100svh - 92px);
    margin-top: 92px;
  }
  .agx-hero-headline {
    font-size: clamp(64px, 7vw, 92px);
    max-width: 920px;
  }
  .agx-hero-subheadline {
    font-size: clamp(18px, 1.6vw, 21px);
    max-width: 660px;
  }
  .agx-btn-primary,
  .agx-btn-secondary {
    height: 60px;
    min-width: 250px;
    font-size: 13px;
    letter-spacing: 2.4px;
  }
}

@media (max-width: 1023px) {
  .agx-hero {
    height: auto;
    min-height: calc(100svh - 80px);
    margin-top: 80px;
    padding-bottom: calc(106px + env(safe-area-inset-bottom));
  }
  .agx-hero-content {
    padding: clamp(42px, 8vw, 72px) clamp(32px, 6vw, 56px) 0;
  }
  .agx-hero-eyebrow {
    display: block;
  }
  .agx-hero-headline {
    font-size: clamp(50px, 8vw, 72px);
    line-height: 1.06;
    max-width: 760px;
  }
  .agx-hero-subheadline {
    font-size: clamp(17px, 2.2vw, 20px);
    max-width: 620px;
  }
}

@media (max-width: 767px) {
  .agx-hero-overlay { background: linear-gradient(180deg, rgba(18,40,60,0.1) 0%, rgba(18,40,60,0.6) 100%); }
  .agx-hero { margin-top: 85px; padding-bottom: calc(124px + env(safe-area-inset-bottom)); align-items: flex-end; min-height: calc(100svh - 85px); }
  .agx-hero-content { padding: 0 24px; }
  .agx-hero-eyebrow { display: block; font-size: 11px; letter-spacing: 3.6px; margin-bottom: 22px; }
  .agx-hero-headline { font-size: clamp(38px, 10vw, 48px); line-height: 1.08; letter-spacing: -0.8px; margin-bottom: 24px; }
  .agx-hero-subheadline { font-size: 16px; margin-bottom: 32px; max-width: 100%; }
  .agx-hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 32px; }
  .agx-hero-actions .agx-btn-primary { display: none; }
  .agx-btn-primary, .agx-btn-secondary { width: 100%; min-width: 0; height: 52px; padding-inline: 18px; font-size: 12px; letter-spacing: 1.8px; }
  .agx-trust-line { font-size: 10px; letter-spacing: 1.4px; line-height: 1.8; }
}

/* =============================================
   HOMEPAGE V2 SHARED SECTION SYSTEM
   ============================================= */
.agx-section {
  position: relative;
  padding: clamp(72px, 8vw, 132px) 0;
  overflow: hidden;
}

.agx-section--white {
  background: #fcfcfa;
  color: var(--agx-text-primary);
}

.agx-section--sky {
  background: #dcecf4;
  color: var(--agx-text-primary);
}

.agx-section--navy {
  background: #0a1b2a;
  color: #ffffff;
}

.agx-section__inner {
  width: min(calc(100% - clamp(32px, 6vw, 112px)), 1680px);
  margin-inline: auto;
}

.agx-heading {
  /* No max-width here - let section headings use available container width.
     Readability constraints belong on __body text, not on the heading wrapper. */
  margin-bottom: clamp(34px, 4vw, 60px);
}

.agx-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--agx-color-gold);
  font-family: var(--agx-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.agx-heading__eyebrow::before {
  content: "";
  display: block;
  width: 38px;
  height: 1px;
  background: currentColor;
  opacity: 0.72;
}

.agx-heading__title {
  margin: 0;
  /* No max-width - let the title fill available width.
     It wraps naturally when the container narrows. */
  color: var(--agx-color-navy);
  font-family: var(--agx-font-heading);
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  /* pretty: avoids orphan words without forcing equal-length lines */
  text-wrap: pretty;
}

.agx-heading__body {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--agx-text-secondary);
  font-family: var(--agx-font-body);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 300;
  line-height: 1.75;
}

[data-agx-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-agx-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   SECTION 1: AFFILIATIONS
   ============================================= */
.agx-affil {
  border-bottom: 1px solid rgba(23, 50, 77, 0.08);
}

.agx-affil__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.agx-affil__card {
  position: relative;
  display: grid;
  min-height: 310px;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid rgba(23, 50, 77, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 252, 250, 0.98)),
    #ffffff;
  box-shadow: 0 24px 70px rgba(23, 50, 77, 0.08);
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.agx-affil__card::after {
  content: "";
  position: absolute;
  left: clamp(26px, 3vw, 42px);
  right: clamp(26px, 3vw, 42px);
  bottom: 0;
  height: 3px;
  background: var(--agx-color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.agx-affil__card:hover,
.agx-affil__card:focus-visible {
  border-color: rgba(200, 169, 107, 0.55);
  box-shadow: 0 32px 90px rgba(23, 50, 77, 0.13);
  transform: translateY(-4px);
}

.agx-affil__card:hover::after,
.agx-affil__card:focus-visible::after {
  transform: scaleX(1);
}

.agx-affil__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 88px;
  min-height: 52px;
  margin-bottom: 34px;
  padding: 0 18px;
  border: 1px solid rgba(23, 50, 77, 0.1);
  color: var(--agx-color-navy);
  font-family: var(--agx-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.agx-affil__mark--logo {
  width: min(220px, 70%);
  min-width: 0;
  min-height: 76px;
  padding: 12px 18px;
  background: #ffffff;
}

.agx-affil__mark--logo img {
  display: block;
  width: 100%;
  max-width: 190px;
  max-height: 70px;
  object-fit: contain;
}

.agx-affil__card:nth-child(2) .agx-affil__mark--logo {
  width: min(132px, 48%);
  border-radius: 999px;
}

.agx-affil__card:nth-child(3) .agx-affil__mark--logo {
  width: min(260px, 82%);
}

.agx-affil__name {
  display: block;
  max-width: 330px;
  color: var(--agx-color-navy);
  font-family: var(--agx-font-heading);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.agx-affil__body {
  display: block;
  max-width: 410px;
  margin-top: 20px;
  color: var(--agx-text-secondary);
  font-family: var(--agx-font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.agx-affil__link {
  align-self: end;
  display: inline-flex;
  width: fit-content;
  margin-top: 34px;
  color: var(--agx-color-gold);
  font-family: var(--agx-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .agx-affil__grid {
    grid-template-columns: 1fr;
  }

  .agx-affil__card {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .agx-section {
    padding: 68px 0;
  }

  .agx-heading__title {
    font-size: clamp(34px, 10vw, 44px);
  }

  .agx-affil__card {
    padding: 26px;
  }
}

/* =============================================
   LOCATION PAGES SUPPORT STYLES
   ============================================= */
.agx-destination {
  padding-top: 100px;
  background-color: #dcecf4;
}

@media (max-width: 1023px) {
  .agx-destination {
    padding-top: 80px;
  }
}

@media (max-width: 767px) {
  .agx-destination {
    padding-top: 85px;
  }
  .agx-dest-hero {
    padding-top: 50px !important;
    padding-bottom: 30px !important;
  }
  .agx-destination > .agx-section:first-of-type {
    padding-top: 40px !important;
  }
}

.agx-dest-hero {
  position: relative;
  padding: clamp(80px, 8vw, 130px) 0;
  background-color: #dcecf4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.agx-dest-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/luxury-poolside-hero.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.agx-dest-hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - clamp(32px, 6vw, 112px)), 1200px);
  margin: 0 auto;
}

.agx-dest-hero-content {
  width: min(calc(100% - clamp(32px, 6vw, 112px)), 1200px);
  margin: 0 auto;
}

/* Hero eyebrow hidden on destination pages - cleaner hero */
.agx-dest-hero-eyebrow {
  display: none !important;
}

.agx-dest-hero-headline {
  font-family: var(--agx-font-heading);
  /* Desktop: targets ~1 line at 1440px; max 2 lines. Mobile: ≤2 lines at 390px. */
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--agx-color-navy);
  margin: 0 auto 24px;
  /* Tight max-width prevents long headings wrapping to 3 lines */
  max-width: 840px;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
}

/* 1440px - keep headline on one line wherever possible */
@media (min-width: 1280px) {
  .agx-dest-hero-headline {
    font-size: clamp(40px, 3.2vw, 52px);
    max-width: 900px;
  }
}

/* 768-1279px - allow 2 lines, stay balanced */
@media (max-width: 1279px) and (min-width: 768px) {
  .agx-dest-hero-headline {
    font-size: clamp(32px, 4vw, 44px);
    max-width: 680px;
  }
}

/* Mobile 390px - max 2 lines, never 3 */
@media (max-width: 767px) {
  .agx-dest-hero-headline {
    font-size: clamp(26px, 7.5vw, 34px);
    max-width: 360px;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
}

.agx-dest-hero-subheadline {
  font-family: var(--agx-font-body);
  font-size: clamp(15px, 1.1vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--agx-text-primary);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 767px) {
  .agx-dest-hero-subheadline {
    font-size: 15px;
    max-width: 320px;
  }
}

.agx-location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 2.5vw, 40px);
  margin-top: 40px;
}

@media (min-width: 768px) {
  .agx-location__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .agx-location__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.agx-location__card {
  display: flex;
  flex-direction: column;
  min-height: 224px;
  padding: 24px;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: 8px;
  background: var(--agx-bg-secondary);
  box-shadow: 0 4px 12px rgba(23, 50, 77, 0.01);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.agx-location__card:hover {
  border-color: var(--agx-color-gold);
  box-shadow: 0 10px 24px rgba(23, 50, 77, 0.06);
  transform: translateY(-3px);
}

/* Gold accent bar at top on hover */
.agx-location__card::before {
  content: '';
  display: block;
  height: 2px;
  width: 32px;
  background: var(--agx-color-gold);
  border-radius: 2px;
  margin-bottom: 16px;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 220ms ease, transform 280ms ease;
}

.agx-location__card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.agx-location__title {
  margin: 0 0 10px 0;
  min-height: 2.5em;
  font-family: var(--agx-font-heading);
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 500;
  color: var(--agx-color-navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Preview text container - collapses to 3 lines by default */
.agx-location__preview,
.agx-location__card > p {
  font-family: var(--agx-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--agx-text-secondary);
  margin: 0;
  max-height: 4.8em; /* 3 lines × 1.6 line-height */
  overflow: hidden;
  transition: max-height 320ms ease;
  /* Full content is in the DOM for SEO - only display collapses */
}

.agx-location__card.is-expanded .agx-location__preview,
.agx-location__card.is-expanded > p {
  max-height: 800px;
}

/* Actions row - mirrors .agx-dest-services__actions exactly */
.agx-location__card-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 50, 77, 0.04);
}

/* Read More / Read Less button */
.agx-location__read-more {
  background: none;
  border: none;
  font-family: var(--agx-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--agx-color-navy);
  cursor: pointer;
  align-self: flex-start;
  margin-top: auto;
  padding: 14px 0 0;
  transition: color 200ms ease;
}

.agx-location__read-more:hover {
  color: var(--agx-color-gold);
}

.agx-location__services {
  font-family: var(--agx-font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--agx-color-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.agx-location__services:hover {
  color: var(--agx-color-navy);
  padding-left: 6px;
}

/* =============================================
   HOMEPAGE PHASE 2 SECTIONS
   Scope starts below the frozen hero.
   ============================================= */

.agx-section--navy .agx-heading__title,
.agx-section--navy .agx-heading__body {
  color: #ffffff;
}

.agx-section-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: clamp(30px, 4vw, 54px);
  color: var(--agx-color-gold);
  font-family: var(--agx-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.agx-section-link::after {
  content: "";
  width: 42px;
  height: 1px;
  margin-left: 16px;
  background: currentColor;
  transition: transform 220ms ease;
}

.agx-section-link:hover::after,
.agx-section-link:focus-visible::after {
  transform: translateX(8px);
}

.agx-section-link--light {
  color: #dcecf4;
}

.agx-philosophy__grid,
.agx-service-matrix__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.agx-philosophy__card,
.agx-service-matrix__card {
  display: grid;
  align-content: start;
  min-height: 250px;
  padding: clamp(24px, 2.6vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.agx-philosophy__card span,
.agx-service-matrix__card span {
  margin-bottom: 28px;
  color: var(--agx-color-gold);
  font-family: var(--agx-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
}

.agx-philosophy__card h3,
.agx-service-matrix__card h3 {
  margin: 0 0 16px;
  font-family: var(--agx-font-heading);
  font-size: clamp(21px, 1.9vw, 30px);
  font-weight: 500;
  line-height: 1.06;
}

.agx-philosophy__card p,
.agx-service-matrix__card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.68;
}

.agx-service-matrix__card {
  border-color: rgba(23, 50, 77, 0.1);
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(23, 50, 77, 0.06);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.agx-service-matrix__card:hover,
.agx-service-matrix__card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 107, 0.55);
  box-shadow: 0 28px 80px rgba(23, 50, 77, 0.12);
}

.agx-service-matrix__card p {
  color: var(--agx-text-secondary);
}

.agx-service-matrix__card a {
  align-self: end;
  width: fit-content;
  margin-top: 28px;
  color: var(--agx-color-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.agx-section-action {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(34px, 4vw, 56px);
}

.agx-section-action .agx-btn {
  display: inline-flex;
  min-width: 240px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 2px solid var(--agx-color-navy);
  border-radius: 4px;
  color: var(--agx-color-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.agx-section-action .agx-btn:hover,
.agx-section-action .agx-btn:focus-visible {
  transform: translateY(-2px);
}

.agx-section-action .agx-btn--primary {
  background: var(--agx-color-navy);
  color: #ffffff;
}

.agx-section-action .agx-btn--primary:hover,
.agx-section-action .agx-btn--primary:focus-visible {
  border-color: #244964;
  background: #244964;
}

.agx-philosophy {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.1), transparent 34%),
    var(--agx-color-navy);
}

.agx-philosophy__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.agx-philosophy__card {
  position: relative;
  min-height: 0;
  padding: clamp(26px, 3vw, 42px) clamp(22px, 3vw, 36px);
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  transition: background 220ms ease, transform 220ms ease;
}

.agx-philosophy__card:nth-child(3n) {
  border-right: 0;
}

.agx-philosophy__card:hover,
.agx-philosophy__card:focus-within {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
}

.agx-philosophy__card span {
  margin-bottom: 42px;
}

.agx-service-matrix__grid {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1280px;
  margin-inline: auto;
  border-top: 1px solid rgba(23, 50, 77, 0.14);
  border-bottom: 1px solid rgba(23, 50, 77, 0.14);
}

.agx-service-matrix__card {
  grid-template-columns: 74px minmax(220px, 0.8fr) minmax(280px, 1.2fr) auto;
  gap: clamp(18px, 2.8vw, 48px);
  align-items: center;
  min-height: 126px;
  padding: clamp(22px, 2.5vw, 34px) clamp(8px, 1vw, 14px);
  border: 0;
  border-bottom: 1px solid rgba(23, 50, 77, 0.12);
  background: transparent;
  box-shadow: none;
}

.agx-service-matrix__card:last-child {
  border-bottom: 0;
}

.agx-service-matrix__card:hover,
.agx-service-matrix__card:focus-within {
  transform: none;
  background: rgba(220, 236, 244, 0.55);
  box-shadow: none;
}

.agx-service-matrix__card span,
.agx-service-matrix__card h3,
.agx-service-matrix__card p,
.agx-service-matrix__card a {
  margin: 0;
}

.agx-service-matrix__card p {
  color: var(--agx-text-secondary);
}

.agx-service-matrix__card a {
  white-space: nowrap;
}

.agx-process-v2__rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(23, 50, 77, 0.12);
  border: 1px solid rgba(23, 50, 77, 0.12);
}

.agx-process-v2__step {
  min-height: 154px;
  padding: 24px;
  background: #fcfcfa;
}

.agx-process-v2__step span {
  display: block;
  margin-bottom: 28px;
  color: var(--agx-color-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.agx-process-v2__step strong {
  color: var(--agx-color-navy);
  font-family: var(--agx-font-heading);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 500;
  line-height: 1.14;
}

.agx-gallery-v2__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 280px;
  gap: clamp(12px, 1.6vw, 20px);
}

.agx-gallery-v2__item {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--agx-color-navy);
}

.agx-gallery-v2__item:first-child {
  grid-row: span 2;
}

.agx-gallery-v2__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.agx-gallery-v2__item:hover img {
  transform: scale(1.04);
}

.agx-gallery-v2__item figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  background: rgba(252, 252, 250, 0.88);
  color: var(--agx-color-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.agx-testimonials__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.agx-testimonials__item,
.agx-testimonials__track > p {
  min-height: 210px;
  padding: clamp(24px, 2.6vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.agx-testimonials__quote {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 300;
  line-height: 1.5;
}

.agx-testimonials__meta {
  margin: 0;
  color: var(--agx-color-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.agx-final {
  max-width: 980px;
  text-align: center;
}

.agx-cta-final {
  position: relative;
  padding: clamp(80px, 8vw, 120px) 0;
  background: #ffffff;
  border-top: 1px solid rgba(23, 50, 77, 0.05);
  border-bottom: 1px solid rgba(23, 50, 77, 0.08);
}

.agx-cta-final::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--agx-color-gold);
  border-radius: 999px;
}

.agx-cta-final__headline {
  margin: 0;
  color: var(--agx-color-navy);
  font-family: var(--agx-font-heading);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.agx-cta-final__sub {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--agx-text-secondary);
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: 300;
  line-height: 1.7;
}

.agx-cta-final__btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.agx-cta-final__btns .agx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid var(--agx-color-navy);
  color: var(--agx-color-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 300ms ease;
}

.agx-cta-final__btns .agx-btn--primary {
  background: var(--agx-color-navy);
  color: #ffffff;
}

.agx-cta-final__btns .agx-btn--primary:hover {
  background: var(--agx-color-gold);
  border-color: var(--agx-color-gold);
  color: #ffffff;
}

@media (max-width: 1023px) {
  .agx-philosophy__grid,
  .agx-service-matrix__grid,
  .agx-testimonials__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agx-process-v2__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agx-gallery-v2__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 240px;
  }
}

@media (max-width: 767px) {
  .agx-philosophy__grid,
  .agx-service-matrix__grid,
  .agx-testimonials__track,
  .agx-process-v2__rail,
  .agx-gallery-v2__grid {
    grid-template-columns: 1fr;
  }

  .agx-philosophy__card,
  .agx-service-matrix__card,
  .agx-process-v2__step {
    min-height: 0;
  }

  .agx-gallery-v2__grid {
    grid-auto-rows: 260px;
  }

  .agx-gallery-v2__item:first-child {
    grid-row: span 1;
  }

  .agx-section-action .agx-btn {
    width: 100%;
    min-width: 0;
  }

  .agx-cta-final__btns {
    flex-direction: column;
  }
}

/* =============================================
   REFINED LOCATION PAGES SPECIFIC SUPPORT
   ============================================= */
.agx-dest-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 4.5vw, 80px);
  align-items: center;
}

.agx-dest-split__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(23, 50, 77, 0.07);
}

.agx-dest-split__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   Communities Premium Strip - Single-Row Horizontal Scroll
   Never wraps to multiple lines. Luxury-static feel.
   ============================================= */
.agx-ticker-section {
  width: 100%;
  background: #f5fafe;
  border-top: 1px solid rgba(23, 50, 77, 0.05);
  border-bottom: 1px solid rgba(23, 50, 77, 0.05);
  padding: 18px 0;
}

.agx-ticker-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  padding-inline: clamp(20px, 4vw, 72px);
}

.agx-ticker-wrap::-webkit-scrollbar {
  display: none;
}

.agx-ticker-track {
  display: flex;
  align-items: center;
  /* Single row - never wraps */
  flex-wrap: nowrap;
  gap: 0;
  /* Centre on desktop if all items fit */
  margin-inline: auto;
}

.agx-ticker-item {
  font-family: var(--agx-font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--agx-color-navy);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding-inline: 14px;
  flex-shrink: 0;
}

.agx-ticker-item::after {
  content: "•";
  margin-left: 28px;
  color: var(--agx-color-gold);
  font-weight: bold;
}

.agx-ticker-item:last-child::after {
  display: none;
}

@media (max-width: 767px) {
  .agx-ticker-wrap {
    padding-inline: 16px;
  }
  .agx-ticker-item {
    font-size: 12px;
    letter-spacing: 1.6px;
    padding-inline: 10px;
  }
  .agx-ticker-item::after {
    margin-left: 20px;
  }
}

/* Services Expandable Cards Layout */
.agx-dest-services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  justify-content: flex-start;
}

.agx-dest-services__card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: 8px;
  background: var(--agx-bg-secondary);
  box-shadow: 0 4px 12px rgba(23, 50, 77, 0.01);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
  width: 100%;
}

@media (min-width: 768px) {
  .agx-dest-services__card {
    width: calc(50% - 10px);
  }
}

@media (min-width: 1024px) {
  .agx-dest-services__card {
    width: calc(33.333% - 14px);
  }
}

.agx-dest-services__card:hover {
  border-color: var(--agx-color-gold);
  box-shadow: 0 10px 24px rgba(23, 50, 77, 0.06);
}

.agx-dest-services__name {
  font-family: var(--agx-font-heading);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 500;
  color: var(--agx-color-navy);
  margin-bottom: 12px;
  line-height: 1.25;
  margin-top: 0;
}

.agx-dest-services__content {
  font-family: var(--agx-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--agx-text-secondary);
  margin-bottom: 20px;
  max-height: 4.8em; /* exactly 3 lines at 1.6 line-height */
  overflow: hidden;
  transition: max-height 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.agx-dest-services__card.is-expanded .agx-dest-services__content {
  max-height: 600px;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.agx-dest-services__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 50, 77, 0.04);
}

.agx-dest-services__read-more {
  background: none;
  border: none;
  font-family: var(--agx-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--agx-color-navy);
  cursor: pointer;
  padding: 0;
  transition: color 200ms ease;
}

.agx-dest-services__read-more:hover {
  color: var(--agx-color-gold);
}

.agx-dest-services__explore {
  font-family: var(--agx-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--agx-color-gold);
  text-decoration: none;
  transition: color 200ms ease;
}

.agx-dest-services__explore:hover {
  color: var(--agx-color-navy);
}

/* Destination Global Container & Headings */
.agx-dest-container {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: 72px;
}

@media (max-width: 1199px) {
  .agx-dest-container {
    padding-inline: 48px;
  }
}

@media (max-width: 1023px) {
  .agx-dest-container {
    padding-inline: 32px;
  }
}

@media (max-width: 767px) {
  .agx-dest-container {
    padding-inline: 20px;
  }
}

.agx-destination .agx-heading__title {
  /* Destination section headings: adaptive sizing.
     No max-width - heading uses full available column width.
     text-wrap:pretty avoids orphan last words without forcing 2-line layout. */
  font-size: clamp(26px, 2.8vw, 40px) !important;
  line-height: 1.18;
  text-wrap: pretty;
  white-space: normal;
}

.agx-heading--center {
  text-align: center !important;
  margin-inline: auto !important;
}

.agx-heading--center .agx-heading__title {
  margin-inline: auto !important;
}

.agx-heading--center .agx-heading__eyebrow {
  justify-content: center !important;
}

/* FAQ Accordion Styling */
.agx-faq-accordion {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agx-faq-item {
  background: #ffffff;
  border: 1px solid rgba(23, 50, 77, 0.06);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(23, 50, 77, 0.015);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.agx-faq-item:hover {
  border-color: rgba(201, 169, 107, 0.35);
  box-shadow: 0 10px 24px rgba(23, 50, 77, 0.04);
}

.agx-faq-item[open] {
  border-color: var(--agx-color-gold);
  box-shadow: 0 12px 30px rgba(23, 50, 77, 0.06);
}

.agx-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 3vw, 32px);
  font-family: var(--agx-font-heading);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 500;
  color: var(--agx-color-navy);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
  gap: 20px;
}

.agx-faq-summary::-webkit-details-marker {
  display: none;
}

.agx-faq-summary::after {
  content: "+";
  font-family: var(--agx-font-body);
  font-size: 24px;
  font-weight: 300;
  color: var(--agx-color-gold);
  transition: transform 240ms ease, color 240ms ease;
  line-height: 1;
}

.agx-faq-item[open] .agx-faq-summary::after {
  content: "−";
  transform: rotate(180deg);
  color: var(--agx-color-navy);
}

.agx-faq-content {
  padding: 0 clamp(20px, 3vw, 32px) 24px;
  font-family: var(--agx-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--agx-text-secondary);
  border-top: 1px solid rgba(23, 50, 77, 0.04);
  padding-top: 16px;
  animation: agx-fade-in 300ms ease forwards;
}

@keyframes agx-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agx-destination .agx-heading__eyebrow {
  font-size: 14px;
  letter-spacing: 3px;
}

.agx-destination .agx-heading__eyebrow::before {
  display: none !important;
}

@media (max-width: 1023px) {
  .agx-dest-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .agx-dest-split__image-wrapper {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767px) {
  .agx-dest-hero {
    text-align: center !important;
  }
  .agx-dest-hero-content {
    text-align: center !important;
    padding-inline: 16px;
  }
  .agx-dest-hero-headline {
    text-align: center !important;
    margin-inline: auto !important;
  }
  .agx-dest-hero-subheadline {
    text-align: center !important;
    margin-inline: auto !important;
  }
}

/* =============================================
   LIGHTENED FOOTER THEME OVERRIDES
   ============================================= */
.ag-site-footer {
  background: #f5fafe !important;
  color: var(--agx-text-primary) !important;
  border-top: 1px solid rgba(23, 50, 77, 0.08) !important;
}

.ag-footer-grid {
  border-bottom: 1px solid rgba(23, 50, 77, 0.08) !important;
}

/* Footer logo - no box, no border, aligned naturally */
.ag-footer-logo {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ag-site-footer h2 {
  color: var(--agx-color-navy) !important;
}

.ag-site-footer a {
  color: var(--agx-text-secondary) !important;
}

.ag-site-footer a:hover {
  color: var(--agx-color-gold) !important;
}

.ag-footer-bottom p, 
.ag-footer-bottom nav a {
  color: var(--agx-text-secondary) !important;
}

@media (max-width: 820px) {
  .ag-site-footer .ag-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  .ag-site-footer .ag-footer-brand {
    margin-bottom: 24px;
  }
}

/* =============================================
   HOMEPAGE V2 CONTENT, BELOW THE FROZEN HERO
   ============================================= */
.agx-home-heading {
  max-width: 860px;
  margin-bottom: clamp(38px, 5vw, 72px);
}

.agx-home-heading--center {
  margin-inline: auto;
  text-align: center;
}

.agx-home-heading h2,
.agx-home-why__content h2,
.agx-home-investment h2,
.agx-home-final h2,
.agx-home-contact h2 {
  margin: 0;
  color: var(--agx-color-navy);
  font-family: var(--agx-font-heading);
  font-size: clamp(38px, 4.4vw, 72px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

.agx-home-heading p,
.agx-home-why__content > p,
.agx-home-investment p,
.agx-home-final p,
.agx-home-contact__intro > p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--agx-text-secondary);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.75;
}

.agx-home-heading--center p {
  margin-inline: auto;
}

.agx-home-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--agx-color-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.agx-home-text-link,
.agx-home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--agx-color-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.agx-home-text-link span,
.agx-home-section-link span {
  color: var(--agx-color-gold);
  transition: transform 180ms ease;
}

.agx-home-text-link:hover span,
.agx-home-section-link:hover span {
  transform: translateX(4px);
}

.agx-home-section-link {
  margin-top: 46px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(23, 50, 77, 0.28);
}

.agx-home-affiliations {
  background: #fcfcfa;
  border-bottom: 1px solid rgba(23, 50, 77, 0.08);
}

.agx-home-affiliations .agx-home-heading {
  max-width: 1120px;
}

.agx-home-affiliations .agx-home-heading h2 {
  font-size: clamp(38px, 3.8vw, 60px);
}

.agx-home-affiliations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
}

.agx-home-affiliation {
  min-height: clamp(290px, 24vw, 340px);
  color: inherit;
  perspective: 1200px;
}

.agx-home-affiliation__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(.2,.72,.2,1), box-shadow 220ms ease;
}

.agx-home-affiliation:hover .agx-home-affiliation__inner,
.agx-home-affiliation:focus-visible .agx-home-affiliation__inner {
  transform: rotateY(180deg);
  box-shadow: 0 24px 56px rgba(16, 41, 63, 0.14);
}

.agx-home-affiliation:focus-visible { outline: 2px solid var(--agx-color-gold); outline-offset: 5px; }

.agx-home-affiliation__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.8vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(23, 50, 77, 0.12);
  background: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.agx-home-affiliation__face--front {
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #fff 42%, #f0f8fb 100%);
}

.agx-home-affiliation__face--back {
  justify-content: center;
  transform: rotateY(180deg);
  background: #eef7fb;
}

.agx-home-affiliation__mark {
  display: grid;
  place-items: center;
  color: var(--agx-color-gold);
  font-family: var(--agx-font-heading);
  font-size: clamp(26px, 2.4vw, 40px);
  font-weight: 600;
  letter-spacing: 0;
}

.agx-home-affiliation__logo {
  width: min(72%, 240px);
  height: clamp(88px, 9vw, 126px);
  object-fit: contain;
  object-position: center;
}

.agx-home-affiliation__logo--ipssa { width: min(45%, 145px); }
.agx-home-affiliation__logo--orenda { width: min(78%, 270px); }

.agx-home-affiliation__prompt {
  position: absolute;
  right: clamp(24px, 2.6vw, 42px);
  bottom: clamp(24px, 2.6vw, 38px);
  color: var(--agx-color-navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.agx-home-affiliation__short {
  display: block;
  margin-bottom: 24px;
  color: var(--agx-color-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.agx-home-affiliation__face--back h3 { font-size: clamp(18px, 1.4vw, 24px); }
.agx-home-affiliation__face--back p { margin-bottom: 20px; font-size: 14px; line-height: 1.58; }

.agx-home-affiliation h3,
.agx-home-feature h3,
.agx-home-service h3,
.agx-home-step h3 {
  margin: 0 0 14px;
  color: var(--agx-color-navy);
  font-family: var(--agx-font-heading);
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

.agx-home-affiliation p,
.agx-home-feature p,
.agx-home-service p,
.agx-home-step p {
  margin: 0 0 28px;
  color: var(--agx-text-secondary);
  font-size: 15px;
  line-height: 1.72;
}

.agx-home-why { background: #dcecf4; }

.agx-home-why__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(44px, 7vw, 120px);
}

.agx-home-why__media { position: relative; }

.agx-home-why__media img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.agx-home-why__badge {
  position: absolute;
  right: clamp(-24px, -2vw, -10px);
  bottom: clamp(20px, 4vw, 56px);
  width: min(290px, 72%);
  margin: 0;
  padding: 26px 28px;
  background: var(--agx-color-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.6;
  text-transform: uppercase;
}

.agx-home-why__content > p:last-child { color: var(--agx-text-primary); }

.agx-home-features {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(10px, 2vw, 30px);
  border-top: 1px solid rgba(23, 50, 77, 0.16);
  border-left: 1px solid rgba(23, 50, 77, 0.16);
}

.agx-home-feature {
  min-height: 245px;
  padding: clamp(26px, 3vw, 44px);
  border-right: 1px solid rgba(23, 50, 77, 0.16);
  border-bottom: 1px solid rgba(23, 50, 77, 0.16);
}

.agx-home-feature > span,
.agx-home-step > span {
  display: block;
  margin-bottom: 38px;
  color: var(--agx-color-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.agx-home-services { background: #fcfcfa; }

.agx-home-services .agx-home-heading,
.agx-home-portfolio .agx-home-heading {
  max-width: 980px;
}

.agx-home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(23, 50, 77, 0.12);
  border: 1px solid rgba(23, 50, 77, 0.12);
}

.agx-home-service {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  padding: clamp(30px, 3.5vw, 52px);
  background: #fff;
  transition: background 220ms ease;
}

.agx-home-service:hover { background: #f4fafd; }

.agx-home-service__number {
  margin-bottom: auto;
  padding-bottom: 44px;
  color: var(--agx-color-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.agx-home-service p { flex: 1; }

.agx-home-service__description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.agx-home-service.is-expanded .agx-home-service__description {
  display: block;
  overflow: visible;
}

.agx-home-service__toggle {
  width: max-content;
  margin: 0 0 18px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid rgba(23, 50, 77, 0.35);
  background: transparent;
  color: var(--agx-color-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.agx-home-service__toggle:hover,
.agx-home-service__toggle:focus-visible {
  color: var(--agx-color-gold);
  border-bottom-color: var(--agx-color-gold);
}

.agx-home-service__link {
  display: none;
}

.agx-home-service.is-expanded .agx-home-service__link {
  display: inline-flex;
}

/* Premium Homepage V2 principle and service presentation */
.agx-home-why {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(180deg, #dcecf4 0%, #eef7fb 100%);
}

.agx-home-why::before {
  display: none;
}

.agx-home-why__layout {
  position: relative;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(38px, 5.6vw, 92px);
}

.agx-home-why__media {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 22px 70px rgba(23, 50, 77, 0.13);
}

.agx-home-why__media img {
  aspect-ratio: 4 / 3;
  max-height: 520px;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1);
}

.agx-home-why__media:hover img {
  transform: scale(1.035);
}

.agx-home-why__badge {
  right: 24px;
  bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(16, 41, 63, 0.84);
  backdrop-filter: blur(16px);
}

.agx-home-why__content {
  max-width: 760px;
  padding-bottom: 0;
}

.agx-home-features {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(34px, 5vw, 90px);
  margin-top: clamp(34px, 5vw, 78px);
  padding: clamp(22px, 3vw, 42px) clamp(22px, 4vw, 64px);
  border: 1px solid rgba(23, 50, 77, 0.10);
  border-radius: 6px;
  background: rgba(252, 252, 250, 0.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(23, 50, 77, 0.07);
}

.agx-home-feature {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 0;
  padding: clamp(20px, 2.2vw, 30px) 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 50, 77, 0.12);
  transition: transform 220ms ease, border-color 220ms ease;
}

.agx-home-feature:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.agx-home-feature::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--agx-color-gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 260ms ease;
}

.agx-home-feature:hover,
.agx-home-feature:focus-within {
  transform: translateX(6px);
  border-color: rgba(200, 169, 107, 0.4);
}

.agx-home-feature:hover::before,
.agx-home-feature:focus-within::before {
  transform: scaleY(1);
}

.agx-home-feature > span {
  grid-row: span 2;
  margin: 5px 0 0;
  color: var(--agx-color-gold);
  font-family: var(--agx-font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.agx-home-feature h3 {
  margin-bottom: 10px;
}

.agx-home-feature p {
  margin: 0;
  max-width: 560px;
}

.agx-home-services {
  background: linear-gradient(180deg, #fcfcfa 0%, #f6fbfd 100%);
}

.agx-home-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(23, 50, 77, 0.14);
  border-bottom: 1px solid rgba(23, 50, 77, 0.14);
  border-left: 0;
  border-right: 0;
  background: transparent;
}

.agx-home-service {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(210px, 0.75fr) minmax(280px, 1.25fr) auto;
  gap: clamp(18px, 2.8vw, 48px);
  align-items: center;
  min-height: 132px;
  padding: clamp(22px, 2.6vw, 34px) clamp(8px, 1vw, 14px);
  border-bottom: 1px solid rgba(23, 50, 77, 0.12);
  background: transparent;
  transition: background 220ms ease, padding 220ms ease;
}

.agx-home-service:last-child {
  border-bottom: 0;
}

.agx-home-service::after {
  content: "";
  position: absolute;
  inset: 10px 0;
  z-index: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(220, 236, 244, 0.85), rgba(255, 255, 255, 0.78));
  opacity: 0;
  transform: scaleX(0.985);
  transition: opacity 220ms ease, transform 220ms ease;
}

.agx-home-service > * {
  position: relative;
  z-index: 1;
}

.agx-home-service:hover,
.agx-home-service:focus-within,
.agx-home-service.is-expanded {
  padding-left: clamp(18px, 2vw, 28px);
  padding-right: clamp(18px, 2vw, 28px);
}

.agx-home-service:hover::after,
.agx-home-service:focus-within::after,
.agx-home-service.is-expanded::after {
  opacity: 1;
  transform: scaleX(1);
}

.agx-home-service__number {
  margin: 0;
  padding: 0;
  color: var(--agx-color-gold);
  font-family: var(--agx-font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

.agx-home-service h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 34px);
}

.agx-home-service p {
  flex: initial;
  margin: 0;
  color: var(--agx-text-secondary);
}

.agx-home-service__description {
  -webkit-line-clamp: 2;
}

.agx-home-service__toggle {
  margin: 0;
  white-space: nowrap;
}

.agx-home-service__link {
  grid-column: 3 / -1;
  margin-left: 0;
}

.agx-home-section-action {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(38px, 4vw, 58px);
}

.agx-home-button.agx-home-button--navy {
  border-color: var(--agx-color-navy);
  background: var(--agx-color-navy);
  color: #fff;
}

.agx-home-button.agx-home-button--navy:hover,
.agx-home-button.agx-home-button--navy:focus-visible {
  border-color: #244964;
  background: #244964;
}

.agx-home-portfolio { background: #dcecf4; }

.agx-home-portfolio__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(260px, 34vw));
  gap: 18px;
}

.agx-home-project { position: relative; margin: 0; overflow: hidden; }
.agx-home-project:first-child { grid-row: 1 / 3; }

.agx-home-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}

.agx-home-project:hover img { transform: scale(1.035); }

.agx-home-project figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 64px 28px 24px;
  background: linear-gradient(transparent, rgba(7, 21, 34, 0.78));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.agx-home-section-link--light {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.38);
}

.agx-home-process { background: #eef7fb; }

.agx-home-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(23, 50, 77, 0.16);
}

.agx-home-step {
  min-height: 330px;
  padding: clamp(30px, 3vw, 46px);
  border-right: 1px solid rgba(23, 50, 77, 0.16);
}

.agx-home-step:last-child { border-right: 0; }

.agx-home-testimonials { background: #fcfcfa; }

.agx-home-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.agx-home-review,
.agx-home-testimonials__empty {
  margin: 0;
  padding: clamp(30px, 3vw, 48px);
  background: #fff;
  border: 1px solid rgba(23, 50, 77, 0.1);
  box-shadow: 0 18px 54px rgba(23, 50, 77, 0.06);
}

.agx-home-review__stars {
  margin-bottom: 28px;
  color: var(--agx-color-gold);
  letter-spacing: 4px;
}

.agx-home-review > p {
  margin: 0 0 34px;
  color: var(--agx-text-primary);
  font-family: var(--agx-font-heading);
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.6;
}

.agx-home-review footer { display: grid; gap: 4px; color: var(--agx-text-secondary); }
.agx-home-review footer strong { color: var(--agx-color-navy); }
.agx-home-review footer small { margin-top: 6px; text-transform: uppercase; letter-spacing: 1.2px; }

.agx-home-investment { background: #dcecf4; text-align: center; }
.agx-home-investment__inner { max-width: 900px; }
.agx-home-investment p { margin-inline: auto; }

.agx-home-final {
  background: var(--agx-color-navy);
  color: #fff;
  text-align: center;
}

.agx-home-final__inner { max-width: 1050px; }
.agx-home-final h2 { color: #fff; }
.agx-home-final p { margin-inline: auto; color: rgba(255, 255, 255, 0.76); }

.agx-home-final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.agx-home-button {
  display: inline-flex;
  min-width: 240px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.agx-home-button:hover { transform: translateY(-2px); }
.agx-home-button--light { background: #fff; color: var(--agx-color-navy); }
.agx-home-button--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.agx-home-button--outline { margin-top: 34px; border-color: var(--agx-color-navy); color: var(--agx-color-navy); }
.agx-home-section-action .agx-home-button--outline { margin-top: 0; }
.agx-home-button--investment:hover,
.agx-home-button--investment:focus-visible {
  border-color: var(--agx-color-gold);
  background: rgba(200, 169, 107, 0.1);
}

.agx-home-contact { background: #eef7fb; }

.agx-home-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(560px, 1.2fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.agx-home-contact__intro dl { margin: 48px 0 0; }
.agx-home-contact__intro dl div { padding: 18px 0; border-top: 1px solid rgba(23,50,77,.16); }
.agx-home-contact__intro dt { margin-bottom: 6px; color: var(--agx-color-gold); font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.agx-home-contact__intro dd { margin: 0; color: var(--agx-color-navy); line-height: 1.55; }

.agx-home-contact__form .ag-form-shell {
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(23, 50, 77, 0.1);
}

.agx-home-contact__form .ag-form-grid--homepage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agx-home-contact__form input,
.agx-home-contact__form select,
.agx-home-contact__form textarea { border-radius: 3px; }
.agx-home-contact__form .ag-btn--full { min-height: 58px; border-radius: 4px; }
.agx-home-contact__privacy { margin: 18px 12px 0; color: var(--agx-text-secondary); font-size: 12px; line-height: 1.6; text-align: center; }

body.agx-modal-open { overflow: hidden; }

.agx-appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 48px);
  opacity: 0;
  transition: opacity 200ms ease;
}

.agx-appointment-modal[hidden] { display: none; }
.agx-appointment-modal.is-open { opacity: 1; }

.agx-appointment-modal__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(16, 41, 63, 0.6);
}

.agx-appointment-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(560px, 1.28fr);
  width: min(100%, 1040px);
  max-height: calc(100svh - clamp(40px, 6vw, 96px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  background: #fcfcfa;
  box-shadow: 0 36px 110px rgba(7, 21, 34, 0.32);
  color: var(--agx-color-navy);
}

.agx-appointment-modal__intro {
  display: flex;
  flex-direction: column;
  padding: clamp(42px, 5vw, 72px) clamp(32px, 4vw, 56px);
  background: #dcecf4;
  border-right: 1px solid rgba(23, 50, 77, 0.12);
}

.agx-appointment-modal__intro h2 {
  margin: 0;
  font-family: var(--agx-font-heading);
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.06;
}

.agx-appointment-modal__intro > p {
  margin: 22px 0 38px;
  color: #526b80;
  font-size: 16px;
  line-height: 1.7;
}

.agx-appointment-modal__assurances {
  display: grid;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid rgba(23, 50, 77, 0.16);
}

.agx-appointment-modal__assurances span {
  position: relative;
  padding: 16px 0 16px 20px;
  border-bottom: 1px solid rgba(23, 50, 77, 0.16);
  color: var(--agx-color-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.agx-appointment-modal__assurances span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--agx-color-gold);
}

.agx-appointment-modal__form {
  overflow-y: auto;
  padding: clamp(38px, 4.5vw, 62px) clamp(34px, 4.5vw, 64px) 38px;
  background: #fcfcfa;
}

.agx-appointment-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23, 50, 77, 0.16);
  border-radius: 50%;
  background: #fcfcfa;
  color: var(--agx-color-navy);
  font-family: var(--agx-font-body);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.agx-appointment-modal__close:hover {
  color: var(--agx-color-gold);
  border-color: var(--agx-color-gold);
  transform: rotate(90deg);
}

.agx-appointment-modal .ag-form-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.agx-appointment-modal .ag-form-grid--popup {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.agx-appointment-modal .ag-lead-form,
.agx-appointment-modal .ag-lead-form input,
.agx-appointment-modal .ag-lead-form select,
.agx-appointment-modal .ag-lead-form textarea,
.agx-appointment-modal .ag-lead-form button {
  font-family: var(--agx-font-body);
}

.agx-appointment-modal .ag-lead-form span {
  color: var(--agx-color-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.agx-appointment-modal .ag-lead-form input,
.agx-appointment-modal .ag-lead-form select,
.agx-appointment-modal .ag-lead-form textarea {
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 50, 77, 0.18);
  border-radius: 3px;
  background: #fff;
  color: var(--agx-color-navy);
  font-size: 15px;
  line-height: 1.4;
}

.agx-appointment-modal .ag-lead-form textarea {
  min-height: 108px;
  resize: vertical;
}

.agx-appointment-modal .ag-lead-form input:focus,
.agx-appointment-modal .ag-lead-form select:focus,
.agx-appointment-modal .ag-lead-form textarea:focus {
  border-color: #9bcbe2;
  box-shadow: 0 0 0 4px rgba(220, 236, 244, 0.9);
}

.agx-appointment-modal .ag-btn--navy {
  min-height: 58px;
  margin-top: 4px;
  border-radius: 4px;
  background: var(--agx-color-navy);
  color: #fff;
  font-family: var(--agx-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.agx-appointment-modal .agx-home-contact__privacy {
  margin: 16px 0 0;
  color: #70808e;
  font-size: 11px;
}

.agx-thank-you {
  min-height: calc(100svh - 90px);
  padding: clamp(150px, 16vw, 230px) 0 100px;
  background: #eef7fb;
}

.agx-thank-you__inner {
  width: min(calc(100% - 40px), 1120px);
  margin-inline: auto;
  text-align: center;
}

.agx-thank-you h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--agx-color-navy);
  font-family: var(--agx-font-heading);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

.agx-thank-you__lead {
  max-width: 720px;
  margin: 26px auto 58px;
  color: var(--agx-text-secondary);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.7;
}

.agx-thank-you__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 48px;
  border: 1px solid rgba(23, 50, 77, 0.14);
  background: #fff;
  text-align: left;
}

.agx-thank-you__step {
  min-height: 220px;
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid rgba(23, 50, 77, 0.14);
}

.agx-thank-you__step:last-child { border-right: 0; }
.agx-thank-you__step span { display: block; margin-bottom: 38px; color: var(--agx-color-gold); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; }
.agx-thank-you__step h2 { margin: 0 0 12px; color: var(--agx-color-navy); font-size: 22px; font-weight: 500; }
.agx-thank-you__step p { margin: 0; color: var(--agx-text-secondary); line-height: 1.65; }

@media (max-width: 1023px) {
  .agx-home-affiliations__grid,
  .agx-home-services__grid,
  .agx-home-testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agx-home-affiliation:last-child { grid-column: 1 / -1; }
  .agx-home-why__layout { grid-template-columns: 1fr 1fr; gap: 44px; }
  .agx-home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agx-home-process__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agx-home-step:nth-child(2) { border-right: 0; }
  .agx-home-step:nth-child(-n+2) { border-bottom: 1px solid rgba(23,50,77,.16); }
  .agx-home-contact__layout { grid-template-columns: 1fr; }
  .agx-appointment-modal__panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(100%, 760px);
    height: min(900px, calc(100svh - 48px));
  }
  .agx-appointment-modal__intro {
    padding: 34px 56px 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 50, 77, 0.12);
  }
  .agx-appointment-modal__intro h2 { font-size: 36px; }
  .agx-appointment-modal__intro > p { margin: 12px 0 22px; }
  .agx-appointment-modal__assurances { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agx-appointment-modal__assurances span { border-right: 1px solid rgba(23, 50, 77, 0.16); }
  .agx-appointment-modal__assurances span:last-child { border-right: 0; }
  .agx-appointment-modal__form { min-height: 0; padding: 32px 56px 36px; }
}

@media (max-width: 767px) {
  .agx-section { padding-block: 74px; }
  .agx-section__inner { width: min(calc(100% - 40px), 1680px); }
  .agx-home-heading h2,
  .agx-home-why__content h2,
  .agx-home-investment h2,
  .agx-home-final h2,
  .agx-home-contact h2 { font-size: clamp(34px, 10.5vw, 48px); }
  .agx-home-affiliations__grid,
  .agx-home-services__grid,
  .agx-home-testimonials__grid,
  .agx-home-features,
  .agx-home-process__grid { grid-template-columns: 1fr; }
  .agx-home-affiliation { min-height: auto; perspective: none; }
  .agx-home-affiliation:last-child { grid-column: auto; }
  .agx-home-affiliation__inner { min-height: 0; transform: none !important; }
  .agx-home-affiliation__face { position: relative; inset: auto; min-height: 0; backface-visibility: visible; }
  .agx-home-affiliation__face--front { min-height: 190px; }
  .agx-home-affiliation__face--back { transform: none; border-top: 0; background: #eef7fb; }
  .agx-home-affiliation__logo { height: 96px; }
  .agx-home-affiliation__logo--ipssa { width: min(40%, 130px); }
  .agx-home-affiliation__prompt { display: none; }
  .agx-home-why__layout { grid-template-columns: 1fr; }
  .agx-home-why__media img { aspect-ratio: 4 / 5; }
  .agx-home-why__badge { right: -8px; bottom: 18px; }
  .agx-home-features { border-top: 1px solid rgba(23,50,77,.16); }
  .agx-home-feature { min-height: 0; }
  .agx-home-service { min-height: 310px; }
  .agx-home-portfolio__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .agx-home-project,
  .agx-home-project:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .agx-home-project:first-child { aspect-ratio: 4 / 5; }
  .agx-home-step { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(23,50,77,.16); }
  .agx-home-step:last-child { border-bottom: 0; }
  .agx-home-final__actions { flex-direction: column; }
  .agx-home-button { width: 100%; min-width: 0; }
  .agx-home-contact__form .ag-form-grid--homepage { grid-template-columns: 1fr; }
  .agx-appointment-modal { align-items: end; padding: 0; }
  .agx-appointment-modal__panel { width: 100%; height: 100svh; max-height: 100svh; border: 0; border-radius: 0; }
  .agx-appointment-modal__intro { padding: 36px 22px 24px; }
  .agx-appointment-modal__intro h2 { padding-right: 36px; font-size: 32px; }
  .agx-appointment-modal__intro > p { margin: 10px 0 18px; font-size: 14px; }
  .agx-appointment-modal__assurances { display: none; }
  .agx-appointment-modal__form { padding: 26px 22px calc(32px + env(safe-area-inset-bottom)); }
  .agx-appointment-modal .ag-form-grid--popup { grid-template-columns: 1fr; }
  .agx-appointment-modal__close { top: 14px; right: 14px; }
  .agx-thank-you { padding-top: 130px; }
  .agx-thank-you__steps { grid-template-columns: 1fr; }
  .agx-thank-you__step { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(23, 50, 77, 0.14); }
  .agx-thank-you__step:last-child { border-bottom: 0; }
}

/* Final Homepage V2 overrides for premium principle and service rows. */
@media (max-width: 1180px) {
  .agx-home-services__grid {
    grid-template-columns: 1fr;
  }

  .agx-home-service,
  .agx-service-matrix__card {
    grid-template-columns: 58px minmax(210px, 0.9fr) minmax(260px, 1.1fr);
  }

  .agx-home-service__toggle,
  .agx-service-matrix__card a {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .agx-home-service__link {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .agx-home-features,
  .agx-philosophy__grid {
    grid-template-columns: 1fr;
  }

  .agx-home-feature {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .agx-home-feature:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(23, 50, 77, 0.12);
  }

  .agx-home-feature:last-child {
    border-bottom: 0;
  }

  .agx-philosophy__card {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .agx-philosophy__card:last-child {
    border-bottom: 0;
  }

  .agx-home-service,
  .agx-service-matrix__card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px 18px;
    align-items: start;
    min-height: 0;
    padding: 24px 0;
  }

  .agx-home-service h3,
  .agx-service-matrix__card h3 {
    grid-column: 2;
  }

  .agx-home-service p,
  .agx-service-matrix__card p,
  .agx-home-service__toggle,
  .agx-home-service__link,
  .agx-service-matrix__card a {
    grid-column: 2 / -1;
  }
}

@media (max-width: 767px) {
  .agx-home-why::before {
    inset: 14px;
  }

  .agx-home-features {
    padding: 10px 22px;
    border-radius: 6px;
  }

  .agx-home-feature {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .agx-home-services {
    background: #fcfcfa;
  }

  .agx-home-service {
    min-height: 0;
  }

  .agx-home-service:hover,
  .agx-home-service:focus-within,
  .agx-home-service.is-expanded {
    padding-left: 0;
    padding-right: 0;
  }

  .agx-home-service::after {
    inset: 8px -14px;
  }
}

/* Homepage V2 QA polish: seamless panels, balanced media, predictable desktop headings. */
.agx-home-why,
.agx-home-services,
.agx-philosophy,
.agx-service-matrix {
  padding-block: clamp(58px, 5.4vw, 92px);
}

.agx-home-services,
.agx-service-matrix {
  background: linear-gradient(180deg, #fcfcfa 0%, #f7fbfd 100%);
}

.agx-home-services .agx-home-heading,
.agx-service-matrix .agx-heading {
  max-width: min(1280px, 100%);
  margin-bottom: clamp(28px, 3.2vw, 46px);
}

.agx-home-services .agx-home-heading h2,
.agx-service-matrix .agx-heading__title {
  font-size: clamp(42px, 3.85vw, 64px);
}

.agx-home-services .agx-home-heading p,
.agx-service-matrix .agx-heading__body {
  max-width: 820px;
}

.agx-home-services__grid,
.agx-service-matrix__grid {
  width: min(1180px, 100%);
  border-color: rgba(23, 50, 77, 0.10);
}

.agx-home-service,
.agx-service-matrix__card {
  min-height: 112px;
  padding-block: clamp(18px, 2vw, 26px);
}

.agx-home-why__layout {
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}

.agx-home-why__media img {
  aspect-ratio: 4 / 3;
  max-height: 500px;
}

.agx-home-why__content h2 {
  font-size: clamp(40px, 4vw, 66px);
}

.agx-home-features {
  margin-top: clamp(28px, 3.8vw, 54px);
  padding-block: clamp(12px, 2vw, 24px);
}

.agx-home-feature {
  padding-block: clamp(16px, 1.7vw, 22px);
}

.agx-philosophy::before,
.agx-home-why::before {
  display: none;
}

@media (min-width: 1024px) {
  .agx-home-services .agx-home-heading h2,
  .agx-service-matrix .agx-heading__title {
    white-space: nowrap;
  }
}

@media (max-width: 1180px) {
  .agx-home-why__layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .agx-home-why,
  .agx-home-services,
  .agx-philosophy,
  .agx-service-matrix {
    padding-block: 68px;
  }

  .agx-home-why__layout {
    grid-template-columns: 1fr;
  }

  .agx-home-why__media img {
    max-height: none;
  }

  .agx-home-services .agx-home-heading h2,
  .agx-service-matrix .agx-heading__title {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .agx-home-why__media img {
    aspect-ratio: 4 / 3;
  }

  .agx-home-features {
    padding-block: 8px;
  }
}

/* Homepage V2 rebuild: human-readable luxury sections, not technical grids. */
.agx-home-why {
  background: linear-gradient(180deg, #dcecf4 0%, #f7fbfd 100%);
  padding-block: clamp(64px, 6vw, 104px);
}

.agx-home-why__intro,
.agx-home-services__intro {
  max-width: 1120px;
  margin: 0 auto clamp(32px, 4vw, 56px);
  text-align: center;
}

.agx-home-why__intro h2,
.agx-home-services__intro h2 {
  margin: 0;
  color: var(--agx-color-navy);
  font-family: var(--agx-font-heading);
  font-size: clamp(42px, 4.2vw, 68px);
  font-weight: 400;
  line-height: 1.03;
}

.agx-home-why__intro p,
.agx-home-services__intro p {
  max-width: 860px;
  margin: 20px auto 0;
  color: var(--agx-text-secondary);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.68;
}

.agx-home-why__media-strip {
  position: relative;
  min-height: clamp(280px, 33vw, 460px);
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(23, 50, 77, 0.14);
}

.agx-home-why__media-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1);
}

.agx-home-why__media-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 41, 63, 0.55), rgba(16, 41, 63, 0.12) 58%, rgba(16, 41, 63, 0.02));
}

.agx-home-why__media-strip:hover img {
  transform: scale(1.025);
}

.agx-home-why__media-strip p {
  position: absolute;
  left: clamp(24px, 4vw, 58px);
  bottom: clamp(22px, 4vw, 52px);
  z-index: 1;
  max-width: 420px;
  margin: 0;
  color: #fff;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 700;
  letter-spacing: 1.7px;
  line-height: 1.55;
  text-transform: uppercase;
}

.agx-home-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.agx-home-principle {
  min-height: 148px;
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid rgba(23, 50, 77, 0.1);
  border-radius: 6px;
  background: rgba(252, 252, 250, 0.76);
  box-shadow: 0 18px 56px rgba(23, 50, 77, 0.06);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.agx-home-principle:hover,
.agx-home-principle:focus-within {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 107, 0.44);
  box-shadow: 0 24px 68px rgba(23, 50, 77, 0.1);
}

.agx-home-principle h3 {
  margin: 0 0 10px;
  color: var(--agx-color-navy);
  font-family: var(--agx-font-heading);
  font-size: clamp(19px, 1.55vw, 25px);
  font-weight: 500;
  line-height: 1.16;
}

.agx-home-principle p {
  margin: 0;
  color: var(--agx-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.agx-home-services {
  background: #fcfcfa;
  padding-block: clamp(64px, 6vw, 104px);
}

.agx-home-service-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.agx-home-service-card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(23, 50, 77, 0.1);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 56px rgba(23, 50, 77, 0.06);
  text-decoration: none;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.agx-home-service-card:hover,
.agx-home-service-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(200, 169, 107, 0.52);
  box-shadow: 0 26px 74px rgba(23, 50, 77, 0.12);
}

.agx-home-service-card__media {
  display: block;
  height: clamp(138px, 12vw, 190px);
  overflow: hidden;
  background: #dcecf4;
}

.agx-home-service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.2,.7,.2,1);
}

.agx-home-service-card:hover img,
.agx-home-service-card:focus-visible img {
  transform: scale(1.045);
}

.agx-home-service-card__body {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 2.2vw, 30px);
}

.agx-home-service-card__body strong {
  color: var(--agx-color-navy);
  font-family: var(--agx-font-heading);
  font-size: clamp(21px, 1.65vw, 28px);
  font-weight: 500;
  line-height: 1.12;
}

.agx-home-service-card__body > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--agx-text-secondary);
  font-size: 15px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.agx-home-service-card__body em {
  margin-top: 4px;
  color: var(--agx-color-navy);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.agx-site-footer {
  background: linear-gradient(180deg, #eef7fb 0%, #fcfcfa 100%) !important;
}

.agx-site-footer .ag-footer-grid {
  align-items: start;
  gap: clamp(34px, 4vw, 72px);
}

.agx-site-footer .ag-footer-logo img {
  width: 132px;
  height: auto;
}

@media (min-width: 1280px) {
  .agx-home-services__intro h2 {
    white-space: nowrap;
  }
}

@media (max-width: 1023px) {
  .agx-home-principles,
  .agx-home-service-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .agx-home-why,
  .agx-home-services {
    padding-block: 64px;
  }

  .agx-home-principles,
  .agx-home-service-picker {
    grid-template-columns: 1fr;
  }

  .agx-home-why__media-strip {
    min-height: 300px;
  }
}

/* Homepage full-pass QA: portfolio, process, testimonials, footer. */
.agx-home-why__layout {
  grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
}

.agx-home-why__media {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 22px 70px rgba(23, 50, 77, 0.13);
}

.agx-home-why__media img {
  aspect-ratio: 4 / 3;
  max-height: 520px;
}

.agx-home-principles {
  grid-column: 1 / -1;
}

.agx-home-service-card__media {
  height: auto;
  aspect-ratio: 4 / 3;
}

.agx-home-portfolio {
  padding-block: clamp(64px, 6vw, 104px);
}

.agx-home-portfolio .agx-home-heading {
  margin-bottom: clamp(28px, 3.2vw, 46px);
  max-width: min(1420px, 100%);
  margin-inline: auto;
  text-align: center;
}

.agx-home-portfolio__grid {
  grid-template-columns: 1.05fr 0.95fr 0.95fr;
  grid-template-rows: repeat(2, clamp(210px, 20vw, 330px));
  gap: clamp(12px, 1.5vw, 20px);
}

.agx-home-project:first-child {
  grid-row: 1 / 3;
}

.agx-home-project {
  border-radius: 6px;
}

.agx-home-process {
  padding-block: clamp(64px, 5.8vw, 98px);
}

.agx-home-process .agx-home-heading {
  max-width: min(1320px, 100%);
}

.agx-home-process .agx-home-heading h2 {
  font-size: clamp(42px, 3.7vw, 64px);
}

.agx-home-process__grid {
  border: 1px solid rgba(23, 50, 77, 0.12);
  background: #fff;
}

.agx-home-step {
  min-height: 250px;
  padding: clamp(24px, 2.4vw, 34px);
}

.agx-home-testimonials {
  padding-block: clamp(64px, 5.8vw, 98px);
  background: linear-gradient(180deg, #fcfcfa 0%, #eef7fb 100%);
}

.agx-home-testimonials .agx-home-heading {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.agx-home-testimonials .agx-home-heading p {
  margin-inline: auto;
}

.agx-home-testimonials__grid {
  max-width: 1100px;
  margin-inline: auto;
}

.agx-home-review,
.agx-home-testimonials__empty {
  border-radius: 6px;
}

.agx-home-testimonials__empty {
  grid-column: 1 / -1;
  text-align: center;
}

.agx-site-footer .ag-footer-grid {
  grid-template-columns: minmax(250px, 1.15fr) minmax(240px, 1.05fr) minmax(170px, 0.78fr) minmax(180px, 0.82fr) minmax(190px, 0.9fr);
  gap: clamp(26px, 3.2vw, 58px);
}

.agx-site-footer .ag-footer-grid h2 {
  margin-bottom: 18px;
}

.agx-site-footer .ag-footer-grid a {
  line-height: 1.45;
}

.agx-dropdown-menu {
  min-width: 310px;
}

.ag-footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ag-footer-social-icons a {
  display: inline-flex !important;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding-inline: 10px;
  border: 1px solid rgba(23, 50, 77, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--agx-color-navy) !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.ag-footer-social-icons a:hover,
.ag-footer-social-icons a:focus-visible {
  border-color: var(--agx-color-gold);
  background: var(--agx-color-navy);
  color: #fff !important;
}

@media (min-width: 1180px) {
  .agx-home-portfolio .agx-home-heading h2,
  .agx-gallery-v2 .agx-heading__title {
    white-space: nowrap;
    font-size: clamp(42px, 3.45vw, 64px);
  }

  .agx-home-process .agx-home-heading h2 {
    white-space: nowrap;
  }
}

@media (max-width: 1180px) {
  .agx-site-footer .ag-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .agx-home-why__layout {
    grid-template-columns: 1fr;
  }

  .agx-home-portfolio__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .agx-home-project,
  .agx-home-project:first-child {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .agx-home-process .agx-home-heading h2 {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .agx-site-footer .ag-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Global footer styling moved to agx-core.css for single authoritative global source of truth across all pages. */
}

/* =============================================
   POOL COST CALCULATOR COMPONENT (.app & .ag-cost-v2)
   ============================================= */

.agx-guide,
.ag-cost-page-main {
  display: block;
  min-height: calc(100vh - 100px);
  padding-top: clamp(84px, 8vw, 110px);
}

.app,
.ag-cost-v2 {
  --sky: #dcecf4;
  --navy: #10293f;
  --ink: #111;
  --muted: #6b7280;
  --gold: #c8a96b;
  --white: #fcfcfa;
  --line: rgba(16, 41, 63, 0.14);
  --shadow: 0 18px 54px rgba(16, 41, 63, 0.14);
  width: min(1540px, calc(100% - clamp(24px, 4vw, 64px)));
  min-height: min(860px, calc(100vh - clamp(24px, 4vw, 56px)));
  margin: clamp(18px, 3vw, 42px) auto;
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(0, 1.08fr);
  gap: 0;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.app *,
.ag-cost-v2 * {
  box-sizing: border-box;
}

/* Left Panel */
.panel,
.ag-cost-v2__panel {
  position: relative;
  display: grid;
  min-height: inherit;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--navy);
}

.photo,
.ag-cost-v2__photo {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--sky);
}

.photo img,
.ag-cost-v2__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo:after,
.ag-cost-v2__photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 41, 63, 0.04) 0%, rgba(16, 41, 63, 0.22) 48%, rgba(16, 41, 63, 0.68) 100%),
    linear-gradient(90deg, rgba(16, 41, 63, 0.38), rgba(16, 41, 63, 0.05));
}

.panel-copy,
.ag-cost-v2__copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: clamp(14px, 1.8vw, 22px);
  min-height: inherit;
  padding: clamp(34px, 4vw, 64px);
  min-width: 0;
}

.eyebrow,
.ag-cost-v2__eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app h1,
.ag-cost-v2 h1 {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 3.6vw, 66px);
  font-weight: 320;
  letter-spacing: -0.055em;
  line-height: 0.98;
  white-space: normal;
  text-wrap: balance;
}

.intro {
  max-width: 620px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.55;
}

.seo-note,
.ag-cost-v2__seo {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: clamp(13px, 0.9vw, 14px) !important;
  line-height: 1.55;
}

.pill-row,
.ag-cost-v2__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pill,
.ag-cost-v2__cities span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.estimate-box,
.ag-cost-v2__range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  border: 1px solid rgba(200, 169, 107, 0.38);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 16px;
  min-width: 0;
  backdrop-filter: blur(14px);
}

.estimate-box.is-hidden,
.ag-cost-v2__range.is-hidden {
  display: none !important;
}

.estimate-box span,
.ag-cost-v2__range span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.estimate-box strong,
.ag-cost-v2__range strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: clamp(22px, 1.65vw, 27px);
  font-weight: 360;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

/* Right Form Area */
.calc,
.ag-cost-v2__form {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  min-height: inherit;
  padding: clamp(32px, 4vw, 64px);
  background: #fff;
}

.topbar,
.ag-cost-v2__topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.track,
.ag-cost-v2__track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 41, 63, 0.11);
}

.fill,
.ag-cost-v2__track span {
  display: block;
  width: 16.66%;
  height: 100%;
  background: var(--gold);
  transition: width 0.24s ease;
}

.step-count,
.ag-cost-v2__topbar > span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.step,
.ag-cost-v2__step {
  display: none;
  align-content: start;
  align-self: start;
  padding-top: clamp(8px, 2vh, 22px);
}

.step.active,
.step.is-active,
.ag-cost-v2__step.is-active {
  display: grid;
  animation: agCostFade 0.24s ease both;
}

.step h2,
.ag-cost-v2__step h2 {
  max-width: 760px;
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(30px, 2.45vw, 40px);
  font-weight: 360;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hint,
.ag-cost-v2__step p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.42;
}

.choices,
.ag-cost-v2__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choices.locations,
.ag-cost-v2__choices--locations {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice,
.ag-cost-v2__choices label,
.ag-cost-v2__features label {
  position: relative;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 12px 13px;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.choice:hover,
.choice:has(input:checked),
.ag-cost-v2__choices label:has(input:checked),
.ag-cost-v2__features label:has(input:checked) {
  border-color: rgba(200, 169, 107, 0.85);
  background: #fbf8ef;
  box-shadow: 0 14px 36px rgba(16, 41, 63, 0.1);
  transform: translateY(-1px);
}

.choice input,
.ag-cost-v2__choices input,
.ag-cost-v2__features input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice strong,
.ag-cost-v2__choices strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.choices.locations .choice strong,
.ag-cost-v2__choices--locations strong {
  font-size: clamp(18px, 1.35vw, 22px);
}

.choices.locations .choice,
.ag-cost-v2__choices--locations label {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.choices.locations .choice span,
.ag-cost-v2__choices--locations span {
  display: none;
}

.choice span,
.ag-cost-v2__choices span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.fields,
.ag-cost-v2__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label.field,
.ag-cost-v2__field {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
select,
textarea,
.ag-cost-v2__field input,
.ag-cost-v2__field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 650 15px Inter, system-ui, sans-serif;
  padding: 0 15px;
  outline: none;
}

textarea {
  min-height: 86px;
  padding: 14px 15px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.ag-cost-v2__field input:focus,
.ag-cost-v2__field select:focus {
  border-color: rgba(200, 169, 107, 0.9);
  box-shadow: 0 0 0 4px rgba(200, 169, 107, 0.14);
}

.step.was-validated input:invalid,
.step.was-validated select:invalid,
.step.was-validated textarea:invalid {
  border-color: #b45309;
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.12);
}

.conditional,
.ag-cost-v2__conditional {
  display: none !important;
}

.conditional.visible,
.conditional.is-visible,
.ag-cost-v2__conditional.is-visible {
  display: grid !important;
}

.features,
.ag-cost-v2__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--navy);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 780;
}

.feature input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}

.actions,
.ag-cost-v2__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: clamp(16px, 2vw, 24px);
}

.help,
.ag-cost-v2__actions p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  text-align: left;
}

.button-row,
.ag-cost-v2__actions div {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.button-row .ghost,
.ag-cost-v2__back {
  background: transparent !important;
  color: var(--navy) !important;
}

.calc button,
.result .button,
.ag-cost-v2 button,
.ag-cost-v2__result .button,
.ag-cost-v2__result .ag-cost-v2__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  padding: 0 26px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.consent,
.ag-cost-v2__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.consent input,
.ag-cost-v2__consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--gold);
}

.notice,
.ag-cost-v2__notice {
  display: none;
  margin: 12px 0 0;
  color: #b45309;
  font-weight: 800;
}

.notice.visible,
.ag-cost-v2__notice.is-visible {
  display: block !important;
}

.result,
.ag-cost-v2__result {
  display: none;
  grid-column: 1 / -1;
  border: 1px solid rgba(200, 169, 107, 0.45);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
}

.result.visible,
.result.is-visible,
.ag-cost-v2__result.visible,
.ag-cost-v2__result.is-visible {
  display: grid !important;
}

.result h2,
.ag-cost-v2__result h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 360;
  letter-spacing: -0.04em;
  line-height: 1;
}

.breakdown,
.ag-cost-v2__breakdown {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.breakdown div,
.ag-cost-v2__breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

@keyframes agCostFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Overrides */
@media (max-width: 980px) {
  .app,
  .ag-cost-v2 {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .panel,
  .ag-cost-v2__panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 480px;
  }
  .calc,
  .ag-cost-v2__form {
    min-height: auto;
    grid-template-rows: auto auto auto;
  }
}

@media (max-width: 680px) {
  .agx-guide,
  .ag-cost-page-main {
    padding-top: 84px;
  }
  .app,
  .ag-cost-v2 {
    width: calc(100vw - 20px);
    margin: 10px auto 80px;
    border-radius: 20px;
  }
  .choices,
  .choices.locations,
  .fields,
  .features,
  .actions,
  .ag-cost-v2__choices,
  .ag-cost-v2__choices--locations,
  .ag-cost-v2__fields,
  .ag-cost-v2__features {
    grid-template-columns: 1fr;
  }
  .button-row,
  .ag-cost-v2__actions div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .calc button,
  .result .button,
  .ag-cost-v2 button {
    width: 100%;
  }
}

/* =============================================
   HEADER-TO-BANNER CONSISTENT OFFSET RULE
   ============================================= */
.ag-about-page,
.ag-services-page,
.ag-service-areas-page,
.ag-portfolio-page,
.ag-contact-page,
.ag-cost-page-main,
.agx-guide,
.agx-destination {
  padding-top: 100px;
}

@media (max-width: 1023px) {
  .ag-about-page,
  .ag-services-page,
  .ag-service-areas-page,
  .ag-portfolio-page,
  .ag-contact-page,
  .ag-cost-page-main,
  .agx-guide,
  .agx-destination {
    padding-top: 84px;
  }
}

