/* ============================================
   TIMESHARE CONSULTING & SERVICES — Design System
   Color: Navy + Gold + White
   Typography: Inter (Google Fonts)
   ============================================ */

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

:root {
  /* Colors */
  --navy-900: #0a1628;
  --navy-800: #0f1f3a;
  --navy-700: #152a4a;
  --navy-600: #1c365c;
  --navy-500: #24426f;
  --gold-500: #c9a84c;
  --gold-400: #d4b85f;
  --gold-300: #dfc878;
  --gold-200: #ebd899;
  --gold-100: #f5ebca;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #eef0f4;
  --gray-200: #d8dce6;
  --gray-300: #b0b8c9;
  --gray-400: #8892a6;
  --gray-500: #5f6b80;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --red-500: #e53e3e;
  --green-500: #38a169;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sizing */
  --max-width: 1200px;
  --max-width-narrow: 900px;
  --header-height: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.12);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.15);
  --shadow-lg: 0 8px 30px rgba(10, 22, 40, 0.2);
  --shadow-xl: 0 16px 50px rgba(10, 22, 40, 0.25);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.3);

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

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-main);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-500); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-400); }

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--max-width-narrow); }

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--gray-600); }
.lead { font-size: 1.15rem; color: var(--gray-500); line-height: 1.8; }

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

/* --- Eyebrow / Label --- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.2;
}

.btn--primary {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}
.btn--primary:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--secondary:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold-500);
  border-color: var(--gold-500);
}
.btn--outline-gold:hover {
  background: var(--gold-500);
  color: var(--navy-900);
}

.btn--dark {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}
.btn--dark:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 36px; font-size: 1.1rem; }
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: background var(--transition-base);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo img {
  height: 48px;
  width: auto;
}

.header__logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.header__logo-text span {
  color: var(--gold-500);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

.header__nav a:hover {
  color: var(--white);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile menu */
.header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(175deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--navy-600) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--gold-500);
}

.hero .lead {
  color: var(--gray-300);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero .btn-group {
  margin-bottom: 40px;
}

/* Trust Bar */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.trust-bar__item svg {
  width: 18px;
  height: 18px;
  color: var(--gold-500);
  flex-shrink: 0;
}

.trust-bar__divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.15);
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--navy-900);
}

.section--light {
  background: var(--gray-50);
}

.section--navy {
  background: linear-gradient(175deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section__header h2 {
  margin-bottom: 16px;
}

.section__header p {
  color: var(--gray-500);
}

/* Dark section text overrides */
.section--dark .section__header h2,
.section--navy .section__header h2 {
  color: var(--white);
}

.section--dark .section__header p,
.section--navy .section__header p {
  color: var(--gray-400);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
}

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

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-200));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--gold-500);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* Dark card variant */
.card--dark {
  background: var(--navy-800);
  border-color: rgba(201, 168, 76, 0.12);
}

.card--dark h3 { color: var(--white); }
.card--dark p { color: var(--gray-400); }

/* --- Grid --- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Process Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  text-align: center;
  padding: 32px 24px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--white);
}

.step p {
  font-size: 0.95rem;
  color: var(--gray-400);
}

/* Connector line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: rgba(201, 168, 76, 0.3);
}

/* --- Testimonials --- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-100);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  color: var(--gold-200);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 20px;
  padding-top: 24px;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gold-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold-500);
  font-size: 1.1rem;
}

.testimonial__name {
  font-weight: 600;
  color: var(--navy-800);
  font-size: 0.95rem;
}

.testimonial__detail {
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* Stars */
.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.stars svg {
  width: 18px;
  height: 18px;
  color: var(--gold-500);
  fill: var(--gold-500);
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-800);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--gold-500);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--gold-500);
}

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

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

.faq-item.active .faq-item__answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-item__answer p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--navy-800);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--gray-400);
  max-width: 500px;
  margin: 0 auto 32px;
}

/* --- Footer --- */
.footer {
  background: var(--navy-900);
  padding: 64px 0 24px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 360px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-item a {
  color: var(--gray-400);
}

.footer__contact-item a:hover {
  color: var(--gold-500);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 0.85rem;
  color: var(--gray-500);
}

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

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--navy-800);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero Short (Subpages) --- */
.hero--short {
  padding: 140px 0 50px;
  min-height: auto;
}

/* --- Active Nav State --- */
.header__nav a.active {
  color: var(--gold-500);
  position: relative;
}
.header__nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-500);
  border-radius: 1px;
}

/* --- Service Detail (Services Page) --- */
.service-detail {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  border: 1px solid var(--gray-100);
}
.service-detail__icon {
  width: 64px;
  height: 64px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-detail h2 {
  margin-bottom: 16px;
  color: var(--navy-900);
}
.service-detail h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--navy-800);
  font-size: 1.1rem;
}
.service-detail p {
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 12px;
}
.service-detail ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}
.service-detail ul li {
  position: relative;
  padding-left: 28px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 8px;
}
.service-detail ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-weight: 700;
}

/* --- Stats Grid (About Page) --- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stats__item {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.stats__number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-500);
  margin-bottom: 4px;
  line-height: 1;
}
.stats__label {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Blog Cards --- */
.blog-card {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  border: 1px solid var(--gray-100);
  transition: var(--transition-base);
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.blog-card__tag {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-500);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.blog-card__title {
  font-size: 1.35rem;
  color: var(--navy-900);
  margin-bottom: 12px;
  line-height: 1.4;
}
.blog-card__excerpt {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
}
.blog-card__meta {
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* --- FAQ Category Headers (Full FAQ Page) --- */
.faq-category {
  font-size: 1.4rem;
  color: var(--navy-800);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-500);
}
.faq-category:first-of-type {
  margin-top: 0;
}

/* --- Legal Content (Privacy / Terms) --- */
.legal-content h2 {
  font-size: 1.3rem;
  color: var(--navy-800);
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-content ul {
  list-style-type: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content ul li {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--gold-500);
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__hamburger { display: block; }

  /* Mobile nav */
  .header__nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--navy-900);
    padding: 24px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  }

  .hero { padding: 130px 0 60px; }
  .section { padding: 56px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cta-banner { padding: 40px 24px; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .trust-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .trust-bar__divider { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service-detail { padding: 24px; }
  .hero--short { padding: 120px 0 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
}
