/* ============================================
   BWS Design Bible — VacationClubPromo
   Tokens + Shortcode Components + Overrides
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Brand Colors — tropical/trust blue palette */
  --color-primary: #1a5276;
  --color-accent: #e67e22;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-bg-dark: #111111;
  --color-bg-accent: var(--color-primary);
  --color-text: #222222;
  --color-text-light: #f5f5f5;
  --color-text-muted: #777777;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Layout */
  --max-width: 1200px;

  /* System Font Stack */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* --- Global Overrides --- */
body {
  font-family: var(--font-stack) !important;
  color: var(--color-text);
}

/* Kill Ananke's Google Fonts reference if any */
@font-face { font-display: swap; }

/* BWS centered body text constraint */
.content-text {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* --- HERO SECTION --- */
.hero-section {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: var(--space-xl) 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

.hero-section p {
  font-size: 1.25rem;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  color: rgba(255,255,255,0.85);
}

.hero-section .btn {
  font-size: 1.125rem;
  padding: var(--space-sm) var(--space-lg);
}

@media (max-width: 767px) {
  .hero-section { min-height: 50vh; padding: var(--space-lg) 0; }
  .hero-section h1 { font-size: 2rem; }
  .hero-section p { font-size: 1.05rem; }
}

/* --- HOW IT WORKS SECTION --- */
.how-it-works {
  background: var(--color-bg);
  padding: var(--space-xl) 0;
  text-align: center;
}

.how-it-works h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.step-item p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .steps-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* --- STAT BAR --- */
.stat-bar {
  background: var(--color-bg-dark);
  padding: var(--space-xl) 0;
  text-align: center;
}

.stat-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stat-label {
  display: block;
  font-size: 1rem;
  color: var(--color-text-light);
  margin-top: var(--space-xs);
}

@media (max-width: 767px) {
  .stat-bar-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .stat-number { font-size: 2.5rem; }
}

/* --- ACCENT BAND --- */
.accent-band {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--space-xl) 0;
  text-align: center;
}

.accent-band .container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.accent-band p {
  font-size: 1.4rem;
  font-weight: 600;
  max-width: 800px;
  margin-inline: auto;
  line-height: 1.6;
}

/* --- PULL QUOTE --- */
.pull-quote {
  max-width: 700px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-top: 3px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
}

.pull-quote p {
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text);
}

.pull-quote cite {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  font-style: normal;
  color: var(--color-text-muted);
}

/* --- CTA BAND --- */
.cta-band {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-band .container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.cta-band h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

.cta-band p {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-inline: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  font-family: var(--font-stack);
  font-size: 1rem;
  cursor: pointer;
}

.btn:hover { opacity: 0.9; }

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

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

/* --- DARK SECTION --- */
.dark-section {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: var(--space-xl) 0;
}

.dark-section a { color: var(--color-accent); }
.dark-section h2, .dark-section h3 { color: var(--color-text-light); }

/* --- DIVIDER --- */
.section-divider {
  text-align: center;
  margin: var(--space-lg) auto;
  max-width: 200px;
}

.divider-line {
  border-bottom: 1px solid var(--color-text-muted);
  opacity: 0.3;
}

.divider-diamond {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-accent);
  font-size: 0.75rem;
}

.divider-diamond::before,
.divider-diamond::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-text-muted);
  opacity: 0.3;
}

/* --- RESORT CARDS GRID --- */
.resort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--space-md);
}

.resort-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s;
  text-align: center;
}

.resort-card:hover { transform: translateY(-4px); }

.resort-card-body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.resort-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.resort-location {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.resort-type {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.resort-price {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.resort-price strong {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.resort-nights {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.resort-kids {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.resort-highlight {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.resort-card .btn {
  width: 80%;
  text-align: center;
}

/* --- FAQ ACCORDION --- */
.faq-section {
  background: var(--color-bg);
  padding: var(--space-xl) 0;
}

.faq-section h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.faq-item {
  max-width: 720px;
  margin: 0 auto var(--space-sm);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  background: var(--color-bg-alt);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

details[open] .faq-question::after {
  content: '−';
}

.faq-question::-webkit-details-marker { display: none; }

.faq-answer {
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* --- FEATURED RESORTS SECTION --- */
.featured-resorts {
  background: var(--color-bg-alt);
  padding: var(--space-xl) 0;
  text-align: center;
}

.featured-resorts h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

/* --- CATCH SECTION --- */
.catch-section {
  background: var(--color-bg);
  padding: var(--space-xl) 0;
}

.catch-section h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.catch-section ul {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--space-md);
  list-style: none;
}

.catch-section li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
}

.catch-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* --- BWS SLIM NAV BAR --- */
.bws-nav {
  background: #0a0a0a;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bws-nav-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0.75rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bws-nav-brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bws-nav-brand:hover { color: var(--color-accent); }

.bws-nav-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.bws-nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.bws-nav-links a:hover { color: var(--color-accent); }

@media (max-width: 767px) {
  .bws-nav-inner { flex-direction: column; gap: 0.5rem; }
  .bws-nav-links { gap: var(--space-sm); flex-wrap: wrap; justify-content: center; }
  .bws-nav-links a { font-size: 0.85rem; }
}

/* --- 3-COLUMN FOOTER --- */
.bws-footer-main {
  background: #0a0a0a;
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
  margin-bottom: var(--space-xl);
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-xs);
}

.footer-contact a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-contact a:hover { text-decoration: underline; }

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: background 0.2s;
}

.social-icon:hover { background: var(--color-accent); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-xs);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

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

.footer-disclosure {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(255,255,255,0.4);
  margin-top: var(--space-sm);
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); text-align: center; }
  .footer-social { justify-content: center; }
}

/* --- FLOATING CONTACT BUBBLES --- */
.floating-bubbles {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.bubble:hover { transform: scale(1.1); }
.bubble-phone { background: #25D366; color: white; }
.bubble-email { background: var(--color-primary); color: white; }

/* --- RESORT BRAND SECTION HEADERS --- */
.resort-brand-section {
  text-align: center;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.resort-brand-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: var(--space-xs);
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

.resort-brand-section p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* --- CONTENT PAGE STYLING (Legal/Interior pages) --- */
.content-page {
  background: var(--color-bg);
  padding: var(--space-xl) 0;
}

.content-page .container {
  max-width: 720px;
}

.content-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
  text-align: center;
}

.content-page h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.content-page p, .content-page li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* --- HOMEPAGE LAYOUT OVERRIDE --- */
/* Override Ananke's constrained wrapper on homepage */
.home-page-content .article-content {
  max-width: 100%;
  padding: 0;
}

.home-page-content section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* --- RESORT DETAIL PAGE OVERRIDES --- */
/* Tighter tables */
.resort-page table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}

.resort-page th,
.resort-page td {
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.resort-page th {
  background: var(--color-bg-alt);
  font-weight: 600;
}

/* --- RESPONSIVE --- */
@media (max-width: 767px) {
  .hero-section { padding: var(--space-lg) var(--space-sm); }
  .steps-grid { grid-template-columns: 1fr; }
  .resort-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn { width: 80%; text-align: center; }

  .accent-band p { font-size: 1.15rem; }
  .pull-quote p { font-size: 1.15rem; }
}

/* --- TYPOGRAPHY BASELINE --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-stack);
  line-height: 1.2;
}

p {
  line-height: 1.6;
  font-family: var(--font-stack);
}
