/* ═══════════════════════════════════════════════════════════════
   AimHome Realty — Split Screen Executive Template Styles
   SNRS Innovations Inc.
   Layout: 2-column hero (navy content left, photo right).
   All 5 page sections. Mobile-first. Imports brand.css tokens.
   DO NOT edit this file directly — copy the page folder instead.
═══════════════════════════════════════════════════════════════ */


/* ─── PHOTO SLOT — shared utility for image containers ──────── */

.photo-slot {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(31, 78, 121, 0.15) 0%,
    rgba(31, 78, 121, 0.25) 100%
  );
}

.photo-slot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ─── SECTION 1: HERO — SPLIT LAYOUT ────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column; /* Mobile: stack vertically */
  overflow: hidden;
}

/* ── LEFT PANEL (content) ─────────────────────────────────────
   On mobile: second in DOM order but rendered below photo.
   On desktop: left column of CSS Grid.
────────────────────────────────────────────────────────────── */
.hero__left {
  position: relative;
  background-color: var(--color-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(2rem, 7vw, 5rem);
  /* Mobile: below the photo strip */
  order: 2;
  /* Mobile height: fill remaining space above fold */
  min-height: calc(100svh - 55vw);
}

/* Canvas fills the entire left panel */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-base);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(18, 47, 75, 0.30) 0%,
    rgba(18, 47, 75, 0.55) 50%,
    rgba(13, 33, 53, 0.80) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

/* Eyebrow */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block-end: var(--space-4);
  opacity: 0; /* GSAP entrance target */
}

.hero__city,
.hero__type {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero__dot {
  color: rgba(201, 168, 76, 0.5);
  font-size: 1.2em;
}

/* Gold rule accent — between eyebrow and headline */
.hero__rule {
  opacity: 0; /* GSAP entrance target — part of eyebrow group */
}

/* Main Headline */
.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  color: var(--color-white);
  margin-block-end: var(--space-6);
  max-width: 14ch;
  opacity: 0; /* GSAP entrance target */
}

.hero__headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--color-gold-light);
}

/* Subheadline */
.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  overflow-wrap: break-word;
  margin-block-end: var(--space-10);
  opacity: 0; /* GSAP entrance target */
}

/* CTA Group */
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  opacity: 0; /* GSAP entrance target */
}

.hero__cta {
  position: relative;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  opacity: 0; /* GSAP entrance target */
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hero__scroll-track {
  display: block;
  width: 1px;
  height: 60px;
  background: rgba(201, 168, 76, 0.25);
  position: relative;
  overflow: hidden;
}

.hero__scroll-dot {
  display: block;
  width: 1px;
  height: 30px;
  background: var(--color-gold);
  position: absolute;
  top: -30px;
  left: 0;
  animation: scrollDrop 2s var(--ease-out) infinite;
}

@keyframes scrollDrop {
  0%   { top: -30px; opacity: 1; }
  70%  { opacity: 1; }
  100% { top: 60px;  opacity: 0; }
}


/* ── RIGHT PANEL (photo) ──────────────────────────────────────
   Mobile: photo strip at top, fixed height.
   Desktop: right half of grid, full height.
────────────────────────────────────────────────────────────── */
.hero__right {
  position: relative;
  order: 1; /* Mobile: photo appears above content */
  height: 55vw;
  overflow: hidden;
}

.hero__photo-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Left-edge vignette: blends photo into navy panel on desktop */
.hero__right-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(31, 78, 121, 0.40) 0%,
    transparent 30%
  );
  z-index: 1;
  pointer-events: none;
}


/* ── Desktop: 2-Column Grid Hero ──────────────────────────── */
@media (min-width: 768px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero__left {
    order: 1; /* Left column on desktop */
    min-height: auto;
  }

  .hero__right {
    order: 2; /* Right column on desktop */
    height: auto; /* Full grid-row height */
    min-height: 100%;
  }

  /* Hide vignette on mobile (photo is full-width, no blending needed) */
  .hero__right-vignette {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hero__left {
    padding: clamp(4rem, 8vw, 6rem);
  }
}


/* ─── SECTION 2: VALUE HOOK ──────────────────────────────────── */

.value-hook {
  /* Inherits .section.section--light */
}

.value-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .value-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .value-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

/* Split variant: gold LEFT border instead of top border */
.value-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border-top: none;
  border-left: 3px solid var(--color-gold);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.value-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(31, 78, 121, 0.07);
  border-radius: var(--radius-md);
  margin-block-end: var(--space-6);
  color: var(--color-navy);
}

.value-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-navy);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-navy);
  margin-block-end: var(--space-3);
  line-height: 1.2;
}

.value-card__body {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 36ch;
}


/* ─── SECTION 3: LEAD FORM ───────────────────────────────────── */

.lead-form-section {
  /* Inherits .section.section--navy */
}

/* Form wrapper */
.form-wrapper {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius-md);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* 2-col row on tablet+ */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.form-required {
  color: var(--color-gold);
  margin-inline-start: 2px;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.97);
  color: var(--color-text);
  border: 2px solid transparent;
  border-radius: var(--radius-xs);
  font-size: var(--text-base);
  line-height: 1.5;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--color-muted-light);
}

.form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.form-input.is-error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.form-error {
  font-size: var(--text-xs);
  color: #fca5a5;
  min-height: 1.2em;
  line-height: 1.4;
}

/* CASL Checkbox */
.casl-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  cursor: pointer;
}

.casl-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.casl-check-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-start: 2px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.casl-checkbox:checked + .casl-check-custom {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.casl-checkbox:checked + .casl-check-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid var(--color-navy-dark);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.casl-checkbox:focus-visible + .casl-check-custom {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.casl-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.casl-text strong { color: rgba(255, 255, 255, 0.85); }

/* Submit button */
.form-submit {
  width: 100%;
  margin-block-start: var(--space-2);
  position: relative;
}

.form-submit__loading {
  display: none;
}

.form-submit.is-loading .form-submit__text {
  visibility: hidden;
}

.form-submit.is-loading .form-submit__loading {
  display: block;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success state */
.form-success {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.form-success__icon {
  margin-inline: auto;
  margin-block-end: var(--space-6);
  width: 56px;
  height: 56px;
}

.form-success__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--color-white);
  margin-block-end: var(--space-4);
}

.form-success__body {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 44ch;
  margin-inline: auto;
  line-height: 1.7;
}

.form-success__body strong { color: var(--color-gold); }


/* ─── SECTION 4: TRUST SIGNALS ───────────────────────────────── */

/* Agent Profile */
.agent-profile {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: flex-start;
  margin-block-end: var(--space-16);
}

@media (min-width: 768px) {
  .agent-profile {
    flex-direction: row;
    gap: var(--space-16);
    align-items: center;
  }
}

.agent-profile__visual {
  flex-shrink: 0;
}

.agent-photo-placeholder {
  width: clamp(120px, 20vw, 180px);
  height: clamp(120px, 20vw, 180px);
  border-radius: 50%;
  background: var(--color-navy);
  border: 3px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-navy);
}

.agent-photo {
  width: clamp(120px, 20vw, 180px);
  height: clamp(120px, 20vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--color-gold);
  box-shadow: var(--shadow-navy);
  display: block;
}

.agent-profile__content {
  flex: 1;
}

.agent-name {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 400;
  color: var(--color-navy);
  margin-block-end: var(--space-2);
  line-height: 1.1;
}

.agent-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-gold-dark);
  letter-spacing: 0.03em;
  margin-block-end: var(--space-6);
}

.agent-bio {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 58ch;
  margin-block-end: var(--space-10);
}

.agent-stats {
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.agent-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.agent-stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--color-navy);
  line-height: 1;
}

.agent-stat__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Testimonials */
.testimonials-wrap {
  /* No extra container padding needed */
}

.testimonials-swiper {
  padding-block-end: var(--space-10) !important; /* space for pagination */
}

.testimonial {
  background: var(--color-white);
  border: 1px solid rgba(201, 168, 76, 0.20);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.testimonial__stars {
  font-size: 1rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.testimonial__quote {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text);
  flex: 1;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-block-start: var(--space-4);
  border-top: 1px solid rgba(31, 78, 121, 0.10);
}

.testimonial__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
}

.testimonial__detail {
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

/* Swiper pagination — override defaults */
.testimonials-pagination {
  bottom: 0 !important;
}

.swiper-pagination-bullet {
  background: var(--color-navy) !important;
  opacity: 0.25 !important;
  width: 8px !important;
  height: 8px !important;
}

.swiper-pagination-bullet-active {
  background: var(--color-gold) !important;
  opacity: 1 !important;
  width: 24px !important;
  border-radius: 4px !important;
  transition: width var(--transition-base);
}


/* ─── SECTION 5: FOOTER ──────────────────────────────────────── */

.footer {
  /* Inherits .section--dark.section--sm */
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-16);
  }
}

.footer__brand {
  flex-shrink: 0;
}

.footer__wordmark {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-gold);
  letter-spacing: 0.02em;
  margin-block-end: var(--space-2);
}

.footer__tagline {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
}

.footer__legal {
  flex: 1;
}

.footer__legal p {
  font-size: var(--text-xs);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.35);
  max-width: 66ch;
}

.footer__legal p + p {
  margin-block-start: var(--space-3);
}

.footer__email {
  color: rgba(201, 168, 76, 0.70);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.30);
  transition: color var(--transition-fast);
}

.footer__email:hover {
  color: var(--color-gold);
}


/* ─── Responsive: Large Desktop ─────────────────────────────── */

@media (min-width: 1280px) {
  .section {
    padding-block: var(--space-32);
  }

  .section--sm {
    padding-block: var(--space-20);
  }
}
