/*
Theme Name:   Astra CIB
Template:     astra
Description:  Canadians in Belize child theme
Version:      1.0.0
*/

:root {
  --navy:      #0d1b2a;
  --navy-mid:  #1a2f45;
  --jade:      #1a6b5c;
  --jade-lt:   #2a9070;
  --maple:     #c0392b;
  --cream:     #f5f0e8;
  --text:      #1a1a1a;
  --muted:     #6b7280;
  --white:     #ffffff;
  --border:    #e5e7eb;
}

/* ── Hero ── */
.cib-hero {
  background: linear-gradient(150deg, #0d1b2a 0%, #1a2f45 50%, #0f2d1e 100%);
  padding: 80px 20px 72px;
  text-align: center;
  color: var(--white);
}
.cib-hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cib-hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.cib-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--jade);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: opacity .15s;
}
.btn-hero-primary:hover { opacity: .88; color: var(--white); }
.btn-hero-secondary {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.3);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-hero-secondary:hover { border-color: rgba(255,255,255,.6); color: var(--white); }

/* ── Sections ── */
.cib-section { padding: 64px 20px; max-width: 1080px; margin: 0 auto; }
.cib-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 8px;
}
.cib-section-heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.25;
}
.cib-section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* ── Guide Cards ── */
.cib-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.cib-guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .15s, transform .15s;
  display: block;
}
.cib-guide-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
  color: var(--text);
}
.cib-guide-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(26,107,92,.1);
  color: var(--jade);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 12px;
}
.cib-guide-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.cib-guide-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cib-guide-arrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--jade);
}

/* ── Community banner ── */
.cib-community {
  background: linear-gradient(135deg, #0d1b2a 0%, #0f2d1e 100%);
  padding: 64px 20px;
  text-align: center;
  color: var(--white);
}
.cib-community h2 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}
.cib-community p {
  font-size: 16px;
  color: rgba(255,255,255,.68);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.cib-coming-soon {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

/* ── Newsletter ── */
.cib-newsletter {
  background: var(--cream);
  padding: 64px 20px;
  text-align: center;
}
.cib-newsletter h2 { font-size: clamp(20px, 2.5vw, 30px); font-weight: 800; margin-bottom: 10px; color: var(--text); }
.cib-newsletter p  { font-size: 15px; color: var(--muted); max-width: 480px; margin: 0 auto 28px; line-height: 1.6; }
.cib-email-row { display: flex; gap: 10px; justify-content: center; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.cib-email-input {
  flex: 1; min-width: 220px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}
.cib-email-input:focus { border-color: var(--jade); }
.btn-subscribe {
  background: var(--jade);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-subscribe:hover { opacity: .88; }
.cib-trust-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ── Divider ── */
.cib-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* Full width override for homepage */
body.home .site-content, body.home .content-area { max-width: 100% !important; padding: 0 !important; }
body.home .ast-container { max-width: 100% !important; padding: 0 !important; }
body.home article { max-width: 100%; }

/* ── CIB v2 Design Tokens (Playfair + Burgundy) ── */
:root {
  --cib-bg:      #fbf9f8;
  --cib-ink:     #1a1a1a;
  --cib-muted:   #6b7280;
  --cib-accent:  #9b2335;
  --cib-border:  #e5e7eb;
  --cib-serif:   'Playfair Display', Georgia, serif;
  --cib-sans:    'DM Sans', -apple-system, sans-serif;
}

body { font-family: var(--cib-sans); background: var(--cib-bg); }

/* ── Article page typography ── */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--cib-serif);
  color: var(--cib-ink);
  line-height: 1.25;
}
.entry-content h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 24px; }
.entry-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin: 40px 0 14px;
  padding-top: 32px;
  border-top: 1px solid var(--cib-border);
}
.entry-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.entry-content h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.entry-content h4 { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; }
.entry-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cib-ink);
  margin-bottom: 20px;
}
.entry-content ul, .entry-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.entry-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cib-ink);
  margin-bottom: 8px;
}
.entry-content strong { font-weight: 700; color: var(--cib-ink); }
.entry-content a { color: var(--cib-accent); text-decoration: underline; }
.entry-content hr {
  border: none;
  border-top: 1px solid var(--cib-border);
  margin: 32px 0;
}

/* ── Page title (Astra's .entry-title) ── */
.entry-title {
  font-family: var(--cib-serif) !important;
  color: var(--cib-ink) !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  line-height: 1.2 !important;
}

/* ── Astra content width for article pages ── */
.ast-separate-container .entry-content {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}
