/* ============================================
   Timeshare Consulting & Services Inc.
   Design System — styles.css
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Colors */
  --navy: #1B2A4A;
  --navy-dark: #0F1D35;
  --navy-light: #2A3F66;
  --gold: #C5A55A;
  --gold-light: #D4BA7A;
  --gold-dark: #A88B3D;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --red-600: #DC2626;
  --red-50: #FEF2F2;
  --green-600: #16A34A;
  --green-50: #F0FDF4;

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

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 8px 24px rgba(27, 42, 74, 0.12);
  --shadow-xl: 0 16px 48px rgba(27, 42, 74, 0.16);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-700);
  background: var(--white);
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-6); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: var(--space-5); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: var(--space-4); }
h4 { font-size: 1.125rem; margin-bottom: var(--space-3); font-family: var(--font-body); font-weight: 600; }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-slate { color: var(--slate-500); }
.text-center { text-align: center; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.section-alt {
  background: var(--off-white);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-8);
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  height: var(--nav-height);
  transition: box-shadow var(--transition-base);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.nav-logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  color: var(--slate-600);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--navy);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-16);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(197, 165, 90, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.15;
}

.hero .subtitle {
  font-size: 1.125rem;
  color: var(--slate-300);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-10));
    padding-bottom: var(--space-10);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.5;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}

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

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--slate-100);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.0625rem;
}

.btn-full {
  width: 100%;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--slate-200);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--navy);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
  box-shadow: var(--shadow-lg);
  margin-top: calc(-1 * var(--space-10));
  position: relative;
  z-index: 10;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  font-weight: 500;
  margin-top: var(--space-1);
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-5);
  }
  .stat-item:last-child {
    grid-column: 1 / -1;
  }
}

/* Clickable stat link (BBB A+) */
.stat-item--link {
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 0.2s;
  padding: var(--space-2);
  margin: calc(-1 * var(--space-2));
}
.stat-item--link:hover {
  background: var(--slate-50);
  transform: translateY(-2px);
}
.stat-item--link .stat-number {
  color: #00529B;
}
.stat-item--link .stat-label {
  color: #00529B;
  font-weight: 600;
}

/* BBB Trust Badge */
.bbb-trust-bar {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}
.bbb-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  background: linear-gradient(135deg, #002244 0%, #00529B 100%);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-md);
}
.bbb-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}
.bbb-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.bbb-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bbb-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.bbb-rating {
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFD700;
  letter-spacing: 0.01em;
}
@media (max-width: 480px) {
  .bbb-badge {
    padding: var(--space-3) var(--space-5);
    gap: var(--space-3);
  }
  .bbb-icon {
    width: 40px;
    height: 40px;
  }
  .bbb-label { font-size: 0.75rem; }
  .bbb-rating { font-size: 1rem; }
}

/* --- Lead Form --- */
.lead-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
}

.lead-form-card h3 {
  text-align: center;
  margin-bottom: var(--space-2);
}

.lead-form-card .form-subtitle {
  text-align: center;
  color: var(--slate-500);
  font-size: 0.9375rem;
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: var(--space-1);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--slate-700);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.form-group input::placeholder {
  color: var(--slate-400);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.form-consent label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.5;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8);
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--green-600);
  margin: 0 auto var(--space-4);
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--slate-200);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--gold);
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  line-height: 1;
  opacity: 0.3;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-600);
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9375rem;
}

.testimonial-location {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: var(--space-3);
  letter-spacing: 2px;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--slate-200);
  padding: var(--space-5) 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0;
  line-height: 1.4;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform var(--transition-base);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: var(--space-4);
}

.faq-answer p {
  color: var(--slate-600);
  line-height: 1.7;
}

/* --- Warning Callout --- */
.callout {
  background: var(--red-50);
  border-left: 4px solid var(--red-600);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}

.callout-gold {
  background: rgba(197, 165, 90, 0.08);
  border-left-color: var(--gold);
}

.callout h4 {
  color: var(--navy);
  margin-bottom: var(--space-2);
}

/* --- Process Steps --- */
.process-step {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  padding: var(--space-6) 0;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: var(--space-2);
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: var(--slate-400);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer h4 {
  color: var(--white);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-about p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

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

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 0.9375rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

/* --- Sticky Mobile CTA --- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--gold);
  padding: var(--space-3) var(--space-6);
  text-align: center;
}

.mobile-cta a {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

@media (max-width: 768px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 52px; }
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--space-3) 0;
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.breadcrumbs a {
  color: var(--slate-500);
}

.breadcrumbs span {
  margin: 0 var(--space-2);
}

/* --- Page Header --- */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-12);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.page-header p {
  color: var(--slate-300);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.section-header .eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.section-header p {
  color: var(--slate-500);
  font-size: 1.0625rem;
}
