/* ==========================================================================
   Typography helpers
   ========================================================================== */
.gt-kicker {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gt-red);
  margin: 0 0 12px;
}
.gt-h1 { font-weight: 700; font-size: 84px; line-height: 1.03; letter-spacing: -0.02em; color: var(--gt-text); margin: 0; }
.gt-h2 { font-weight: 700; font-size: 56px; line-height: 1.08; letter-spacing: -0.015em; color: var(--gt-text); margin: 0; }
.gt-h3 { font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -0.015em; color: var(--gt-text); margin: 0; }
.gt-lede { font-weight: 400; font-size: 28px; line-height: 1.35; letter-spacing: -0.01em; color: var(--gt-text-muted); margin: 0; }
.gt-body { font-size: 17px; line-height: 1.6; color: var(--gt-text-muted); }
.gt-on-dark .gt-h2, .gt-on-dark .gt-h1, .gt-on-dark .gt-h3 { color: #fff; }

@media (max-width: 960px) {
  .gt-h1 { font-size: 48px; }
  .gt-h2 { font-size: 36px; }
  .gt-lede { font-size: 20px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.gt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: var(--gt-radius-pill);
  padding: 17px 34px;
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}
.gt-btn:hover { opacity: 0.92; }
.gt-btn:active { transform: scale(0.98); }

.gt-btn--sm { padding: 9px 18px; font-size: 14px; }
.gt-btn--md { padding: 14px 28px; font-size: 17px; }

.gt-btn--primary { background: var(--gt-red); color: #fff; }
.gt-btn--secondary { background: var(--gt-bg-subtle); color: var(--gt-text); }
.gt-btn--white { background: #fff; color: var(--gt-red); }
.gt-btn--outline-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.gt-btn--hero-primary { background: #fff; color: var(--gt-navy); }
.gt-btn--hero-outline { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.65); }

/* ==========================================================================
   Nav
   ========================================================================== */
.gt-nav {
  background: #fff;
  border-bottom: 1px solid var(--gt-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding-inline: var(--gt-gutter-tight);
  position: sticky;
  top: 0;
  z-index: 40;
}
.gt-nav__logo img { height: 40px; width: auto; }
.gt-nav__links {
  display: flex;
  gap: 32px;
  font-weight: 500;
  font-size: 14px;
  color: rgba(29, 29, 31, 0.8);
}
.gt-nav__links a:hover { color: var(--gt-red); }
.gt-nav__actions { display: flex; align-items: center; gap: 12px; }
.gt-nav__phone { font-weight: 600; font-size: 14px; color: var(--gt-navy); }
.gt-nav__toggle { display: none; }

@media (max-width: 960px) {
  .gt-nav__links { display: none; }
  .gt-nav__phone { display: none; }
  .gt-nav__toggle {
    display: inline-flex; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 8px;
  }
  .gt-nav__toggle span { width: 22px; height: 2px; background: var(--gt-text); }
  .gt-nav.is-open .gt-nav__links {
    display: flex; flex-direction: column; position: absolute; top: 84px; left: 0; right: 0;
    background: #fff; padding: 24px; border-bottom: 1px solid var(--gt-border); gap: 18px;
  }
}

/* Transparent nav — homepage only. Overlays the flag hero (no logo; the hero's
   own centered logo plate carries the brand mark instead) rather than taking
   up its own row, so it needs no sticky/solid background of its own. */
.gt-nav--transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.2);
  height: auto;
  padding-block: 20px;
  z-index: 20;
}
.gt-nav--transparent .gt-nav__links { color: rgba(255, 255, 255, 0.92); }
.gt-nav--transparent .gt-nav__links a:hover { color: #fff; opacity: 0.8; }
.gt-nav--transparent .gt-nav__phone { color: #fff; font-size: 18px; font-weight: 700; }
.gt-nav--transparent .gt-nav__actions .gt-btn--primary {
  background: #fff; color: var(--gt-navy); padding: 11px 22px; font-size: 15px;
}
.gt-nav--transparent .gt-nav__toggle span { background: #fff; }
.gt-nav--transparent.is-open .gt-nav__links {
  top: 100%;
  /* The open dropdown sits on the base nav's solid white background (see
     .gt-nav.is-open .gt-nav__links above), so the white hero-overlay text
     color from .gt-nav--transparent .gt-nav__links needs to flip back to
     dark here or the links become invisible (white on white). */
  color: rgba(29, 29, 31, 0.8);
}
.gt-nav--transparent.is-open .gt-nav__links a:hover { color: var(--gt-red); }

@media (max-width: 960px) {
  /* No logo on the homepage nav at any width, so swap the toggle and CTA so
     the primary action sits first (left) and the menu toggle sits last. */
  .gt-nav--transparent .gt-nav__toggle { order: 2; }
  .gt-nav--transparent .gt-nav__actions { order: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.gt-footer {
  background: var(--gt-navy-deep);
  padding: 64px 24px 40px;
}
.gt-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  max-width: var(--gt-container);
  margin-inline: auto;
}
.gt-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.gt-footer__logo-chip {
  background: #fff; border-radius: 12px; width: 148px; height: 56px;
  display: flex; align-items: center; justify-content: center; padding: 10px 16px;
}
.gt-footer__logo-chip img { height: 36px; width: auto; }
.gt-footer__tagline { color: var(--gt-text-on-dark-muted); font-size: 14px; line-height: 1.5; }
.gt-footer__cols { display: flex; gap: 96px; flex-wrap: wrap; }
.gt-footer__col h4 {
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0 0 14px;
}
.gt-footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.gt-footer__col a, .gt-footer__col li { color: var(--gt-text-on-dark-muted); font-size: 14px; }
.gt-footer__col a:hover { color: #fff; }
.gt-footer__rule { height: 1px; background: rgba(255,255,255,0.14); max-width: var(--gt-container); margin: 48px auto; }
.gt-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: var(--gt-container); margin-inline: auto;
  font-size: 12px; color: var(--gt-text-on-dark-faint);
}

/* "Ask about this home" form section (single listing page) */
#gt-ask { background: var(--gt-bg-subtle); max-width: 100%;}

/* ==========================================================================
   Section head
   ========================================================================== */
.gt-section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 56px; }
.gt-section-head--center { align-items: center; text-align: center; }

/* ==========================================================================
   Cards — listing / home card
   ========================================================================== */
.gt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1100px) { .gt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .gt-grid { grid-template-columns: 1fr; } }

.gt-card {
  background: #fff;
  border-radius: var(--gt-radius-md);
  box-shadow: var(--gt-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gt-card__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gt-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.gt-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 3px; }
.gt-card__stock { font-weight: 600; font-size: 12px; letter-spacing: 0.06em; color: var(--gt-text-faint); }
.gt-card__price { font-weight: 700; font-size: 24px; letter-spacing: -0.01em; color: var(--gt-red); }
.gt-card__title { font-size: 14px; color: var(--gt-text-muted); }
.gt-card__specs { font-weight: 500; font-size: 14px; color: var(--gt-text); margin-top: 8px; }
.gt-card__location { font-size: 12px; color: var(--gt-text-faint); margin-top: 6px; }

.gt-badge {
  position: absolute; left: 14px; top: 14px;
  background: var(--gt-red); color: #fff;
  font-weight: 600; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--gt-radius-pill);
}
.gt-badge--navy { background: var(--gt-navy); }

/* ==========================================================================
   Filter / search card
   ========================================================================== */
.gt-filter {
  background: #fff;
  border-radius: var(--gt-radius-lg);
  box-shadow: var(--gt-shadow-float);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  flex-wrap: wrap;
}
.gt-filter__field { flex: 1 1 0; min-width: 140px; padding-inline: 14px; display: flex; flex-direction: column; gap: 4px; }
.gt-filter__field label { font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gt-text-muted); }
.gt-filter__field select {
  appearance: none; border: none; background: transparent; font-weight: 500; font-size: 15px; color: var(--gt-text);
  padding: 0; cursor: pointer;
}
.gt-filter__divider { width: 1px; height: 40px; background: var(--gt-border); }
.gt-filter .gt-btn { flex-shrink: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.gt-hero-text { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding-top: 104px; }
.gt-hero-text .gt-h1 span { color: var(--gt-red); display: block; }
.gt-hero-text .gt-lede { max-width: 640px; }
.gt-hero-ctas { display: flex; gap: 14px; padding-top: 12px; }

/* Flag hero (front page) — full-bleed photo (Texas flag by default) behind a
   centered logo plate, optional eyebrow, headline, and a configurable row of
   CTA buttons (Home > Hero Buttons in ACF). */
.gt-hero-flag {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 120px 24px 64px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.gt-hero-flag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 700px at 58% 55%, rgba(2, 28, 74, 0.72) 0%, rgba(2, 28, 74, 0) 70%),
    linear-gradient(180deg, rgba(2, 28, 74, 0.72) 0%, rgba(2, 28, 74, 0.1) 36%, rgba(2, 28, 74, 0.1) 100%),
    rgba(2, 28, 74, 0.42);
}
.gt-hero-flag > * { position: relative; z-index: 1; }

.gt-logo-plate {
  background: #fff;
  border-radius: var(--gt-radius-lg);
  box-shadow: var(--gt-shadow-float);
  padding: 24px 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gt-logo-plate img { display: block; max-height: 160px; width: auto; max-width: 60vw; object-fit: contain; }

.gt-hero-flag__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gt-hero-flag__heading { color: #fff; max-width: 900px; }
.gt-hero-flag__heading span { display: block; }
.gt-hero-flag__sub { color: #fff; max-width: 640px; }

.gt-hero-flag__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 12px; }

@media (max-width: 782px) {
  .gt-hero-flag { padding: 88px 20px 48px; gap: 16px; }
  .gt-logo-plate { padding: 16px 24px; }
  .gt-logo-plate img { max-height: 96px; }
  .gt-hero-flag__ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
}
/* Same max-width + gutter as .gt-section, so the hero photo lines up with
   every section below it instead of bleeding wider (or narrower). */
.gt-hero-media {
  position: relative;
  max-width: var(--gt-container);
  margin-inline: auto;
  padding: 72px var(--gt-gutter) 0;
}
.gt-hero-media__img { border-radius: var(--gt-radius-lg); overflow: hidden; aspect-ratio: 1392/663; }
.gt-hero-media__img img { width: 100%; height: 100%; object-fit: cover; }
.gt-hero-media .gt-filter { max-width: 980px; margin: -45px auto 0; position: relative; }

@media (max-width: 782px) {
  .gt-hero-media .gt-filter { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .gt-filter__divider { display: none; }
}

/* ==========================================================================
   Page hero (interior pages) — TX-flag banner, same treatment as the
   homepage's .gt-hero-flag: full-bleed photo + navy gradient overlay behind
   white text. Every interior page uses the same 88/80px top/bottom padding;
   the visible hero height differs page to page only because the content
   does (a one- vs two-line heading, a lede or not, financing's extra CTA
   row) — not because of any per-page height override.
   ========================================================================== */
.gt-page-hero {
  position: relative;
  isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 88px var(--gt-gutter) 80px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #fff;
}
.gt-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 620px 440px at 50% 55%, rgba(2, 28, 74, 0.78) 0%, rgba(2, 28, 74, 0.64) 55%, rgba(2, 28, 74, 0.26) 100%),
    rgba(2, 28, 74, 0.3);
}
.gt-page-hero > * { position: relative; z-index: 1; }
.gt-page-hero--left { align-items: flex-start; text-align: left; }
.gt-page-hero .gt-kicker { color: rgba(255, 255, 255, 0.88); }
.gt-page-hero .gt-h2 { color: #fff; max-width: 640px; }
.gt-page-hero .gt-lede { color: rgba(255, 255, 255, 0.92); max-width: 640px; }
.gt-page-hero .gt-hero-ctas { justify-content: center; }
.gt-page-hero--left .gt-hero-ctas { justify-content: flex-start; }

@media (max-width: 782px) {
  .gt-page-hero { padding: 64px var(--gt-gutter-tight) 40px; }
}

/* Listing pages get a thin flag strip instead of a full hero (see
   single-listing.php) — same photo + overlay treatment, just short. */
.gt-listing-flagband {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 24px var(--gt-gutter);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.gt-listing-flagband::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(2, 28, 74, 0.62);
}
.gt-listing-flagband > * { position: relative; z-index: 1; }
.gt-listing-flagband a { color: rgba(255, 255, 255, 0.95); font-weight: 500; font-size: 14px; text-decoration: none; }
.gt-listing-flagband a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 782px) {
  .gt-listing-flagband { padding: 18px var(--gt-gutter-tight); }
}

/* ==========================================================================
   How it works / steps
   ========================================================================== */
.gt-steps { display: flex; gap: 24px; flex-wrap: wrap; }
.gt-step { display: flex; flex-direction: column; gap: 9px; width: 282px; flex: 1 1 220px; }
.gt-step__num {
  background: var(--gt-red); color: #fff; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.gt-step h3 { font-weight: 600; font-size: 21px; color: var(--gt-text); }
.gt-step p { font-size: 15px; line-height: 1.55; color: var(--gt-text-muted); margin: 0; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.gt-quotes { display: flex; gap: 24px; flex-wrap: wrap; }
.gt-quote {
  background: var(--gt-bg-quote); border-radius: var(--gt-radius-md); padding: 32px 30px;
  display: flex; flex-direction: column; gap: 16px; flex: 1 1 320px;
}
.gt-quote__stars { color: var(--gt-red); font-size: 14px; }
.gt-quote__text { font-weight: 500; font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; color: var(--gt-text); }
.gt-quote__author { font-size: 14px; color: var(--gt-text-muted); }

/* ==========================================================================
   Why grid
   ========================================================================== */
.gt-why-grid { display: flex; flex-direction: column; gap: 24px; }
.gt-why-row { display: flex; gap: 24px; flex-wrap: wrap; }
.gt-why-card {
  border-radius: var(--gt-radius-lg); padding: 48px; min-height: 380px; flex: 1 1 480px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; position: relative; overflow: hidden;
}
.gt-why-card--red { background: var(--gt-red); color: #fff; }
.gt-why-card--navy { background: var(--gt-navy); color: #fff; }
.gt-why-card--subtle { background: var(--gt-bg-subtle); color: var(--gt-text); }
.gt-why-card--photo { color: #fff; background-size: cover; background-position: center; }
.gt-why-card--photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.62) 100%);
}
.gt-why-card--photo > * { position: relative; z-index: 1; }
.gt-why-card__stat { font-weight: 700; font-size: 72px; letter-spacing: -0.03em; line-height: 1; }
.gt-why-card__title { font-weight: 700; font-size: 32px; letter-spacing: -0.015em; }
.gt-why-card__text { font-size: 17px; line-height: 1.5; opacity: 0.85; max-width: 460px; }
.gt-why-card__link { font-weight: 500; font-size: 17px; color: var(--gt-red); padding-top: 8px; display: inline-block; }

/* ==========================================================================
   Video
   ========================================================================== */
/* Same max-width + gutter as .gt-section, so the video frame lines up with
   every other section instead of bleeding wider (or narrower). */
.gt-video {
  display: flex;
  justify-content: center;
  max-width: var(--gt-container);
  margin-inline: auto;
  padding-inline: var(--gt-gutter);
}
.gt-video__frame {
  position: relative; width: 100%; aspect-ratio: 1392/696;
  border-radius: var(--gt-radius-lg); overflow: hidden; background: var(--gt-navy-deep); cursor: pointer;
}
.gt-video__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.gt-video__frame:not(.is-playing)::after { content: ""; position: absolute; inset: 0; background: rgba(2,28,74,0.28); }
.gt-video__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
}
.gt-video__play::before {
  content: ""; border-style: solid; border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--gt-navy); margin-left: 4px;
}

/* ==========================================================================
   Gallery grid — clean, uniform tiles (lightbox-enabled)
   ========================================================================== */
.gt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  /* Width comes from the parent .gt-section — same container + gutter as
     every other section, so this lines up with them instead of its own cap. */
  width: 100%;
}
.gt-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--gt-radius-md);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: zoom-in;
  background: var(--gt-bg-subtle);
}
.gt-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gt-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 28, 74, 0);
  transition: background-color 0.2s ease;
}
.gt-gallery-item:hover::after,
.gt-gallery-item:focus-visible::after { background: rgba(2, 28, 74, 0.18); }
.gt-gallery-item:hover img,
.gt-gallery-item:focus-visible img { transform: scale(1.04); }
.gt-gallery-item:focus-visible { outline: 2px solid var(--gt-red); outline-offset: 3px; }

@media (max-width: 900px) {
  .gt-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .gt-gallery-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Lightbox — reusable, opened by any [data-lightbox] trigger
   ========================================================================== */
.gt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 10, 28, 0.92);
  padding: 24px;
}
.gt-lightbox.is-open { display: flex; }
.gt-lightbox__figure {
  position: relative;
  width: min(1100px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* The stage is given real, bounded dimensions so object-fit can scale the
   photo UP to fill it as well as down — max-width/max-height on the <img>
   alone only ever shrinks, never enlarges, a smaller-than-viewport photo. */
.gt-lightbox__stage {
  width: 100%;
  height: min(80vh, 720px);
  border-radius: var(--gt-radius-sm);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.03);
}
.gt-lightbox__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gt-lightbox__caption { color: rgba(255, 255, 255, 0.7); font-size: 14px; text-align: center; }
.gt-lightbox__close,
.gt-lightbox__prev,
.gt-lightbox__next {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 0.15s ease;
}
.gt-lightbox__close:hover,
.gt-lightbox__prev:hover,
.gt-lightbox__next:hover { background: rgba(255, 255, 255, 0.22); }
.gt-lightbox__close { top: 24px; right: 24px; }
.gt-lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.gt-lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .gt-lightbox__prev, .gt-lightbox__next { width: 40px; height: 40px; font-size: 16px; }
  .gt-lightbox__close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .gt-lightbox__prev { left: 8px; }
  .gt-lightbox__next { right: 8px; }
}

/* ==========================================================================
   Sell strip / Quote band (dark CTA bands)
   ========================================================================== */
.gt-band { padding: 88px var(--gt-gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gt-band--red { background: var(--gt-red); color: #fff; }
.gt-band--navy { background: var(--gt-navy); color: #fff; padding: 72px var(--gt-gutter); }
.gt-band h2 { font-weight: 700; font-size: 56px; letter-spacing: -0.015em; margin: 0; }
.gt-band p { font-size: 19px; opacity: 0.85; margin: 0; max-width: 640px; }
.gt-band--red p { font-size: 28px; }

/* ==========================================================================
   Split rows (Financing / About)
   ========================================================================== */
.gt-split-rows { display: flex; flex-direction: column; gap: 64px; }
.gt-split { display: flex; align-items: center; gap: 64px; flex-wrap: wrap; }
.gt-split__photo { flex: 1 1 460px; border-radius: var(--gt-radius-lg); overflow: hidden; aspect-ratio: 568/379; }
.gt-split__photo img { width: 100%; height: 100%; object-fit: cover; }
.gt-split__text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 12px; }
.gt-split--reverse { flex-direction: row-reverse; }
@media (max-width: 900px) {
  .gt-split--reverse { flex-direction: column; }
  .gt-split { flex-direction: column; }
  /* .gt-split__photo/__text carry "flex: 1 1 460px" for the desktop row
     layout. Once the section stacks to a column, that 460px flex-basis
     applies to the main axis, which is now vertical (height) — and combined
     with .gt-split__photo's aspect-ratio, the browser derives a matching
     width of ~690px, blowing out past the mobile viewport and forcing the
     whole page to scroll horizontally. Reset the basis so width just
     follows the container. */
  .gt-split__photo, .gt-split__text { flex-basis: auto; width: 100%; }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.gt-form-card {
  background: #fff; border-radius: var(--gt-radius-lg); box-shadow: var(--gt-shadow-card);
  padding: 44px 48px 48px; display: flex; flex-direction: column; gap: 18px; max-width: 860px; margin-inline: auto; width: 100%;
}
[data-step] { display: flex; flex-direction: column; gap: 18px; }
.gt-form-row { display: flex; gap: 18px; flex-wrap: wrap; }
.gt-field { display: flex; flex-direction: column; gap: 8px; }
.gt-form-row > .gt-field { flex: 1 1 260px; }
.gt-field label { font-weight: 600; font-size: 14px; color: var(--gt-text); }
.gt-field .req { color: var(--gt-red); }
.gt-field input[type=text], .gt-field input[type=email], .gt-field input[type=tel], .gt-field input[type=number], .gt-field select, .gt-field textarea {
  border: 1px solid var(--gt-border); border-radius: var(--gt-radius-sm); padding: 14px 16px; font-size: 16px; color: var(--gt-text); background: #fff; width: 100%;
}
.gt-field textarea { min-height: 110px; resize: vertical; }
.gt-upload {
  border: 1.5px dashed var(--gt-border); border-radius: var(--gt-radius-sm);
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px; text-align: center; cursor: pointer;
}
.gt-upload small { color: var(--gt-text-faint); font-size: 13px; }
.gt-upload span { color: var(--gt-text-muted); font-size: 15px; }

.gt-contact-consent { font-size: 13px; line-height: 1.5; color: var(--gt-text-faint); margin: 0; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.gt-contact-columns { display: flex; gap: 48px; align-items: flex-start; max-width: 1200px; margin-inline: auto; }
.gt-contact-columns .gt-form-card { flex: 1 1 620px; margin-inline: 0; max-width: none; }
.gt-contact-info { flex: 1 1 380px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.gt-contact-info-card { background: var(--gt-bg-subtle); border-radius: var(--gt-radius-md); padding: 24px 28px; }
.gt-contact-info-card h3 { font-weight: 700; font-size: 18px; margin: 0 0 6px; color: var(--gt-text); }
.gt-contact-info-card p { font-size: 15px; line-height: 1.5; color: var(--gt-text-muted); margin: 0; }
.gt-contact-info-card a { color: var(--gt-red); font-weight: 600; text-decoration: none; }
.gt-contact-info-card a:hover { text-decoration: underline; }
.gt-contact-map { border-radius: var(--gt-radius-md); overflow: hidden; aspect-ratio: 380/220; }
.gt-contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) {
  .gt-contact-columns { flex-direction: column; }
  .gt-contact-info { max-width: none; }
}

.gt-steps-indicator { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gt-steps-indicator .dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gt-chip-bg); color: var(--gt-text-muted);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.gt-steps-indicator .dot.is-active { background: var(--gt-red); color: #fff; }
.gt-steps-indicator .sep { width: 28px; height: 1px; background: var(--gt-border); }
.gt-steps-indicator span.label { font-weight: 500; font-size: 14px; color: var(--gt-text-muted); }

.gt-form-notice { border-radius: var(--gt-radius-sm); padding: 16px 20px; font-size: 15px; margin-bottom: 18px; }
.gt-form-notice--success { background: #e9f7ee; color: #196a35; }
.gt-form-notice--error { background: #fbe9ec; color: var(--gt-red-dark); }

/* ==========================================================================
   Home listing detail
   ========================================================================== */
.gt-listing-columns { display: flex; gap: 48px; flex-wrap: wrap; }
.gt-listing-gallery { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.gt-listing-gallery__main { position: relative; width: 100%; border-radius: var(--gt-radius-lg); overflow: hidden; aspect-ratio: 720/540; }
.gt-listing-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gt-listing-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(2,28,74,0.72); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color .15s ease;
}
.gt-listing-gallery__nav:hover,
.gt-listing-gallery__nav:focus-visible { background: rgba(2,28,74,0.92); }
.gt-listing-gallery__nav--prev { left: 16px; }
.gt-listing-gallery__nav--next { right: 16px; }
.gt-listing-gallery__thumbs {
  display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 6px; -webkit-overflow-scrolling: touch; width: 100%; min-width: 0;
}
.gt-listing-gallery__thumbs img {
  flex: 0 0 auto; width: 136px; height: 136px; object-fit: cover; border-radius: var(--gt-radius-sm);
  cursor: pointer; scroll-snap-align: start; border: 2px solid transparent; transition: border-color .15s ease;
}
.gt-listing-gallery__thumbs img.is-active { border-color: var(--gt-navy); }
.gt-listing-gallery__thumbs::-webkit-scrollbar { height: 6px; }
.gt-listing-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--gt-border, #d8dde6); border-radius: 3px; }
.gt-listing-info { flex: 1 1 400px; max-width: 432px; display: flex; flex-direction: column; gap: 8px; }
.gt-listing-info__eyebrow { display: flex; align-items: center; gap: 10px; }
.gt-listing-info__eyebrow .label { font-weight: 600; font-size: 12px; letter-spacing: 0.06em; color: var(--gt-text-faint); }
.gt-listing-info h1 { font-weight: 700; font-size: 48px; line-height: 1.08; letter-spacing: -0.015em; color: var(--gt-text); margin: 0; }
.gt-listing-info__price { font-weight: 700; font-size: 40px; letter-spacing: -0.02em; color: var(--gt-red); margin: 0; }
.gt-stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.gt-stat { background: var(--gt-bg-subtle); border-radius: var(--gt-radius-xs); padding: 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; }
.gt-stat strong { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--gt-text); }
.gt-stat span { font-size: 12px; color: var(--gt-text-muted); }
.gt-listing-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.gt-listing-info > .gt-body { margin-top: 22px; }

/* Optional Matterport 3D tour, shown on single listings when a URL is set. */
.gt-tour-frame { border-radius: var(--gt-radius-lg); overflow: hidden; aspect-ratio: 1200/675; background: var(--gt-bg-subtle); }
.gt-tour-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Floor plan card (optional, single listing) — unlike the 3D tour frame,
   the drawing can be any aspect ratio and is never cropped. */
.gt-floorplan-card {
  position: relative;
  border-radius: var(--gt-radius-lg);
  background: var(--gt-bg-subtle);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.gt-floorplan-card img { max-width: 100%; max-height: 640px; width: auto; height: auto; object-fit: contain; display: block; }
.gt-floorplan-card__expand { position: absolute; right: 24px; bottom: 24px; }
@media (max-width: 640px) {
  .gt-floorplan-card { padding: 20px; flex-direction: column; gap: 16px; }
  .gt-floorplan-card__expand { position: static; }
}

.gt-checklist { display: flex; gap: 64px; flex-wrap: wrap; }
.gt-checklist__col { display: flex; flex-direction: column; gap: 14px; }
.gt-checklist__item { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--gt-text-muted); }
.gt-checklist__item::before { content: "✓"; color: var(--gt-red); font-weight: 700; }

/* ==========================================================================
   Team
   ========================================================================== */
.gt-team-row { display: flex; gap: 24px; flex-wrap: wrap; }
.gt-team-card {
  background: var(--gt-bg-subtle); border-radius: var(--gt-radius-md); padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; flex: 1 1 300px;
}
.gt-team-card__avatar {
  background: var(--gt-navy); color: #fff; width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 26px; margin-bottom: 10px;
}
.gt-team-card h3 { font-weight: 600; font-size: 19px; color: var(--gt-text); }
.gt-team-card p { font-size: 14px; color: var(--gt-text-muted); margin: 0; }

/* Utility spacers matching Figma section rhythm */
.gt-pt-160 { padding-top: 160px; }
.gt-pt-120 { padding-top: 120px; }
.gt-pt-80 { padding-top: 80px; }
.gt-pt-56 { padding-top: 56px; }
.gt-pt-48 { padding-top: 48px; }
.gt-pt-40 { padding-top: 40px; }
.gt-pb-160 { padding-bottom: 160px; }
@media (max-width: 782px) {
  .gt-pt-160 { padding-top: 80px; }
  .gt-pt-120 { padding-top: 64px; }
  .gt-pb-160 { padding-bottom: 80px; }
}

/* ==========================================================================
   WPForms overrides — make the plugin's markup match .gt-form-card design
   (used on the Contact page when an ACF "WPForms Form ID" is set).
   ========================================================================== */
/* WPForms' own "div.wpforms-container-full:not(:empty) { margin: 24px auto; }"
   rule outranks a plain ".gt-wpforms .wpforms-container" selector on
   specificity (it adds an element-type selector on top of the same class
   count), so it wins the cascade regardless of load order and its `auto`
   side margins survive. Those auto margins then disable flex-stretch on
   this element inside .gt-form-card's column flex layout, so the whole
   form shrinks to fit its narrowest content (~220px) instead of filling
   the card — squeezing/truncating the Name fields. !important forces our
   margin to actually win, the same fix already used elsewhere in this
   block for the same kind of WPForms specificity tie. */
.gt-wpforms .wpforms-container { margin: 0 !important; }
.gt-wpforms .wpforms-form { display: flex; flex-direction: column; gap: 18px; width: 100%; }

/* Field wrapper spacing (WPForms wraps every field in .wpforms-field) */
.gt-wpforms .wpforms-field { padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gt-wpforms .wpforms-field + .wpforms-field { margin-top: 0; }

/* Labels — match .gt-field label */
.gt-wpforms .wpforms-field-label {
  font-weight: 600; font-size: 14px; color: var(--gt-text); margin: 0;
}
.gt-wpforms .wpforms-field-label.wpforms-label-hide { display: none; }
.gt-wpforms .wpforms-field-required,
.gt-wpforms .wpforms-required-label { color: var(--gt-red); }

/* Hide WPForms sublabels — Figma design uses placeholder-only inputs */
.gt-wpforms .wpforms-field-sublabel { display: none; }

/* WPForms applies its "medium" size class (max-width: 60%) directly to
   inputs, textareas, AND the field-row wrapper — that's what was both
   squeezing Phone/Email and forcing the Name row to wrap. Neutralize it. */
.gt-wpforms .wpforms-field-medium { max-width: 100% !important; }

/* Inputs / textarea — match .gt-field input */
.gt-wpforms .wpforms-field input[type="text"],
.gt-wpforms .wpforms-field input[type="email"],
.gt-wpforms .wpforms-field input[type="tel"],
.gt-wpforms .wpforms-field input[type="number"],
.gt-wpforms .wpforms-field select,
.gt-wpforms .wpforms-field textarea {
  border: 1px solid var(--gt-border); border-radius: var(--gt-radius-sm);
  padding: 14px 16px; font-size: 16px; color: var(--gt-text); background: #fff;
  width: 100%; box-shadow: none; font-family: inherit;
}
.gt-wpforms .wpforms-field textarea { min-height: 110px; resize: vertical; }
.gt-wpforms .wpforms-field input:focus,
.gt-wpforms .wpforms-field textarea:focus,
.gt-wpforms .wpforms-field select:focus {
  outline: none; border-color: var(--gt-navy); box-shadow: 0 0 0 2px rgba(15, 39, 68, 0.08);
}

/* Name field — First/Last on one line, matches the theme's .gt-form-row layout */
.gt-wpforms .wpforms-field-name .wpforms-field-row {
  display: flex; gap: 18px; flex-wrap: nowrap; width: 100%;
}
/* WPForms' clearfix ::before/::after on the row become real (invisible) flex
   items once the row is flex, each eating one 18px gap — that's what pushed
   First Name in from the left edge and Last Name in from the right. Kill them.
   WPForms' own ::before/::after rule (.wpforms-container .wpforms-field
   .wpforms-field-row::before) has the same specificity as this one and its
   stylesheet loads after ours, so it wins the cascade on tie — !important
   makes sure this override actually takes regardless of load order. */
.gt-wpforms .wpforms-field-name .wpforms-field-row::before,
.gt-wpforms .wpforms-field-name .wpforms-field-row::after {
  content: none !important; display: none !important;
}
.gt-wpforms .wpforms-field-name .wpforms-field-row-block {
  flex: 1 1 0; min-width: 0; width: auto; float: none;
}

/* Consent / HTML field — matches .gt-contact-consent, hide its default "HTML" label */
.gt-wpforms .wpforms-field-html .wpforms-field-label { display: none; }
.gt-wpforms .wpforms-field-html .wpforms-field-description,
.gt-wpforms .wpforms-field-html .gt-contact-consent { margin: 0; }
.gt-wpforms .gt-contact-consent { font-size: 13px; line-height: 1.5; color: var(--gt-text-faint); margin: 0; }

/* Submit button — match .gt-btn.gt-btn--primary
   WPForms' modern markup sets its own button padding/sizing through inline
   CSS custom properties (--wpforms-button-size-spacing-h/-v etc.) on the
   form wrapper, which otherwise win over a plain (non-!important) rule here
   and produce lopsided/oversized padding — same cascade issue as the
   field-medium and clearfix overrides above, fixed the same way. */
.gt-wpforms .wpforms-submit-container { margin: 0; }
.gt-wpforms button[type="submit"].wpforms-submit {
  appearance: none !important; border: none !important; cursor: pointer;
  font-weight: 600 !important; font-size: 16px !important; letter-spacing: -0.005em;
  padding: 16px 32px !important; border-radius: var(--gt-radius-pill) !important;
  background: var(--gt-red) !important; color: #fff !important; width: auto !important;
  height: auto !important; min-height: 0 !important; line-height: normal !important;
  box-shadow: none !important;
}
.gt-wpforms button[type="submit"].wpforms-submit:hover { filter: brightness(0.94); }

/* Validation / error messaging */
.gt-wpforms .wpforms-error,
.gt-wpforms label.wpforms-error { color: var(--gt-red-dark, var(--gt-red)); font-size: 13px; margin-top: 2px; }
.gt-wpforms .wpforms-field input.wpforms-error,
.gt-wpforms .wpforms-field textarea.wpforms-error { border-color: var(--gt-red); }
.gt-wpforms .wpforms-confirmation-container-full {
  background: var(--gt-bg-subtle); border-radius: var(--gt-radius-sm);
  padding: 16px 20px; font-size: 15px; color: var(--gt-text); margin: 0;
}
