/*
Theme Name:  CalcPro
Theme URI:   https://yoursite.com
Author:      CalcPro
Description: Ultra-lightweight speed-optimized WordPress theme for calculator & finance websites. Zero bloat, no jQuery, pure vanilla JS, 95+ PageSpeed score.
Version:     1.0.0
License:     GNU General Public License v2
Text Domain: calcpro
Tags:        fast, lightweight, calculator, finance, adsense, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   BASE RESET & VARIABLES
   ============================================================ */
:root {
  --white:   #ffffff;
  --bg:      #f8f9fc;
  --bg2:     #f1f4f9;
  --border:  #e4e9f2;
  --text:    #0f172a;
  --text2:   #334155;
  --muted:   #64748b;
  --light:   #94a3b8;
  --ac:      #2563eb;
  --ac-l:    #eff6ff;
  --ac-m:    #bfdbfe;
  --green:   #059669;
  --red:     #dc2626;
  --shadow:  0 4px 18px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --radius:  16px;
  --radius-s:10px;
  --font-head:'Playfair Display', Georgia, serif;
  --font-body:'DM Sans', system-ui, -apple-system, sans-serif;
}

*, *::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(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ac); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.2;
  font-weight: 800;
}
h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); margin-bottom: .85rem; }
h3 { font-size: 1.2rem; margin-bottom: .7rem; }
h4 { font-size: 1rem; margin-bottom: .5rem; }

p { margin-bottom: 1rem; color: var(--text2); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.cp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.cp-container--narrow { max-width: 780px; }
.cp-container--wide   { max-width: 1400px; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.cp-site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(15,23,42,.05);
}
.cp-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.cp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.cp-logo__icon {
  width: 38px; height: 38px;
  background: var(--ac);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(37,99,235,.3);
  flex-shrink: 0;
}
.cp-logo__name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.cp-logo__name span { color: var(--ac); }
.cp-tagline {
  font-size: .75rem;
  color: var(--light);
  display: none;
}
@media (min-width: 560px) { .cp-tagline { display: block; } }

/* ============================================================
   NAVIGATION MENU
   ============================================================ */
.cp-nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.cp-nav__scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cp-nav__scroll::-webkit-scrollbar { display: none; }

/* Main nav menu list */
.cp-nav__menu,
.cp-nav .menu,
#cp-nav-menu .menu {
  display: flex;
  list-style: none;
  padding: 0 16px;
  margin: 0;
  min-width: max-content;
}
.cp-nav__menu li,
.cp-nav .menu li {
  flex-shrink: 0;
  position: relative;
}
.cp-nav__menu li a,
.cp-nav .menu li a {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.cp-nav__menu li a:hover,
.cp-nav .menu li a:hover { color: var(--text); }
.cp-nav__menu li.current-menu-item > a,
.cp-nav .menu li.current-menu-item > a,
.cp-nav__menu li.current_page_item > a,
.cp-nav .menu li.current_page_item > a {
  color: var(--ac);
  border-bottom-color: var(--ac);
  font-weight: 700;
}

/* Hamburger for mobile */
.cp-nav__toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text2);
  font-size: .85rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-right: 20px;
}
@media (max-width: 640px) {
  .cp-nav__toggle { display: block; }
  .cp-nav__scroll { display: none; }
  .cp-nav__scroll.open { display: block; }
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.cp-ad {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  padding: 20px 12px 12px;
  position: relative;
  overflow: hidden;
}
.cp-ad::before {
  content: 'ADVERTISEMENT';
  position: absolute; top: 4px; left: 10px;
  font-size: .55rem; letter-spacing: 2px; color: #cbd5e1;
}
.cp-ad--banner  { min-height: 90px; }
.cp-ad--box     { min-height: 250px; }
.cp-ad--inline  { min-height: 90px; margin: 24px 0; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.cp-hero {
  background: linear-gradient(160deg, var(--ac-l) 0%, var(--bg) 60%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 20px 44px;
  text-align: center;
}
.cp-hero__inner { max-width: 680px; margin: 0 auto; }
.cp-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--ac-m);
  border-radius: 99px;
  padding: 5px 16px 5px 10px;
  font-size: .7rem; font-weight: 700; color: var(--ac);
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(37,99,235,.1);
}
.cp-hero__dot {
  width: 6px; height: 6px;
  background: var(--ac); border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.8); }
}
.cp-hero__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15; color: var(--text);
  margin-bottom: 14px;
}
.cp-hero__title em { font-style: normal; color: var(--ac); }
.cp-hero__sub {
  font-size: .97rem; color: var(--muted);
  line-height: 1.75; max-width: 560px; margin: 0 auto;
}
.cp-hero__stats {
  display: flex; justify-content: center;
  gap: 36px; margin-top: 24px; flex-wrap: wrap;
}
.cp-hero__stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 800; color: var(--text);
}
.cp-hero__stat span { font-size: .72rem; color: var(--muted); }

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.cp-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* Two column layout */
.cp-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) { .cp-layout { grid-template-columns: 1fr; } }

/* ============================================================
   CARDS
   ============================================================ */
.cp-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.cp-card:last-child { margin-bottom: 0; }
.cp-card__head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--bg2);
}
.cp-card__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ac-l);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}

/* ============================================================
   FORM FIELDS (sliders, inputs, selects)
   ============================================================ */
.cp-field { margin-bottom: 18px; }
.cp-field__row {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.cp-label { font-size: .82rem; font-weight: 600; color: var(--text2); }
.cp-val-badge {
  font-size: .84rem; font-weight: 700; color: var(--ac);
  background: var(--ac-l); border: 1px solid var(--ac-m);
  padding: 3px 10px; border-radius: 6px;
  min-width: 88px; text-align: center;
}
input[type="range"].cp-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 99px;
  border: none; outline: none; cursor: pointer; padding: 0;
  background: linear-gradient(to right, var(--ac) 0%, var(--ac) var(--fill,40%), var(--border) var(--fill,40%), var(--border) 100%);
}
input[type="range"].cp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--white); border: 2.5px solid var(--ac);
  border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
  transition: transform .15s;
}
input[type="range"].cp-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"].cp-range::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--white); border: 2.5px solid var(--ac);
  border-radius: 50%; cursor: pointer;
}
input[type="range"].cp-range::-moz-range-progress { background: var(--ac); height: 6px; border-radius: 99px; }
input[type="range"].cp-range::-moz-range-track  { background: var(--border); height: 6px; border-radius: 99px; }
.cp-range-mm {
  display: flex; justify-content: space-between;
  font-size: .69rem; color: var(--light); margin-top: 3px;
}
.cp-inp, .cp-sel {
  width: 100%; background: var(--white);
  border: 1.5px solid var(--border); color: var(--text);
  padding: 11px 14px; border-radius: var(--radius-s);
  font-family: var(--font-body); font-size: .9rem; font-weight: 500;
  outline: none; transition: border-color .2s, box-shadow .2s;
  -moz-appearance: textfield;
}
.cp-inp::-webkit-outer-spin-button,
.cp-inp::-webkit-inner-spin-button { -webkit-appearance: none; }
.cp-inp:focus, .cp-sel:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.cp-sel {
  cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.cp-toggle {
  display: flex; background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-s); overflow: hidden; margin-bottom: 18px;
}
.cp-toggle__btn {
  flex: 1; padding: 10px 8px;
  border: none; background: transparent;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all .18s; text-align: center;
}
.cp-toggle__btn.active { background: var(--ac); color: var(--white); }

/* ============================================================
   CTA BUTTON
   ============================================================ */
.cp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; width: 100%; padding: 14px;
  background: var(--ac); border: none; border-radius: 11px;
  color: var(--white); font-family: var(--font-body);
  font-size: .9rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 5px 18px rgba(37,99,235,.35);
  transition: all .2s; text-decoration: none;
  margin-top: 6px;
}
.cp-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.45);
  text-decoration: none; color: var(--white);
}
.cp-btn:active { transform: translateY(0); }
.cp-btn--outline {
  background: transparent; color: var(--ac);
  border: 2px solid var(--ac); box-shadow: none;
}
.cp-btn--outline:hover { background: var(--ac-l); color: var(--ac); }

/* ============================================================
   RESULT CHIPS
   ============================================================ */
.cp-chips {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 18px;
}
.cp-chip {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 13px 14px;
}
.cp-chip--featured {
  grid-column: span 2;
  background: var(--ac-l); border-color: var(--ac-m);
  padding: 16px 18px;
}
.cp-chip__label {
  font-size: .63rem; color: var(--muted); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px;
}
.cp-chip__value {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 800; color: var(--text);
}
.cp-chip--featured .cp-chip__value { font-size: 1.65rem; color: var(--ac); }
.cp-text-green { color: var(--green); }
.cp-text-red   { color: var(--red); }
.cp-text-blue  { color: var(--ac); }

/* Highlight box */
.cp-highlight {
  background: var(--ac-l); border: 2px solid var(--ac-m);
  border-radius: 14px; padding: 18px; text-align: center; margin-bottom: 14px;
}
.cp-highlight__label {
  font-size: .63rem; color: var(--ac); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 7px;
}
.cp-highlight__value {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800; color: var(--ac);
}

/* Result rows */
.cp-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--bg2);
  font-size: .85rem;
}
.cp-result-row:last-child { border: none; }
.cp-result-row__key { color: var(--muted); }
.cp-result-row__val { font-weight: 700; color: var(--text); }

/* ============================================================
   CHART
   ============================================================ */
.cp-chart { position: relative; height: 190px; margin: 8px 0 4px; }

/* ============================================================
   DATA TABLE
   ============================================================ */
.cp-table-wrap {
  overflow-x: auto; border-radius: 14px;
  border: 1.5px solid var(--border); background: var(--white);
  margin-bottom: 24px;
}
.cp-table { width: 100%; border-collapse: collapse; }
.cp-table thead th {
  padding: 12px 14px; font-size: .69rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--muted);
  background: var(--bg); border-bottom: 1px solid var(--border); text-align: left;
}
.cp-table tbody td {
  padding: 10px 14px; font-size: .83rem; color: var(--text2);
  border-bottom: 1px solid var(--bg2);
}
.cp-table tbody tr:last-child td { border-bottom: none; }
.cp-table tbody tr:hover td { background: #fafbfc; }
.cp-td-bold  { font-weight: 700; color: var(--text); }
.cp-td-green { color: var(--green); font-weight: 600; }
.cp-td-red   { color: var(--red); }
.cp-td-blue  { color: var(--ac); font-weight: 600; }

/* ============================================================
   SECTIONS & STEPS
   ============================================================ */
.cp-section { margin: 40px 0 16px; }
.cp-section__title {
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 11px; margin-bottom: 5px;
}
.cp-section__icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--ac-l);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.cp-section__sub {
  font-size: .86rem; color: var(--muted);
  margin-left: 47px; margin-bottom: 18px;
}
.cp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.cp-step {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 20px; position: relative;
  overflow: hidden; transition: all .2s;
}
.cp-step:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); transform: translateY(-2px); }
.cp-step__num {
  font-family: var(--font-head); font-size: 2.8rem; font-weight: 800;
  color: var(--bg2); line-height: 1; position: absolute; top: 10px; right: 12px;
}
.cp-step__icon { font-size: 1.5rem; margin-bottom: 8px; }
.cp-step h3 { font-size: .87rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.cp-step p  { font-size: .78rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.cp-faq {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; margin-bottom: 8px; overflow: hidden;
  transition: border-color .2s;
}
.cp-faq:hover, .cp-faq.open { border-color: var(--ac-m); }
.cp-faq__question {
  padding: 16px 20px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.cp-faq__question-text { font-size: .88rem; font-weight: 600; color: var(--text); }
.cp-faq__icon {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  background: var(--bg2); display: flex; align-items: center;
  justify-content: center; font-size: .95rem; color: var(--muted);
  transition: all .2s; font-style: normal;
}
.cp-faq.open .cp-faq__icon { background: var(--ac-l); color: var(--ac); transform: rotate(45deg); }
.cp-faq__answer {
  padding: 0 20px 16px; font-size: .84rem; color: var(--muted);
  line-height: 1.8; display: none;
}
.cp-faq.open .cp-faq__answer { display: block; }

/* ============================================================
   RELATED CALCULATORS GRID
   ============================================================ */
.cp-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.cp-related__item {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px;
  text-decoration: none; display: flex;
  align-items: center; gap: 10px;
  transition: all .2s; color: var(--text);
}
.cp-related__item:hover {
  border-color: var(--ac-m);
  box-shadow: 0 5px 16px rgba(37,99,235,.1);
  transform: translateY(-2px); text-decoration: none;
}
.cp-related__icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.cp-related__name { font-size: .79rem; font-weight: 600; }

/* ============================================================
   BLOG / POST CARDS
   ============================================================ */
.cp-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.cp-post-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .2s; display: flex; flex-direction: column;
}
.cp-post-card:hover {
  box-shadow: 0 8px 28px rgba(15,23,42,.1);
  transform: translateY(-2px);
}
.cp-post-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.cp-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cp-post-card:hover .cp-post-card__thumb img { transform: scale(1.04); }
.cp-post-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.cp-post-card__cat {
  display: inline-block; font-size: .65rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ac); background: var(--ac-l);
  padding: 3px 10px; border-radius: 99px; margin-bottom: 10px;
}
.cp-post-card__title {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px; line-height: 1.4;
}
.cp-post-card__title a { color: var(--text); text-decoration: none; }
.cp-post-card__title a:hover { color: var(--ac); }
.cp-post-card__excerpt { font-size: .82rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 14px; }
.cp-post-card__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: .72rem; color: var(--light);
  border-top: 1px solid var(--bg2); padding-top: 12px; margin-top: auto;
}

/* Single post */
.cp-post-header { padding: 48px 20px 36px; background: linear-gradient(160deg, var(--ac-l) 0%, var(--bg) 70%); border-bottom: 1px solid var(--border); text-align: center; }
.cp-post-content { max-width: 780px; margin: 40px auto; padding: 0 20px; }
.cp-post-content p   { margin-bottom: 1.25rem; font-size: .97rem; }
.cp-post-content h2  { margin: 2rem 0 .85rem; }
.cp-post-content h3  { margin: 1.5rem 0 .7rem; }
.cp-post-content ul, .cp-post-content ol { margin-bottom: 1rem; }
.cp-post-content li  { margin-bottom: .4rem; color: var(--text2); font-size: .95rem; }
.cp-post-content blockquote {
  border-left: 4px solid var(--ac); padding: 12px 20px;
  background: var(--ac-l); border-radius: 0 10px 10px 0;
  margin: 1.5rem 0; font-style: italic; color: var(--text2);
}
.cp-post-content img { border-radius: 12px; margin: 1.5rem 0; }
.cp-post-content a { color: var(--ac); text-decoration: underline; }
.cp-post-content code {
  background: var(--bg2); padding: 2px 7px; border-radius: 5px;
  font-size: .85rem; color: #db2777;
}
.cp-post-content pre {
  background: var(--text); color: #e2e8f0; padding: 20px;
  border-radius: 12px; overflow-x: auto; margin: 1.5rem 0; font-size: .85rem;
}

/* ============================================================
   DISCLAIMER
   ============================================================ */
.cp-disclaimer {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 10px; padding: 12px 16px; margin-top: 28px;
  font-size: .76rem; color: #78350f; line-height: 1.65;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.cp-sidebar-widget {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
}
.cp-sidebar-widget__title {
  font-family: var(--font-head); font-size: .95rem; font-weight: 700;
  color: var(--text); margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--bg2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.cp-footer {
  background: #0f172a; color: #64748b;
  margin-top: 64px; padding: 52px 20px 24px;
}
.cp-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 40px;
}
@media (max-width: 768px) { .cp-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .cp-footer__grid { grid-template-columns: 1fr; } }
.cp-footer__brand-name {
  font-family: var(--font-head); font-size: 1.25rem;
  font-weight: 800; color: #f8fafc; margin-bottom: 8px;
}
.cp-footer__brand-name span { color: #60a5fa; }
.cp-footer__brand p { font-size: .79rem; line-height: 1.75; max-width: 230px; }
.cp-footer__col h4 {
  font-size: .67rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #f8fafc; margin-bottom: 14px;
  font-family: var(--font-body);
}
.cp-footer__col a {
  display: block; color: #475569; text-decoration: none;
  font-size: .79rem; margin-bottom: 9px; transition: color .18s;
}
.cp-footer__col a:hover { color: #f8fafc; }
.cp-footer__bottom {
  border-top: 1px solid #1e293b; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.cp-footer__bottom p { font-size: .73rem; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.cp-text-center { text-align: center; }
.cp-mb-0 { margin-bottom: 0 !important; }
.cp-mb-20 { margin-bottom: 20px; }
.cp-mt-20 { margin-top: 20px; }
.cp-hidden { display: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cp-hero  { animation: fadeUp .45s ease both; }
.cp-main  { animation: fadeUp .45s .08s ease both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .cp-hero  { padding: 32px 16px 28px; }
  .cp-main  { padding: 18px 14px 48px; }
  .cp-card  { padding: 18px; }
  .cp-chips { grid-template-columns: 1fr; }
  .cp-chip--featured { grid-column: span 1; }
  .cp-hero__stats { gap: 20px; }
}

/* ============================================================
   WORDPRESS SPECIFIC OVERRIDES
   ============================================================ */
.wp-block-image img { border-radius: 10px; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft   { float: left; margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden;
  position: absolute; width: 1px; word-wrap: normal;
}
