/*
Theme Name: Church Bento Elementor
Theme URI: https://yourchurch.com
Author: Your Church
Author URI: https://yourchurch.com
Description: Ultra-lightweight Elementor starter theme for modern church websites. Features a Bento Box grid system, optimized for Core Web Vitals, LiteSpeed Cache, and Cloudflare CDN. No jQuery. CSS under 40kb. Mobile-first.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: church-bento
Tags: elementor, church, bento, grid, fast, lightweight, custom-logo, custom-menu, featured-images, threaded-comments, accessibility-ready, mobile-first
*/

/* =============================================================
   DESIGN TOKENS
   ============================================================= */
:root {
  /* Brand */
  --cb-blue:       #0f2560;
  --cb-blue-dark:  #091840;
  --cb-blue-light: #1a3a8f;
  --cb-gold:       #c9a227;
  --cb-gold-dark:  #a07e10;
  --cb-gold-light: #e8c04a;

  /* Neutrals */
  --cb-white:      #ffffff;
  --cb-gray-50:    #f5f6fa;
  --cb-gray-100:   #eef0f8;
  --cb-gray-200:   #e2e5f0;
  --cb-gray-600:   #5a6478;
  --cb-gray-800:   #1a1a2e;
  --cb-gray-900:   #0d0f1a;

  /* Semantic */
  --cb-bg:         var(--cb-white);
  --cb-text:       var(--cb-gray-800);
  --cb-border:     var(--cb-gray-200);

  /* Typography — system fonts = zero render cost */
  --cb-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cb-font-serif: ui-serif, Georgia, Cambria, serif;

  --cb-text-xs:   0.75rem;    /* 12px */
  --cb-text-sm:   0.875rem;   /* 14px */
  --cb-text-base: 1rem;       /* 16px */
  --cb-text-lg:   1.125rem;   /* 18px */
  --cb-text-xl:   1.25rem;    /* 20px */
  --cb-text-2xl:  1.5rem;     /* 24px */
  --cb-text-3xl:  1.875rem;   /* 30px */
  --cb-text-4xl:  2.25rem;    /* 36px */
  --cb-text-5xl:  3rem;       /* 48px */

  /* Spacing */
  --cb-s1: 0.25rem;  --cb-s2: 0.5rem;   --cb-s3: 0.75rem;
  --cb-s4: 1rem;     --cb-s5: 1.25rem;  --cb-s6: 1.5rem;
  --cb-s8: 2rem;     --cb-s10: 2.5rem;  --cb-s12: 3rem;
  --cb-s16: 4rem;    --cb-s20: 5rem;    --cb-s24: 6rem;

  /* Layout */
  --cb-max-w: 1280px;
  --cb-header-h: 72px;

  /* Bento */
  --cb-card-radius: 1.25rem;
  --cb-card-radius-sm: 0.875rem;
  --cb-card-shadow: 0 4px 24px rgba(15,37,96,0.08);
  --cb-card-shadow-hover: 0 12px 40px rgba(15,37,96,0.16);
  --cb-card-gap: 1rem;
  --cb-card-pad: 1.75rem;

  /* Transitions */
  --cb-ease: 0.2s ease;
  --cb-ease-md: 0.3s ease;
}

/* =============================================================
   RESET
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--cb-font);
  font-size: var(--cb-text-base);
  line-height: 1.6;
  color: var(--cb-text);
  background: var(--cb-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.admin-bar { padding-top: 32px; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cb-blue); text-decoration: none; transition: color var(--cb-ease); }
a:hover { color: var(--cb-gold-dark); }
a:focus-visible { outline: 2px solid var(--cb-gold); outline-offset: 3px; border-radius: 3px; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--cb-text); }
p { margin-bottom: var(--cb-s4); }
p:last-child { margin-bottom: 0; }

/* =============================================================
   ACCESSIBILITY
   ============================================================= */
.skip-link {
  clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; z-index: 9999;
}
.skip-link:focus {
  background: var(--cb-bg); border-radius: 4px;
  box-shadow: 0 0 0 3px var(--cb-gold); clip: auto; clip-path: none;
  color: var(--cb-text); display: block; font-size: var(--cb-text-sm);
  font-weight: 600; height: auto; left: var(--cb-s4);
  padding: var(--cb-s3) var(--cb-s6); top: var(--cb-s4); width: auto;
}
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px;
}
:focus-visible { outline: 2px solid var(--cb-gold); outline-offset: 2px; }

/* =============================================================
   LAYOUT
   ============================================================= */
.container {
  width: 100%; max-width: var(--cb-max-w);
  margin-inline: auto; padding-inline: var(--cb-s6);
}
.section { padding: var(--cb-s16) 0; }
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }
#primary { width: 100%; }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--cb-header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cb-border);
  box-shadow: 0 2px 16px rgba(15,37,96,0.05);
  transition: box-shadow var(--cb-ease-md);
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(15,37,96,0.1);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--cb-s6); height: 100%;
}

/* Branding */
.site-branding {
  display: flex; align-items: center;
  gap: var(--cb-s3); flex-shrink: 0;
  text-decoration: none;
}
.site-branding:hover { opacity: 0.9; }
.custom-logo { height: 44px; width: auto; }
.site-title {
  font-size: var(--cb-text-xl); font-weight: 900;
  color: var(--cb-blue); letter-spacing: -0.02em; line-height: 1;
}
.site-title::before { content: "✝ "; color: var(--cb-gold); font-size: 0.9em; }
.site-description { display: none; }

/* Navigation */
.main-navigation { flex: 1; display: flex; justify-content: center; }
.main-navigation ul { display: flex; align-items: center; gap: var(--cb-s1); }
.main-navigation ul li { position: relative; }
.main-navigation ul li a {
  display: block; padding: var(--cb-s2) var(--cb-s4);
  font-size: var(--cb-text-sm); font-weight: 500;
  color: var(--cb-text); border-radius: 8px;
  transition: background var(--cb-ease), color var(--cb-ease);
  white-space: nowrap;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
  background: var(--cb-gray-100); color: var(--cb-blue);
}
/* Dropdown */
.main-navigation ul ul {
  position: absolute; top: calc(100% + var(--cb-s2)); left: 0;
  min-width: 200px; background: var(--cb-white);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(15,37,96,0.14);
  border: 1px solid var(--cb-border); padding: var(--cb-s2);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--cb-ease-md); flex-direction: column;
  gap: 0; z-index: 100; display: flex;
}
.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.main-navigation ul ul li a {
  border-radius: 8px; padding: var(--cb-s2) var(--cb-s3);
  width: 100%;
}

/* Service Time Button */
.btn-service-time {
  display: inline-flex; align-items: center; gap: var(--cb-s2);
  padding: 0.5rem 1.125rem;
  background: var(--cb-blue); color: var(--cb-white) !important;
  font-size: var(--cb-text-sm); font-weight: 600;
  border-radius: 9999px; border: none; cursor: pointer;
  transition: background var(--cb-ease), transform var(--cb-ease), box-shadow var(--cb-ease);
  white-space: nowrap; text-decoration: none;
}
.btn-service-time svg { flex-shrink: 0; stroke: currentColor; fill: none; }
.btn-service-time:hover {
  background: var(--cb-blue-dark);
  color: var(--cb-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15,37,96,0.3);
}

/* Hamburger */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: var(--cb-s2); border-radius: 8px;
  transition: background var(--cb-ease);
}
.menu-toggle:hover { background: var(--cb-gray-100); }
.menu-toggle span {
  display: block; height: 2px; background: var(--cb-text);
  border-radius: 2px; width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--cb-blue-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--cb-s16) 0 var(--cb-s8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--cb-s12);
  padding-bottom: var(--cb-s10);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
/* Brand column */
.footer-brand .site-title {
  font-size: var(--cb-text-xl); font-weight: 900;
  color: var(--cb-white); margin-bottom: var(--cb-s4);
  display: block;
}
.footer-brand .site-title::before { color: var(--cb-gold); }
.footer-brand .tagline {
  font-size: var(--cb-text-sm); line-height: 1.8;
  color: rgba(255,255,255,0.6); margin-bottom: var(--cb-s5);
}
.footer-brand .footer-address {
  font-style: normal; font-size: var(--cb-text-sm);
  color: rgba(255,255,255,0.5); line-height: 1.8;
  margin-bottom: var(--cb-s5);
}
.social-links { display: flex; gap: var(--cb-s3); flex-wrap: wrap; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; background: rgba(255,255,255,0.08);
  border-radius: 50%; color: rgba(255,255,255,0.7);
  transition: background var(--cb-ease), color var(--cb-ease), transform var(--cb-ease);
}
.social-link svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.social-link:hover {
  background: var(--cb-gold); color: var(--cb-blue-dark);
  transform: translateY(-2px);
}
/* Footer nav columns */
.footer-col-title {
  font-size: var(--cb-text-xs); font-weight: 600;
  color: var(--cb-white); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: var(--cb-s5);
}
.footer-links { display: flex; flex-direction: column; gap: var(--cb-s3); }
.footer-links a {
  font-size: var(--cb-text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--cb-ease);
}
.footer-links a:hover { color: var(--cb-gold); }
/* Footer bottom */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--cb-s4); padding-top: var(--cb-s8); flex-wrap: wrap;
}
.footer-copyright { font-size: var(--cb-text-sm); color: rgba(255,255,255,0.35); }
.footer-legal-links { display: flex; gap: var(--cb-s6); }
.footer-legal-links a { font-size: var(--cb-text-sm); color: rgba(255,255,255,0.35); transition: color var(--cb-ease); }
.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }

/* =============================================================
   BENTO GRID SYSTEM
   ============================================================= */

/* Grid container */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: var(--cb-card-gap);
  width: 100%;
}

/* Base card */
.bento-card {
  position: relative;
  background: var(--cb-white);
  border-radius: var(--cb-card-radius);
  box-shadow: var(--cb-card-shadow);
  padding: var(--cb-card-pad);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--cb-border);
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cb-card-shadow-hover);
}
/* Decorative highlight blob */
.bento-card::after {
  content: ""; position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Card span sizes */
.bento-hero   { grid-column: span 8; grid-row: span 2; min-height: 380px; }
.bento-large  { grid-column: span 6; grid-row: span 2; }
.bento-tall   { grid-column: span 4; grid-row: span 3; }
.bento-medium { grid-column: span 4; grid-row: span 2; }
.bento-wide   { grid-column: span 8; grid-row: span 1; }
.bento-small  { grid-column: span 4; grid-row: span 1; }
.bento-thin   { grid-column: span 3; grid-row: span 1; }
.bento-full   { grid-column: span 12; grid-row: span 1; }

/* Colour variants */
.bento-card--primary {
  background: var(--cb-blue); color: var(--cb-white);
  border-color: transparent;
}
.bento-card--primary::after {
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
}
.bento-card--dark {
  background: var(--cb-blue-dark); color: var(--cb-white);
  border-color: transparent;
}
.bento-card--accent {
  background: var(--cb-gold); color: var(--cb-blue-dark);
  border-color: transparent;
}
.bento-card--soft { background: var(--cb-gray-50); }
.bento-card--muted { background: var(--cb-gray-100); }

/* Image background card */
.bento-card--image {
  background-size: cover; background-position: center;
  background-repeat: no-repeat; color: var(--cb-white); border: none;
}
.bento-card--image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(9,24,64,0.1) 0%, rgba(9,24,64,0.72) 100%);
  border-radius: inherit; z-index: 1;
}
.bento-card--image > * { position: relative; z-index: 2; }

/* Card content helpers */
.bento-card__tag {
  display: inline-flex; align-items: center; gap: var(--cb-s1);
  font-size: var(--cb-text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--cb-gold); margin-bottom: var(--cb-s3);
}
.bento-card--primary .bento-card__tag,
.bento-card--dark .bento-card__tag,
.bento-card--image .bento-card__tag { color: rgba(255,255,255,0.65); }
.bento-card--accent .bento-card__tag { color: var(--cb-blue-dark); opacity: 0.7; }

.bento-card__title {
  font-size: var(--cb-text-2xl); font-weight: 900;
  line-height: 1.15; margin-bottom: var(--cb-s3);
  letter-spacing: -0.02em; color: inherit;
}
.bento-hero .bento-card__title    { font-size: clamp(var(--cb-text-2xl), 3vw, var(--cb-text-4xl)); }
.bento-large .bento-card__title   { font-size: var(--cb-text-3xl); }
.bento-small .bento-card__title   { font-size: var(--cb-text-xl); }
.bento-thin .bento-card__title    { font-size: var(--cb-text-lg); }

.bento-card__subtitle {
  font-size: var(--cb-text-sm); line-height: 1.75;
  color: var(--cb-gray-600); flex: 1;
}
.bento-card--primary .bento-card__subtitle,
.bento-card--dark .bento-card__subtitle,
.bento-card--image .bento-card__subtitle { color: rgba(255,255,255,0.72); }
.bento-card--accent .bento-card__subtitle { color: var(--cb-blue-dark); opacity: 0.75; }

.bento-card__footer {
  margin-top: var(--cb-s4); display: flex;
  align-items: center; justify-content: space-between;
  gap: var(--cb-s3); flex-wrap: wrap;
}
.bento-card__icon {
  font-size: 2.5rem; margin-bottom: var(--cb-s3);
  display: block; line-height: 1;
}

/* Card link */
.bento-card__link {
  display: inline-flex; align-items: center; gap: var(--cb-s2);
  font-size: var(--cb-text-sm); font-weight: 600;
  color: var(--cb-blue);
  transition: gap var(--cb-ease), color var(--cb-ease);
}
.bento-card__link svg { transition: transform var(--cb-ease); }
.bento-card__link:hover { color: var(--cb-blue-light); gap: var(--cb-s3); }
.bento-card__link:hover svg { transform: translateX(3px); }
.bento-card--primary .bento-card__link,
.bento-card--dark .bento-card__link,
.bento-card--image .bento-card__link { color: rgba(255,255,255,0.9); }
.bento-card--accent .bento-card__link { color: var(--cb-blue-dark); }

/* Buttons inside bento cards */
.bento-btn {
  display: inline-flex; align-items: center; gap: var(--cb-s2);
  padding: 0.5rem 1.25rem; border-radius: 9999px;
  font-size: var(--cb-text-sm); font-weight: 600;
  cursor: pointer; transition: all var(--cb-ease);
  text-decoration: none; border: 2px solid transparent;
  white-space: nowrap;
}
.bento-btn--primary { background: var(--cb-blue); color: var(--cb-white); border-color: var(--cb-blue); }
.bento-btn--primary:hover { background: var(--cb-blue-dark); color: var(--cb-white); transform: translateY(-1px); }
.bento-btn--accent  { background: var(--cb-gold); color: var(--cb-blue-dark); border-color: var(--cb-gold); }
.bento-btn--accent:hover  { background: var(--cb-gold-dark); border-color: var(--cb-gold-dark); color: var(--cb-blue-dark); }
.bento-btn--white   { background: var(--cb-white); color: var(--cb-blue); border-color: var(--cb-white); }
.bento-btn--white:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.bento-btn--outline { background: transparent; color: var(--cb-blue); border-color: var(--cb-border); }
.bento-btn--outline:hover { background: var(--cb-gray-100); border-color: var(--cb-blue); }

/* Service time list (for service card) */
.service-times-list { display: flex; flex-direction: column; gap: var(--cb-s3); margin-top: var(--cb-s4); }
.service-time-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--cb-s3) var(--cb-s4);
  background: var(--cb-white); border-radius: var(--cb-card-radius-sm);
  border: 1px solid var(--cb-border);
}
.service-time-name { font-weight: 600; font-size: var(--cb-text-sm); }
.service-time-value { font-size: var(--cb-text-sm); color: var(--cb-gray-600); font-weight: 500; }

/* Event list */
.bento-event-list { display: flex; flex-direction: column; gap: var(--cb-s3); margin-top: var(--cb-s4); }
.bento-event-item {
  display: flex; gap: var(--cb-s3); padding: var(--cb-s3);
  background: var(--cb-white); border-radius: var(--cb-card-radius-sm);
  border: 1px solid var(--cb-border); align-items: center;
  transition: border-color var(--cb-ease), transform var(--cb-ease);
}
.bento-event-item:hover { border-color: var(--cb-blue); transform: translateX(2px); }
.bento-event-date {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 44px; height: 44px;
  background: var(--cb-blue); border-radius: 10px;
  color: var(--cb-white); flex-shrink: 0;
}
.bento-event-date .day { font-size: var(--cb-text-lg); font-weight: 900; line-height: 1; }
.bento-event-date .month { font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
.bento-event-info { flex: 1; min-width: 0; }
.bento-event-title { font-size: var(--cb-text-sm); font-weight: 600; color: var(--cb-text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bento-event-time  { font-size: var(--cb-text-xs); color: var(--cb-gray-600); }

/* Stats display */
.bento-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--cb-s3); margin-top: var(--cb-s4); }
.bento-stat { padding: var(--cb-s3); background: rgba(255,255,255,0.1); border-radius: var(--cb-card-radius-sm); text-align: center; }
.bento-stat__value { font-size: var(--cb-text-2xl); font-weight: 900; color: var(--cb-gold); line-height: 1; margin-bottom: var(--cb-s1); }
.bento-stat__label { font-size: var(--cb-text-xs); color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }

/* =============================================================
   PAGE & POST TEMPLATES
   ============================================================= */
.page-header {
  padding: var(--cb-s16) 0 var(--cb-s12);
  background: var(--cb-gray-50);
  border-bottom: 1px solid var(--cb-border);
  text-align: center;
}
.section-title {
  font-size: clamp(var(--cb-text-2xl), 3vw, var(--cb-text-4xl));
  font-weight: 900; letter-spacing: -0.03em;
  color: var(--cb-blue); margin-bottom: var(--cb-s3);
}
.section-subtitle {
  font-size: var(--cb-text-lg); color: var(--cb-gray-600);
  max-width: 600px; margin-inline: auto; line-height: 1.7;
}

/* Entry content */
.entry-content { padding: var(--cb-s12) 0; max-width: 720px; margin-inline: auto; }
.entry-content h2 { font-size: var(--cb-text-2xl); margin-top: var(--cb-s8); margin-bottom: var(--cb-s4); color: var(--cb-blue); }
.entry-content h3 { font-size: var(--cb-text-xl); margin-top: var(--cb-s6); margin-bottom: var(--cb-s3); color: var(--cb-blue); }
.entry-content p { margin-bottom: var(--cb-s5); }
.entry-content ul, .entry-content ol { margin: var(--cb-s5) 0; padding-left: var(--cb-s6); list-style: revert; }
.entry-content li { margin-bottom: var(--cb-s2); }
.entry-content blockquote { border-left: 4px solid var(--cb-gold); padding: var(--cb-s4) var(--cb-s6); background: var(--cb-gray-50); border-radius: 0 var(--cb-card-radius-sm) var(--cb-card-radius-sm) 0; margin: var(--cb-s6) 0; font-style: italic; color: var(--cb-gray-600); }
.entry-content a { color: var(--cb-blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--cb-card-radius); margin: var(--cb-s6) 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: var(--cb-s6) 0; font-size: var(--cb-text-sm); }
.entry-content th, .entry-content td { padding: var(--cb-s3) var(--cb-s4); border: 1px solid var(--cb-border); text-align: left; }
.entry-content th { background: var(--cb-gray-100); font-weight: 600; }

/* Post cards grid (archive/blog) */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--cb-s6); }
.post-card {
  background: var(--cb-white); border-radius: var(--cb-card-radius);
  border: 1px solid var(--cb-border); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--cb-card-shadow-hover); }
.post-card .bento-card__media img { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card__body { padding: var(--cb-s5); display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: var(--cb-text-xs); color: var(--cb-gray-600); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--cb-s2); }
.post-card__title { font-size: var(--cb-text-lg); font-weight: 700; margin-bottom: var(--cb-s3); color: var(--cb-blue); line-height: 1.3; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--cb-gold-dark); }
.post-card__excerpt { font-size: var(--cb-text-sm); color: var(--cb-gray-600); line-height: 1.7; flex: 1; margin-bottom: var(--cb-s4); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--cb-s2); padding: var(--cb-s8) 0; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  font-size: var(--cb-text-sm); font-weight: 500;
  border: 1px solid var(--cb-border); color: var(--cb-text);
  transition: all var(--cb-ease);
}
a.page-numbers:hover { background: var(--cb-blue); color: var(--cb-white); border-color: var(--cb-blue); }
span.current { background: var(--cb-blue); color: var(--cb-white); border-color: var(--cb-blue); }

/* Post nav */
.post-navigation { padding: var(--cb-s10) 0; border-top: 1px solid var(--cb-border); }
.nav-links { display: flex; justify-content: space-between; gap: var(--cb-s6); flex-wrap: wrap; }
.nav-previous, .nav-next { display: flex; flex-direction: column; gap: var(--cb-s1); max-width: 48%; }
.nav-next { text-align: right; margin-left: auto; }
.nav-label { font-size: var(--cb-text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--cb-gray-600); font-weight: 600; }
.nav-title { font-size: var(--cb-text-base); font-weight: 700; color: var(--cb-blue); }

/* =============================================================
   FORMS
   ============================================================= */
.form-group { margin-bottom: var(--cb-s4); }
.form-label { display: block; font-size: var(--cb-text-sm); font-weight: 500; color: var(--cb-text); margin-bottom: var(--cb-s2); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.625rem var(--cb-s4);
  background: var(--cb-white); border: 1.5px solid var(--cb-border);
  border-radius: 10px; font-size: var(--cb-text-sm); color: var(--cb-text);
  transition: border-color var(--cb-ease), box-shadow var(--cb-ease); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--cb-blue); box-shadow: 0 0 0 3px rgba(15,37,96,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* =============================================================
   GLOBAL BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: var(--cb-s2);
  padding: 0.625rem 1.5rem; border-radius: 9999px;
  font-size: var(--cb-text-sm); font-weight: 600;
  cursor: pointer; transition: all var(--cb-ease);
  text-decoration: none; border: 2px solid transparent;
  white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--cb-blue); color: var(--cb-white); border-color: var(--cb-blue); }
.btn-primary:hover { background: var(--cb-blue-dark); color: var(--cb-white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(15,37,96,0.3); }
.btn-accent  { background: var(--cb-gold); color: var(--cb-blue-dark); border-color: var(--cb-gold); }
.btn-accent:hover { background: var(--cb-gold-dark); color: var(--cb-blue-dark); }
.btn-outline { background: transparent; color: var(--cb-blue); border-color: var(--cb-blue); }
.btn-outline:hover { background: var(--cb-blue); color: var(--cb-white); }
.btn-lg { padding: 0.875rem 2rem; font-size: var(--cb-text-base); }
.btn-sm { padding: 0.375rem 1rem; font-size: var(--cb-text-xs); }

/* =============================================================
   WIDGETS
   ============================================================= */
.widget { margin-bottom: var(--cb-s8); padding: var(--cb-s6); background: var(--cb-gray-50); border-radius: var(--cb-card-radius); border: 1px solid var(--cb-border); }
.widget-title { font-size: var(--cb-text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cb-blue); margin-bottom: var(--cb-s4); padding-bottom: var(--cb-s3); border-bottom: 2px solid var(--cb-gold); display: inline-block; }
.widget ul { display: flex; flex-direction: column; gap: var(--cb-s2); }
.widget ul li a { font-size: var(--cb-text-sm); color: var(--cb-gray-600); display: block; transition: color var(--cb-ease); }
.widget ul li a:hover { color: var(--cb-blue); }

/* =============================================================
   ELEMENTOR OVERRIDES
   ============================================================= */
/* Remove theme padding on Elementor-built pages */
.elementor-page .site-content > .container,
.elementor-page #primary,
.elementor-page .page-content-wrap {
  padding: 0 !important; max-width: none !important; margin: 0 !important;
}
/* Canvas template hides header/footer */
.page-template-elementor-canvas .site-header,
.page-template-elementor-canvas .site-footer { display: none; }

.elementor *, .elementor *::before, .elementor *::after { box-sizing: border-box; }

/* =============================================================
   UTILITIES
   ============================================================= */
.text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; }
.text-primary { color: var(--cb-blue); } .text-accent { color: var(--cb-gold); }
.text-muted { color: var(--cb-gray-600); } .text-white { color: var(--cb-white); }
.bg-primary { background: var(--cb-blue); } .bg-accent { background: var(--cb-gold); }
.bg-soft { background: var(--cb-gray-50); } .bg-muted { background: var(--cb-gray-100); }
.font-bold { font-weight: 700; } .font-black { font-weight: 900; }
.rounded { border-radius: var(--cb-card-radius); } .rounded-full { border-radius: 9999px; }
.shadow { box-shadow: var(--cb-card-shadow); }
.mt-auto { margin-top: auto; } .mx-auto { margin-inline: auto; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-2 { gap: var(--cb-s2); } .gap-3 { gap: var(--cb-s3); } .gap-4 { gap: var(--cb-s4); }
.hidden { display: none; } .overflow-hidden { overflow: hidden; }
.relative { position: relative; } .absolute { position: absolute; } .inset-0 { inset: 0; }
.w-full { width: 100%; } .h-full { height: 100%; } .flex-1 { flex: 1; }
.sr-only { clip: rect(0,0,0,0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

/* =============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================= */

/* Tablet (≥640px) */
@media (min-width: 640px) {
  :root { --cb-card-gap: 1.125rem; --cb-card-pad: 2rem; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento-hero, .bento-large, .bento-wide, .bento-full { grid-column: span 2; }
  .bento-tall, .bento-medium, .bento-small, .bento-thin { grid-column: span 1; }
}

/* Desktop (≥1024px) */
@media (min-width: 1024px) {
  :root { --cb-card-gap: 1.25rem; }
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
  .bento-hero   { grid-column: span 8; grid-row: span 2; }
  .bento-large  { grid-column: span 6; grid-row: span 2; }
  .bento-tall   { grid-column: span 4; grid-row: span 3; }
  .bento-medium { grid-column: span 4; grid-row: span 2; }
  .bento-wide   { grid-column: span 8; grid-row: span 1; }
  .bento-small  { grid-column: span 4; grid-row: span 1; }
  .bento-thin   { grid-column: span 3; grid-row: span 1; }
  .bento-full   { grid-column: span 12; grid-row: span 1; }
}

/* Mobile Nav (≤768px) */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-navigation {
    position: fixed; top: var(--cb-header-h); left: 0; right: 0;
    background: var(--cb-white); padding: var(--cb-s4);
    border-top: 1px solid var(--cb-border);
    box-shadow: 0 12px 40px rgba(15,37,96,0.12);
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: all 0.28s ease;
  }
  .main-navigation.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-navigation ul { flex-direction: column; align-items: stretch; }
  .main-navigation ul li a { padding: var(--cb-s3) var(--cb-s4); border-radius: 10px; }
  .main-navigation ul ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--cb-gray-100); margin-top: var(--cb-s2); display: none; }
  .main-navigation ul li.is-open > ul { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--cb-s8); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
}

/* Very small (≤479px) */
@media (max-width: 479px) {
  :root { --cb-card-pad: 1.25rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-hero .bento-card__title { font-size: var(--cb-text-2xl); }
  .section-title { font-size: var(--cb-text-2xl); }
  .container { padding-inline: var(--cb-s4); }
}

/* Print */
@media print {
  .site-header, .site-footer, .bento-btn, .btn, .menu-toggle { display: none; }
  .bento-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}
