/* ============================================
   TIWANI RESOURCES 2026 — styles.css
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colours */
  --teal:        #088080;
  --teal-dark:   #045658;
  --teal-light:  #0a9696;
  --gold:        #E5C07F;
  --gold-dark:   #d4af6f;
  --cream:       #F6F0E4;
  --white:       #ffffff;
  --near-black:  #1a1a1a;
  --mid-grey:    #666666;
  --light-grey:  #f0f0f0;

  /* Spacing (8px base) */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui:      'DM Sans', 'Helvetica Neue', sans-serif;

  /* Animation */
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 300ms;
  --duration-med:  500ms;
  --duration-slow: 700ms;

  /* Borders */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-full: 9999px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.6;
  color: var(--near-black);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}


/* ============================================
   HERO — SPLIT PANEL (State A)
   ============================================ */

/* Page entrance animation */
@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

#hero {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  overscroll-behavior: none;
}


/* --- Left panel: wave image background (~60%) --- */
.hero-left {
  flex: 0 0 60%;
  position: relative;
  background-image: url('assets/images/hero-wave-bg.webp');
  background-color: var(--teal);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Fallback if image not yet supplied */
  background-color: var(--teal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Subtle dark overlay for text readability */
.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 86, 88, 0.22);
  pointer-events: none;
  z-index: 0;
}

/* All direct children above overlay */
.hero-left > * {
  position: relative;
  z-index: 1;
}


/* --- Gold divider (bolder) --- */
.hero-divider {
  width: 4px;
  background: var(--gold);
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* --- Right panel: cream with content (~40%) --- */
.hero-right {
  flex: 1;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 40px 80px;
  padding-top: 28vh; /* push content down to align with carousel on the left */
  gap: 0;
  animation: heroEntrance var(--entrance-duration, 700ms) var(--ease-out) 200ms both;
}


/* ---------- Hero Logo ---------- */
.hero-logo {
  padding: 36px 40px 0;
  animation: heroEntrance var(--entrance-duration, 700ms) var(--ease-out) 100ms both;
}

.hero-logo img {
  height: 80px;
  width: auto;
  display: block;
}

/* Text fallback logo */
.logo-text-fallback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.logo-text-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.8rem;
  color: white;
  line-height: 1;
  letter-spacing: -0.5px;
}

.logo-text-sub {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.logo-text-rule {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.35);
  margin-top: 5px;
}


/* ---------- Carousel (LEFT-ALIGNED) ---------- */
.carousel-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px 0;
  animation: heroEntrance var(--entrance-duration, 700ms) var(--ease-out) 300ms both;
}

.carousel-eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.carousel-phrases {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-start;
}

.carousel-phrase {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  color: white;
  line-height: 1.1;
  letter-spacing: -1.5px;
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
  pointer-events: none;
}

.carousel-phrase.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-phrase em {
  font-style: normal;
  color: var(--gold);
}

/* Carousel controls — left aligned */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.carousel-arrow {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  transition: all 300ms;
  padding: 0;
}

.carousel-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 300ms;
  padding: 0;
  position: relative;
}

/* Enlarge touch target */
.carousel-dot::before {
  content: '';
  position: absolute;
  inset: -8px;
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}


/* ---------- Hero CTA Row — About + Services inside left panel ---------- */
.hero-cta-row {
  display: flex;
  justify-content: space-evenly;
  gap: 40px;
  padding: 0 40px 80px;
  margin-top: auto; /* push to bottom of left panel */
  animation: heroEntrance var(--entrance-duration, 700ms) var(--ease-out) 450ms both;
}

/* ---------- Shared CTA button style — pill shape, bold, transparent ---------- */
.hero-cta-btn {
  padding: 16px 52px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  text-transform: capitalize;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  transition: all 300ms var(--ease-out);
  white-space: nowrap;
  border-radius: var(--radius-full);
}

.hero-cta-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Gold variant — for About + Services on teal/wave background */
.hero-cta-gold {
  border: 2.5px solid var(--gold);
  color: var(--gold);
}

.hero-cta-gold:hover {
  background: var(--gold);
  color: var(--near-black);
  transform: translateY(-2px);
}

/* Teal variant — for Let's Talk on cream background */
.hero-cta-teal {
  border: 2.5px solid var(--teal);
  color: var(--teal);
  margin-top: auto;
  margin-bottom: 0; /* aligned via right panel padding-bottom */
}

.hero-cta-teal:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}


/* ---------- Right Panel Content ---------- */

/* Animated SVG graphic — enlarged per feedback */
.hero-graphic {
  width: 280px;
  height: 190px;
  margin-bottom: 24px;
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--teal);
  text-align: center;
  line-height: 1.3;
  max-width: 260px;
  margin-bottom: 0;
}

/* Mobile Let's Talk — hidden on desktop */
.hero-cta-mobile-talk {
  display: none;
}


/* ---------- SVG Line Draw Animation ---------- */
.svg-wave-1, .svg-wave-2, .svg-wave-3 {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawLine 1s var(--ease-in-out) forwards;
}

.svg-wave-1 { animation-delay: 0.1s; }
.svg-wave-2 { animation-delay: 0.35s; }
.svg-wave-3 { animation-delay: 0.6s; }

.svg-arrow-line, .svg-arrow-head {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 0.6s var(--ease-out) 1s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .svg-wave-1, .svg-wave-2, .svg-wave-3, .svg-arrow-line, .svg-arrow-head {
    animation: none;
    stroke-dashoffset: 0;
  }
}


/* ============================================
   DRIFT-UP ANIMATION (State A → C)
   ============================================ */

@keyframes driftUp {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  60% { opacity: 0.8; transform: translateY(-80px) scale(0.96); }
  100% { opacity: 0; transform: translateY(-140px) scale(0.9); }
}


/* ============================================
   PERSISTENT NAV (State C)
   ============================================ */

#persistent-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  z-index: 100;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

#persistent-nav.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  pointer-events: auto;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-inner {
  padding-left: max(5%, env(safe-area-inset-left));
  padding-right: max(5%, env(safe-area-inset-right));
}

.nav-logo-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 0;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-logo-btn img {
  height: 42px;
  width: auto;
}

.nav-logo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.5px;
}

.nav-logo-sub {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mid-grey);
  line-height: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--mid-grey);
  text-decoration: none;
  position: relative;
  transition: color 250ms;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 250ms var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--near-black);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}


/* ============================================
   HAMBURGER BUTTON
   ============================================ */

.hamburger-btn {
  display: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: all 300ms var(--ease-out);
}


/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
}

.mobile-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 300;
  transition: right 350ms var(--ease-out);
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-link {
  display: block;
  padding: 16px 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--near-black);
  text-decoration: none;
  border-bottom: 1px solid var(--light-grey);
  transition: color 200ms;
}

.mobile-nav-link:hover {
  color: var(--teal);
}

.mobile-nav-home {
  color: var(--mid-grey);
  font-size: 0.9rem;
  margin-top: 16px;
  border-bottom: none;
}


/* ============================================
   CONTENT AREA
   ============================================ */

#content-area {
  display: none;
  background: var(--cream);
  min-height: calc(100vh - 72px);
  padding-top: 72px;
}

#content-area.visible {
  display: block;
}

.section-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  padding: var(--space-xl) 5% var(--space-2xl);
}

.section-panel.active {
  display: block;
  transition: opacity 400ms var(--ease-out),
              transform 400ms var(--ease-out);
}

.section-panel.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   SECTION CONTENT SYSTEM
   ============================================ */

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--near-black);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  max-width: 800px;
}

.section-intro {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--mid-grey);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 64px;
}

.section-divider {
  width: 56px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 0 0 64px 0;
}

.content-block { margin-bottom: 56px; }

.content-block-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--near-black);
  margin-bottom: 16px;
}

.content-block-body {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--mid-grey);
  line-height: 1.75;
  max-width: 700px;
}

.content-block-body strong {
  color: var(--near-black);
  font-weight: 600;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.content-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.content-card-eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.content-card-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--near-black);
  margin-bottom: 12px;
  line-height: 1.2;
}

.content-card-body {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--mid-grey);
  line-height: 1.7;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--light-grey);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 64px;
}

.stat-item {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid-grey);
}

.section-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 64px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 250ms, transform 250ms;
  min-height: 48px;
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--teal);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 250ms;
  min-height: 48px;
}

.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

/* Specialties, team, services, form, footer styles carried from Phase 3-4 */
.specialties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.specialty-tag { padding: 4px 12px; background: var(--cream); color: var(--teal); font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500; border-radius: var(--radius-full); border: 1px solid rgba(8,128,128,0.2); }

.team-member-header { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.team-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: white; font-family: var(--font-ui); font-weight: 600; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: 1px; }
.team-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center top; border: 2px solid var(--cream); flex-shrink: 0; }
.team-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--near-black); margin-bottom: 2px; }
.team-title { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500; color: var(--teal); letter-spacing: 0.5px; }
.team-linkedin { display: inline-block; margin-top: 16px; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; color: var(--teal); text-decoration: none; transition: color 200ms; }
.team-linkedin:hover { color: var(--gold-dark); }

.tradebyagent-spotlight { background: var(--teal); border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.tradebyagent-spotlight::before { content: ''; position: absolute; top: -40px; right: -40px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.04); pointer-events: none; }
.tradebyagent-heading { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.5vw, 3rem); color: white; line-height: 1; margin-bottom: 8px; letter-spacing: -1px; }
.tradebyagent-tagline { font-family: var(--font-ui); font-weight: 600; font-size: 1rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.tradebyagent-body { font-family: var(--font-ui); font-size: 1rem; color: rgba(255,255,255,0.85); line-height: 1.75; max-width: 500px; margin-bottom: 32px; }
.tradebyagent-logo-area { display: flex; align-items: center; justify-content: center; }
.tradebyagent-logo-img { width: 180px; height: auto; border-radius: var(--radius-md); opacity: 0.95; }
.new-badge { position: absolute; top: 16px; right: 16px; padding: 3px 10px; background: var(--gold); color: var(--near-black); font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-radius: var(--radius-full); }
.services-bottom-cta { text-align: center; padding: 64px 0 0; border-top: 1px solid var(--light-grey); }
.services-cta-heading { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--near-black); margin-bottom: 24px; }

/* Contact form */
.form-row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.form-label { font-family: var(--font-ui); font-size: 0.875rem; font-weight: 500; color: var(--near-black); }
.form-label-optional { font-weight: 400; color: var(--mid-grey); font-size: 0.8rem; }
.form-input { font-family: var(--font-ui); font-size: 1rem; color: var(--near-black); background: var(--white); border: 1.5px solid #ddd; border-radius: var(--radius-md); padding: 12px 16px; width: 100%; transition: border-color 200ms; -webkit-appearance: none; }
.form-input:focus { outline: none; border-color: var(--teal); }
.form-input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--teal); }
.form-input.invalid { border-color: #e53e3e; }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-error { font-family: var(--font-ui); font-size: 0.8rem; color: #e53e3e; min-height: 18px; }
.form-submit-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 16px; margin-top: 8px; }
.form-success-state { text-align: center; padding: 64px 0; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: white; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-heading { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--near-black); margin-bottom: 12px; }
.success-body { font-family: var(--font-ui); font-size: 1.1rem; color: var(--mid-grey); }
.form-error-state { text-align: center; padding: 24px; background: #fff5f5; border-radius: var(--radius-md); margin-top: 16px; }
.form-error-state a { color: var(--teal); font-weight: 600; }
.contact-alt { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--light-grey); text-align: center; }
.contact-alt-label { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--mid-grey); margin-bottom: 8px; }
.contact-email-link { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 600; color: var(--teal); text-decoration: none; transition: color 200ms; }
.contact-email-link:hover { color: var(--teal-dark); }

/* Values */
.values-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 64px; border-top: 1px solid var(--light-grey); }
.value-item { display: flex; gap: 32px; align-items: flex-start; padding: 32px 0; border-bottom: 1px solid var(--light-grey); }
.value-number { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--gold); flex-shrink: 0; width: 48px; line-height: 1.2; }
.value-heading { font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; color: var(--near-black); margin-bottom: 6px; }
.value-body { font-family: var(--font-ui); font-size: 0.95rem; color: var(--mid-grey); line-height: 1.7; }

/* Footer */
#site-footer { background: #0f0f0f; color: white; padding: 64px 5% 32px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: white; display: block; line-height: 1; }
.footer-logo-sub { font-family: var(--font-ui); font-weight: 300; font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.5); display: block; margin-top: 4px; }
.footer-tagline { font-family: var(--font-ui); font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-top: 16px; max-width: 320px; }
.footer-col-heading { font-family: var(--font-ui); font-weight: 500; font-size: 0.7rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-link { font-family: var(--font-ui); font-size: 0.9rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 200ms; min-height: 36px; padding: 6px 0; display: inline-flex; align-items: center; }
.footer-link:hover { color: white; }
.footer-email { display: block; font-family: var(--font-ui); font-size: 0.9rem; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 24px; transition: color 200ms; }
.footer-email:hover { color: var(--gold); }
.footer-social { display: flex; gap: 16px; }
.footer-social-link { color: rgba(255,255,255,0.5); text-decoration: none; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); transition: all 200ms; }
.footer-social-link:hover { color: var(--gold); border-color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-family: var(--font-ui); font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* =============================================
   LET'S TALK SECTION
   ============================================= */

.ltalk-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5% 120px;
}

.ltalk-columns {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 48px;
}

.ltalk-rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 24px 0 32px;
  border: none;
}

/* Left column */
.ltalk-intro {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--mid-grey);
  line-height: 1.7;
  margin-bottom: 20px;
}

.ltalk-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--near-black);
  line-height: 1.3;
  margin-bottom: 0;
}

.ltalk-field { margin-bottom: 24px; }

.ltalk-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--near-black);
  margin-bottom: 6px;
}

.ltalk-optional { font-weight: 400; color: var(--mid-grey); font-size: 0.8rem; margin-left: 4px; }
.ltalk-required { color: var(--teal); margin-left: 2px; }

.ltalk-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--teal);
  border-radius: 0;
  padding: 10px 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--teal);
  transition: border-color 200ms;
  -webkit-appearance: none;
}

.ltalk-input::placeholder { color: rgba(8, 128, 128, 0.45); font-size: 0.9rem; }
.ltalk-input:focus { outline: none; border-bottom-color: var(--gold); }
.ltalk-input.invalid { border-bottom-color: #e53e3e; }

.ltalk-error {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: #e53e3e;
  min-height: 18px;
  margin-top: 4px;
}

/* Right column */
.ltalk-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--near-black);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.ltalk-body {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--teal);
  line-height: 1.75;
  margin-bottom: 12px;
}

.ltalk-checklist { border: none; padding: 0; margin: 0; }

.ltalk-checklist-legend {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal);
  margin-bottom: 16px;
  line-height: 1.4;
}

.ltalk-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--teal);
  line-height: 1.4;
  border-bottom: 0.5px solid rgba(8, 128, 128, 0.15);
  transition: color 200ms;
}

.ltalk-check-item:last-child { border-bottom: none; }
.ltalk-check-item:hover { color: var(--near-black); }

.ltalk-check-item input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px;
  accent-color: var(--teal);
  cursor: pointer;
}

/* Full-width message */
.ltalk-message-row { margin-bottom: 40px; }

.ltalk-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  border: none;
  border-bottom: 1.5px solid var(--teal);
  padding: 10px 0;
}

/* Submit button — pill style */
.ltalk-submit-row { display: flex; justify-content: center; margin-bottom: 48px; }

.ltalk-submit-btn {
  padding: 14px 48px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
  border-radius: var(--radius-full);
  cursor: pointer;
  min-height: 52px;
  min-width: 180px;
  transition: all 300ms var(--ease-out);
}

.ltalk-submit-btn:hover { background: var(--teal); color: white; transform: translateY(-2px); }
.ltalk-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Success / Error */
.ltalk-success { text-align: center; padding: 64px 0; }
.ltalk-success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: white; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.ltalk-success-heading { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--near-black); margin-bottom: 12px; }
.ltalk-success-body { font-family: var(--font-ui); font-size: 1.1rem; color: var(--mid-grey); }
.ltalk-error-state { text-align: center; padding: 24px 0; font-family: var(--font-ui); font-size: 0.95rem; color: #e53e3e; }
.ltalk-error-state a { color: var(--teal); }

/* Alt contact */
.ltalk-alt-contact { text-align: center; padding-top: 32px; border-top: 1px solid var(--light-grey); }
.ltalk-alt-label { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--mid-grey); margin-bottom: 8px; }
.ltalk-alt-email { font-family: var(--font-ui); font-size: 1rem; font-weight: 600; color: var(--teal); text-decoration: none; transition: color 200ms; }
.ltalk-alt-email:hover { color: var(--teal-dark); }


/* Scroll reveal */
.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal-in { opacity: 1; transform: translateY(0); }
.tradebyagent-spotlight.reveal-in { animation: spotlightReveal 600ms var(--ease-out) both; }
@keyframes spotlightReveal { from { opacity: 0; transform: translateY(32px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }


/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 5%;
  background: var(--teal);
  color: white;
  padding: 12px 20px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 9999;
  transition: top 200ms;
}

.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero-left  { flex: 0 0 60%; }
  .hero-right { flex: 0 0 calc(40% - 2px); padding: 40px 28px; }

  .hamburger-btn { display: flex; }
  .nav-links { display: none; }

  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #hero { flex-direction: column; min-height: 100dvh; }
  .hero-left { flex: 1; width: 100%; }
  .hero-divider { display: none; }
  .hero-right { display: none; }

  /* On mobile: show Let's Talk inside the CTA row as gold-outlined */
  .hero-cta-mobile-talk {
    display: inline-flex !important;
  }

  .hero-cta-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 0 24px 36px;
  }

  .carousel-phrase { font-size: clamp(2rem, 7vw, 3.2rem); }
  .carousel-phrases { min-height: 160px; }

  .tradebyagent-spotlight { grid-template-columns: 1fr; padding: 40px 32px; }
  .tradebyagent-logo-area { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .ltalk-columns { grid-template-columns: 1fr; gap: 40px; }
  .ltalk-wrapper { padding: 48px 5% 80px; }
}

@media (max-width: 639px) {
  #persistent-nav { height: 60px; }
  #content-area { padding-top: 60px; }
  .section-panel { padding: 40px 5% 80px; }
  .section-display { margin-bottom: 16px; }
  .section-intro { margin-bottom: 40px; font-size: 1rem; }
  .section-divider { margin-bottom: 40px; }
  .content-block { margin-bottom: 36px; }
  .stats-strip { margin-bottom: 40px; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .content-grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-logo { padding: 24px 24px 0; }
  .carousel-wrapper { padding: 24px 24px 0; }
  .hero-cta-row { padding: 24px 24px 36px; gap: 12px; }
  .carousel-phrase { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .carousel-phrases { min-height: 140px; }
}

@media (max-height: 700px) {
  .carousel-eyebrow { display: none; }
  .carousel-phrases { min-height: 130px; }
  .hero-cta-row { padding-top: 20px; padding-bottom: 28px; }
}


/* ============================================
   ACCESSIBILITY: Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
