/*
Theme Name: Seniors Guide
Theme URI: https://seniorsguide.net.au
Author: Craig the Computer Geek
Author URI: https://seniorsguide.net.au
Description: A warm, accessible WordPress theme for seniors learning technology. Built for Craig the Computer Geek's Seniors Guide resource hub.
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seniorsguide
Tags: accessibility-ready, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --navy:        #1B3A5C;
  --navy-dark:   #122840;
  --teal:        #0D9488;
  --teal-light:  #14B8A6;
  --teal-pale:   #CCFBF1;
  --teal-pale2:  #F0FDFA;
  --accent:      #F59E0B;
  --accent-dark: #D97706;
  --white:       #FFFFFF;
  --off-white:   #F8FAFC;
  --slate:       #475569;
  --slate-light: #94A3B8;
  --border:      #E2E8F0;
  --red:         #DC2626;
  --green:       #16A34A;

  --font-display: 'Nunito', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(27,58,92,0.10), 0 2px 6px rgba(27,58,92,0.06);
  --shadow-lg:  0 12px 40px rgba(27,58,92,0.14), 0 4px 12px rgba(27,58,92,0.08);
  --shadow-teal: 0 8px 24px rgba(13,148,136,0.25);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:  1160px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-light); }
ul, ol { padding-left: 1.4em; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.bg-navy { background: var(--navy); }
.bg-teal { background: var(--teal); }
.bg-off-white { background: var(--off-white); }
.bg-teal-pale { background: var(--teal-pale2); }

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
}
.btn--primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(13,148,136,0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--secondary:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(245,158,11,0.30);
}
.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--teal-pale);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn--lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.btn--sm { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-pale);
}

.card__body { padding: 1.8rem; }
.card__icon {
  width: 60px; height: 60px;
  background: var(--teal-pale2);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
}
.card__title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--navy);
}
.card__excerpt {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-pale2);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-header__title { margin-bottom: 1rem; }
.section-header__subtitle {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 2rem;
}

.site-logo img, .site-logo svg { height: 60px; width: auto; }
.site-logo:hover { opacity: 0.9; }

.primary-nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.primary-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--teal);
  background: var(--teal-pale2);
}

/* Dropdown */
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 260px;
  padding: 0.3rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}
.primary-nav .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu a {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  line-height: 1.3;
}

.header-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4a73 50%, #0f3052 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230D9488' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13,148,136,0.2);
  border: 1px solid rgba(13,148,136,0.4);
  color: var(--teal-pale);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}
.hero__title span { color: var(--accent); }

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--teal-pale);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero__image {
  flex-shrink: 0;
  width: 340px;
}
.hero__image img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  animation: float 4s ease-in-out infinite;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.85rem;
  color: var(--teal-pale);
  margin-top: 0.25rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--navy-dark);
  padding: 1.2rem 0;
  border-bottom: 3px solid var(--teal);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--teal-pale);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ============================================================
   TOPICS GRID
   ============================================================ */
.topic-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.topic-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
}
.topic-card__header {
  padding: 1.8rem 1.8rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.topic-card__number {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.topic-card__icon-wrap {
  width: 48px; height: 48px;
  background: var(--teal-pale2);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.topic-card__title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.topic-card__body { padding: 0 1.8rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.topic-card__excerpt {
  font-size: 0.9rem;
  color: var(--slate);
  flex: 1;
  margin-bottom: 1.2rem;
}
.topic-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.topic-card__badge {
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  background: var(--teal-pale2);
  color: var(--teal);
}
.topic-card__badge--ebook {
  background: #FEF3C7;
  color: #92400E;
}

/* ============================================================
   ABOUT / CRAIG SECTION
   ============================================================ */
.about-section {
  background: var(--off-white);
}
.about-inner {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: start;
}
.about-image {
  position: relative;
}
.about-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.about-image__badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--accent);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  line-height: 1.3;
}

.about-content__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.about-content h2 { margin-bottom: 1.2rem; }
.about-content p { margin-bottom: 1rem; font-size: 1rem; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.8rem 0;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.about-feature__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.about-feature__text { font-size: 0.9rem; color: var(--slate); line-height: 1.5; }
.about-feature__text strong { display: block; color: var(--navy); font-family: var(--font-display); margin-bottom: 0.2rem; }

/* ============================================================
   LEAD MAGNET / FREEBIES SECTION
   ============================================================ */
.lead-magnet-section {
  background: linear-gradient(135deg, var(--teal) 0%, #0b7a6f 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.lead-magnet-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.lead-magnet-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.lead-magnet-content h2 { color: var(--white); margin-bottom: 1rem; }
.lead-magnet-content p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }

.lead-magnet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.lead-magnet-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.lead-magnet-list li:last-child { border-bottom: none; }
.lead-magnet-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--accent);
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.lead-magnet-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.lead-magnet-form h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.lead-magnet-form p {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate);
  background: var(--white);
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}
.form-note {
  font-size: 0.78rem;
  color: var(--slate-light);
  text-align: center;
  margin-top: 0.75rem;
}

/* ============================================================
   SHOP / EBOOKS
   ============================================================ */
.ebook-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.ebook-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
}
.ebook-card__cover {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.ebook-card__cover--teal   { background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%); }
.ebook-card__cover--accent { background: linear-gradient(135deg, var(--navy) 0%, #92400E 100%); }
.ebook-card__cover--purple { background: linear-gradient(135deg, var(--navy) 0%, #6D28D9 100%); }
.ebook-card__cover--green  { background: linear-gradient(135deg, var(--navy) 0%, #065F46 100%); }

.ebook-card__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--accent);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
}
.ebook-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.ebook-card__title { font-size: 1rem; margin-bottom: 0.5rem; }
.ebook-card__excerpt { font-size: 0.88rem; color: var(--slate); flex: 1; margin-bottom: 1.2rem; }
.ebook-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.ebook-card__price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal);
}
.ebook-card__price del {
  font-size: 0.9rem;
  color: var(--slate-light);
  font-weight: 400;
  margin-right: 0.25rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--off-white); }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--teal-pale);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card__stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}
.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-pale2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}
.testimonial-card__location { font-size: 0.8rem; color: var(--slate-light); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--teal-pale2);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid rgba(13,148,136,0.15);
}
.contact-detail__icon {
  width: 44px; height: 44px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-detail__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  display: block;
  margin-bottom: 0.2rem;
}
.contact-detail__value { color: var(--navy); font-weight: 600; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-form h3 { margin-bottom: 1.5rem; }
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate);
  resize: vertical;
  min-height: 130px;
  transition: border-color var(--transition);
}
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4a73 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(13,148,136,0.15) 0%, transparent 70%);
}
.cta-banner-inner { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: var(--teal-pale); font-size: 1.1rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 55px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--teal-pale); }

.footer-phone {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-bottom a { color: var(--teal-pale); }

/* ============================================================
   SINGLE TOPIC PAGE
   ============================================================ */
.topic-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4a73 100%);
  padding: 4rem 0;
  color: var(--white);
}
.topic-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.topic-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.75rem;
  display: block;
}
.topic-hero h1 { color: var(--white); margin-bottom: 1rem; }
.topic-hero__intro { color: var(--teal-pale); font-size: 1.1rem; max-width: 600px; }
.topic-hero__icon {
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.topic-content { padding: 4rem 0; }
.topic-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.topic-main h2 { margin: 2rem 0 1rem; color: var(--navy); }
.topic-main h3 { margin: 1.5rem 0 0.75rem; color: var(--teal); }
.topic-main p { margin-bottom: 1.1rem; }
.topic-main ul, .topic-main ol { margin-bottom: 1.1rem; }
.topic-main li { margin-bottom: 0.4rem; }

.tip-box {
  background: var(--teal-pale2);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.tip-box__label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.step-list { list-style: none; padding: 0; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(steps);
  width: 32px; height: 32px;
  min-width: 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
/* Label column — fixed width */
.step-list li span:first-child {
  min-width: 140px;
  max-width: 140px;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--navy);
}
/* Description column — fills remaining space */
.step-list li span:last-child {
  flex: 1;
  color: var(--slate);
}
@media (max-width: 600px) {
  .step-list li {
    flex-wrap: wrap;
  }
  .step-list li span:first-child {
    min-width: 100%;
    max-width: 100%;
  }
}

/* Topic sidebar */
.topic-sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.sidebar-card__header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
}
.sidebar-card__body { padding: 1.5rem; }
.sidebar-card__body--centered { text-align: center; }
.sidebar-ebook-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.25rem;
}
.sidebar-ebook-desc {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 1.2rem;
}

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 4rem 0;
  color: var(--white);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: var(--teal-pale); font-size: 1.1rem; }

.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--slate-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs a { color: var(--teal); }
.breadcrumbs span { margin: 0 0.5rem; }

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
  border-top-color: var(--teal);
  background: var(--teal-pale2);
}
.woocommerce .woocommerce-message::before { color: var(--teal); }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--teal);
  color: var(--white);
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  transition: all var(--transition);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--teal-light);
  color: var(--white);
}
.woocommerce .price { color: var(--teal); font-family: var(--font-display); }
.woocommerce .star-rating { color: var(--accent); }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { max-width: 360px; margin: 0 auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero__image { display: none; }
  .topic-content-grid { grid-template-columns: 1fr; }
  .topic-sidebar { position: static; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .section { padding: 3.5rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .lead-magnet-inner { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .primary-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem; box-shadow: var(--shadow-lg); border-top: 2px solid var(--border); }
  .primary-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-cta .btn:not(.btn--primary) { display: none; }
  .hero { padding: 4rem 0 3rem; }
  .hero__stats { gap: 1.5rem; }
  .trust-bar-inner { gap: 1.5rem; }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.4rem;
    position: relative;
  }
  .site-logo {
    order: 1;
  }
  .site-logo svg,
  .site-logo img,
  .custom-logo-link img {
    height: 48px !important;
  }
  .header-cta {
    order: 2;
    display: flex;
    justify-content: center;
  }
  .header-cta .btn--primary {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }
  .nav-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
  }
}

/* ============================================================
   SUBMENU BULLETS — teal arrow, replaces any emoji bullets
   ============================================================ */
.primary-nav .sub-menu li a::before {
    content: '\2713';
    color: #0D9488;
    background: #ffffff;
    border: 2px solid #ffffff;
    font-weight: 700;
    margin-right: 0.5rem;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ============================================================
   FIXES: SUBMENU BULLETS + IMAGE SIZING
   ============================================================ */

/* Submenu bullet — teal arrow replaces emoji */
.primary-nav .sub-menu li a::before {
    content: '\2713';
    color: #0D9488;
    background: #ffffff;
    border: 2px solid #ffffff;
    font-weight: 700;
    margin-right: 0.5rem;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Remove any emoji that was manually added as menu label */
/* (delete the ✅ from Appearance → Menus labels) */

/* ── Logo sizing ── */
.site-logo img,
.site-logo .custom-logo,
.custom-logo-link img {
    height: 60px !important;
    width: auto !important;
    max-width: 280px !important;
    display: block;
}

/* Footer logo */
.footer-brand img,
.footer-brand .custom-logo-link img {
    height: 55px !important;
    width: auto !important;
    max-width: 240px !important;
}

/* ── Cartoon / avatar image sizing ── */
.hero__image img {
    width: 100%;
    max-width: 340px;
    height: auto;
}

.about-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* ── Topic card icon wrap — keep emoji small ── */
.topic-card__icon-wrap {
    font-size: 1.4rem;
    line-height: 1;
}

/* ── Sidebar icon — keep emoji small ── */
.topic-hero__icon {
    font-size: 2.5rem;
    line-height: 1;
}

/* ── WooCommerce product images ── */
.woocommerce ul.products li.product img,
.woocommerce div.product div.images img {
    width: 100%;
    height: auto;
}

/* ============================================================
   WOOCOMMERCE — SHOP / ARCHIVE LAYOUT
   ============================================================ */

/* Product grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
    clear: both;
}

/* Product card */
.woocommerce ul.products li.product {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 32px rgba(13,148,136,0.13);
    transform: translateY(-3px);
}

/* Product image — capped height so cards don't dominate the page */
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
    display: block;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--navy);
    padding: 1rem 1rem 0.25rem;
    margin: 0;
}
.woocommerce ul.products li.product .price {
    padding: 0.25rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--teal) !important;
}
.woocommerce ul.products li.product .button {
    margin: 0.5rem 1rem 1rem !important;
    width: calc(100% - 2rem) !important;
    text-align: center;
    display: block;
}

/* No-image placeholder — prevent giant blank space */
.woocommerce ul.products li.product a:has(img[src*="woocommerce-placeholder"]) img,
.woocommerce ul.products li.product a img.woocommerce-placeholder {
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: var(--off-white);
    padding: 2rem;
}

/* Shop page title & sorting bar */
.woocommerce .woocommerce-products-header { margin-bottom: 1rem; }
.woocommerce .woocommerce-ordering { margin-bottom: 1.5rem; }

/* ============================================================
   WOOCOMMERCE — SINGLE PRODUCT PAGE
   ============================================================ */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.woocommerce div.product div.images { grid-column: 1; }
.woocommerce div.product div.summary { grid-column: 2; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 2rem; }
.woocommerce div.product div.images img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: auto;
    display: block;
}
.woocommerce div.product div.images {
    overflow: hidden;
}

.woocommerce div.product .product_title {
    font-family: var(--font-display);
    color: var(--navy);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.woocommerce div.product .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--teal) !important;
    margin-bottom: 1.5rem;
    display: block;
}
.woocommerce div.product .cart .single_add_to_cart_button {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* ============================================================
   WOOCOMMERCE — CART & CHECKOUT
   ============================================================ */
.woocommerce-cart table.cart,
.woocommerce-checkout .woocommerce {
    margin: 2rem 0;
}
.woocommerce table.shop_table {
    border-collapse: collapse;
    width: 100%;
}
.woocommerce table.shop_table th {
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1rem;
    text-align: left;
}
.woocommerce table.shop_table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

/* ============================================================
   WOOCOMMERCE — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .woocommerce ul.products { grid-template-columns: 1fr; gap: 1.25rem; }
    .woocommerce div.product {
        grid-template-columns: 1fr;
    }
    .woocommerce div.product div.summary { grid-column: 1; }
    .woocommerce div.product .woocommerce-tabs { grid-column: 1; }
}

/* ── General safety net: no image should overflow its container ── */
.site-header img,
.site-footer img,
.card img,
.topic-card img,
.ebook-card img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   EMOJI SIZE CONTROL — prevents OS emoji from rendering huge
   ============================================================ */

/* Constrain ALL emoji inside buttons to text size */
.btn {
    font-size: 0.95rem;
    line-height: 1.2;
}
.btn--lg { font-size: 1rem; }
.btn--sm { font-size: 0.88rem; }

/* Trust bar items */
.trust-item {
    font-size: 0.88rem;
}
.trust-item span:first-child {
    font-size: 0.9rem;
    line-height: 1;
    display: inline-block;
    width: 1.2em;
    text-align: center;
}

/* About feature icons */
.about-feature__icon {
    font-size: 1.3rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Contact detail icons */
.contact-detail__icon {
    font-size: 1.1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Sidebar card headers with emoji */
.sidebar-card__header {
    font-size: 0.95rem;
    text-align: center;
}

/* Topic hero icon — controlled size */
.topic-hero__icon {
    font-size: 2.5rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================================
   WOOCOMMERCE — SHOP / COMING SOON ALIGNMENT
   ============================================================ */

/* Coming Soon store page — reduce excessive top/bottom spacers to match
   the site's standard section top padding (~3rem instead of 100px) */
.woocommerce-coming-soon-store-only .wp-block-spacer[style*="height:100px"] {
    height: 40px !important;
}

/* Coming Soon — constrain content to the site container width
   so the centered heading aligns with the header/footer layout */
.woocommerce-coming-soon-store-only .wp-block-group {
    max-width: var(--max-width);
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

/* Shop archive — remove WooCommerce's own breadcrumb left padding
   (we use our own themed breadcrumb) */
.woocommerce nav.woocommerce-breadcrumb {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Shop products-header title — no extra left padding */
.woocommerce .woocommerce-products-header__title {
    padding-left: 0 !important;
}

/* ============================================================
   TOPICS ARCHIVE CARD — responsive 3-col → 1-col on mobile
   ============================================================ */
.topic-archive-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    overflow: hidden;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    transition: all 0.22s;
}
.topic-archive-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-lg);
}
.topic-archive-card__num {
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
}
.topic-archive-card__number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
}
.topic-archive-card__icon {
    font-size: 2rem;
}
.topic-archive-card__body {
    padding: 1.5rem 2rem;
}
.topic-archive-card__cta {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .topic-archive-card {
        grid-template-columns: 1fr;
    }
    .topic-archive-card__num {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }
    .topic-archive-card__number {
        font-size: 1.4rem;
    }
    .topic-archive-card__body {
        padding: 1.25rem 1.25rem 1rem;
    }
    .topic-archive-card__cta {
        border-left: none;
        border-top: 1px solid var(--border);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
    }
    .topic-archive-card__cta .btn {
        white-space: normal;
    }
}
