/*
Theme Name:  SEO Handywoman v2
Theme URI:   https://seohandywoman.com
Description: Clean, warm, conversion-focused theme for SEO Handywoman digital products. Coral tint base, no dark green.
Version:     2.0
Author:      SEO Handywoman
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette */
  --coral:        #FF6B52;
  --coral-dark:   #C94332;
  --coral-light:  #FFE8E4;
  --coral-xlight: #FFF5F3;  /* page background */
  --coral-border: #FDDDD7;
  --sage:         #5A9E7A;
  --sage-light:   #EAF4EE;
  --sage-dark:    #3B7558;
  --white:        #FFFFFF;
  --text:         #3D4852;
  --text-soft:    #5A6472;
  --text-muted:   #8A96A0;
  --border:       #FDDDD7;
  --surface:      #FFF0ED;

  /* Typography */
  --font-head: 'Lora', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Sizing */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-pill:999px;
  --max-w:      1080px;
  --nav-h:      72px;

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(255,107,82,.08);
  --shadow-md:  0 4px 24px rgba(255,107,82,.12);
  --shadow-lg:  0 12px 48px rgba(255,107,82,.14);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 18px; }
body  {
  font-family: var(--font-body);
  background:  var(--coral-xlight);
  color:       var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}
/* WordPress body wrapper — ensure full width */
#page, .site, #content, #primary, #main, .site-content,
#wpcontent, #wpbody { width: 100%; max-width: 100%; margin: 0; padding: 0; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.25rem; color: var(--text-soft); font-size: 1.05rem; line-height: 1.85; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 14px;
  border-radius: var(--radius-pill); margin-bottom: 1.25rem;
}
.eyebrow-coral { background: var(--coral-light); color: var(--coral-dark); }
.eyebrow-sage  { background: var(--sage-light);  color: var(--sage-dark);  }
.eyebrow-white { background: rgba(255,255,255,.2); color: white; }

em { font-style: italic; color: var(--coral); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap   { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.wrap-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 1.5rem; }
.section-sm { padding: 4.5rem 1.5rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600;
  cursor: pointer; border: none;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral); color: white;
  box-shadow: 0 4px 16px rgba(255,107,82,.3);
}
.btn-primary:hover {
  background: var(--coral-dark); color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,82,.35);
}
.btn-secondary {
  background: white; color: var(--coral);
  border: 2px solid var(--coral);
}
.btn-secondary:hover {
  background: var(--coral); color: white;
  transform: translateY(-2px);
}
.btn-white {
  background: white; color: var(--coral-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.btn-white:hover { transform: translateY(-2px); color: var(--coral-dark); }
.btn-ghost-white {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-ghost-white:hover { border-color: white; color: white; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .82rem; }

/* WooCommerce button override */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600;
  background: var(--coral); color: white;
  box-shadow: 0 4px 16px rgba(255,107,82,.3);
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--coral-dark); color: white;
  transform: translateY(-2px);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--coral); color: white; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  background: white;
  border-bottom: 1px solid var(--coral-border);
  height: auto;
  min-height: var(--nav-h);
  position: relative;
  z-index: 9999;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
/* Admin bar compensation — prevents nav being hidden behind WP admin bar */
.admin-bar .site-header { position: relative; top: 0; }
/* When Elementor renders full-page, ensure our header still shows above everything */
body:not(.elementor-page) .site-header { z-index: 9999; }
.elementor-page .site-header { z-index: 9999; position: relative; }
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 2rem;
  min-height: var(--nav-h);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: nowrap;
  box-sizing: border-box;
}
/* Custom logo image — constrain height so it never overflows nav */
.site-logo img,
.site-logo .custom-logo,
.site-logo a img,
header .custom-logo-link img,
.nav-inner img {
  max-height: 44px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
}
/* Prevent Elementor header styles leaking into theme header */
.site-header * { box-sizing: border-box; }
.site-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo em { color: var(--coral); font-style: italic; }
.site-nav { display: flex; align-items: center; gap: 2rem; }

/* Force WordPress menu ul to be horizontal */
.site-nav ul,
.site-nav ul.menu,
.site-nav .menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.site-nav ul li,
.site-nav .menu li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
/* Hide sub-menus for now */
.site-nav ul li ul,
.site-nav .menu li ul { display: none; }

.site-nav a {
  font-size: 1rem; font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--coral); }
.site-nav a.current-menu-item,
.site-nav li.current-menu-item > a,
.site-nav li.current_page_item > a { color: var(--coral); font-weight: 600; }
.nav-cta {
  background: var(--coral); color: white;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: .88rem; font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--coral-dark); color: white; transform: translateY(-1px); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  color: var(--text);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 4px 0;
  transition: transform .2s, opacity .2s;
  border-radius: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #4A5568;
  color: rgba(255,255,255,.65);
  padding: 4rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .site-logo { color: white; font-size: 1.2rem; }
.footer-brand p { font-size: .88rem; line-height: 1.75; margin-top: .75rem; color: rgba(255,255,255,.55); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: .88rem; color: rgba(255,255,255,.6);
  text-decoration: none; transition: color .2s;
}
.footer-col ul li a:hover { color: var(--coral); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: rgba(255,255,255,.35);
  flex-wrap: wrap; gap: .5rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: white;
  border: 1px solid var(--coral-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-featured { border: 2px solid var(--coral); }

.card-type {
  font-size: .7rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-muted);
}
.card h3 { font-size: 1rem; line-height: 1.35; }
.card p  { font-size: .88rem; line-height: 1.65; flex: 1; }
.card-solve {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  background: var(--coral-light); color: var(--coral-dark);
  padding: 3px 10px; border-radius: 6px; width: fit-content;
}
.card-price { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--coral-border); margin-top: auto; }

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero-coral { background: var(--coral); }
.hero-white  { background: white; }
.hero-tint   { background: var(--coral-xlight); }

.hero-coral h1,
.hero-coral h2 { color: white !important; }
.hero-coral h1 em,
.hero-coral h2 em { color: rgba(255,255,255,.75) !important; font-style: italic; }
.hero-coral .hero-sub,
.hero-coral p { color: rgba(255,255,255,.85) !important; }

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.hero-sub { font-size: 1.1rem; line-height: 1.8; max-width: 600px; margin-bottom: 2rem; }
.hero-sub-center { max-width: 600px; margin: 0 auto 2rem; text-align: center; }

/* ============================================================
   AUDIENCE / PROBLEM PICKER CARDS
   ============================================================ */
.prob-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.prob-card:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.4);
  transform: translateY(-3px);
}
.prob-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.prob-aud  { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.prob-title{ font-size: .85rem; color: white; font-weight: 600; line-height: 1.35; flex: 1; }
.prob-cta  { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.5); transition: color .2s; }
.prob-card:hover .prob-cta { color: white; }

/* ============================================================
   TOOLBOX / AUDIENCE CARDS
   ============================================================ */
.toolbox-card {
  background: white; border: 1px solid var(--coral-border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
  position: relative;
}
.toolbox-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--coral); transform: scaleX(0);
  transform-origin: left; transition: transform .25s;
}
.toolbox-card:hover::before { transform: scaleX(1); }
.toolbox-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.toolbox-card-header { padding: 1.5rem 1.5rem 1rem; }
.toolbox-card-icon { font-size: 1.6rem; margin-bottom: .6rem; }
.toolbox-card-overline { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.toolbox-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
.toolbox-card p  { font-size: .82rem; color: var(--text-soft); line-height: 1.6; }
.toolbox-card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--coral-border); margin-top: auto; }
.toolbox-card-cta { font-size: .82rem; font-weight: 700; color: var(--coral); display: flex; align-items: center; gap: 5px; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band { padding: 2.5rem 1.5rem; }
.stats-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 0 2.5rem; }
.stat-item + .stat-item { border-left: 1px solid var(--coral-border); }
.stat-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--coral); display: block; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: .78rem; color: var(--text-muted); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-card {
  background: white; border: 1px solid var(--coral-border);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.testi-stars { color: #E8834A; letter-spacing: 3px; margin-bottom: .75rem; }
.testi-card blockquote { font-size: .9rem; color: var(--text-soft); line-height: 1.75; margin-bottom: 1.25rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sage-light); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.testi-name { font-weight: 600; font-size: .85rem; color: var(--text); }
.testi-role { font-size: .75rem; color: var(--text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { border-top: 1px solid var(--coral-border); }
details { border-bottom: 1px solid var(--coral-border); }
summary {
  padding: 1.25rem 0; font-size: .95rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--coral-light); display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--coral); flex-shrink: 0; transition: background .2s; }
details[open] .faq-icon { background: var(--coral); color: white; }
.faq-a { padding-bottom: 1.25rem; font-size: .9rem; color: var(--text-soft); line-height: 1.8; }

/* ============================================================
   FORMS / EMAIL CAPTURE
   ============================================================ */
.email-form {
  display: flex; background: white;
  border-radius: var(--radius-pill);
  padding: 5px 5px 5px 1.25rem;
  border: 1px solid var(--coral-border);
  box-shadow: var(--shadow-sm);
}
.email-form input[type="email"] {
  flex: 1; border: none; outline: none;
  font-size: .9rem; font-family: var(--font-body);
  color: var(--text); background: transparent;
}
.email-form input[type="email"]::placeholder { color: var(--text-muted); }
.email-form button {
  background: var(--coral); color: white; border: none;
  padding: .65rem 1.1rem; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
  transition: background .2s;
}
.email-form button:hover { background: var(--coral-dark); }

/* ============================================================
   WOOCOMMERCE — WRAPPER & PRODUCT GRID
   ============================================================ */
.seohw-woo-wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.woocommerce-page .seohw-woo-wrap,
.woocommerce .seohw-woo-wrap { background: var(--coral-xlight); }
.woocommerce-notices-wrapper { padding: 0 2rem; max-width: var(--max-w); margin: 0 auto; }

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
}
.woocommerce ul.products li.product {
  background: white;
  border: 1px solid var(--coral-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  text-decoration: none; color: inherit;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  color: var(--text); line-height: 1.35;
}
.woocommerce ul.products li.product .price {
  font-size: 1.2rem; font-weight: 700; color: var(--text);
}
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .price del { font-size: .85rem; color: var(--text-muted); font-weight: 400; }
.woocommerce ul.products li.product img {
  border-radius: var(--radius-md);
  margin-bottom: .5rem;
}
.woocommerce span.onsale {
  background: var(--coral); color: white;
  border-radius: var(--radius-pill);
  font-size: .7rem; font-weight: 700;
  padding: 3px 10px; top: 1rem; left: 1rem;
}

/* ============================================================
   WOOCOMMERCE — SINGLE PRODUCT
   ============================================================ */
.woocommerce div.product .product_title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--text);
  line-height: 1.15; margin-bottom: .75rem;
}
.woocommerce div.product .price {
  font-family: var(--font-head);
  font-size: 2.5rem; font-weight: 700; color: var(--text);
}
.woocommerce div.product p.stock { color: var(--sage); font-weight: 600; }
.woocommerce div.product div.summary { padding: 0; }
.woocommerce #review_form #respond { background: white; border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--coral-border); }

/* ============================================================
   WOOCOMMERCE — CART & CHECKOUT
   ============================================================ */
.woocommerce table.shop_table {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--coral-border);
  background: white;
}
.woocommerce table.shop_table th {
  background: var(--coral-xlight);
  color: var(--text); font-weight: 600;
  padding: 1rem; font-size: .85rem;
}
.woocommerce table.shop_table td { padding: 1rem; border-top: 1px solid var(--coral-border); }
.woocommerce .cart-collaterals .cart_totals {
  background: white; border: 1px solid var(--coral-border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--coral-border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-family: var(--font-body);
  font-size: .9rem; width: 100%;
  background: white; color: var(--text);
  transition: border-color .2s;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  outline: none; border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,107,82,.1);
}
.woocommerce form .form-row label { font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; display: block; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-card {
  background: white; border: 1px solid var(--coral-border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-thumb { height: 180px; background: var(--coral-light); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.blog-card-cat { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--coral); }
.blog-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.blog-card p  { font-size: .82rem; color: var(--text-soft); line-height: 1.65; flex: 1; }
.blog-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--text-muted); margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--coral-border); }
.blog-card-read { font-size: .8rem; font-weight: 700; color: var(--coral); }

/* ============================================================
   GUIDE CARDS
   ============================================================ */
.guide-card {
  background: white; border: 1px solid var(--coral-border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.guide-card-hero { padding: 1.75rem 1.75rem 1.25rem; }
.guide-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: .5rem; }
.guide-card p  { font-size: .85rem; color: var(--text-soft); line-height: 1.65; }
.guide-card-stats { display: flex; padding: 1rem 1.75rem; border-top: 1px solid var(--coral-border); gap: 1.5rem; }
.guide-card-stat { text-align: center; }
.guide-card-stat-num { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--coral); display: block; line-height: 1; }
.guide-card-stat-lbl { font-size: .68rem; color: var(--text-muted); margin-top: 2px; display: block; }
.guide-card-footer { padding: 1rem 1.75rem; background: var(--coral-xlight); margin-top: auto; }
.guide-card-cta { font-size: .82rem; font-weight: 700; color: var(--coral); display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   AUDIENCE NAV (shop/guides sticky tabs)
   ============================================================ */
.aud-nav { background: white; border-bottom: 2px solid var(--coral-border); overflow-x: auto; position: sticky; top: 0; z-index: 50; }
.aud-nav-inner { max-width: var(--max-w); margin: 0 auto; display: flex; white-space: nowrap; padding: 0 1.5rem; }
.aud-tab { display: flex; align-items: center; gap: 7px; padding: .9rem 1.25rem; font-size: .85rem; font-weight: 600; color: var(--text-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s; }
.aud-tab:hover { color: var(--coral); border-bottom-color: var(--coral-light); }
.aud-tab.active { color: var(--coral); border-bottom-color: var(--coral); }

/* ============================================================
   SECTION DIVIDERS / BANDS
   ============================================================ */
.band-coral { background: var(--coral); padding: 5rem 1.5rem; }
.band-white  { background: white; padding: 6rem 1.5rem; }
.band-tint   { background: var(--coral-xlight); padding: 6rem 1.5rem; }
.band-sage   { background: var(--sage-light); padding: 6rem 1.5rem; }
.band-steel  { background: #4A5568; padding: 6rem 1.5rem; }  /* steel/charcoal - replaces all dark green */
.band-steel h2, .band-steel h3 { color: white !important; }
.band-steel h2 em { color: var(--sage-light) !important; font-style: italic; }
.band-steel p { color: rgba(255,255,255,.8) !important; }

.band-coral h2, .band-coral h3 { color: white !important; }
.band-coral h2 em { color: rgba(255,255,255,.75) !important; font-style: italic; }
.band-coral p,
.band-coral p[style] { color: rgba(255,255,255,.85) !important; }
.band-coral .btn-white { background: white; color: var(--coral-dark); }
.band-coral .btn-ghost-white { color: white; border-color: rgba(255,255,255,.5); }
.band-coral .btn-ghost-white:hover { border-color: white; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { background: white; border-bottom: 1px solid var(--coral-border); padding: .75rem 1.5rem; }
.breadcrumb-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb-inner a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--coral); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ============================================================
   BUY BOX (product pages)
   ============================================================ */
.buy-box { background: white; border: 2px solid var(--text); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); position: sticky; top: 2rem; }
.buy-box-header { text-align: center; padding-bottom: 1.25rem; border-bottom: 1px solid var(--coral-border); margin-bottom: 1.25rem; }
.buy-box-title { font-size: .82rem; color: var(--text-muted); margin-bottom: .5rem; }
.buy-box-price { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--text); line-height: 1; }
.buy-box-note  { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.buy-box .btn-primary { width: 100%; justify-content: center; font-size: 1rem; padding: 1rem; margin-bottom: .75rem; }
.buy-box-guarantees { display: flex; flex-direction: column; gap: 8px; padding-top: 1rem; border-top: 1px solid var(--coral-border); }
.buy-guarantee { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-soft); }
.buy-box-also { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--coral-border); font-size: .78rem; color: var(--text-muted); text-align: center; }
.buy-box-also a { color: var(--coral); font-weight: 600; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-wrap { background: white; border: 1px solid var(--coral-border); border-radius: var(--radius-lg); padding: 2.5rem; }
.contact-form-wrap input,
.contact-form-wrap textarea,
.contact-form-wrap select {
  width: 100%; border: 1px solid var(--coral-border);
  border-radius: var(--radius-sm); padding: .75rem 1rem;
  font-family: var(--font-body); font-size: .9rem;
  color: var(--text); background: var(--coral-xlight);
  transition: border-color .2s, background .2s;
  margin-bottom: 1rem;
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  outline: none; border-color: var(--coral);
  background: white;
  box-shadow: 0 0 0 3px rgba(255,107,82,.1);
}
.contact-form-wrap label { font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; display: block; }
.contact-form-wrap textarea { min-height: 140px; resize: vertical; }


/* ============================================================
   GUIDE & SINGLE POST CONTENT — READABILITY
   ============================================================ */
.entry-content,
.guide-content,
.band-tint .wrap > *,
.seohw-woo-wrap {
  font-size: 1.05rem;
  line-height: 1.85;
}
.entry-content p,
.guide-content p { font-size: 1.05rem; line-height: 1.85; color: var(--text-soft); margin-bottom: 1.25rem; }
.entry-content h2,
.guide-content h2 { font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.entry-content h3,
.guide-content h3 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: .75rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content ul li,
.entry-content ol li { font-size: 1.05rem; line-height: 1.8; margin-bottom: .4rem; list-style: disc; color: var(--text-soft); }
.entry-content a { color: var(--coral); font-weight: 500; }
.entry-content a:hover { color: var(--coral-dark); }
.entry-content strong { color: var(--text); font-weight: 600; }
.entry-content blockquote {
  border-left: 4px solid var(--coral);
  padding: 1rem 1.5rem;
  background: var(--coral-xlight);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-soft);
}

/* Resource cards in guide subtopic sections */
.resource-card {
  background: white;
  border: 1px solid var(--coral-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.resource-card.paid { border-left: 3px solid var(--coral); }
.resource-badge-free { background: var(--sage-light); color: var(--sage-dark); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-pill); }
.resource-badge-paid { background: var(--coral-light); color: var(--coral-dark); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-pill); }
.resource-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.resource-card p  { font-size: .9rem; color: var(--text-soft); line-height: 1.65; flex: 1; }
.resources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2.5rem; }
.subtopic-section { margin-bottom: 3.5rem; }
.subtopic-header { display: flex; align-items: flex-start; gap: 1.25rem; padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--coral-border); margin-bottom: 1.75rem; }
.subtopic-num { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--coral); opacity: .25; line-height: 1; flex-shrink: 0; }
.subtopic-header h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.subtopic-header p  { font-size: .95rem; color: var(--text-soft); line-height: 1.65; max-width: 600px; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  .stats-inner { gap: 0; }
  .stat-item { padding: 1.25rem 1.5rem; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid var(--coral-border); }
  .site-nav { display: none; }
  .nav-toggle { display: flex; flex-direction: column; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: white; padding: 1.5rem; border-bottom: 1px solid var(--coral-border); gap: 1rem; z-index: 99; }
}
@media (max-width: 580px) {
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 3.5rem 1.25rem; }
  .buy-box { position: static; }
}

/* ============================================================
   COLOR OVERRIDE — forced white text on colored backgrounds
   ============================================================ */
.band-coral p,
.band-steel p,
.hero-coral p,
section[style*="background:#FF6B52"] p,
section[style*="background:#4A5568"] p {
  color: rgba(255,255,255,.88) !important;
}
.band-coral h2, .band-coral h3,
.band-steel h2, .band-steel h3 { color: white !important; }


/* ============================================================
   ELEMENTOR CONTENT OVERRIDES
   Fix dark green (#1E2D24, #2D3436) backgrounds in Elementor sections
   and double email band on homepage.
   ============================================================ */

/* Replace ALL dark green Elementor section backgrounds with steel */
.elementor-section[data-settings*="1E2D24"],
.elementor-section[data-settings*="2D3436"],
.elementor-section[data-settings*="1e2d24"],
.elementor-section[data-settings*="2d3436"] {
    background-color: #4A5568 !important;
}

/* More aggressive: any elementor background that's very dark and greenish */
/* Target by inline style since Elementor sets background via inline styles */
.elementor-section[style*="background-color: #1E2D24"],
.elementor-section[style*="background-color: #1e2d24"],
.elementor-section[style*="background-color: #2D3436"],
.elementor-section[style*="background-color: #2d3436"],
.elementor-section[style*="background-color:#1E2D24"],
.elementor-section[style*="background-color:#1e2d24"],
.elementor-section[style*="background-color:#2D3436"],
.elementor-section[style*="background-color:#2d3436"],
.e-con[style*="background-color: #1E2D24"],
.e-con[style*="background-color: #1e2d24"],
.e-con[style*="background-color: #2D3436"],
.e-con[style*="background-color: #2d3436"] {
    background-color: #4A5568 !important;
}

/* Related guides / email sections at bottom of Elementor guide pages:
   Target the last 2 sections on guide pages specifically */
.guide-page .elementor-section:nth-last-child(-n+2) [style*="background"],
.single-guide .elementor-section:nth-last-child(-n+2) {
    background-color: transparent !important;
}

/* Homepage: suppress the footer.php email band when Elementor 
   already has an email section on the page */
.home .seohw-footer-email-band { display: none !important; }

/* Ensure the white email signup section stays white */
.seohw-email-white-section {
    background: white !important;
    color: #3D4852 !important;
}
.seohw-email-white-section h2,
.seohw-email-white-section h3 { color: #3D4852 !important; }
.seohw-email-white-section p   { color: #5A6472 !important; }

/* Fix: any Elementor section with #FF6B52 background that's 
   NOT a hero/CTA should not be double-stacked coral */
.elementor-location-single .elementor-section[style*="background-color: #FF6B52"]:not(:first-child),
.guide-page .elementor-section[style*="background-color: #FF6B52"]:last-child {
    background-color: #4A5568 !important;
}


/* ============================================================
   GUIDE PAGE — Hide duplicate Elementor sections
   The last two Elementor sections inside guide content are:
   1. Dark green "Continue Learning" block  — duplicate of PHP related guides section
   2. White "Free. Always." email block     — duplicate of PHP email signup section
   Both are removed via CSS. Our PHP template renders the correct versions.
   ============================================================ */

/* Hide the last two elementor sections inside guide content area */
.guide-main-content .elementor-section:nth-last-child(1),
.guide-main-content .elementor-section:nth-last-child(2),
.guide-main-content > .elementor-section:last-child,
.guide-main-content > .elementor-section:nth-last-child(2),

/* Elementor 3.x uses e-con containers instead of elementor-section */
.guide-main-content .e-con:nth-last-child(1),
.guide-main-content .e-con:nth-last-child(2),

/* Target by background color — dark green regardless of position */
.guide-main-content .elementor-section[style*="background-color: rgb(30, 45, 36)"],
.guide-main-content .elementor-section[style*="background-color:#1E2D24"],
.guide-main-content .elementor-section[style*="background-color: #1E2D24"],
.guide-main-content .elementor-section[style*="background-color:#1e2d24"],
.guide-main-content .elementor-section[style*="background-color: #1e2d24"],

/* Elementor often outputs rgb() not hex */
.guide-main-content [style*="background-color: rgb(30, 45, 36)"],
.guide-main-content [style*="background-color:rgb(30, 45, 36)"],
.guide-main-content [style*="background-color: rgb(30,45,36)"],

/* The white email section — target by its content structure */
/* It contains the "Stay current" / "Free. Always." email form */
.guide-main-content .elementor-section .seohw-signup-form,
.guide-main-content .elementor-section:has(.seohw-signup-form),
.guide-main-content .e-con:has(.seohw-signup-form) {
    display: none !important;
}

/* Nuclear option — hide the section containing any email form inside guide content */
.guide-main-content section:has(form[class*="signup"]),
.guide-main-content .elementor-section:has(form[class*="signup"]) {
    display: none !important;
}
