/* ─── Xplore Barbados Blog — Stylesheet ─────────────────────────────────── */

/* Variables */
:root {
  --blue:       #0b5fff;
  --blue-dark:  #0047d9;
  --teal:       #3bbaf6;
  --teal-light: #e6f6fe;
  --turquoise:  #22c7b8;
  --gold:       #ffbe55;
  --gold-dark:  #f0a800;
  --white:      #ffffff;
  --grey-50:    #f8f9fa;
  --grey-100:   #f0f2f4;
  --grey-200:   #e2e6ea;
  --grey-400:   #9aa5b1;
  --grey-700:   #495057;
  --grey-900:   #1a1e23;
  --text:       #2c3338;
  --text-light: #596571;
  --radius:     10px;
  --radius-sm:  6px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,.12);
  --max-w:      1200px;
  --narrow:     780px;
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--blue); }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 2px solid transparent; transition: all 0.2s ease;
  white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--grey-900); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--grey-900); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.site-header .container {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.site-brand { display: flex; flex-direction: row; align-items: center; gap: 10px; text-decoration: none; }
.site-brand .brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.brand-x    { color: var(--gold); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.brand-rest { color: var(--white); font-size: 1.1rem; font-weight: 700; line-height: 1; }
.brand-sub  { color: rgba(255,255,255,.65); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: rgba(255,255,255,.85); font-weight: 500; font-size: 0.9rem; transition: color .15s; }
.site-nav a:hover { color: var(--white); }
.site-nav .nav-cta {
  background: var(--gold); color: var(--blue-dark) !important;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.85rem;
}
.site-nav .nav-cta:hover { background: var(--gold-dark); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--teal) 100%);
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,186,246,.15) 0%, transparent 70%);
}
.hero-content { max-width: 660px; position: relative; z-index: 1; }
.hero-eyebrow {
  color: var(--gold); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-highlight { color: var(--gold); }
.hero-desc { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 32px; max-width: 540px; }

/* ─── Article Grid ───────────────────────────────────────────────────────── */
.articles-section { padding: 64px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-header h2 { font-size: 1.6rem; color: var(--grey-900); }
.view-all { color: var(--teal); font-weight: 600; font-size: 0.9rem; }

.article-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.article-grid--wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.article-grid--featured { grid-template-columns: repeat(3, 1fr); }
.article-grid--featured .article-card--featured { grid-column: span 3; }

.article-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-tag {
  display: inline-block; background: var(--teal-light); color: var(--blue);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 3px 10px; border-radius: 20px;
  align-self: flex-start;
}
.card-body h2, .card-body h3 { font-size: 1.15rem; color: var(--grey-900); line-height: 1.35; }
.article-card--featured .card-body h2 { font-size: 1.65rem; }
.card-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--grey-100); }
.card-footer time { color: var(--grey-400); font-size: 0.8rem; }
.card-read { color: var(--teal); font-weight: 600; font-size: 0.85rem; }

.load-more { text-align: center; margin-top: 40px; }

/* ─── App Banner ─────────────────────────────────────────────────────────── */
.app-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--turquoise) 100%);
  padding: 64px 0;
}
.banner-inner { max-width: 680px; }
.banner-text h2 { color: var(--white); font-size: 2rem; margin-bottom: 16px; }
.banner-text p  { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 24px; }
.banner-features {
  list-style: none; display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px; margin-bottom: 32px;
}
.banner-features li { color: rgba(255,255,255,.9); font-weight: 600; font-size: 0.95rem; }

/* ─── Topics ─────────────────────────────────────────────────────────────── */
.topics-section { padding: 64px 0; background: var(--grey-50); }
.topics-section h2 { font-size: 1.6rem; color: var(--grey-900); margin-bottom: 28px; }
.topic-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.topic-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius); padding: 24px 20px;
  text-align: center; transition: all .2s;
  text-decoration: none;
}
.topic-card:hover { background: var(--blue); border-color: var(--blue); }
.topic-card:hover .topic-label { color: var(--white); }
.topic-label { color: var(--blue); font-weight: 700; font-size: 0.95rem; }

/* ─── Article Page ───────────────────────────────────────────────────────── */
.article-page { padding: 40px 0 64px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--grey-400); margin-bottom: 32px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--teal); }

.article-header { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 2px solid var(--grey-100); }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  display: inline-block; background: var(--teal-light); color: var(--blue);
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 4px 12px; border-radius: 20px;
  text-decoration: none; transition: background .15s;
}
.tag:hover { background: var(--teal); color: var(--white); }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--grey-900); line-height: 1.2; margin-bottom: 16px; }
.article-intro { font-size: 1.15rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 12px; color: var(--grey-400); font-size: 0.85rem; }

/* Article Body Typography */
.article-body { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.article-body h2 { font-family: var(--font); font-size: 1.5rem; color: var(--blue); margin: 2.2em 0 0.8em; padding-bottom: 8px; border-bottom: 2px solid var(--teal-light); }
.article-body h3 { font-family: var(--font); font-size: 1.2rem; color: var(--blue); margin: 1.8em 0 0.6em; }
.article-body p   { margin-bottom: 1.4em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em 1.5em; }
.article-body li  { margin-bottom: 0.5em; }
.article-body strong { color: var(--blue-dark); font-weight: 700; }
.article-body a   { color: var(--teal); border-bottom: 1px solid currentColor; }
.article-body a:hover { color: var(--blue); }
.article-body blockquote {
  margin: 1.8em 0; padding: 16px 24px;
  border-left: 4px solid var(--gold);
  background: var(--grey-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text-light);
}

/* Article CTA */
.article-cta { margin: 48px 0; background: linear-gradient(135deg, var(--blue) 0%, var(--turquoise) 100%); border-radius: var(--radius); padding: 36px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-text h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.cta-text p  { color: rgba(255,255,255,.85); font-size: 0.95rem; }

/* Article Tags */
.article-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--grey-200); }
.article-tags strong { color: var(--text); font-size: 0.9rem; }

/* Related Articles */
.related-articles { background: var(--grey-50); padding: 56px 0; margin-top: 48px; }
.related-articles h2 { font-size: 1.5rem; color: var(--grey-900); margin-bottom: 28px; }

/* ─── List/Category Page ─────────────────────────────────────────────────── */
.list-page { padding: 56px 0; }
.list-header { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 2px solid var(--grey-100); }
.list-header h1 { font-size: 2rem; color: var(--grey-900); text-transform: capitalize; }
.list-count { color: var(--grey-400); font-size: 0.9rem; margin-top: 8px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0 0; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text); }
.pagination a:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.pagination .active span { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.75); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand .site-brand { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; margin-bottom: 20px; }
.footer-links h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: 0.9rem; transition: color .15s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p, .footer-bottom a { font-size: 0.82rem; color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--teal); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-grid--featured { grid-template-columns: 1fr 1fr; }
  .article-grid--featured .article-card--featured { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 700px) {
  .article-grid, .article-grid--wide, .article-grid--featured { grid-template-columns: 1fr; }
  .article-grid--featured .article-card--featured { grid-column: span 1; }
  .site-header .container { flex-direction: column; gap: 14px; align-items: flex-start; }
  .site-nav { flex-wrap: wrap; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 48px 0; }
  .banner-features { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .article-body { font-size: 1rem; }
  .article-header h1 { font-size: 1.6rem; }
}
