/* =====================================================
   LONE SUMMIT TRADING COMPANY — Merged Stylesheet
   Photography sections + Glass cards + Full portal
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@400;500;600;700;900&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #0A1628;
  --secondary: #1C2333;
  --accent: #C5A55A;
  --accent-dim: rgba(197, 165, 90, 0.3);
  --accent-glow: rgba(197, 165, 90, 0.15);
  --text-light: #F5F5F5;
  --text-muted: #A0A8B8;
  --text-dark: #1C2333;
  --surface: #141B2D;
  --surface-elevated: #1A2340;
  --border: rgba(197, 165, 90, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --section-padding: 120px;
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --glass-bg: rgba(10, 22, 40, 0.7);
  --glass-border: rgba(197, 165, 90, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary);
  color: var(--text-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Grain Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
}

p {
  font-size: 1rem;
  color: #C8CDD8;
  max-width: 680px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--transition-smooth);
}
a:hover { color: var(--text-light); }

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* Section eyebrow labels — mono style */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

/* Section titles — large and bold */
.section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 0.95;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.gold-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border: none;
  margin: 0;
}

.gold-rule-left {
  width: 60px;
  height: 2px;
  background: var(--accent);
  border: none;
  margin: 20px 0;
  display: block;
}

/* =====================================================
   GSAP ANIMATION BASE STATES
   ===================================================== */
.gsap-reveal {
  opacity: 1;
  transform: translateY(0px);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 1000;
  transition: background 0.4s, border-color 0.4s;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.97);
  border-bottom-color: var(--border);
}

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

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-brand span {
  color: var(--accent);
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.72rem !important;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  border-radius: 2px;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--primary) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s;
  display: block;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================================
   PHOTO SECTIONS — Full-bleed photography backgrounds
   ===================================================== */
.photo-section {
  position: relative;
  overflow: hidden;
}

.photo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
  will-change: transform;
}

.photo-section:hover .photo-bg {
  transform: scale(1.0);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Hero overlay — strong bottom gradient, keep peaks visible */
.hero-overlay {
  background:
    linear-gradient(to bottom,
      rgba(10, 22, 40, 0.55) 0%,
      rgba(10, 22, 40, 0.3) 30%,
      rgba(10, 22, 40, 0.55) 70%,
      rgba(10, 22, 40, 0.92) 100%
    );
}

/* About overlay — right-side fade so text is readable */
.about-overlay {
  background:
    linear-gradient(to right,
      rgba(10, 22, 40, 0.88) 0%,
      rgba(10, 22, 40, 0.75) 50%,
      rgba(10, 22, 40, 0.65) 100%
    ),
    linear-gradient(to bottom,
      rgba(10, 22, 40, 0.4) 0%,
      transparent 30%,
      transparent 70%,
      rgba(10, 22, 40, 0.6) 100%
    );
}

/* Services overlay — stronger, workspace is more colorful */
.services-overlay {
  background:
    linear-gradient(180deg,
      rgba(10, 22, 40, 0.85) 0%,
      rgba(10, 22, 40, 0.78) 50%,
      rgba(10, 22, 40, 0.92) 100%
    );
}

/* Contact overlay — twilight mood */
.contact-overlay {
  background:
    linear-gradient(to right,
      rgba(10, 22, 40, 0.80) 0%,
      rgba(10, 22, 40, 0.60) 100%
    ),
    linear-gradient(to bottom,
      rgba(10, 22, 40, 0.5) 0%,
      rgba(10, 22, 40, 0.75) 100%
    );
}

/* =====================================================
   GLASS CARDS
   ===================================================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

/* =====================================================
   HERO SECTION (#home)
   ===================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: block;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: 0.06em;
  line-height: 0.93;
  margin-bottom: 28px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 32px;
  line-height: 1.4;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(245, 245, 245, 0.92);
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* --- Buttons --- */
.btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: #d4b46a;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(197, 165, 90, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-submit {
  background: var(--accent);
  color: var(--primary);
  width: 100%;
  justify-content: center;
  padding: 18px 40px;
  font-size: 0.85rem;
}

.btn-submit:hover {
  background: #d4b46a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(197, 165, 90, 0.3);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =====================================================
   SECTION BASE
   ===================================================== */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.photo-section .container {
  position: relative;
  z-index: 2;
}

/* Photo section padding */
.about-section,
.services-section,
.contact-section {
  padding: var(--section-padding) 0;
}

.section-header {
  margin-bottom: 64px;
}

/* =====================================================
   ABOUT SECTION (#about)
   ===================================================== */
.about-container {
  position: relative;
  z-index: 2;
}

/* Pillar Cards */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.pillar-card {
  padding: 48px 36px;
  position: relative;
  transition: all 0.4s var(--transition-smooth);
  border-radius: 2px;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--transition-smooth);
}

.pillar-card:hover {
  border-color: var(--border);
  background: rgba(10, 22, 40, 0.85);
  transform: translateY(-4px);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(197, 165, 90, 0.25);
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.pillar-card h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.2;
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #C8CDD8;
}

.about-closing-wrap {
  display: flex;
  justify-content: flex-start;
}

.about-closing {
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #C8CDD8;
}

/* =====================================================
   SERVICES SECTION (#services)
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--transition-smooth);
  border-radius: 2px;
  position: relative;
}

.service-card.featured {
  border-color: var(--accent-dim) !important;
  background: rgba(10, 22, 40, 0.82) !important;
}

.service-card.featured::after {
  display: none;
}

.service-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.required-badge {
  color: #fff;
  background: rgba(197, 165, 90, 0.25);
  border: 1px solid var(--accent-dim);
}

.service-card:hover {
  border-color: var(--border) !important;
  transform: translateY(-4px);
  background: rgba(10, 22, 40, 0.9) !important;
}

.service-card h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
  color: #C8CDD8;
}

.service-card .service-detail {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #C8CDD8;
}

.service-lead {
  font-size: 1.05rem !important;
  color: var(--accent) !important;
  font-weight: 500;
  margin-bottom: 4px;
  flex: 0 !important;
}

.service-includes {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.service-includes li {
  position: relative;
  padding-left: 20px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #C8CDD8;
  margin-bottom: 8px;
}

.service-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

.service-included-tag {
  margin-top: 24px;
  padding: 10px 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1px solid var(--border-subtle);
}

.service-price {
  margin-top: 24px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 600;
}

.service-price small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.service-price-sub {
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(197, 165, 90, 0.7);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.service-cta {
  margin-top: 24px;
}

/* =====================================================
   PROCESS SECTION (#process)
   ===================================================== */
.process-section {
  background: transparent;
}

.process-overlay {
  background: linear-gradient(180deg,
    rgba(10, 22, 40, 0.88) 0%,
    rgba(10, 22, 40, 0.82) 40%,
    rgba(10, 22, 40, 0.88) 100%);
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 48px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 19px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(197, 165, 90, 0.15));
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  position: relative;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.process-step:last-child {
  border-bottom: none;
}

.step-marker {
  position: absolute;
  left: -48px;
  top: 36px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-marker::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(197, 165, 90, 0.15), 0 0 20px rgba(197, 165, 90, 0.1);
  transition: all 0.3s;
}

.process-step:hover .step-marker::before {
  box-shadow: 0 0 0 6px rgba(197, 165, 90, 0.25), 0 0 30px rgba(197, 165, 90, 0.2);
  transform: scale(1.2);
}

.step-content {
  flex: 1;
}

.step-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.process-step h3 {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.2;
}

.process-step p {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.75;
  max-width: 560px;
}

.process-note {
  margin-top: 60px;
  text-align: center;
  padding: 32px;
  border: 1px solid var(--border);
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2px;
}

.process-note p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
  font-style: italic;
  color: #C8CDD8;
}

/* =====================================================
   PORTAL SECTION (#portal)
   ===================================================== */
.portal-section {
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

.portal-container {
  max-width: 800px;
  margin: 0 auto;
}

.portal-header {
  text-align: center;
  margin-bottom: 48px;
}

.portal-header .section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.portal-header p {
  margin: 0 auto;
  text-align: center;
}

/* Auth Form Container */
.auth-form-container {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-tab {
  flex: 1;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.auth-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--transition-smooth);
}

.auth-tab:hover { color: var(--text-light); }
.auth-tab.active { color: var(--accent); }
.auth-tab.active::after { transform: scaleX(1); }

.auth-form {
  padding: 36px 40px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 500;
}

.auth-switch a:hover { color: var(--text-light); }


/* Form Message */
.form-message {
  padding: 12px 16px;
  border-radius: 2px;
  font-size: 0.82rem;
  margin-bottom: 16px;
  text-align: center;
}

.form-message-error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

.portal-view {
  /* shown/hidden via JS */
}

/* Dashboard */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-welcome h3 {
  color: var(--text-light);
  margin-top: 4px;
  font-size: 1.4rem;
  line-height: 1.2;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.7rem;
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.dashboard-card .consultation-form {
  background: transparent;
  border: none;
  border-radius: 0;
}

/* Dashboard Tabs */
.dash-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.dash-tab {
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.dash-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--transition-smooth);
}

.dash-tab:hover { color: var(--text-light); }
.dash-tab.active { color: var(--accent); }
.dash-tab.active::after { transform: scaleX(1); }

.dash-panel { /* shown/hidden via JS */ }

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 20px 24px;
  text-align: center;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Consultation History */
.consultation-history { padding: 0; }

.history-loading {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.history-empty {
  padding: 48px 40px;
  text-align: center;
}

.history-empty p {
  margin: 0 auto 12px;
  text-align: center;
  font-size: 0.9rem;
}

.history-empty .btn { margin-top: 12px; }

.history-item {
  padding: 24px 40px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
}

.history-item:last-child { border-bottom: none; }
.history-item:hover { background: rgba(197, 165, 90, 0.03); }

.history-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.history-id {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.history-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
}

.history-status.pending { color: var(--accent); background: rgba(197, 165, 90, 0.1); }
.history-status.in-progress { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.history-status.delivered { color: #4ade80; background: rgba(74, 222, 128, 0.1); }

.history-details {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.history-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-detail-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.history-detail span:last-child {
  font-size: 0.85rem;
  color: var(--text-light);
}


/* Subscription Status Colors */
.stat-value.status-active { color: #4ade80; }
.stat-value.status-warning { color: #fbbf24; }
.stat-value.status-expired { color: #ef4444; }

/* Subscription Banner */
.subscription-banner {
  margin-bottom: 24px;
  padding: 20px 28px;
  border-radius: 2px;
  border: 1px solid;
}

.subscription-banner.warning {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.25);
}

.subscription-banner.expired {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}

.subscription-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.subscription-banner-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.subscription-banner-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.subscription-banner-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Market Category Labels */
.market-category-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 24px;
  margin-bottom: 12px;
}

.market-category-label:first-child { margin-top: 0; }



/* Dashboard Card Header */
.dashboard-card-header {
  padding: 32px 40px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(197, 165, 90, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-card-header h4 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dashboard-card-header p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.dashboard-card-header .btn { flex-shrink: 0; }

.form-section-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  margin-top: -12px;
}

/* Form */
.consultation-form {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.form-section {
  padding: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.form-section:last-child { border-bottom: none; }

.form-section-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row:last-child { margin-bottom: 0; }
.form-row.single { grid-template-columns: 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-group .helper-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 16px;
  background: var(--primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  border-radius: 2px;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder,
textarea::placeholder {
  color: rgba(160, 168, 184, 0.4);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A0A8B8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

select option {
  background: var(--secondary);
  color: var(--text-light);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Markets Checkboxes */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.market-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  background: var(--primary);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  transition: all 0.2s;
  user-select: none;
}

.market-checkbox:hover { border-color: var(--accent-dim); }

.market-checkbox.checked {
  border-color: var(--accent);
  background: rgba(197, 165, 90, 0.08);
}

.market-checkbox input[type="checkbox"] { display: none; }

.market-checkbox .checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.market-checkbox.checked .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.market-checkbox .checkmark svg {
  width: 12px;
  height: 12px;
  stroke: var(--primary);
  stroke-width: 2.5;
  fill: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.market-checkbox.checked .checkmark svg { opacity: 1; }

.market-checkbox span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.market-checkbox.checked span { color: var(--text-light); }

/* Disclaimer Checkboxes */
.disclaimer-group {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(197, 165, 90, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  user-select: none;
}

.disclaimer-group:last-of-type { margin-bottom: 24px; }
.disclaimer-group input[type="checkbox"] { display: none; }

.disclaimer-group .checkmark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
}

.disclaimer-group.checked .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.disclaimer-group .checkmark svg {
  width: 12px;
  height: 12px;
  stroke: var(--primary);
  stroke-width: 2.5;
  fill: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.disclaimer-group.checked .checkmark svg { opacity: 1; }

.disclaimer-group span {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Hidden Conditional Fields */
.conditional-field { display: none; margin-top: 12px; }
.conditional-field.visible { display: block; }

/* Form validation */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form-group .error-message {
  font-size: 0.75rem;
  color: #e74c3c;
  margin-top: 6px;
  display: none;
}

.form-group.error .error-message { display: block; }

/* Confirmation Screen */
.confirmation-screen {
  text-align: center;
  padding: 80px 40px;
  display: none;
}

.confirmation-screen.visible { display: block; }

.confirmation-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.confirmation-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.confirmation-screen h3 {
  color: var(--text-light);
  font-size: 1.6rem;
  margin-bottom: 12px;
  line-height: 1.2;
}

.confirmation-screen .consultation-id {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 20px;
}

.confirmation-screen p {
  margin: 0 auto;
  text-align: center;
}

/* =====================================================
   CONTACT SECTION (#contact)
   ===================================================== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-info .section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.contact-info p { margin-bottom: 16px; }

.contact-email {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin: 16px 0 32px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent-dim);
}

.contact-email:hover {
  color: var(--text-light);
  border-bottom-color: var(--text-light);
}

.contact-details {
  padding: 48px;
  border-radius: 2px;
}

.contact-details h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.contact-detail-item { margin-bottom: 20px; }
.contact-detail-item:last-child { margin-bottom: 0; }

.contact-detail-item .label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.contact-detail-item .value {
  font-size: 0.95rem;
  color: #C8CDD8;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--primary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.8;
  color: #A0A8B8;
  max-width: 800px;
  margin-bottom: 32px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: #8E95A4;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .pillars-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-timeline {
    padding-left: 40px;
  }

  .step-marker {
    left: -40px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
    --nav-height: 64px;
  }

  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }

  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--nav-height) + 38px);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-content { padding: 40px 20px; }
  .hero-title { letter-spacing: 0.03em; }

  .process-timeline {
    padding-left: 36px;
  }

  .step-marker {
    left: -36px;
  }

  .form-row { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }

  .form-section { padding: 28px 24px; }
  .auth-form { padding: 28px 24px; }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .dashboard-card-header {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .history-item { padding: 20px 24px; }
  .subscription-banner { padding: 16px 20px; }
  .history-details { gap: 16px; }
  .dash-tab { padding: 12px 20px; font-size: 0.68rem; }
}

@media (max-width: 480px) {
  .hero-scroll-hint { display: none; }

  .markets-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .market-checkbox { padding: 8px 10px; }
  .market-checkbox span { font-size: 0.78rem; }
}

/* =====================================================
   PAYMENT FLOW & LEASE STATUS — Added Styles
   ===================================================== */

/* Lease Status - Muted/Neutral */
.stat-value.status-muted {
  color: var(--text-muted);
}

/* Getting Started Banner (new clients) */
.getting-started-banner {
  margin-bottom: 24px;
  padding: 24px 28px;
  border-radius: 2px;
  border: 1px solid var(--accent-dim);
  background: rgba(197, 165, 90, 0.06);
}

.getting-started-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.getting-started-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--accent);
}

.getting-started-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.getting-started-text {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.getting-started-text strong {
  color: var(--accent);
}

/* Subscription Banner Actions (renewal buttons) */
.subscription-banner-body {
  flex: 1;
}

.subscription-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Confirmation Payment Block */
.confirmation-payment-block {
  margin-top: 32px;
  text-align: center;
}

.confirmation-payment-block .btn-primary {
  font-size: 0.85rem;
  padding: 18px 48px;
}

.confirmation-payment-note {
  margin: 20px auto 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
  text-align: center;
}

.confirmation-post-payment {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.confirmation-post-payment p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.confirmation-post-payment .btn {
  margin-top: 0;
}

/* =====================================================
   PRE-LAUNCH BANNER — Coming Soon Mode
   ===================================================== */

.prelaunch-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: linear-gradient(135deg, var(--accent) 0%, #b8943f 100%);
  color: var(--primary);
  padding: 10px 20px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.prelaunch-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

.prelaunch-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.prelaunch-text {
  color: var(--primary);
  font-weight: 500;
}

/* Push nav down to make room for the banner */
.nav {
  top: 38px;
}

/* Push hero scroll offset */
html {
  scroll-padding-top: calc(var(--nav-height) + 38px);
}

/* Coming Soon price styling */
.coming-soon-price {
  color: var(--accent) !important;
  font-family: var(--font-body) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
}

/* Coming Soon notice in confirmation */
.coming-soon-notice {
  background: rgba(197, 165, 90, 0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 32px;
  text-align: center;
  margin-top: 16px;
}

.coming-soon-notice p {
  margin: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.coming-soon-notice strong {
  color: var(--accent);
}

@media (max-width: 768px) {
  .prelaunch-banner {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
  .prelaunch-inner {
    gap: 8px;
  }
  .prelaunch-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
  }
}
