/* ============================================================
   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 removed — it clips the mobile dropdown when backdrop-filter
     creates a new stacking context on iOS Safari */
}
.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);
  touch-action: manipulation;          /* eliminates 300ms tap delay on mobile */
  -webkit-tap-highlight-color: transparent; /* removes grey tap flash on iOS */
}

/* ---- 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; }

  /* Hide the desktop nav list by default on mobile */
  .nav-links {
    display: none;
  }

  /* When .open is added by JS, slide down as a full-width dropdown */
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--off-white);
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    gap: 0;
    z-index: 9999;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Each item: separator below, big tap target */
  .nav-links.open li {
    list-style: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav-links.open li:last-child {
    border-bottom: none;
    margin-top: 10px;
  }
  .nav-links.open li a {
    display: block;
    padding: 16px 8px;
    font-size: 16px;
    color: var(--text-primary);
    background: transparent !important;
    border-radius: 0;
    text-decoration: none;
    min-height: 48px;
    width: 100%;
  }
  /* Highlighted CTA on mobile: keep teal style but full-width */
  .nav-links.open li:last-child a {
    text-align: center;
    background: var(--teal) !important;
    color: white !important;
    border-radius: 8px !important;
    margin-top: 4px;
    padding: 14px 16px !important;
  }

  /* Push down when admin bar is showing */
  .admin-bar .nav-links.open { top: 110px; max-height: calc(100vh - 110px); }

  /* Show the hamburger button */
  .nav-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  /* When menu is open, swap the hamburger icon for an X (visual indicator) */
  .nav-mobile-btn[aria-expanded="true"] svg rect:nth-child(1) {
    transform: translate(0, 6px) rotate(45deg);
    transform-origin: center;
    transition: transform 0.2s;
  }
  .nav-mobile-btn[aria-expanded="true"] svg rect:nth-child(2) { opacity: 0; }
  .nav-mobile-btn[aria-expanded="true"] svg rect:nth-child(3) {
    transform: translate(0, -6px) rotate(-45deg);
    transform-origin: center;
    transition: transform 0.2s;
  }
  .nav-mobile-btn svg rect { transition: transform 0.2s, opacity 0.2s; }

  /* Lock body scroll when menu is open (added by JS) */
  body.nav-open { overflow: hidden; }

  /* Hero + other mobile layout adjustments */
  .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); }
}
/* Default: dark text for light-background contexts (Contact page) */
.kl-form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.kl-form-success p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
}
/* Override: white text when shown inside the dark CTA section (homepage) */
.cta-bg .kl-form-success h3 { color: white; }
.cta-bg .kl-form-success p  { color: rgba(255,255,255,0.7); }

/* ---- 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);
}

/* ============================================================
   ABOUT PAGE — dedicated /about/ template
   ============================================================ */

/* ---- ABOUT HERO ---- */
.about-hero-section {
  padding: 140px 2rem 80px;
  background: var(--off-white);
  text-align: center;
}
.about-hero-inner {
  max-width: 820px; margin: 0 auto;
}
.about-hero-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700; line-height: 1.15;
  color: var(--text-primary);
  margin: 1.5rem 0 1.5rem;
}
.about-hero-inner h1 em {
  font-style: italic; color: var(--teal);
  display: block;
}
.about-hero-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
}

/* ---- NUMBERS GRID ---- */
.about-numbers-bg { background: white; }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px; margin: 0 auto;
}
.number-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.number-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.number-big {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.number-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- VALUES SECTION ---- */
.about-values-bg { background: var(--off-white); }
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.values-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.values-mission {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  border-left: 3px solid var(--teal);
  padding-left: 1.25rem;
}
.values-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.value-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.value-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--teal-light);
}
.value-icon {
  font-size: 28px;
  margin-bottom: 0.75rem;
}
.value-h {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.value-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---- LARGE TEAM CARDS ---- */
.about-team-bg { background: white; }
.team-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.team-card-lg {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.team-card-lg:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.team-card-lg-img {
  width: 200px; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.team-card-lg-body {
  padding: 1.5rem;
}
.team-card-lg-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}
.team-card-lg-role {
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.team-card-lg-bio {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.team-card-lg-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.team-card-lg-link:hover {
  color: var(--teal);
}

/* ---- PORTFOLIO GRID ---- */
.about-portfolio-bg { background: var(--off-white); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px; margin: 0 auto;
}
.portfolio-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--teal-light);
}
.portfolio-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.portfolio-tag {
  font-size: 11px;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 500;
}

/* ---- BRAND PILLS ---- */
.about-brands-bg { background: white; }
.brand-list {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  max-width: 800px; margin: 0 auto;
}
.brand-pill {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: var(--off-white);
  transition: all 0.2s;
}
.brand-pill:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* ---- ABOUT PAGE RESPONSIVE ---- */
@media (max-width: 900px) {
  .values-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-grid-4 { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .about-hero-section { padding: 100px 1.25rem 50px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .number-card { padding: 1.25rem 0.75rem; }
  .values-cards { grid-template-columns: 1fr; }
  .team-card-lg { grid-template-columns: 1fr; }
  .team-card-lg-img { width: 100%; height: 240px; object-position: center 20%; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .portfolio-card { padding: 1.25rem 0.75rem; }
  .portfolio-name { font-size: 15px; }
  .brand-pill { font-size: 15px; padding: 0.5rem 1rem; }
}

/* ============================================================
   V2.5 — Detailed portfolio cards + Contact page
   ============================================================ */

/* ---- DETAILED PORTFOLIO CARDS (2-up) ---- */
.portfolio-grid-detailed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.portfolio-card-lg {
  background: 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, border-color 0.2s;
}
.portfolio-card-lg:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--teal-light);
}
.portfolio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.portfolio-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
  line-height: 1.2;
}
.portfolio-card-type {
  font-size: 13px;
  color: var(--text-muted);
}
.portfolio-card-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.portfolio-badge-teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.portfolio-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.portfolio-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s;
}
.portfolio-link:hover {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
}
.portfolio-link-primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.portfolio-link-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: white;
}
.portfolio-link-icon {
  font-size: 14px;
}

@media (max-width: 900px) {
  .portfolio-grid-detailed { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
  .portfolio-card-lg { padding: 1.25rem; }
  .portfolio-card-name { font-size: 18px; }
  .portfolio-card-header { flex-direction: column; gap: 0.5rem; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-hero-section {
  padding: 140px 2rem 80px;
  background: var(--off-white);
  text-align: center;
}
.contact-hero-inner {
  max-width: 720px; margin: 0 auto;
}
.contact-hero-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700; line-height: 1.15;
  color: var(--text-primary);
  margin: 1.5rem 0 1.5rem;
}
.contact-hero-inner h1 em {
  font-style: italic; color: var(--teal);
  display: block;
}
.contact-hero-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

.contact-section-bg { background: white; padding: 80px 2rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* Contact form column (reuses styles from CTA) */
.contact-form-col h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.contact-form-col > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-page-form {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact-page-form .form-group label {
  color: var(--text-primary);
}
.contact-page-form .form-group input,
.contact-page-form .form-group textarea {
  background: white;
  border-color: var(--border);
  color: var(--text-primary);
}
.contact-page-form #kl-submit {
  background: var(--teal);
  color: white;
}

/* Contact details column */
.contact-details-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-info-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info-body {
  flex-grow: 1;
}
.contact-info-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.contact-info-value {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: break-word;
}
.contact-info-value a {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 500;
}
.contact-info-value a:hover {
  color: var(--teal);
  text-decoration: underline;
}
.contact-info-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-section-bg { padding: 60px 1.5rem; }
}
@media (max-width: 600px) {
  .contact-hero-section { padding: 100px 1.25rem 50px; }
  .contact-info-card { padding: 1.25rem; }
  .contact-page-form { padding: 1.25rem; }
}

/* ============================================================
   V2.6 — Dedicated Services page
   ============================================================ */

/* ---- SERVICES HERO ---- */
.services-hero-section {
  padding: 140px 2rem 80px;
  background: var(--off-white);
  text-align: center;
}
.services-hero-inner {
  max-width: 820px; margin: 0 auto;
}
.services-hero-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700; line-height: 1.15;
  color: var(--text-primary);
  margin: 1.5rem 0 1.5rem;
}
.services-hero-inner h1 em {
  font-style: italic; color: var(--teal);
  display: block;
}
.services-hero-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Quick-jump chips in hero */
.services-hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 1.5rem;
}
.services-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.2s;
}
.services-hero-chip:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---- CATEGORY SECTIONS ---- */
.services-cat-bg-white { background: white; scroll-margin-top: 80px; }
.services-cat-bg-off   { background: var(--off-white); scroll-margin-top: 80px; }

.services-cat-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto 3rem;
}
.services-cat-icon {
  width: 80px; height: 80px;
  background: var(--teal-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.services-cat-meta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.5rem 0 1rem;
  line-height: 1.25;
}
.services-cat-meta p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0;
}

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.service-detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.services-cat-bg-white .service-detail-card { background: var(--off-white); }
.service-detail-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  border-color: var(--teal-light);
}
.service-detail-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.service-detail-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}
.service-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-detail-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* ---- COMPARISON ROW ---- */
.services-compare-bg { background: white; }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.compare-col {
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}
.compare-col-them {
  background: var(--off-white);
  border: 1px solid var(--border);
}
.compare-col-us {
  background: var(--navy);
  color: white;
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-md);
}
.compare-col-h {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.compare-col-us .compare-col-h {
  color: white;
  border-bottom-color: rgba(255,255,255,0.15);
}
.compare-list {
  list-style: none;
  padding: 0; margin: 0;
}
.compare-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.compare-list li::before {
  content: '✕';
  position: absolute;
  left: 0; top: 9px;
  color: #c4453b;
  font-weight: 700;
  font-size: 15px;
}
.compare-list-us li { color: rgba(255,255,255,0.85); }
.compare-list-us li::before {
  content: '✓';
  color: var(--teal);
}

/* ---- PRICING ROW ---- */
.services-pricing-bg { background: var(--off-white); }
.services-pricing-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}
.services-price-tile {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.services-price-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.services-price-tile.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-md);
}
.services-price-tile.bespoke {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.services-price-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: white;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.services-price-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.services-price-tile.bespoke .services-price-name { color: white; }
.services-price-amt {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.services-price-amt span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}
.services-price-tile.bespoke .services-price-amt { color: var(--gold); }
.services-price-tile.bespoke .services-price-amt span { color: rgba(255,255,255,0.4); }
.services-price-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.services-price-tile.bespoke .services-price-desc { color: rgba(255,255,255,0.7); }
.services-pricing-cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* ---- SERVICES PAGE RESPONSIVE ---- */
@media (max-width: 900px) {
  .services-cat-header { grid-template-columns: 64px 1fr; gap: 1.25rem; }
  .services-cat-icon { width: 64px; height: 64px; font-size: 28px; }
  .services-detail-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .services-pricing-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
  .services-hero-section { padding: 100px 1.25rem 50px; }
  .services-hero-nav { gap: 6px; }
  .services-hero-chip { padding: 8px 14px; font-size: 13px; }
  .services-cat-header {
    grid-template-columns: 1fr;
    text-align: left;
    margin-bottom: 2rem;
  }
  .services-cat-icon { width: 56px; height: 56px; font-size: 24px; }
  .compare-col { padding: 1.5rem 1.25rem; }
  .compare-col-h { font-size: 17px; }
  .services-pricing-row { grid-template-columns: 1fr; }
}

/* ============================================================
   V2.7 — Service cards as clickable links, CTA below
   ============================================================ */

/* Reset anchor styles, add arrow, lift hover */
a.service-card {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  cursor: pointer;
}
a.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-light);
}
.service-arrow {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: 18px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}
a.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--teal);
}
@media (hover: none) {
  /* Touch devices: always show the arrow so users know it's clickable */
  .service-arrow { opacity: 0.5; transform: translateX(0); }
}
.services-cta {
  text-align: center;
  margin-top: 2rem;
}
