/*
Theme Name:  Controlled SEO Child
Description: Child theme for Controlled SEO — white-label SEO agency site. Requires GeneratePress Premium + GenerateBlocks (Free).
Template:    generatepress
Version:     1.0.0
Text Domain: controlled-seo
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --primary:        #17B890;
  --primary-700:    #0F9E79;
  --primary-50:     #E7F7F2;
  --accent:         #287698;
  --accent-700:     #1F5D79;
  --accent-50:      #E9F1F5;
  --surface:        #F6F8F8;
  --bg:             #FFFFFF;
  --ink:            #222222;
  --ink-heading:    #1A222C;
  --ink-muted:      #4A555F;
  --ink-subtle:     #7A848C;
  --line:           #E5E9EC;
  --line-inner:     #EEF1F3;
  --dark:           #1D2530;
  --star:           #F5A623;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(29,37,48,.06);
  --shadow-md:  0 4px 16px rgba(29,37,48,.08);
  --shadow-lg:  0 14px 36px rgba(29,37,48,.12);
  --shadow-card-hover: 0 12px 30px rgba(29,37,48,.08);

  /* Radii */
  --radius-input: 4px;
  --radius-btn:   8px;
  --radius-card:  12px;
  --radius-card-lg: 14px;
  --radius-panel: 16px;
  --radius-pill:  999px;

  /* Spacing */
  --section-py: 96px;
  --container: 1200px;
  --gutter: 40px;
  --gap: 24px;
}

/* ============================================================
   GLOBAL RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', sans-serif;
  color: var(--ink-heading);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: 44px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }

p { font-size: 16px; line-height: 1.6; }

a { color: var(--accent); font-weight: 700; text-decoration: none;
    border-bottom: 2px solid rgba(40,118,152,.3); transition: border-color .15s ease; }
a:hover { border-bottom-color: var(--accent); }

/* Eyebrow / overline */
.cseo-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Rubik', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary-700); background: var(--primary-50);
  padding: 7px 14px; border-radius: var(--radius-pill);
  border-bottom: none;
}
.cseo-eyebrow:hover { border-bottom: none; background: var(--primary-50); }

.cseo-section-label {
  font-family: 'Rubik', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px; display: block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.cseo-btn {
  display: inline-block;
  font-family: 'Rubik', sans-serif; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  border-radius: var(--radius-btn);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  line-height: 1;
}
.cseo-btn:hover { border-bottom: none; }

/* Sizes */
.cseo-btn-sm  { font-size: 14px; padding: 10px 20px; }
.cseo-btn-md  { font-size: 16px; padding: 14px 28px; }
.cseo-btn-lg  { font-size: 17px; padding: 16px 32px; }

/* Variants */
.cseo-btn-primary { color: #fff; background: var(--primary); border: 2px solid var(--primary); }
.cseo-btn-primary:hover { background: var(--primary-700); border-color: var(--primary-700); color: #fff; }

.cseo-btn-accent  { color: #fff; background: var(--accent); border: 2px solid var(--accent); }
.cseo-btn-accent:hover { background: var(--accent-700); border-color: var(--accent-700); color: #fff; }

.cseo-btn-outline { color: var(--primary); background: transparent; border: 2px solid var(--primary); }
.cseo-btn-outline:hover { background: var(--primary-50); }

/* On-dark */
.cseo-btn-dark-primary { color: var(--dark); background: var(--primary); border: 2px solid var(--primary); }
.cseo-btn-dark-primary:hover { background: #3ccfa9; border-color: #3ccfa9; color: var(--dark); }

.cseo-btn-ghost { color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.3); }
.cseo-btn-ghost:hover { border-color: #fff; color: #fff; }

/* ============================================================
   CARDS
   ============================================================ */
.cseo-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-card-lg); padding: 30px 26px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cseo-card:hover { border-color: var(--primary); box-shadow: var(--shadow-card-hover); }

.cseo-card a { border-bottom: none; }

/* Icon chip */
.cseo-icon-chip {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.cseo-stat-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-card-lg); padding: 34px 24px;
  text-align: center;
}
.cseo-stat-card .stat-num {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 46px; line-height: 1;
}
.cseo-stat-card .stat-label {
  font-size: 15px; color: var(--ink-muted); margin-top: 12px;
}
.cseo-stat-card.green { border-top: 3px solid var(--primary); }
.cseo-stat-card.green .stat-num { color: var(--primary); }
.cseo-stat-card.blue  { border-top: 3px solid var(--accent); }
.cseo-stat-card.blue  .stat-num { color: var(--accent); }

/* ============================================================
   CONTAINERS & SECTION LAYOUT
   ============================================================ */
.cseo-container {
  max-width: var(--container); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.cseo-container-wide { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.cseo-container-text { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

.cseo-section-py { padding-top: var(--section-py); padding-bottom: var(--section-py); }

.cseo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cseo-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.cseo-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
details.cseo-faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 4px 24px;
}
details.cseo-faq-item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 18px;
  color: var(--ink-heading);
}
details.cseo-faq-item > summary::-webkit-details-marker { display: none; }
details.cseo-faq-item > summary .faq-plus {
  color: var(--primary); font-size: 24px;
  transition: transform .2s ease; line-height: 1;
  flex-shrink: 0;
}
details.cseo-faq-item[open] > summary .faq-plus { transform: rotate(45deg); }
details.cseo-faq-item .faq-body {
  font-size: 16px; line-height: 1.65; color: var(--ink-muted);
  margin: 0 0 18px; padding-left: 40px;
}
.cseo-faq-list { display: flex; flex-direction: column; gap: 14px; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.cseo-process-step .step-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.cseo-process-step .step-num {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content:center;
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--primary); flex-shrink: 0;
}
.cseo-process-step .step-line {
  flex: 1; height: 2px; background: rgba(255,255,255,.12);
}
.cseo-process-step.light .step-line { background: #DDE5E2; }
.cseo-process-step.last  .step-line { background: transparent; }
.cseo-process-step h3 { font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 19px; margin: 0 0 10px; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.cseo-trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--line-inner);
  border-bottom: 1px solid var(--line-inner);
}
.cseo-trust-strip-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 26px var(--gutter);
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.cseo-trust-label {
  font-family: 'Rubik', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--ink-subtle); letter-spacing: .04em; white-space: nowrap;
}
.cseo-trust-logos {
  display: flex; gap: 40px; flex-wrap: wrap; align-items: center;
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 17px;
  color: #B6BFC7;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.cseo-testimonial {
  background: var(--primary-50);
  text-align: center;
}
.cseo-testimonial-inner {
  max-width: 900px; margin: 0 auto;
  padding: 84px var(--gutter);
}
.cseo-testimonial-quote {
  font-family: 'Rubik', sans-serif; font-size: 54px;
  line-height: 1; color: var(--primary); height: 30px;
}
.cseo-testimonial-body {
  font-family: 'Rubik', sans-serif; font-weight: 500;
  font-size: 27px; line-height: 1.45; letter-spacing: -0.01em;
  color: var(--ink-heading); margin: 0 0 30px;
}
.cseo-testimonial-author {
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.cseo-testimonial-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: #cfe7df; border: 1px solid #b6d8cd;
  overflow: hidden; flex-shrink: 0;
}
.cseo-testimonial-name {
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 16px;
  color: var(--ink-heading); text-align: left;
}
.cseo-testimonial-role {
  font-size: 14px; color: var(--ink-muted); text-align: left;
}

/* ============================================================
   CTA BANDS
   ============================================================ */
.cseo-cta-dark {
  background: var(--dark); color: #fff; text-align: center;
}
.cseo-cta-dark h2 { color: #fff; }
.cseo-cta-dark p  { color: #9aa6b2; }
.cseo-cta-dark .cseo-cta-inner { max-width: 1000px; margin: 0 auto; padding: 80px var(--gutter); }

.cseo-cta-tint { background: var(--primary-50); text-align: center; }
.cseo-cta-tint h2 { color: var(--ink-heading); }
.cseo-cta-tint p  { color: #3f5a52; }
.cseo-cta-tint .cseo-cta-inner { max-width: 1000px; margin: 0 auto; padding: 76px var(--gutter); }

/* ============================================================
   FLOATING STAT WIDGETS (hero)
   ============================================================ */
.cseo-hero-badge {
  position: absolute; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-lg); padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
}
.cseo-hero-badge-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rubik', sans-serif; font-weight: 700;
  color: var(--primary-700); font-size: 18px;
}
.cseo-hero-badge-num {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 22px; color: var(--dark); line-height: 1;
}
.cseo-hero-badge-sub { font-size: 13px; color: var(--ink-subtle); margin-top: 4px; }

.cseo-hero-pill {
  position: absolute;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: 0 10px 28px rgba(29,37,48,.1);
  padding: 12px 16px;
  font-family: 'Rubik', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--dark); display: flex; align-items: center; gap: 8px;
}
.cseo-hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.cseo-img-placeholder {
  background-image: repeating-linear-gradient(135deg, #F1F5F4 0 14px, #E7EEEC 14px 28px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.cseo-img-placeholder span {
  font-family: 'Rubik', monospace; font-size: 13px;
  color: #9aa6b2; letter-spacing: .04em;
}

/* ============================================================
   FORMS (inputs, selects, textareas)
   ============================================================ */
.cseo-form input[type="text"],
.cseo-form input[type="email"],
.cseo-form select,
.cseo-form textarea {
  width: 100%; font-family: 'Nunito', sans-serif;
  font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid #DCE2E6;
  border-radius: var(--radius-btn); padding: 13px 14px;
  outline: none; transition: border-color .15s ease;
  -webkit-appearance: none; appearance: none;
}
.cseo-form input:focus,
.cseo-form select:focus,
.cseo-form textarea:focus { border-color: var(--primary); }
.cseo-form textarea { resize: vertical; }

.cseo-form label {
  display: block; font-family: 'Rubik', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--ink-heading);
  margin-bottom: 8px;
}
.cseo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.cseo-form-group { margin-bottom: 20px; }

/* Dark email strip (footer) */
.cseo-email-strip { display: flex; gap: 8px; }
.cseo-email-strip input[type="email"] {
  flex: 1; min-width: 0;
  font-family: 'Nunito', sans-serif; font-size: 14px;
  color: #fff; background: #28323F;
  border: 1px solid #3A4654; border-radius: var(--radius-btn);
  padding: 12px 14px; outline: none;
}
.cseo-email-strip button {
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--dark); background: var(--primary);
  border: none; border-radius: var(--radius-btn);
  padding: 12px 18px; cursor: pointer; white-space: nowrap;
  transition: background .15s ease;
}
.cseo-email-strip button:hover { background: #3ccfa9; }

/* Blog newsletter strip */
.cseo-newsletter-strip { display: flex; gap: 10px; justify-content: center; max-width: 440px; margin: 0 auto; }
.cseo-newsletter-strip input[type="email"] {
  flex: 1; min-width: 0;
  font-family: 'Nunito', sans-serif; font-size: 15px;
  color: var(--ink); background: var(--bg);
  border: 1px solid #c9e3d9; border-radius: var(--radius-btn);
  padding: 14px 16px; outline: none;
}
.cseo-newsletter-strip button {
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 15px;
  color: #fff; background: var(--primary);
  border: none; border-radius: var(--radius-btn);
  padding: 14px 24px; cursor: pointer; white-space: nowrap;
  transition: background .15s ease;
}
.cseo-newsletter-strip button:hover { background: var(--primary-700); }

/* CF7 form overrides */
.cseo-cf7-wrapper .wpcf7-form p { margin: 0; }
.cseo-cf7-wrapper .wpcf7-form .wpcf7-not-valid-tip { font-size: 13px; color: #e53e3e; }
.cseo-cf7-wrapper .wpcf7-response-output { margin-top: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
#cseo-header {
  background: var(--bg); border-bottom: 1px solid var(--line-inner);
  position: sticky; top: 0; z-index: 9999;
}
#cseo-header .header-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; gap: 36px;
}
#cseo-header .header-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; border-bottom: none; flex-shrink: 0;
}
#cseo-header .header-logo:hover { border-bottom: none; }
#cseo-header .header-logo img { width: 34px; height: auto; display: block; }
#cseo-header .header-logo .wordmark {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 19px; letter-spacing: -0.01em; color: var(--dark);
}
#cseo-header .header-logo .wordmark .accent { color: var(--primary); }

/* ---- Desktop nav: ul/li from wp_nav_menu ---- */
#cseo-header .header-nav { margin-left: 8px; flex: 1; }
#cseo-header .cseo-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
#cseo-header .cseo-menu > li { position: relative; }
#cseo-header .cseo-menu > li > a {
  font-family: 'Rubik', sans-serif; font-size: 15px; font-weight: 500;
  color: var(--ink); text-decoration: none; border-bottom: none;
  display: block; padding: 8px 14px; border-radius: 6px;
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
#cseo-header .cseo-menu > li > a:hover { color: var(--primary); background: var(--surface); border-bottom: none; }
#cseo-header .cseo-menu > li.current-menu-item > a,
#cseo-header .cseo-menu > li.current_page_item > a,
#cseo-header .cseo-menu > li.current-menu-ancestor > a { color: var(--primary); font-weight: 600; }

/* ---- Services dropdown ---- */
#cseo-header .cseo-menu > li > ul {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  list-style: none; margin: 0; padding: 8px 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-panel); box-shadow: var(--shadow-lg);
  min-width: 210px; z-index: 9999;
}
#cseo-header .cseo-menu > li:hover > ul,
#cseo-header .cseo-menu > li.open > ul { display: block; }
#cseo-header .cseo-menu > li > ul > li > a {
  font-family: 'Rubik', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none; border-bottom: none;
  display: block; padding: 10px 20px; white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
#cseo-header .cseo-menu > li > ul > li > a:hover { background: var(--surface); color: var(--primary); border-bottom: none; }
#cseo-header .cseo-menu > li > ul > li.current-menu-item > a { color: var(--primary); font-weight: 600; }

/* Chevron on parent items that have a sub-menu */
#cseo-header .cseo-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block; width: 7px; height: 7px; margin-left: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  vertical-align: middle;
}

#cseo-header .header-actions {
  margin-left: auto; display: flex; align-items: center; gap: 20px;
}
#cseo-header .header-actions .book-btn {
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 15px;
  color: #fff; background: var(--primary); border-radius: var(--radius-btn);
  padding: 12px 22px; text-decoration: none; border-bottom: none;
  transition: background .15s ease;
}
#cseo-header .header-actions .book-btn:hover { background: var(--primary-700); border-bottom: none; }

/* Mobile nav toggle */
#cseo-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; margin-left: auto;
  flex-direction: column; gap: 5px;
}
#cseo-mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); transition: .2s ease;
}
#cseo-mobile-nav {
  display: none; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
#cseo-mobile-nav a {
  font-family: 'Rubik', sans-serif; font-size: 16px; font-weight: 500;
  color: var(--ink); text-decoration: none; border-bottom: none;
  padding: 14px var(--gutter); border-bottom: 1px solid var(--line-inner);
  display: block; transition: color .15s ease;
}
#cseo-mobile-nav a:hover { color: var(--primary); }
#cseo-mobile-nav a.book { color: #fff; background: var(--primary); font-weight: 700; }
#cseo-mobile-nav.open { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
#cseo-footer {
  background: var(--dark); color: #fff;
  font-family: 'Nunito', sans-serif;
}
#cseo-footer .footer-grid {
  max-width: var(--container); margin: 0 auto;
  padding: 72px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 48px;
}
#cseo-footer .footer-brand-logo {
  display: flex; align-items: center; gap: 11px; margin-bottom: 18px;
  text-decoration: none; border-bottom: none;
}
#cseo-footer .footer-brand-logo:hover { border-bottom: none; }
#cseo-footer .footer-brand-logo img { width: 32px; height: auto; display: block; }
#cseo-footer .footer-brand-logo .wordmark {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 19px; color: #fff;
}
#cseo-footer .footer-brand-logo .accent { color: var(--primary); }
#cseo-footer .footer-blurb { font-size: 15px; line-height: 1.65; color: #9aa6b2; margin: 0 0 20px; max-width: 34ch; }
#cseo-footer .footer-nda {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Rubik', sans-serif; font-size: 13px; font-weight: 600; color: var(--primary);
}
#cseo-footer .footer-nda .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
#cseo-footer .footer-col-heading {
  font-family: 'Rubik', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #6f7c86;
  margin-bottom: 18px;
}
#cseo-footer .footer-links { display: flex; flex-direction: column; gap: 12px; }
#cseo-footer .footer-links a {
  color: #C8D0D8; text-decoration: none; font-size: 15px;
  border-bottom: none; transition: color .15s ease;
}
#cseo-footer .footer-links a:hover { color: var(--primary); border-bottom: none; }
#cseo-footer .footer-newsletter-desc { font-size: 14px; line-height: 1.6; color: #9aa6b2; margin: 0 0 16px; }
#cseo-footer .footer-bar {
  border-top: 1px solid rgba(255,255,255,.08);
}
#cseo-footer .footer-bar-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
#cseo-footer .footer-copy { font-size: 14px; color: #6f7c86; }
#cseo-footer .footer-legal { margin-left: auto; display: flex; gap: 24px; }
#cseo-footer .footer-legal a {
  color: #6f7c86; text-decoration: none; font-size: 14px;
  border-bottom: none; font-weight: 400;
  transition: color .15s ease;
}
#cseo-footer .footer-legal a:hover { color: #C8D0D8; border-bottom: none; }

/* ============================================================
   BLOG / POSTS
   ============================================================ */
/* Category chip */
.cseo-cat-chip {
  font-family: 'Rubik', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary-700); background: var(--primary-50);
  border-radius: var(--radius-pill); padding: 5px 12px;
  border-bottom: none; display: inline-block;
}
.cseo-cat-chip.accent {
  color: var(--accent); background: transparent;
  padding: 0;
}
.cseo-cat-chip:hover { border-bottom: none; }

.cseo-filter-chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cseo-filter-chip {
  font-family: 'Rubik', sans-serif; font-size: 14px; font-weight: 600;
  border-radius: var(--radius-pill); padding: 9px 18px;
  cursor: pointer; text-decoration: none; border-bottom: none;
  transition: background .15s, color .15s;
}
.cseo-filter-chip.active { color: #fff; background: var(--primary); }
.cseo-filter-chip.inactive { color: var(--ink-muted); background: #F2F5F4; }
.cseo-filter-chip.inactive:hover { border-bottom: none; }

/* Post card */
.cseo-post-card { text-decoration: none; display: block; border-bottom: none; }
.cseo-post-card:hover { border-bottom: none; }
.cseo-post-card:hover .post-title { color: var(--primary); }
.cseo-post-thumb {
  aspect-ratio: 16/10; border-radius: var(--radius-card);
  overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line);
}
.cseo-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cseo-post-thumb.placeholder {
  background-image: repeating-linear-gradient(135deg,#EDF2F0 0 14px,#E3EBE7 14px 28px);
}
.cseo-post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cseo-post-meta .sep { color: var(--ink-subtle); font-size: 13px; }
.cseo-post-meta .read-time { font-size: 13px; color: var(--ink-subtle); }
.post-title {
  font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 20px;
  line-height: 1.3; margin: 0 0 10px; color: var(--ink-heading);
  transition: color .15s;
}
.post-excerpt { font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* Featured post card */
.cseo-featured-post {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px;
  align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  text-decoration: none; border-bottom: none;
  transition: border-color .15s;
}
.cseo-featured-post:hover { border-color: var(--primary); border-bottom: none; }
.cseo-featured-post .featured-thumb {
  aspect-ratio: 16/10; border-radius: var(--radius-card);
  overflow: hidden; border: 1px solid var(--line);
}
.cseo-featured-post .featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cseo-featured-post .featured-thumb.placeholder {
  background-image: repeating-linear-gradient(135deg,#E7EEEC 0 14px,#DDE6E2 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.cseo-featured-post .featured-content { padding: 8px 28px 8px 0; }
.cseo-featured-post .featured-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.cseo-featured-post .featured-title {
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 30px;
  line-height: 1.22; letter-spacing: -0.01em;
  margin: 0 0 14px; color: var(--ink-heading);
}
.cseo-featured-post .featured-excerpt { font-size: 16px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 20px; }
.cseo-featured-post .featured-author { display: flex; align-items: center; gap: 12px; }
.cseo-featured-post .author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: #cfe7df; border: 1px solid #b6d8cd; overflow: hidden;
}
.cseo-featured-post .author-name {
  font-family: 'Rubik', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink-heading);
}
.cseo-featured-post .author-date { font-size: 13px; color: var(--ink-subtle); }

/* Pagination */
.cseo-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; }
.cseo-pagination .page-num, .cseo-pagination .page-dots, .cseo-pagination .page-next {
  font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 15px;
  border-radius: var(--radius-btn);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; border-bottom: none;
  transition: background .15s, color .15s;
}
.cseo-pagination .page-num { color: var(--ink-muted); background: #F2F5F4; }
.cseo-pagination .page-num.current { color: #fff; background: var(--primary); }
.cseo-pagination .page-num:hover { background: var(--primary-50); color: var(--primary); border-bottom: none; }
.cseo-pagination .page-next {
  width: auto; padding: 0 18px;
  color: var(--ink-muted); background: #F2F5F4;
}
.cseo-pagination .page-next:hover { background: var(--primary-50); color: var(--primary); border-bottom: none; }

/* ============================================================
   SINGLE POST PROSE
   ============================================================ */
.cseo-prose {
  max-width: 720px; margin: 0 auto;
  font-family: 'Nunito', sans-serif; font-size: 18px; line-height: 1.7;
  color: var(--ink);
}
.cseo-prose h2 {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 28px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--ink-heading); margin: 2em 0 .6em;
}
.cseo-prose h3 {
  font-family: 'Rubik', sans-serif; font-weight: 600;
  font-size: 22px; line-height: 1.3;
  color: var(--ink-heading); margin: 1.6em 0 .5em;
}
.cseo-prose p { margin: 0 0 1.4em; }
.cseo-prose ul, .cseo-prose ol { padding-left: 1.6em; margin: 0 0 1.4em; }
.cseo-prose li { margin-bottom: .5em; }
.cseo-prose blockquote {
  border-left: 4px solid var(--primary);
  margin: 2em 0; padding: 1em 1.5em;
  background: var(--primary-50); border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.cseo-prose blockquote p { font-style: italic; color: var(--ink-heading); margin: 0; font-size: 19px; }
.cseo-prose a { color: var(--accent); font-weight: 700; }
.cseo-prose img { max-width: 100%; border-radius: var(--radius-card); margin: 2em 0; }
.cseo-prose .wp-block-image { margin: 2em 0; }

/* Post header breadcrumb */
.cseo-breadcrumb { font-size: 14px; color: var(--ink-subtle); margin-bottom: 32px; }
.cseo-breadcrumb a { color: var(--ink-subtle); font-weight: 400; border-bottom: none; }
.cseo-breadcrumb a:hover { color: var(--primary); border-bottom: none; }
.cseo-breadcrumb .sep { margin: 0 8px; }
.cseo-breadcrumb .current { color: var(--primary); font-weight: 600; }

/* Tags */
.cseo-tag {
  font-family: 'Rubik', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--ink-muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 5px 12px; text-decoration: none; border-bottom: none;
  transition: border-color .15s, color .15s;
}
.cseo-tag:hover { color: var(--primary); border-color: var(--primary); border-bottom: none; }

/* Author card */
.cseo-author-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-panel); padding: 28px 32px;
  display: flex; gap: 24px; align-items: flex-start;
}
.cseo-author-card .author-photo {
  width: 72px; height: 72px; border-radius: 50%;
  background: #cfe7df; border: 1px solid #b6d8cd;
  overflow: hidden; flex-shrink: 0;
}
.cseo-author-card .author-photo img { width: 100%; height: 100%; object-fit: cover; }
.cseo-author-card .author-name-lg {
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--ink-heading); margin-bottom: 4px;
}
.cseo-author-card .author-role { font-size: 14px; color: var(--ink-subtle); margin-bottom: 10px; }
.cseo-author-card .author-bio { font-size: 15px; line-height: 1.65; color: var(--ink-muted); margin: 0; }

/* Share row */
.cseo-share-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cseo-share-row .share-label {
  font-family: 'Rubik', sans-serif; font-size: 14px; font-weight: 600; color: var(--ink-subtle);
}
.cseo-share-btn {
  font-family: 'Rubik', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--ink-muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 7px 16px; text-decoration: none; border-bottom: none;
  transition: color .15s, border-color .15s;
}
.cseo-share-btn:hover { color: var(--primary); border-color: var(--primary); border-bottom: none; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.cseo-contact-icon-row { display: flex; gap: 14px; align-items: flex-start; }
.cseo-contact-icon-chip {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cseo-contact-detail-label {
  font-family: 'Rubik', sans-serif; font-size: 13px; font-weight: 600; color: var(--ink-subtle);
}
.cseo-contact-detail-val { font-size: 16px; color: var(--ink-heading); font-weight: 600; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.cseo-dark-stats {
  background: var(--dark);
}
.cseo-dark-stats-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 64px var(--gutter);
  display: grid; grid-template-columns: repeat(4,1fr); gap: 32px;
  text-align: center;
}
.cseo-dark-stat-num {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 46px; line-height: 1;
}
.cseo-dark-stat-num.green { color: var(--primary); }
.cseo-dark-stat-num.white { color: #fff; }
.cseo-dark-stat-label { font-size: 15px; color: #9aa6b2; margin-top: 12px; }

/* Team cards */
.cseo-team-card { text-align: center; }
.cseo-team-photo {
  aspect-ratio: 1/1; border-radius: 14px;
  overflow: hidden; margin-bottom: 16px;
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(135deg,#EEF3F1 0 12px,#E4ECE8 12px 24px);
}
.cseo-team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cseo-team-name {
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 17px;
  color: var(--ink-heading);
}
.cseo-team-role { font-size: 14px; color: var(--ink-subtle); margin-top: 3px; }

/* ============================================================
   SERVICES HERO BREADCRUMB
   ============================================================ */
.cseo-service-breadcrumb {
  font-size: 14px; color: var(--ink-subtle);
  margin-bottom: 0; padding: 40px var(--gutter) 0;
  max-width: var(--container); margin-left: auto; margin-right: auto;
}
.cseo-service-breadcrumb a { color: var(--ink-subtle); font-weight: 400; border-bottom: none; }
.cseo-service-breadcrumb a:hover { color: var(--primary); border-bottom: none; }
.cseo-service-breadcrumb .sep { margin: 0 10px; }
.cseo-service-breadcrumb .current { color: var(--primary); font-weight: 600; }

/* Deliverables check list */
.cseo-check-list { display: flex; flex-direction: column; gap: 12px; }
.cseo-check-item {
  display: flex; gap: 12px;
  font-family: 'Nunito', sans-serif; font-size: 16px; color: var(--ink);
}
.cseo-check-item .chk { color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   PRICING CARDS
   ============================================================ */
.cseo-pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--gap); align-items: start;
}
.cseo-pricing-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-panel); padding: 34px 30px;
  position: relative;
}
.cseo-pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 18px 44px rgba(23,184,144,.16);
}
.cseo-pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.cseo-pricing-name {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 20px; margin: 0 0 6px; color: var(--ink-heading);
}
.cseo-pricing-desc { font-size: 14px; color: var(--ink-subtle); margin: 0 0 22px; }
.cseo-pricing-price {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px;
}
.cseo-pricing-from { font-family: 'Rubik', sans-serif; font-size: 15px; color: var(--ink-subtle); }
.cseo-pricing-amount {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 42px; line-height: 1; color: var(--ink-heading);
}
.cseo-pricing-per { font-size: 15px; color: var(--ink-subtle); }
.cseo-pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.cseo-pricing-feature {
  display: flex; gap: 10px;
  font-family: 'Nunito', sans-serif; font-size: 15px; color: var(--ink-muted);
}
.cseo-pricing-feature .chk { color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   OVERRIDE GP DEFAULTS ON CUSTOM TEMPLATES
   ============================================================ */

/*
 * The MOST important rule: strip every box that GP places around
 * page content so our full-width sections can breathe.
 * We target via body class wildcard so it catches the actual
 * class WordPress generates (page-template-page-templates-*).
 */
body[class*="page-template"] .site-inner,
body[class*="page-template"] .content-area,
body[class*="page-template"] .site-main,
body[class*="page-template"] .hentry,
body[class*="page-template"] .entry-header,
body[class*="page-template"] .entry-content,
body[class*="page-template"] .entry-footer,
body[class*="page-template"] .page-header,
body.blog .site-inner,
body.blog .content-area,
body.blog .site-main,
body.blog .hentry,
body.blog .entry-content,
body.single-post .site-inner,
body.single-post .content-area,
body.single-post .site-main,
body.single-post .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  /* GP sometimes sets display:flex on site-main — kill it */
  display: block !important;
}

/* GP Premium adds top-padding to .site-inner via Customizer */
body[class*="page-template"] .site-inner,
body.blog .site-inner,
body.single-post .site-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* GP's .page-header (above entry-content breadcrumb bar) */
body[class*="page-template"] .page-header { display: none !important; }

/* Remove default GP nav styles that might conflict */
#cseo-header ~ .main-navigation,
.generate-back-to-top { display: none !important; }

/* Hide GP's own header/nav if our hook removal didn't fire in time */
.site-header,
.main-navigation,
.header-widgets { display: none !important; }

/* GP footer widget area — hidden; we use our own footer */
.site-footer,
.footer-widgets,
.footer-widgets-container { display: none !important; }

/* But keep OUR footer visible */
#cseo-footer { display: block !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-py: 64px; --gutter: 24px; }
  .cseo-grid-4 { grid-template-columns: repeat(2,1fr); }
  #cseo-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 48px; --gutter: 20px; }

  h1 { font-size: 34px; }
  h2 { font-size: 26px; }

  /* Hero */
  .cseo-hero-grid { grid-template-columns: 1fr !important; }
  .cseo-hero-image-wrap { display: none; }

  /* Grids */
  .cseo-grid-2,
  .cseo-grid-3,
  .cseo-grid-4 { grid-template-columns: 1fr; }

  /* Pricing */
  .cseo-pricing-grid { grid-template-columns: 1fr; }

  /* Featured post */
  .cseo-featured-post { grid-template-columns: 1fr; }
  .cseo-featured-post .featured-content { padding: 8px 0 0; }

  /* About dark stats */
  .cseo-dark-stats-inner { grid-template-columns: repeat(2,1fr); }

  /* Team */
  .cseo-grid-4.team-grid { grid-template-columns: repeat(2,1fr); }

  /* Contact form */
  .cseo-form-row { grid-template-columns: 1fr; }

  /* Footer */
  #cseo-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  #cseo-footer .footer-bar-inner { flex-direction: column; align-items: flex-start; }
  #cseo-footer .footer-legal { margin-left: 0; }

  /* Header desktop nav → mobile */
  #cseo-header #cseo-primary-nav,
  #cseo-header .header-actions .book-btn { display: none; }
  #cseo-mobile-toggle { display: flex; }

  /* Testimonial */
  .cseo-testimonial-body { font-size: 20px; }

  /* Process steps */
  .cseo-grid-4.process-grid { grid-template-columns: 1fr; }
  .cseo-process-step .step-line { display: none; }

  /* Service page */
  .cseo-contact-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .cseo-email-strip { flex-direction: column; }
  .cseo-newsletter-strip { flex-direction: column; }
}
