/* style.css - Equitify Design System */

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

:root {
  /* Colors */
  --bg: hsl(38, 30%, 96%);
  /* Warm off-white */
  --primary: hsl(40, 72%, 46%);
  /* Gold */
  --gold: hsl(40, 72%, 36%);
  /* Gold variant */

  --color-primary: #0a1122;
  /* Deep Navy/Charcoal */
  --color-primary-light: #15223a;
  --color-accent: var(--primary);
  /* Warm Gold */
  --color-accent-hover: var(--gold);

  --color-bg-light: var(--bg);
  /* Cream / Stone */
  --color-bg-stone: hsl(38, 20%, 92%);
  --color-border: rgba(0, 0, 0, 0.06);
  --color-text-dark: #1a202c;
  --color-text-light: #f7fafc;
  --color-text-muted: #64748b;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Space & Radius */
  --spacing-section: 6rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  /* Page Transition Hooks */
  opacity: 0;
  animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.page-fade-out {
  opacity: 0 !important;
  transition: opacity 0.3s ease;
}

/* Typography Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

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

.text-muted {
  color: var(--color-text-muted);
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--color-accent) 0%, #f9e596 50%, var(--color-accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: var(--spacing-section) 0;
}

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

/* Animations */
.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active,
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

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

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

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ------------------------------------- */
/* HEADER & NAV */
/* ------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--transition-smooth);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(10, 17, 34, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-decoration: none;
  letter-spacing: 1px;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: var(--transition-smooth);
  opacity: 0.8;
}

.nav-links li a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text-light);
  font-size: 2rem;
  cursor: pointer;
  z-index: 101;
  line-height: 1;
}

/* ------------------------------------- */
/* HERO SECTION */
/* ------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  background-image: linear-gradient(to right, rgba(10, 17, 34, 0.95) 0%, rgba(10, 17, 34, 0.7) 40%, rgba(10, 17, 34, 0.2) 100%), url('../../hero-bg.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.05), transparent 40%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(1.75rem, 8vw, 5.5rem);
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--color-text-light);
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 1200px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Stat Row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  font-family: 'Inter', monospace;
  font-weight: 300;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ------------------------------------- */
/* PLATFORM / ABOUT SECTION */
/* ------------------------------------- */
.platform-section {
  background-color: var(--color-bg-light);
  position: relative;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.platform-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.platform-text p {
  font-size: 1.1rem;
  color: var(--color-text-dark);
  opacity: 0.8;
  margin-bottom: 1rem;
}

/* ------------------------------------- */
/* SERVICES SECTION */
/* ------------------------------------- */
.services-section {
  background-color: var(--color-bg-stone);
}

/* Unified Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h6 {
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background-color: rgba(212, 175, 55, 0.08);
  /* primary/8 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  transition: background-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border-color: rgba(212, 175, 55, 0.3);
}

.service-card:hover .service-icon-wrap {
  background-color: rgba(212, 175, 55, 0.15);
  /* primary/15 */
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ------------------------------------- */
/* INVEST WAYS SECTION */
/* ------------------------------------- */
.invest-section {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.invest-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.invest-card {
  background: var(--color-primary-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 3rem;
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.invest-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
}

.invest-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.invest-card p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ------------------------------------- */
/* FOOTER */
/* ------------------------------------- */
.site-footer {
  background-color: #050810;
  color: var(--color-text-muted);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links ul li a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

/* ------------------------------------- */
/* PROPERTIES / GRID */
/* ------------------------------------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
}

.property-card {
  position: relative;
  background: var(--color-bg-stone);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
  background-size: cover;
  background-position: center;
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.property-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,17,34,0.1) 0%, rgba(10,17,34,0.6) 50%, rgba(10,17,34,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  z-index: 1;
}

.property-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.property-badge {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
}

.property-status {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-dark);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 20px;
}

.property-details {
  position: relative;
  z-index: 2;
}

.property-details h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.property-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-box span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.metric-box strong {
  font-family: 'Inter', monospace;
  font-size: 1.1rem;
  color: #fff;
}

.property-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.property-link:hover {
  color: var(--color-accent-hover);
  transform: translateX(5px);
}

/* ------------------------------------- */
/* TESTIMONIALS SECTION */
/* ------------------------------------- */
.testimonials-section {
  background-color: var(--color-bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.testimonial-video {
  width: 100%;
}

.video-embed-slot {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.play-button-stub {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 5px;
  /* Visual center tweak */
  cursor: pointer;
  transition: var(--transition-smooth);
}

.video-embed-slot:hover .play-button-stub {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: scale(1.1);
}

.testimonial-quotes {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quote-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.quote-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-bg-stone);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .invest-split {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    transition: right var(--transition-smooth);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------- */
/* COMPARISON TABLE */
/* ------------------------------------- */
.comparison-section {
  padding: 6rem 0;
  background-color: var(--color-bg-light);
}

.comparison-header {
  text-align: center;
  margin-bottom: 4rem;
}

.comparison-header h6 {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.comparison-header h2 {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.comparison-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.table-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.comparison-table th {
  padding: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #ebebeb;
  text-align: center;
  line-height: 1.4;
}

.comparison-table th.task-col {
  text-align: left;
  color: var(--color-text-muted);
}

.th-solo,
.th-broker {
  color: var(--color-text-muted);
}

.th-solo span {
  color: #f28b82;
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

.th-broker span {
  color: #f28b82;
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

.th-equitify {
  background: var(--color-bg-light);
  border-left: 1px solid #ebebeb;
  border-right: 1px solid #ebebeb;
  position: relative;
  color: var(--color-accent);
}

.th-equitify span {
  color: var(--color-accent-hover);
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

.full-service-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.3rem 1.25rem;
  border-radius: 20px;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}

.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #ebebeb;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.comparison-table td.task-col {
  text-align: left;
  font-weight: 600;
  color: var(--color-text-dark);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.td-equitify {
  background: var(--color-bg-light);
  border-left: 1px solid #ebebeb;
  border-right: 1px solid #ebebeb;
  font-weight: 600;
  color: var(--color-accent);
}

.cell-you {
  color: #f28b82;
}

.cell-broker {
  color: var(--color-text-muted);
  font-weight: 400;
}

.cell-shared {
  color: var(--color-text-muted);
  font-weight: 400;
}

.cell-none {
  color: #f8b4b4;
  font-weight: 400;
}

.comparison-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #ebebeb;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-you {
  background: #f28b82;
}

.dot-broker {
  background: #cbd5e1;
}

.dot-equitify {
  background: var(--color-accent);
}

.legend-item strong {
  color: var(--color-text-dark);
}