/* ============================================================
   Klaudeville — Main Stylesheet  v1.0.0
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #1D9E75;
  --teal-dark: #0F6E56;
  --teal-light: #E1F5EE;
  --gold: #EF9F27;
  --gold-light: #FAEEDA;
  --navy: #0D1B2A;
  --navy-mid: #1a2e42;
  --white: #ffffff;
  --off-white: #F7F6F2;
  --gray-100: #F1EFE8;
  --gray-300: #D3D1C7;
  --gray-500: #888780;
  --gray-700: #444441;
  --text-primary: #0D1B2A;
  --text-secondary: #5F5E5A;
  --text-muted: #888780;
  --border: rgba(13,27,42,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- NAV ---- */
#kl-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(247,246,242,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  height: 100%;
  max-width: 240px;
  flex-shrink: 0;
  overflow: hidden;
}
/* Bulletproof logo sizing — applies to both bundled and WordPress custom logo.
   The !important rules win against WordPress's inline width/height attributes
   on the_custom_logo() output. */
#kl-nav .nav-logo img,
#kl-nav .nav-logo .custom-logo-link img,
#kl-nav .nav-logo .custom-logo,
#kl-nav .kl-logo--nav {
  height: auto !important;
  width: auto !important;
  max-height: 40px !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: block !important;
}
.custom-logo-link {
  display: flex; align-items: center; height: 100%;
  line-height: 0;
}
@media (max-width: 480px) {
  .nav-logo { max-width: 160px; }
  #kl-nav .nav-logo img,
  #kl-nav .nav-logo .custom-logo-link img,
  #kl-nav .nav-logo .custom-logo,
  #kl-nav .kl-logo--nav {
    max-height: 32px !important;
    max-width: 150px !important;
  }
}

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links li a,
.nav-links a {
  font-size: 14px; color: var(--text-secondary);
  text-decoration: none; padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover,
.nav-links a:hover { color: var(--text-primary); background: var(--gray-100); }
.nav-links .nav-cta,
.nav-links li:last-child a {
  background: var(--teal) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
}
.nav-links .nav-cta:hover,
.nav-links li:last-child a:hover { opacity: 0.88 !important; }
.nav-mobile-btn {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--text-primary);
}

/* ---- HERO ---- */
.kl-hero-section { background: var(--off-white); }
.hero {
  padding: 140px 2rem 100px;
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-dark); background: var(--teal-light);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 1.5rem;
}
.hero-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700; line-height: 1.15; color: var(--text-primary); margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-body {
  font-size: 17px; color: var(--text-secondary); line-height: 1.75;
  margin-bottom: 2rem; max-width: 420px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: white;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; text-decoration: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(29,158,117,0.3);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); color: white; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-primary);
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1.5px solid var(--border); cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: var(--gray-100); border-color: var(--gray-300); color: var(--text-primary); }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: 4px;
}
.hero-stat-label { font-size: 12px; color: var(--text-muted); }
.hero-visual { position: relative; }
.hero-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.hero-card-top {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem;
}
.hero-card-badge {
  font-size: 11px; font-weight: 500;
  background: var(--teal-light); color: var(--teal-dark);
  padding: 4px 10px; border-radius: 20px;
}
.hero-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.hero-card h3 {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; margin-bottom: 6px;
}
.hero-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }
.hero-card-items { display: flex; flex-direction: column; gap: 8px; }
.hero-card-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--off-white); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-secondary);
}
.hci-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.floating-pill {
  position: absolute;
  background: white; box-shadow: var(--shadow-md);
  border-radius: 30px; padding: 8px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--text-primary); border: 1px solid var(--border);
  animation: kl-float 4s ease-in-out infinite;
  white-space: nowrap;
}
.fp1 { top: -16px; right: 24px; animation-delay: 0s; }
.fp2 { bottom: 24px; left: -16px; animation-delay: 2s; }
.fp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fp-teal { background: var(--teal); }
.fp-gold { background: var(--gold); }
@keyframes kl-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* ---- SHARED SECTION STYLES ---- */
.section { padding: 80px 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block; font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal-dark); background: var(--teal-light);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 1rem;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  color: var(--text-primary); line-height: 1.25; margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 16px; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* ---- SERVICES ---- */
.services-bg { background: white; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.service-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; cursor: default;
}
.service-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-light);
}
.service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--teal-light); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 1rem; color: var(--teal-dark);
}
.service-name { font-size: 15px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.service-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ---- WHO WE HELP ---- */
.targets-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 0.5rem; }
.target-pill {
  font-size: 14px; padding: 8px 20px; border-radius: 30px;
  border: 1.5px solid var(--border); color: var(--text-secondary); background: white;
  transition: all 0.2s; cursor: default;
}
.target-pill:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-light); }

/* ---- PROBLEMS ---- */
.problems-bg { background: var(--navy); }
.problems-bg .section-label { background: rgba(255,255,255,0.1); color: #9FE1CB; }
.problems-bg .section-header h2 { color: white; }
.problems-bg .section-header p { color: rgba(255,255,255,0.6); }
.problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.problem-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md); padding: 1.75rem;
  transition: background 0.2s, border-color 0.2s;
}
.problem-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(29,158,117,0.4); }
.problem-icon { font-size: 28px; margin-bottom: 1rem; display: block; }
.problem-title { font-size: 16px; font-weight: 500; color: white; margin-bottom: 8px; }
.problem-body { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* ---- ABOUT ---- */
.about-bg { background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(26px, 3.5vw, 36px); font-weight: 700;
  line-height: 1.25; margin-bottom: 1.25rem; color: var(--text-primary);
}
.about-text p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; }
.about-text .section-label { margin-bottom: 0.75rem; }
.about-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.5rem; }
.proof-item {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem; text-align: center;
}
.proof-num { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--teal); margin-bottom: 4px; }
.proof-label { font-size: 12px; color: var(--text-muted); }
.founders-col { display: flex; flex-direction: column; gap: 16px; }
.founder-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.5rem; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s;
}
.founder-card:hover { box-shadow: var(--shadow-md); }
.founder-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 16px; flex-shrink: 0;
}
.av-teal { background: var(--teal-light); color: var(--teal-dark); }
.av-gold { background: var(--gold-light); color: #854F0B; }
.founder-name { font-size: 15px; font-weight: 500; color: var(--text-primary); margin-bottom: 2px; }
.founder-role { font-size: 13px; color: var(--text-muted); }
.credibility-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 8px; }
.cred-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.cred-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-dark); font-size: 11px; font-weight: 700;
}

/* ---- PACKAGES ---- */
.packages-bg { background: var(--off-white); }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pkg-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; position: relative; transition: box-shadow 0.2s, transform 0.2s;
}
.pkg-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pkg-card.featured { border: 2px solid var(--teal); }
.pkg-featured-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: white; font-size: 11px; font-weight: 500;
  padding: 3px 14px; border-radius: 20px; white-space: nowrap;
}
.pkg-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.pkg-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }
.pkg-price { font-size: 24px; font-weight: 500; color: var(--teal); margin-bottom: 1.5rem; }
.pkg-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.pkg-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 1.25rem; }
.pkg-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.75rem; }
.pkg-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.pkg-check {
  width: 18px; height: 18px; border-radius: 50%; background: var(--teal-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-dark); font-size: 10px; font-weight: 700;
}
.pkg-cta {
  display: block; text-align: center; padding: 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.2s;
}
.pkg-cta-outline { border: 1.5px solid var(--border); color: var(--text-primary); }
.pkg-cta-outline:hover { background: var(--gray-100); border-color: var(--gray-300); color: var(--text-primary); }
.pkg-cta-filled { background: var(--teal); color: white !important; border: none; box-shadow: 0 2px 10px rgba(29,158,117,0.25); }
.pkg-cta-filled:hover { opacity: 0.88; }

/* ---- CTA / CONTACT ---- */
.cta-bg { background: var(--navy); padding: 100px 2rem; text-align: center; }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-inner .section-label { background: rgba(255,255,255,0.08); color: #9FE1CB; }
.cta-inner h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  color: white; line-height: 1.2; margin-bottom: 1.25rem;
}
.cta-inner h2 em { font-style: italic; color: var(--gold); }
.cta-inner p { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 2.5rem; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-white {
  background: white; color: var(--navy) !important; padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; text-decoration: none; transition: opacity 0.2s;
  display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-white:hover { opacity: 0.9; }
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.2); padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.45); color: white; }
.cta-note { font-size: 13px; color: rgba(255,255,255,0.35); margin-top: 1.5rem; }

/* ---- CONTACT FORM ---- */
.kl-contact-form {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 2rem; margin: 2rem 0;
  text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 500; }
.form-group label span { color: var(--gold); }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 14px; color: white; font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, background 0.2s; outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); background: rgba(255,255,255,0.12); }
.form-group textarea { resize: vertical; min-height: 100px; }
#kl-form-msg {
  margin-top: 12px; font-size: 14px; min-height: 20px;
  border-radius: var(--radius-sm); padding: 0;
}
#kl-form-msg.success { color: #9FE1CB; }
#kl-form-msg.error { color: #F0997B; }
#kl-submit { margin-top: 4px; }

/* ---- FOOTER ---- */
#kl-footer {
  background: var(--navy-mid); padding: 2.5rem 2rem; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
#kl-footer p { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 1rem; text-decoration: none;
}
.kl-logo--white,
.footer-logo-img {
  height: auto;
  width: auto;
  max-height: 42px;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.footer-nav { margin-top: 1rem; }
.footer-nav-list {
  list-style: none; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.footer-nav-list a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-nav-list a:hover { color: rgba(255,255,255,0.7); }

/* ---- SCROLL REVEAL ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- WORDPRESS ADMIN BAR OFFSET ---- */
.admin-bar #kl-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #kl-nav { top: 46px; } }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-grid, .case-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  #kl-nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(247,246,242,0.98); backdrop-filter: blur(12px);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border); gap: 4px; z-index: 199;
  }
  .nav-links.open li a { padding: 10px 12px; display: block; }
  .admin-bar .nav-links.open { top: 108px; }
  .nav-mobile-btn { display: flex; }
  .hero { grid-template-columns: 1fr; padding: 100px 1.25rem 60px; gap: 3rem; }
  .hero-visual { order: -1; }
  .floating-pill { display: none; }
  .section { padding: 60px 1.25rem; }
  .hero-stats { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
}

/* ---- PRINT ---- */
@media print {
  #kl-nav, .floating-pill, .nav-mobile-btn { display: none !important; }
  .hero { padding-top: 2rem; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- TESTIMONIALS ---- */
.testimonials-bg { background: white; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testimonial-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.testimonial-quote { font-size: 15px; color: var(--text-primary); line-height: 1.75; font-style: italic; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.av-blue { background: #E6F1FB; color: #0C447C; }

/* ============================================================
   V2 ADDITIONS — accessibility, page templates, anti-spam
   ============================================================ */

/* Skip-to-content link (accessibility) */
.kl-skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--teal); color: white; padding: 12px 20px;
  font-weight: 500; font-size: 14px; text-decoration: none;
  z-index: 9999; transition: top 0.2s;
  border-radius: 0 0 var(--radius-sm) 0;
}
.kl-skip-link:focus { top: 0; outline: 2px solid var(--gold); outline-offset: 2px; }

/* Honeypot — hide from humans, keep for bots */
.kl-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  visibility: hidden;
}

/* Form required indicator */
.kl-req { color: var(--gold); }
.kl-form-intro { margin-bottom: 1.5rem; }

/* Inner page template (page.php, singular.php) */
.kl-page-wrap {
  max-width: 760px; margin: 120px auto 80px; padding: 0 2rem;
}
.kl-page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.2;
  color: var(--text-primary); margin-bottom: 0.5rem;
}
.kl-post-date {
  font-size: 13px; color: var(--text-muted); margin-bottom: 2rem;
}
.kl-page-content {
  font-size: 16px; line-height: 1.8; color: var(--text-secondary);
}
.kl-page-content h2 {
  font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700;
  color: var(--text-primary); margin: 2rem 0 1rem;
}
.kl-page-content h3 {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700;
  color: var(--text-primary); margin: 1.5rem 0 0.75rem;
}
.kl-page-content p { margin-bottom: 1rem; }
.kl-page-content a { color: var(--teal); text-decoration: underline; }
.kl-page-content a:hover { color: var(--teal-dark); }
.kl-page-content ul, .kl-page-content ol { margin: 1rem 0 1rem 1.5rem; }
.kl-page-content li { margin-bottom: 0.5rem; }

/* 404 page */
.kl-404-wrap {
  max-width: 600px; margin: 160px auto 100px; padding: 0 2rem; text-align: center;
}
.kl-404-num {
  font-size: 80px; font-family: 'Playfair Display', serif;
  font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: 1rem;
}
.kl-404-wrap h1 {
  font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 1rem;
}
.kl-404-wrap p {
  font-size: 16px; color: var(--text-secondary); margin-bottom: 2rem;
}

/* Case study mini card in About */
.kl-case-mini { margin-top: 4px; }
.kl-case-title {
  font-family: 'Playfair Display', serif; font-size: 16px; margin-bottom: 8px;
}
.kl-case-body {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem;
}
.kl-case-results { display: flex; flex-wrap: wrap; gap: 6px; }
.kl-case-tag {
  font-size: 11px; background: var(--teal-light); color: var(--teal-dark);
  padding: 3px 10px; border-radius: 20px; font-weight: 500;
}

/* Focus styles — accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
.btn-white:focus-visible, .btn-ghost:focus-visible { outline-color: var(--gold); }
#main-content:focus { outline: none; }

/* Print improvements */
@media print {
  .kl-skip-link, .kl-honeypot, #kl-contact-form { display: none !important; }
}

/* ============================================================
   V2.1 — Case studies, 3-person team, refreshed about
   ============================================================ */

/* ---- CASE STUDIES ---- */
.case-studies-bg { background: white; }
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 2.5rem;
}
.case-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.case-card.featured {
  background: white;
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-md);
}
.case-badge {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
  margin-bottom: 1rem; align-self: flex-start;
}
.case-badge-teal { background: var(--teal-light); color: var(--teal-dark); }
.case-badge-gold { background: var(--gold-light); color: #854F0B; }
.case-badge-blue { background: #E6F1FB; color: #0C447C; }
.case-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.5rem;
  line-height: 1.25;
}
.case-platform {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 400;
  color: var(--text-muted);
}
.case-summary {
  font-size: 14px; line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.case-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 1.25rem; margin-bottom: 1.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.case-card.featured .case-stat-row {
  background: var(--off-white);
}
.case-stat { text-align: center; }
.case-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--teal); line-height: 1;
  margin-bottom: 4px;
}
.case-stat-label {
  font-size: 11px; color: var(--text-muted);
  line-height: 1.3;
}
.case-results {
  list-style: none; padding: 0; margin: 0;
}
.case-results li {
  font-size: 13px; line-height: 1.6;
  color: var(--text-secondary);
  padding: 6px 0 6px 22px;
  position: relative;
}
.case-results li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--teal);
  font-weight: 700;
}
.case-cta { text-align: center; }

/* ---- 3-PERSON TEAM GRID ---- */
.about-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.about-story-h {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.about-story p {
  font-size: 15px; line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.team-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto auto;
  gap: 4px 16px;
  transition: box-shadow 0.2s;
}
.team-card:hover { box-shadow: var(--shadow-sm); }
.team-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 18px;
  grid-row: 1 / 4;
}
.av-blue { background: #E6F1FB; color: #0C447C; }
.team-name {
  font-size: 16px; font-weight: 500;
  color: var(--text-primary);
}
.team-role {
  font-size: 13px; color: var(--teal-dark);
  font-weight: 500;
}
.team-bio {
  grid-column: 2;
  font-size: 13px; line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ---- RESPONSIVE — case studies & team ---- */
@media (max-width: 900px) {
  .about-grid-v2 { grid-template-columns: 1fr; gap: 2rem; }
  .case-stat-row { grid-template-columns: 1fr; gap: 8px; }
  .case-stat { text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .case-stat-num { font-size: 18px; }
}
@media (max-width: 600px) {
  .team-card { grid-template-columns: 44px 1fr; gap: 4px 12px; }
  .team-avatar { width: 44px; height: 44px; font-size: 15px; }
}

/* ---- v2.1.1 — Featured case headliner spans full width ---- */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.case-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}
.case-card.featured .case-badge,
.case-card.featured .case-title,
.case-card.featured .case-summary {
  grid-column: 1;
}
.case-card.featured .case-stat-row {
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
}
.case-card.featured .case-stat {
  text-align: left;
  display: flex; flex-direction: column; gap: 4px;
}
.case-card.featured .case-stat-num {
  font-size: 32px;
}
.case-card.featured .case-stat-label {
  font-size: 12px;
}
.case-card.featured .case-results {
  grid-column: 1;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .case-studies-grid { grid-template-columns: 1fr; }
  .case-card.featured {
    grid-template-columns: 1fr;
  }
  .case-card.featured .case-stat-row {
    grid-column: 1; grid-row: auto;
    grid-template-columns: repeat(3, 1fr);
  }
  .case-card.featured .case-stat { text-align: center; flex-direction: column; }
  .case-card.featured .case-stat-num { font-size: 22px; }
}

/* ============================================================
   V2.2 — Real team photos, 4-tier packages, proper agency footer
   ============================================================ */

/* ---- TEAM PHOTOS ---- */
.team-photo {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; object-position: center 30%;
  grid-row: 1 / 4;
  border: 2px solid var(--off-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
}
.team-card {
  grid-template-columns: 80px 1fr;
  gap: 8px 20px;
}
@media (max-width: 600px) {
  .team-photo { width: 56px; height: 56px; }
  .team-card { grid-template-columns: 56px 1fr; gap: 4px 14px; }
}

/* ---- 4-TIER PACKAGES GRID ---- */
.packages-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pkg-card.bespoke {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.pkg-card.bespoke .pkg-name { color: white; }
.pkg-card.bespoke .pkg-desc { color: rgba(255,255,255,0.65); }
.pkg-card.bespoke .pkg-price { color: var(--gold); }
.pkg-card.bespoke .pkg-divider { border-color: rgba(255,255,255,0.15); }
.pkg-card.bespoke .pkg-features li { color: rgba(255,255,255,0.75); }
.pkg-card.bespoke .pkg-check {
  background: rgba(239,159,39,0.2);
  color: var(--gold);
}
.pkg-card.bespoke .pkg-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border: none;
  font-weight: 500;
}
.pkg-card.bespoke .pkg-cta:hover { opacity: 0.9; }
.pkg-bespoke-badge {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

@media (max-width: 1100px) {
  .packages-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .packages-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER — proper agency 4-column footer
   ============================================================ */
#kl-footer {
  background: var(--navy);
  padding: 4rem 2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col {}
.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo-img {
  height: auto !important;
  width: auto !important;
  max-height: 44px !important;
  max-width: 220px !important;
  display: block;
}
.footer-tagline {
  font-size: 14px; line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
  max-width: 320px;
}
.footer-stats {
  display: flex; gap: 1.25rem;
}
.footer-stat {
  font-size: 12px; color: rgba(255,255,255,0.4);
}
.footer-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--teal);
  margin-bottom: 2px;
}
.footer-h {
  font-size: 13px; font-weight: 500;
  color: white;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: white;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0;
}
.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer-tagline-sm {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin: 0;
}
.footer-nav { margin-top: 0; }
.footer-nav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 1.25rem;
}
.footer-nav-list a {
  font-size: 13px; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.2s;
}
.footer-nav-list a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 900px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  #kl-footer { padding: 3rem 1.25rem 1.5rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.75rem; margin-bottom: 2rem; padding-bottom: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-stats { gap: 1rem; }
}

/* ============================================================
   V2.3 FINAL POLISH — mobile, perf, contact UX, micro-details
   ============================================================ */

/* ---- CONTACT FORM SUCCESS STATE ---- */
.kl-form-success {
  text-align: center;
  padding: 2rem 1rem;
  animation: kl-success-in 0.5s ease;
}
@keyframes kl-success-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.kl-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 36px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  animation: kl-check-pop 0.5s 0.2s both cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes kl-check-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.kl-form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: white; margin-bottom: 0.75rem;
}
.kl-form-success p {
  font-size: 15px; color: rgba(255,255,255,0.7);
  line-height: 1.7; max-width: 380px; margin: 0 auto;
}

/* ---- MOBILE NAV — polished ---- */
@media (max-width: 768px) {
  /* Mobile menu items: full-width, separated, clear hierarchy */
  .nav-links.open {
    padding: 1rem 1.25rem 1.5rem;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open li:last-child {
    border-bottom: none;
    margin-top: 8px;
  }
  .nav-links.open li a {
    padding: 14px 8px;
    font-size: 15px;
    color: var(--text-primary);
    border-radius: 0;
  }
  /* The book a call button stays distinct */
  .nav-links.open li:last-child a {
    text-align: center;
    margin-top: 4px;
  }
}

/* ---- HERO MOBILE — keep card visible but smaller ---- */
@media (max-width: 768px) {
  .hero {
    padding: 100px 1.25rem 50px;
    gap: 2rem;
  }
  .hero h1 { font-size: 36px; line-height: 1.15; }
  .hero-body { font-size: 16px; max-width: 100%; }
  .hero-actions { width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    flex: 1; justify-content: center;
    padding: 14px 16px;
    font-size: 14px;
  }
  .hero-stats { gap: 1rem; }
  .hero-stat-num { font-size: 22px; }
  .hero-card { padding: 1.5rem; }
  .hero-card h3 { font-size: 16px; }
  .hero-card p { font-size: 12px; }
  .hero-card-item { font-size: 12px; padding: 7px 10px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .hero-stat-num { font-size: 18px; }
  .hero-stat-label { font-size: 11px; }
}

/* ---- SECTION HEADERS MOBILE ---- */
@media (max-width: 600px) {
  .section { padding: 50px 1.25rem; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 24px; line-height: 1.25; }
  .section-header p { font-size: 14px; }
}

/* ---- SERVICES GRID MOBILE ---- */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service-card {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 4px 14px;
  }
  .service-icon {
    width: 44px; height: 44px;
    font-size: 18px; margin-bottom: 0;
    grid-row: 1 / 3;
  }
  .service-name { margin-bottom: 0; }
}

/* ---- CASE STUDIES MOBILE — make featured card not weird ---- */
@media (max-width: 900px) {
  .case-card { padding: 1.5rem; }
  .case-title { font-size: 18px; }
  .case-summary { font-size: 13px; }
  .case-results li { font-size: 12px; }
}

/* ---- PACKAGES MOBILE — cards stack cleanly ---- */
@media (max-width: 900px) {
  .packages-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pkg-card { padding: 1.5rem; }
  .pkg-name { font-size: 17px; }
  .pkg-price { font-size: 20px; }
  .pkg-features li { font-size: 13px; }
}
@media (max-width: 600px) {
  .packages-grid-4 { grid-template-columns: 1fr; gap: 14px; }
  .pkg-card.featured { transform: scale(1); }
  .pkg-card.bespoke { order: 99; }
}

/* ---- TESTIMONIALS MOBILE ---- */
@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 14px; }
  .testimonial-card { padding: 1.5rem; }
  .testimonial-quote { font-size: 14px; line-height: 1.7; }
}

/* ---- CONTACT FORM MOBILE — fields full width ---- */
@media (max-width: 600px) {
  .cta-bg { padding: 60px 1.25rem; }
  .cta-inner h2 { font-size: 26px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn-white,
  .cta-actions .btn-ghost { flex: 1; justify-content: center; }
  .kl-contact-form { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group { margin-bottom: 12px; }
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  #kl-submit { width: 100%; }
}

/* ---- TARGETS / WHO PILLS MOBILE ---- */
@media (max-width: 600px) {
  .targets-grid { gap: 6px; }
  .target-pill { font-size: 12px; padding: 6px 14px; }
}

/* ---- PROBLEM CARDS MOBILE ---- */
@media (max-width: 600px) {
  .problems-grid { grid-template-columns: 1fr; gap: 12px; }
  .problem-card { padding: 1.5rem; }
  .problem-icon { font-size: 24px; margin-bottom: 0.75rem; }
}

/* ---- ABOUT SECTION MOBILE ---- */
@media (max-width: 600px) {
  .about-text h2 { font-size: 22px; }
  .about-text p { font-size: 14px; }
  .about-proof { grid-template-columns: 1fr 1fr; gap: 8px; }
  .proof-num { font-size: 20px; }
  .credibility-list .cred-item { font-size: 13px; }
}

/* ---- IMAGE PERFORMANCE ---- */
img { max-width: 100%; height: auto; }

/* ---- REDUCED MOTION PREFERENCE ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .floating-pill { animation: none !important; }
}

/* ---- BETTER FOCUS ON DARK BACKGROUNDS ---- */
.cta-bg a:focus-visible,
.cta-bg button:focus-visible,
.problems-bg a:focus-visible,
#kl-footer a:focus-visible {
  outline-color: var(--gold);
  outline-offset: 3px;
}

/* ---- BACK-TO-TOP BUTTON ---- */
.kl-to-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 150;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.kl-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.kl-to-top:hover { opacity: 0.9; }
@media (max-width: 600px) {
  .kl-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; }
}

/* ---- DEFENSIVE: Long content doesn't break layout ---- */
.case-title, .service-name, .pkg-name, .team-name { overflow-wrap: break-word; }
input, textarea { max-width: 100%; }

/* ---- TAP TARGETS — minimum 44x44 on mobile ---- */
@media (max-width: 768px) {
  a, button, .pkg-cta, .btn-primary, .btn-secondary, .btn-white, .btn-ghost {
    min-height: 44px;
  }
}

/* ---- Active nav link (section spy) ---- */
.nav-links a.kl-nav-active:not(.nav-cta) {
  color: var(--text-primary);
  background: var(--gray-100);
}
