/* ==========================================================================
   TERMINUSONE.HOMES - DESIGN SYSTEM & STYLESHEET
   Version: v1.15
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette from Logo */
  --color-brand-midnight: #07111e;
  --color-brand-navy-deep: #0b1a30;
  --color-brand-navy: #0f2442;
  --color-brand-navy-light: #163259;
  
  --color-brand-primary: #1967d2;
  --color-brand-primary-hover: #1557b0;
  --color-brand-electric: #0284c7;
  --color-brand-cyan: #0ea5e9;
  --color-brand-sky: #38bdf8;
  --color-brand-glow: rgba(14, 165, 233, 0.4);
  
  --color-accent-gold: #f59e0b;
  --color-accent-green: #10b981;
  --color-accent-green-bg: rgba(16, 185, 129, 0.12);
  --color-accent-red: #ef4444;
  --color-accent-red-bg: rgba(239, 68, 68, 0.1);

  /* Neutrals & Surfaces */
  --bg-main: #07111e;
  --bg-surface-dark: #0b1a30;
  --bg-surface-card: rgba(15, 36, 66, 0.75);
  --bg-surface-card-hover: rgba(22, 50, 89, 0.85);
  --bg-surface-glass: rgba(11, 26, 48, 0.82);
  --bg-surface-light: #f8fafc;
  --bg-surface-alt: #f1f5f9;

  --border-subtle: rgba(56, 189, 248, 0.15);
  --border-highlight: rgba(14, 165, 233, 0.4);
  --border-light: #e2e8f0;

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #0f172a;
  --text-dark-muted: #475569;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #0ea5e9 0%, #1967d2 60%, #0b1a30 100%);
  --gradient-button: linear-gradient(135deg, #0ea5e9 0%, #1967d2 100%);
  --gradient-button-hover: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  --gradient-glow: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.18) 0%, rgba(7, 17, 30, 0) 70%);
  --gradient-card: linear-gradient(180deg, rgba(22, 50, 89, 0.6) 0%, rgba(11, 26, 48, 0.8) 100%);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevations & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.25);
  --shadow-button: 0 4px 20px rgba(25, 103, 210, 0.4);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1240px;
  --header-height: 80px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Wrapper */
.section {
  padding: 6rem 0;
  position: relative;
}

.section--dark {
  background-color: var(--bg-main);
}

.section--alt {
  background: linear-gradient(180deg, #07111e 0%, #0b1a30 50%, #07111e 100%);
}

.section--light {
  background-color: var(--bg-surface-light);
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & HEADINGS
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--border-highlight);
  color: var(--color-brand-sky);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section--light .section-title {
  color: var(--text-dark);
}

.section-title .text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section--light .section-subtitle {
  color: var(--text-dark-muted);
}

/* --------------------------------------------------------------------------
   4. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-button);
  color: #ffffff;
  box-shadow: var(--shadow-button);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
  background: rgba(15, 36, 66, 0.8);
  color: #ffffff;
  border: 1px solid var(--border-highlight);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--color-brand-navy-light);
  border-color: var(--color-brand-sky);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-white {
  background: #ffffff;
  color: var(--color-brand-navy);
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.125rem;
}

.btn-icon {
  font-size: 1.1em;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Glowing Pulse effect on main CTA */
.btn-pulse {
  animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(25, 103, 210, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(14, 165, 233, 0.7), 0 0 15px rgba(25, 103, 210, 0.5);
  }
}

/* --------------------------------------------------------------------------
   5. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(7, 17, 30, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.navbar.scrolled {
  background: rgba(7, 17, 30, 0.95);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(56, 189, 248, 0.2);
  height: 72px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 2px 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-text-link {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  transition: transform var(--transition-fast);
}

.brand-text-link:hover {
  transform: translateY(-1px);
}

.brand-text-name {
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text-dot {
  color: var(--color-brand-sky);
  font-weight: 700;
  margin-left: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand-sky);
  transition: width var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brand-sky);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  transition: all var(--transition-fast);
}

.nav-phone:hover {
  background: rgba(14, 165, 233, 0.2);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: #ffffff;
  padding: 0.5rem;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 75% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(25, 103, 210, 0.2) 0%, transparent 60%),
              var(--bg-main);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/hero-luxury-flip.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: contrast(1.1) brightness(0.8);
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-brand-sky);
  margin-bottom: 1.5rem;
  width: fit-content;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-green);
  box-shadow: 0 0 10px var(--color-accent-green);
  animation: dot-pulse 1.8s infinite;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 580px;
}

.hero-perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}

.hero-perk-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}

.hero-perk-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  color: var(--color-accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Quick Offer Card in Hero */
.hero-card-col {
  position: relative;
}

.quick-offer-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.quick-offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #1967d2, #38bdf8);
}

.card-brand-logo-wrap {
  margin-bottom: 1.5rem;
  width: 100%;
  display: block;
  background: #000000;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.card-brand-logo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.card-header-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-green);
  background: var(--color-accent-green-bg);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.quick-offer-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.quick-offer-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #e2e8f0;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(7, 17, 30, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #ffffff;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--color-brand-sky);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.35);
  background: rgba(11, 26, 48, 0.9);
}

.form-select option {
  background: var(--color-brand-midnight);
  color: #ffffff;
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Hero Stats Bar */
.hero-stats-wrapper {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   7. INTERACTIVE CASH OFFER & ROI CALCULATOR
   -------------------------------------------------------------------------- */
.calculator-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

.calc-control-group {
  margin-bottom: 2rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calc-label {
  font-weight: 700;
  font-size: 1rem;
  color: #f1f5f9;
}

.calc-val-display {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-brand-sky);
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-brand-sky);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.8);
  border: 2px solid #ffffff;
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.condition-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.condition-btn {
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  background: rgba(7, 17, 30, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
}

.condition-btn:hover {
  border-color: var(--color-brand-sky);
  color: #ffffff;
}

.condition-btn.active {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--color-brand-sky);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

.speed-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.speed-btn {
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  background: rgba(7, 17, 30, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
}

.speed-btn:hover {
  border-color: var(--color-brand-sky);
  color: #ffffff;
}

.speed-btn.active {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--color-brand-sky);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

/* Calculator Output Panel */
.calc-result-panel {
  background: rgba(7, 17, 30, 0.7);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-offer-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(25, 103, 210, 0.2) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.calc-offer-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent-green);
  color: #07111e;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
}

.calc-offer-amount {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin: 0.4rem 0;
}

.calc-offer-subtitle {
  font-size: 0.88rem;
  color: var(--color-brand-sky);
  font-weight: 600;
}

.calc-comparison-breakdown {
  margin-bottom: 1.75rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.calc-row:last-child {
  border-bottom: none;
}

.calc-row .label {
  color: var(--text-secondary);
}

.calc-row .value {
  font-weight: 700;
  color: #ffffff;
}

.calc-row .value.positive {
  color: var(--color-accent-green);
}

.calc-row .value.deduction {
  color: var(--color-accent-red);
}

/* --------------------------------------------------------------------------
   8. BEFORE & AFTER INTERACTIVE SLIDER
   -------------------------------------------------------------------------- */
.comparison-container {
  max-width: 1000px;
  margin: 0 auto;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(14, 165, 233, 0.2);
  border: 2px solid var(--border-highlight);
  user-select: none;
}

.slider-image-before,
.slider-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slider-image-before {
  background-image: url('../img/house-before.jpg');
}

.slider-image-after {
  background-image: url('../img/house-after.jpg');
  width: 50%;
  border-right: 3px solid #ffffff;
  overflow: hidden;
}

.slider-badge {
  position: absolute;
  top: 1.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 5;
}

.slider-badge-before {
  right: 1.5rem;
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-badge-after {
  left: 1.5rem;
  background: rgba(14, 165, 233, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(14, 165, 233, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-midnight);
  font-size: 1.1rem;
  cursor: ew-resize;
  z-index: 10;
}

.slider-handle-line {
  position: absolute;
  top: -240px;
  bottom: -240px;
  left: 50%;
  width: 3px;
  background: #ffffff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.comparison-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.comp-stat-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.comp-stat-card h4 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.comp-stat-card .val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-brand-sky);
}

/* --------------------------------------------------------------------------
   9. 3-STEP PROCESS
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-brand-sky), transparent);
  z-index: 1;
}

.process-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2rem 2.25rem 2rem;
  position: relative;
  z-index: 2;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-brand-sky);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  background: var(--bg-surface-card-hover);
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.6) 0%, rgba(25, 103, 210, 0.2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.process-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid var(--border-highlight);
  color: var(--color-brand-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.process-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.process-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. TRANSFORMATION PORTFOLIO
   -------------------------------------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-brand-sky);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.portfolio-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.06);
}

.portfolio-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 17, 30, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-highlight);
  color: var(--color-brand-sky);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.portfolio-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.portfolio-metrics {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.portfolio-metrics .metric-item {
  display: flex;
  flex-direction: column;
}

.portfolio-metrics .metric-title {
  color: var(--text-muted);
}

.portfolio-metrics .metric-val {
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-accent-green);
}

/* --------------------------------------------------------------------------
   11. COMPARISON TABLE (TERMINUSONE VS REALTOR)
   -------------------------------------------------------------------------- */
.comparison-table-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th,
.comp-table td {
  padding: 1.25rem 1.75rem;
  font-size: 0.95rem;
}

.comp-table thead th {
  background: rgba(11, 26, 48, 0.95);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  border-bottom: 2px solid var(--border-highlight);
}

.comp-table thead th:nth-child(2) {
  background: rgba(14, 165, 233, 0.18);
  color: var(--color-brand-sky);
  border-left: 2px solid var(--border-highlight);
  border-right: 2px solid var(--border-highlight);
}

.comp-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comp-table tbody tr:last-child {
  border-bottom: none;
}

.comp-table tbody td:nth-child(2) {
  background: rgba(14, 165, 233, 0.06);
  border-left: 2px solid var(--border-highlight);
  border-right: 2px solid var(--border-highlight);
  font-weight: 700;
  color: #ffffff;
}

.comp-feature {
  font-weight: 600;
  color: #e2e8f0;
}

.comp-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent-green);
}

.comp-cross {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent-red);
}

/* --------------------------------------------------------------------------
   12. SITUATIONS WE SOLVE
   -------------------------------------------------------------------------- */
.situations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.situation-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.situation-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-sky);
  background: var(--bg-surface-card-hover);
}

.situation-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.situation-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.situation-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   13. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-brand-sky);
  box-shadow: var(--shadow-glow);
}

.rating-stars {
  color: var(--color-accent-gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 0.98rem;
  color: #e2e8f0;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #1967d2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
}

.author-info h4 {
  font-size: 0.95rem;
  color: #ffffff;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--color-brand-sky);
}

/* --------------------------------------------------------------------------
   14. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-wrapper {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-brand-sky);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-align: left;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--color-brand-sky);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer-inner {
  padding: 0 1.75rem 1.5rem 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   15. FULL CTA BANNER
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, #0b1a30 0%, #163259 50%, #0ea5e9 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(14, 165, 233, 0.35);
  border: 1px solid var(--border-highlight);
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  color: #ffffff;
}

.cta-banner p {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 650px;
  margin: 0 auto 2.25rem auto;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #040a12;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  padding: 5rem 0 2rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-logo-wrap {
  width: 100%;
  max-width: 280px;
  margin-bottom: 1.25rem;
  display: block;
  background: #000000;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.footer-brand-logo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-brand p {
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-brand-sky);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--color-brand-sky);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   17. MODALS & TOASTS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface-dark);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-brand-navy-light);
  border: 1px solid var(--color-accent-green);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .calculator-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .process-grid::before {
    display: none;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .situations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-actions .nav-phone {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(7, 17, 30, 0.98);
    border-bottom: 1px solid var(--border-highlight);
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .hero-stats-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .slider-wrapper {
    height: 360px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .situations-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .comp-table thead th,
  .comp-table td {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }
}
