/* assets/css/style.css */
/* Tomorrow Fund - Design System & Dark Theme CSS */

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

:root {
  --bg-primary: #0B121C;
  --bg-alt: #111A27;
  --bg-card: #111A27;
  --border-color: #1E2A3A;
  --border-subtle: #1A2432;
  
  --text-heading: #F3F5F8;
  --text-body: #8FA0B3;
  --text-dim: #5C6B7D;
  
  --accent-gold: #C9A876;
  --accent-gold-hover: #B08F5E;
  --accent-gold-light: rgba(201, 168, 118, 0.12);
  --accent-gold-glow: rgba(201, 168, 118, 0.25);
  
  --success-teal: #4FA88C;
  --success-teal-light: rgba(79, 168, 140, 0.15);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
}

.sans-title {
  font-family: var(--font-sans);
}

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 900px;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 18, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo img {
  height: 58px;
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.35));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-gold);
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #0B121C;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  color: #0B121C;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-gold-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.btn-outline:hover {
  background-color: var(--accent-gold-light);
  color: var(--text-heading);
  border-color: var(--accent-gold-hover);
}

.btn-secondary {
  background-color: var(--bg-alt);
  color: var(--text-heading);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  border-color: var(--accent-gold);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* --- BADGES & TAGS --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-gold {
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
  border: 1px solid rgba(201, 168, 118, 0.3);
}

.badge-green {
  background-color: var(--success-teal-light);
  color: var(--success-teal);
  border: 1px solid rgba(79, 168, 140, 0.3);
}

.badge-dim {
  background-color: rgba(92, 107, 125, 0.15);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

/* --- CARDS & PANELS --- */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(201, 168, 118, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-static:hover {
  border-color: var(--border-color);
  transform: none;
  box-shadow: none;
}

/* --- SECTIONS --- */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--accent-gold);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-body);
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 6.5rem 0 5.5rem;
  background: radial-gradient(circle at 50% 20%, rgba(201, 168, 118, 0.08) 0%, rgba(11, 18, 28, 0) 70%),
              linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-gold-light);
  border: 1px solid rgba(201, 168, 118, 0.25);
  color: var(--accent-gold);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, #FFFFFF 0%, #D4DCDF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead {
  font-size: 1.25rem;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.hero-club-tag {
  font-size: 0.875rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: inline-block;
}

/* --- VALUE PILLARS GRID --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--accent-gold-light);
  border: 1px solid rgba(201, 168, 118, 0.3);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.pillar-desc {
  color: var(--text-body);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* --- DASHBOARD PREVIEW --- */
.dashboard-preview-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.metric-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.metric-label {
  font-size: 0.825rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.metric-value {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
}

.metric-value.gold {
  color: var(--accent-gold);
}

.metric-value.green {
  color: var(--success-teal);
}

/* Monthly Chart */
.chart-container {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  height: 200px;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.bar-val-label {
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.bar-fill {
  width: 70%;
  max-width: 48px;
  background: linear-gradient(180deg, var(--accent-gold) 0%, rgba(201, 168, 118, 0.4) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s ease-out;
}

.bar-fill.teal {
  background: linear-gradient(180deg, var(--success-teal) 0%, rgba(79, 168, 140, 0.4) 100%);
}

.bar-month {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.preview-caption {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

/* --- INVESTMENT CATEGORIES GRID --- */
.investments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.invest-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.invest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.invest-title {
  font-size: 1.3rem;
}

.invest-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.invest-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invest-type {
  font-size: 0.825rem;
  color: var(--text-dim);
}

.mandatory-note {
  background-color: rgba(201, 168, 118, 0.06);
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  text-align: center;
  color: var(--text-heading);
  font-size: 0.925rem;
  line-height: 1.6;
  white-space: normal;
  word-wrap: break-word;
}

/* --- THIS IS / THIS IS NOT (ABOUT US) --- */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.comp-box {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.comp-box.is {
  border-top: 4px solid var(--accent-gold);
}

.comp-box.is-not {
  border-top: 4px solid #D9534F;
}

.comp-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comp-list {
  list-style: none;
}

.comp-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-heading);
}

.comp-box.is .comp-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

.comp-box.is-not .comp-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #D9534F;
  font-weight: bold;
}

.comp-subtext {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* --- STEPS TIMELINE (HOW IT WORKS) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.step-card {
  position: relative;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* --- MEMBERSHIP FEATURES LIST --- */
.feature-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}

.check-icon {
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* --- CONTACT FORM & DETAILS --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
  display: none;
}

.alert-success {
  background-color: var(--success-teal-light);
  border: 1px solid rgba(79, 168, 140, 0.4);
  color: var(--success-teal);
}

.alert-danger {
  background-color: rgba(217, 83, 79, 0.15);
  border: 1px solid rgba(217, 83, 79, 0.4);
  color: #E66A67;
}

/* --- COMBINED AUTH MODAL (JOIN / SIGN IN) --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 18, 28, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--text-heading);
  background-color: var(--border-subtle);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.75rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.85rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.auth-tab-btn:hover {
  color: var(--text-heading);
}

.auth-tab-btn.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #070C13;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 850px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 550px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

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

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

.footer-links a {
  color: var(--text-body);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE DESIGN SYSTEM
   ========================================== */

/* --- TABLET (max-width: 992px) --- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .investments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .preview-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* --- MOBILE & SMALL TABLET (max-width: 850px) --- */
@media (max-width: 850px) {
  .site-header {
    padding: 0.65rem 0;
  }

  .header-inner {
    position: relative;
  }

  .brand-logo img {
    height: 48px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(201, 168, 118, 0.1);
    border: 1px solid rgba(201, 168, 118, 0.25);
    border-radius: var(--radius-md);
    color: var(--accent-gold);
    font-size: 1.25rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.65rem);
    left: -1rem;
    right: -1rem;
    background-color: rgba(11, 18, 28, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.5rem;
    z-index: 1000;
  }

  .main-nav.open {
    display: flex;
    animation: fadeInDown 0.25s ease-out forwards;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

  .nav-link:hover, .nav-link.active {
    background-color: rgba(201, 168, 118, 0.1);
    color: var(--accent-gold);
  }

  .nav-link.active::after {
    display: none;
  }

  .header-cta {
    gap: 0.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card[style*="position: sticky"] {
    position: static !important;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* --- SMALL MOBILE (max-width: 600px) --- */
@media (max-width: 600px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-section {
    padding: 4.5rem 0 3.5rem;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-subhead {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }

  .pillars-grid, 
  .investments-grid,
  .steps-grid,
  .feature-checklist {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .preview-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .metric-value {
    font-size: 1.6rem;
  }

  .dashboard-preview-card,
  .card,
  .comp-box {
    padding: 1.25rem;
  }

  .chart-container {
    padding: 1rem;
  }

  .chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .chart-bars {
    height: 160px;
    gap: 0.5rem;
  }

  .bar-val-label {
    font-size: 0.65rem;
  }

  .bar-month {
    font-size: 0.7rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .header-cta .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .modal-backdrop {
    padding: 0.75rem;
  }

  .modal-card {
    padding: 1.5rem 1.25rem;
    max-height: 92vh;
    overflow-y: auto;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* Table overflow control */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
  }

  .table-responsive table {
    min-width: 520px;
  }

  .form-control {
    font-size: 16px; /* Prevents auto-zoom on iOS safari */
  }
}

/* --- EXTRA SMALL MOBILE (max-width: 400px) --- */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .brand-logo img {
    height: 42px;
  }

  .header-cta .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .auth-tab-btn {
    font-size: 0.9rem;
    padding: 0.65rem;
  }
}

/* Keyframe for mobile menu opening */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
