/* =========================================
   ketothenics.com — Main Stylesheet
   ========================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Figtree:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --c-darkest: #263238;
  --c-dark: #37474F;
  --c-mid: #546E7A;
  --c-light: #90A4AE;
  --c-lightest: #ECEFF1;
  --c-white: #ffffff;
  --c-accent: #546E7A;
  --c-accent2: #37474F;
  --c-grad-start: #263238;
  --c-grad-end: #546E7A;

  --font-head: 'Sora', sans-serif;
  --font-body: 'Figtree', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 50px;

  --shadow-sm: 0 2px 8px rgba(38,50,56,0.10);
  --shadow-md: 0 6px 24px rgba(38,50,56,0.15);
  --shadow-lg: 0 12px 40px rgba(38,50,56,0.20);

  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--c-darkest);
  background: var(--c-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

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

h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; color: var(--c-dark); font-weight: 400; }

.lead { font-size: 1.15rem; font-weight: 400; color: var(--c-mid); }

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

/* --- Section spacing --- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mid);
  background: var(--c-lightest);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  margin-bottom: 16px;
}

.section-title { margin-bottom: 16px; }
.section-sub { color: var(--c-mid); max-width: 560px; margin-bottom: 40px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-grad-start), var(--c-grad-end));
  color: var(--c-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--c-darkest);
  border: 2px solid var(--c-darkest);
}
.btn-outline:hover {
  background: var(--c-darkest);
  color: var(--c-white);
}

.btn-light {
  background: var(--c-white);
  color: var(--c-darkest);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover {
  background: var(--c-lightest);
  box-shadow: var(--shadow-md);
}

/* --- Cards --- */
.card {
  background: var(--c-white);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--c-accent);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px;
  transition: var(--transition);
  background: rgba(236,239,241,0.35);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-darkest), var(--c-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(38,50,56,0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-white);
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-mid), var(--c-lightest));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-lightest);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(144,164,174,0.2);
  color: var(--c-white);
}

.nav-cta {
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Footer --- */
.site-footer {
  background: var(--c-darkest);
  color: var(--c-lightest);
  padding: 72px 0 32px;
}

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

.footer-brand p { color: var(--c-light); font-size: 0.9rem; margin-top: 12px; }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: var(--c-light);
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--c-white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--c-light);
}
.footer-contact-item span:first-child { font-size: 1rem; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(144,164,174,0.2);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--c-light);
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--c-light); }
.footer-bottom-links a:hover { color: var(--c-white); }

/* --- Hero general --- */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(38,50,56,0.88) 0%, rgba(84,110,122,0.55) 100%);
}
.hero-content { position: relative; z-index: 1; }

/* Angled bottom */
.hero-angled {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding-bottom: 120px;
}

/* --- Stats bar --- */
.stats-bar {
  background: var(--c-white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-darkest);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--c-mid);
  margin-top: 6px;
  font-weight: 500;
}

/* --- Masonry gallery --- */
.masonry {
  columns: 3 280px;
  column-gap: 20px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.masonry-item img {
  width: 100%;
  transition: var(--transition);
}
.masonry-item:hover img { transform: scale(1.04); }

/* --- Tabs --- */
.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--c-lightest);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 22px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--c-mid);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn.active {
  color: var(--c-darkest);
  border-bottom-color: var(--c-darkest);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .4s ease; }

/* --- Accordion --- */
.accordion-item {
  border: 1px solid var(--c-lightest);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--c-white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  gap: 16px;
  transition: var(--transition);
}
.accordion-header:hover { background: var(--c-lightest); }
.accordion-icon {
  font-size: 1.2rem;
  color: var(--c-mid);
  transition: transform .3s;
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  background: rgba(236,239,241,0.3);
}
.accordion-body-inner { padding: 0 24px 20px; font-size: 0.93rem; color: var(--c-mid); }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: 0.5; }

/* --- Share buttons --- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-weight: 600;
  font-family: var(--font-head);
  cursor: pointer;
  border: 1px solid var(--c-lightest);
  background: var(--c-white);
  transition: var(--transition);
}
.share-btn:hover { background: var(--c-darkest); color: var(--c-white); border-color: var(--c-darkest); }

/* --- Tags --- */
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--c-lightest);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-mid);
  font-family: var(--font-head);
  transition: var(--transition);
}
.tag:hover { background: var(--c-dark); color: var(--c-white); }

/* --- Testimonials --- */
.testi-card {
  background: var(--c-white);
  border-radius: var(--radius-sm);
  padding: 28px;
  border-left: 4px solid var(--c-accent);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testi-quote { font-size: 2.5rem; color: var(--c-light); line-height: 1; margin-bottom: 12px; }
.testi-text { font-size: 0.95rem; color: var(--c-dark); margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-darkest), var(--c-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: #fff;
}
.testi-name { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
.testi-role { font-size: 0.8rem; color: var(--c-mid); }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--c-lightest);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-darkest), var(--c-mid));
  border: 3px solid var(--c-white);
  box-shadow: 0 0 0 3px var(--c-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 700;
}
.timeline-title { font-family: var(--font-head); font-weight: 600; margin-bottom: 8px; }
.timeline-text { font-size: 0.9rem; color: var(--c-mid); }

/* --- Logo strip --- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.logo-strip-item {
  background: var(--c-lightest);
  border-radius: var(--radius-sm);
  padding: 16px 28px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-mid);
  transition: var(--transition);
  min-width: 120px;
  text-align: center;
}
.logo-strip-item:hover { background: var(--c-darkest); color: var(--c-white); }

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

/* --- Form --- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--c-darkest);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--c-lightest);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--c-darkest);
  background: var(--c-white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(84,110,122,0.15);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-error { font-size: 0.78rem; color: #e53935; margin-top: 4px; display: none; }
.form-control.error { border-color: #e53935; }
.form-control.error + .form-error { display: block; }

/* --- Feature icon list --- */
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-darkest), var(--c-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: #fff;
}
.feature-title { font-family: var(--font-head); font-weight: 600; margin-bottom: 4px; }
.feature-text { font-size: 0.88rem; color: var(--c-mid); margin: 0; }

/* --- Newsletter --- */
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  flex-wrap: wrap;
}
.newsletter-form .form-control { flex: 1; min-width: 200px; }

/* --- Badge / social proof --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-white);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-head);
  box-shadow: var(--shadow-sm);
  color: var(--c-darkest);
  border: 1px solid var(--c-lightest);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
}

/* --- FAB (Floating Action Buttons) --- */
.fab-group {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-darkest), var(--c-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.fab:hover { transform: scale(1.1); box-shadow: var(--shadow-lg); }
.fab-label {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-head);
  background: var(--c-darkest);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: none;
}
.fab-item:hover .fab-label { display: inline-block; }
.fab-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Back to top --- */
#back-top {
  position: fixed;
  bottom: 32px;
  right: 96px;
  z-index: 900;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  border: none;
  font-size: 1.1rem;
}
#back-top.visible { opacity: 1; pointer-events: auto; }
#back-top:hover { background: var(--c-darkest); }

/* --- Dark section --- */
.section-dark {
  background: var(--c-darkest);
  color: var(--c-lightest);
}
.section-dark h2, .section-dark h3, .section-dark .section-title { color: var(--c-white); }
.section-dark p, .section-dark .section-sub { color: var(--c-light); }
.section-dark .section-label { background: rgba(144,164,174,0.2); color: var(--c-lightest); }

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--c-darkest);
  color: var(--c-lightest);
  z-index: 9999;
  padding: 18px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  display: none;
}
#cookie-banner.show { display: block; }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-text { font-size: 0.88rem; flex: 1; min-width: 260px; }
.cookie-text a { color: var(--c-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--c-mid), var(--c-light));
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.88rem;
  transition: var(--transition);
}
.cookie-btn-accept:hover { filter: brightness(1.1); }
.cookie-btn-decline {
  padding: 10px 20px;
  background: transparent;
  color: var(--c-light);
  border: 1px solid rgba(144,164,174,0.4);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.88rem;
  transition: var(--transition);
}
.cookie-btn-decline:hover { color: #fff; border-color: #fff; }

/* --- Article styles --- */
.article-body { max-width: 780px; }
.article-body h2, .article-body h3 {
  margin-top: 36px;
  margin-bottom: 12px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol {
  margin: 0 0 16px 24px;
}
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 4px solid var(--c-mid);
  padding: 12px 20px;
  background: var(--c-lightest);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--c-dark);
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--c-mid);
  margin-bottom: 32px;
  align-items: center;
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* --- Author bio --- */
.author-card {
  background: var(--c-lightest);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-darkest), var(--c-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  color: #fff;
}
.author-name { font-family: var(--font-head); font-weight: 700; margin-bottom: 4px; }
.author-role { font-size: 0.82rem; color: var(--c-mid); margin-bottom: 10px; }

/* --- Event calendar --- */
.event-card {
  background: var(--c-white);
  border-radius: var(--radius-sm);
  padding: 20px;
  border-left: 4px solid var(--c-accent);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
  margin-bottom: 16px;
}
.event-card:hover { box-shadow: var(--shadow-md); }
.event-date-block {
  background: linear-gradient(135deg, var(--c-darkest), var(--c-mid));
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  flex-shrink: 0;
  min-width: 60px;
}
.event-date-day { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-date-mon { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }
.event-title { font-family: var(--font-head); font-weight: 600; margin-bottom: 6px; }
.event-desc { font-size: 0.85rem; color: var(--c-mid); margin: 0; }

/* --- Pricing --- */
.pricing-card {
  background: var(--c-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-lightest);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pricing-card.featured {
  background: linear-gradient(135deg, var(--c-darkest), var(--c-mid));
  color: #fff;
  border-color: transparent;
}
.pricing-card.featured h3 { color: #fff; }
.pricing-name { font-family: var(--font-head); font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-mid);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-head);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.pricing-price { font-size: 2.2rem; font-weight: 700; font-family: var(--font-head); margin: 12px 0; }
.pricing-list { text-align: left; margin: 20px 0; }
.pricing-list li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; margin-bottom: 8px; }
.pricing-list li::before { content: '✓'; color: var(--c-mid); font-weight: 700; flex-shrink: 0; }
.pricing-card.featured .pricing-list li::before { color: var(--c-lightest); }

/* --- Journey map --- */
.journey-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.journey-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-darkest), var(--c-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.journey-title { font-family: var(--font-head); font-weight: 600; margin-bottom: 6px; }
.journey-text { font-size: 0.88rem; color: var(--c-mid); margin: 0; }

/* --- Map container --- */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* --- Chart container --- */
.chart-wrap { position: relative; height: 320px; }

/* --- Utils --- */
.text-center { text-align: center; }
.text-white { color: var(--c-white) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 40px !important; }
.mt-4 { margin-top: 40px !important; }
.mt-2 { margin-top: 16px !important; }
.gap-24 { gap: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }

/* --- BG variations --- */
.bg-light { background: var(--c-lightest); }
.bg-mid { background: var(--c-mid); }
.bg-white { background: var(--c-white); }

/* --- Mega footer override (used on some pages) --- */
.mega-footer {
  background: var(--c-darkest);
  color: var(--c-lightest);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.animate-fade { animation: fadeIn .6s ease forwards; }
.animate-slide { animation: slideInLeft .6s ease forwards; }

/* Animated text */
.anim-heading {
  overflow: hidden;
}
.anim-heading span {
  display: inline-block;
  animation: slideInLeft .6s ease forwards;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 20px;
    margin-top: -40px;
  }

  .hero-angled { clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); padding-bottom: 80px; }

  .masonry { columns: 2 200px; }

  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }

  .mobile-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--c-darkest);
    padding: 20px 24px;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    color: var(--c-lightest);
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
  }
  .mobile-menu a:hover { background: rgba(144,164,174,0.15); }

  .author-card { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .fab-group { bottom: 20px; right: 16px; }
  #back-top { bottom: 20px; right: 80px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
  .stat-num { font-size: 1.6rem; }
  .tabs-nav { flex-direction: column; }
  .pricing-card { padding: 24px 18px; }
}
