/* ═══════════════════════════════════════════════════════════════
   AimHome Realty — Cobalt Template Styles
   SNRS Innovations Inc.
   Layout: Bold Modern — Cobalt palette.
   2-column hero (photo right), angled section transition.
   All 5 page sections. Mobile-first.
   DO NOT edit this file directly — copy the page folder instead.
═══════════════════════════════════════════════════════════════ */


/* ─── COBALT PALETTE OVERRIDES ───────────────────────────────── */
/* These override brand.css tokens for cobalt pages only.        */

:root {
  --color-navy:       #0d2d6e;
  --color-navy-dark:  #081d4a;
  --color-navy-deep:  #050f2a;
  --color-gold:       #f0c040;
  --color-gold-light: #f8d87a;
  --color-gold-dark:  #d4a020;
  --color-offwhite:   #f0f4ff;
  --bg-primary:       #0d2d6e;
  --bg-dark:          #081d4a;
  --bg-deeper:        #050f2a;
  --bg-light:         #f0f4ff;
  --accent:           #f0c040;
  --accent-hover:     #d4a020;
  --shadow-gold:      0 6px 28px rgba(240, 192, 64, 0.30);
  --shadow-navy:      0 8px 32px rgba(8, 29, 74, 0.40);
}


/* ─── SECTION 1: HERO ────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--color-navy);
  overflow: hidden;
}

/* Particle canvas — absolute, covers entire hero */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 2-column grid — mobile: stacked, desktop: 55/45 split */
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 55fr 45fr;
  }
}

/* ── Hero Left — text content ── */
.hero__left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 10vh, 7rem) var(--gutter);

  /* Mobile: add top clearance for stacked layout */
  padding-block-start: clamp(5rem, 10vh, 7rem);
}

@media (min-width: 900px) {
  .hero__left {
    padding-inline-start: var(--gutter);
    padding-inline-end: 3rem;
  }
}

/* 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.18em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero__dot {
  color: rgba(240, 192, 64, 0.50);
  font-size: 1.2em;
}

/* Gold rule between eyebrow and headline */
.hero__gold-rule {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--color-gold);
  margin-block-end: var(--space-6);
  opacity: 0; /* GSAP entrance target */
}

/* Main Headline */
.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  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;
  color: var(--color-gold-light);
}

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

/* CTA group */
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  opacity: 0; /* GSAP entrance target */
}

/* Micro-trust line below CTA button */
.hero__trust {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.12em;
  margin-block-start: var(--space-5);
  text-transform: uppercase;
}

/* ── Hero Right — photo frame ── */
.hero__right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--gutter) 4rem 2rem;
  /* On mobile: appears first via order */
  order: -1;
}

@media (min-width: 900px) {
  .hero__right {
    order: 0;
  }
}

/* Photo frame — subtle tilt, hover levels out */
.hero__photo-frame {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.50),
    0 8px 24px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.hero__photo-frame:hover {
  transform: rotate(0deg);
}

/* Photo slot — portrait aspect on desktop */
.hero__photo-slot {
  aspect-ratio: 3 / 4;
  background: var(--color-navy-dark);
  position: relative;
  overflow: hidden;
}

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

/* Mobile: photo slot becomes landscape, frame has no tilt */
@media (max-width: 899px) {
  .hero__right {
    padding: 2rem var(--gutter) 0;
  }

  .hero__photo-frame {
    max-width: 100%;
    transform: none;
  }

  .hero__photo-frame:hover {
    transform: none;
  }

  .hero__photo-slot {
    aspect-ratio: 16 / 9;
  }
}

/* Hero angled bottom edge — blends into section 2 on desktop */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-offwhite);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 3;
  pointer-events: none;
}

/* Hide angled cut on mobile — section stacks cleanly */
@media (max-width: 899px) {
  .hero::after {
    display: none;
  }
}


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

/* Cobalt off-white background */
.section--cobalt-light {
  background: var(--color-offwhite);
  color: var(--color-text);
}

.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);
  }
}

/* Cobalt variant — white card with cobalt top accent */
.value-card--cobalt {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--color-navy);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

/* Icon container — cobalt tint background */
.value-card--cobalt .value-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(13, 45, 110, 0.07);
  border-radius: var(--radius-md);
  margin-block-end: var(--space-6);
  color: var(--color-navy);
}

.value-card--cobalt .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--cobalt .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--cobalt .value-card__body {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 36ch;
}


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

/* Cobalt navy section background */
.section--cobalt-navy {
  background: var(--color-navy);
  color: var(--color-white);
}

/* Form wrapper */
.form-wrapper {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(240, 192, 64, 0.20);
  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(240, 192, 64, 0.20);
}

.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: flex;
  position: absolute;
  inset: 0;
  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;
}

/* Cobalt photo placeholder */
.agent-photo-placeholder--cobalt {
  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-swiper {
  padding-block-end: var(--space-10) !important; /* space for pagination */
}

/* Cobalt testimonial cards — gold top border */
.testimonial--cobalt {
  background: var(--color-white);
  border: 1px solid rgba(240, 192, 64, 0.22);
  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);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.testimonial--cobalt:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.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(13, 45, 110, 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 — cobalt palette */
.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 ──────────────────────────────────────── */

/* Deepest cobalt footer */
.footer--cobalt {
  background: var(--color-navy-deep);
  color: var(--color-white);
  padding-block: var(--space-16);
}

.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(240, 192, 64, 0.70);
  text-decoration: underline;
  text-decoration-color: rgba(240, 192, 64, 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);
  }
}
