/* ==========================================================================
   KHT Child — Global Stylesheet
   Brand: Kamdem HomeTech (Plumbing & Heating, Manchester)
   ========================================================================== */

:root {
  --color-primary: #EF6D22;     /* Flame Orange */
  --color-dark: #1A2332;        /* Midnight Navy */
  --color-background: #F5F6F8;  /* Pale Grey */
  --color-base: #FFFFFF;        /* White */
  --color-accent: #00682F;      /* Trust Green */
  --color-warning: #C00000;     /* Alert Red */

  --font-heading: 'Barlow', sans-serif;
  --font-body: 'Inter', sans-serif;

  --size-hero-min-height: 90vh;
  --overlay-dark: rgba(26, 35, 50, 0.65);

  --shadow-card: 0 4px 16px rgba(26, 35, 50, 0.08);
  --shadow-lift: 0 10px 30px rgba(26, 35, 50, 0.15);
}

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: 52px; }
h2 { font-size: 38px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
  line-height: 1.8;
  color: rgba(26, 35, 50, 0.8);
  margin: 0 0 16px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 6px; }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  h4 { font-size: 20px; }
}

/* ==========================================================================
   2. Buttons
   ========================================================================== */
.kht-btn-primary,
.kht-btn-secondary,
.kht-btn-white,
.btn-primary,
.elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.kht-btn-primary,
.btn-primary,
.elementor-button {
  background-color: var(--color-primary);
  color: var(--color-base);
  border-color: var(--color-primary);
}
.kht-btn-primary:hover,
.btn-primary:hover,
.elementor-button:hover {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-base);
  transform: translateY(-1px);
}

.kht-btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.kht-btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-base);
}

.kht-btn-white {
  background-color: var(--color-base);
  color: var(--color-dark);
  border-color: var(--color-base);
}
.kht-btn-white:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-base);
}

/* ==========================================================================
   3. Announcement Bar
   ========================================================================== */
.kht-announcement-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 48px;
  background-color: var(--color-primary);
  color: var(--color-base);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.kht-announcement-bar__link,
.kht-announcement-bar__link:visited {
  color: var(--color-base);
  text-decoration: none;
}
.kht-announcement-bar__link:hover { text-decoration: underline; color: var(--color-base); }
.kht-announcement-bar__dismiss {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  color: var(--color-base);
  font-size: 24px;
  line-height: 1;
  padding: 0;
}
.kht-announcement-bar__dismiss:hover { opacity: 0.8; }

/* ==========================================================================
   4. Header (Sticky + Scrolled)
   ========================================================================== */
.kht-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--color-base);
  transition: box-shadow 0.2s ease;
}
.kht-header.scrolled { box-shadow: 0 2px 12px rgba(26, 35, 50, 0.12); }

.kht-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
}

.kht-header__logo a { text-decoration: none; }
.kht-logo-text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.kht-logo-text__primary  { color: var(--color-primary); }
.kht-logo-text__secondary { color: var(--color-dark); }
.kht-logo-image { height: 56px; width: auto; display: block; }
@media (max-width: 1023px) { .kht-logo-image { height: 44px; } }

/* ==========================================================================
   5. Navigation (Desktop + Dropdown)
   ========================================================================== */
.kht-header__nav { flex: 1; display: flex; justify-content: center; }

.kht-nav,
.kht-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.kht-nav li,
.kht-menu li { position: relative; margin: 0; }
.kht-nav a,
.kht-menu a {
  display: block;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}
.kht-nav a:hover,
.kht-menu a:hover,
.kht-nav .current-menu-item > a,
.kht-menu .current-menu-item > a { color: var(--color-primary); }

/* Caret down indicator for parent menu items */
.kht-nav .menu-item-has-children > a,
.kht-menu .menu-item-has-children > a {
  padding-right: 16px;
  position: relative;
}
.kht-nav .menu-item-has-children > a::after,
.kht-menu .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.kht-nav .menu-item-has-children:hover > a::after,
.kht-menu .menu-item-has-children:hover > a::after {
  transform: rotate(-135deg);
  margin-top: -2px;
  opacity: 1;
}

.kht-dropdown,
.kht-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 720px;
  max-width: 90vw;
  background-color: var(--color-base);
  box-shadow: 0 6px 20px rgba(26, 35, 50, 0.12);
  border-top: 3px solid var(--color-primary);
  list-style: none;
  margin: 0;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 100;
}
.kht-nav .menu-item-has-children:hover > .kht-dropdown,
.kht-nav .menu-item-has-children:focus-within > .kht-dropdown,
.kht-menu .menu-item-has-children:hover > .sub-menu,
.kht-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.kht-dropdown li,
.kht-menu .sub-menu li { margin: 0; }
.kht-dropdown a,
.kht-menu .sub-menu a {
  padding: 10px 12px 10px 14px;
  font-size: 13px;
  border-left: 2px solid transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.kht-dropdown a:hover,
.kht-menu .sub-menu a:hover {
  background-color: var(--color-background);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
  padding-left: 18px;
}

/* Phone CTA (in header) */
.kht-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: var(--color-primary);
  color: var(--color-base);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}
.kht-phone-cta:hover { background-color: var(--color-dark); color: var(--color-base); }
.kht-phone-cta__icon { font-size: 18px; }

/* Hamburger */
.kht-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  background-color: transparent;
  border: 0;
  padding: 8px 12px;
  font-size: 28px;
  line-height: 1;
  color: var(--color-dark);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.kht-hamburger > span { line-height: 1; display: inline-block; color: inherit; }
.kht-hamburger:hover { opacity: 0.85; }

/* ==========================================================================
   6. Mobile Nav Drawer
   ========================================================================== */
.kht-mobile-nav,
.kht-mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--color-base);
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.12);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.kht-mobile-nav.is-open,
.kht-mobile-drawer.is-open { max-height: 80vh; overflow-y: auto; }

.kht-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.kht-mobile-menu li { margin: 0; }
.kht-mobile-menu a {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--color-background);
}
.kht-mobile-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-left: 3px solid var(--color-primary);
  margin-left: 24px;
}
.kht-mobile-menu .menu-item-has-children.is-open > .sub-menu {
  max-height: 800px;
}
.kht-mobile-menu .sub-menu a {
  padding: 12px 24px 12px 20px;
  font-size: 14px;
  border-bottom: 1px solid rgba(26,35,50,0.06);
}
.kht-mobile-menu .sub-menu a::before {
  content: "•";
  color: var(--color-primary);
  margin-right: 10px;
  font-weight: 700;
}

/* Parent row (anchor + toggle button side-by-side) */
.kht-mobile-menu .kht-mobile-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-background);
}
.kht-mobile-menu .kht-mobile-row > a {
  flex: 1;
  border-bottom: 0;
}
.kht-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--color-background);
  color: var(--color-primary);
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.15s ease;
}
.kht-mobile-toggle span { transition: transform 0.2s ease; display: inline-block; }
.kht-mobile-menu .menu-item-has-children.is-open .kht-mobile-toggle span { transform: rotate(180deg); }
.kht-mobile-toggle:hover { background-color: var(--color-background); }

@media (max-width: 1023px) {
  .kht-header__inner { padding: 12px 16px; }
  .kht-header__nav { display: none; }
  .kht-mobile-nav,
  .kht-mobile-drawer { display: block; }
  .kht-hamburger { display: inline-flex; }
  .kht-phone-cta { padding: 10px 14px; font-size: 13px; }
  .kht-phone-cta__number::before { content: "Call "; }
  .kht-logo-text { font-size: 18px; }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */
.kht-hero {
  position: relative;
  min-height: var(--size-hero-min-height);
  display: flex;
  align-items: center;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  color: var(--color-base);
  overflow: hidden;
}
.kht-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-color: var(--overlay-dark);
  z-index: 1;
}
.kht-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.kht-hero__content h1 { color: var(--color-base); margin-bottom: 20px; }
.kht-hero__content p { color: rgba(255,255,255,0.9); font-size: 18px; max-width: 560px; }
.kht-hero__content .kht-btn-primary,
.kht-hero__content .kht-btn-white { margin-top: 24px; margin-right: 12px; }

.kht-hero-form {
  background-color: var(--color-base);
  color: var(--color-dark);
  padding: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
}
.kht-hero-form h3 { margin-bottom: 8px; }
.kht-hero-form p { font-size: 14px; margin-bottom: 20px; }
.kht-hero-form input,
.kht-hero-form select,
.kht-hero-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dde1e6;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 12px;
  background: var(--color-base);
  color: var(--color-dark);
}
.kht-hero-form button { width: 100%; }

@media (max-width: 900px) {
  .kht-hero__inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 20px; }
  .kht-hero { min-height: auto; }
}

/* ==========================================================================
   8. Trust Strip & Badges
   ========================================================================== */
.kht-trust-strip {
  background-color: var(--color-background);
  padding: 24px 0;
  border-bottom: 1px solid #e5e8ec;
}
.kht-trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.kht-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  padding: 8px 14px;
  background: var(--color-base);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}
.kht-trust-badge::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background-color: var(--color-accent);
  color: var(--color-base);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .kht-trust-strip__inner { gap: 12px; }
  .kht-trust-badge { font-size: 12px; padding: 6px 10px; }
}

/* ==========================================================================
   9. Sections
   ========================================================================== */
.kht-section { padding: 80px 0; }
.kht-section-grey { background-color: var(--color-background); }
.kht-section-dark {
  background-color: var(--color-dark);
  color: var(--color-base);
}
.kht-section-dark h1,
.kht-section-dark h2,
.kht-section-dark h3,
.kht-section-dark h4 { color: var(--color-base); }
.kht-section-dark p { color: rgba(255,255,255,0.85); }
.kht-section-orange {
  background-color: var(--color-primary);
  color: var(--color-base);
}
.kht-section-orange h1,
.kht-section-orange h2,
.kht-section-orange h3,
.kht-section-orange h4 { color: var(--color-base); }
.kht-section-orange p { color: rgba(255,255,255,0.95); }

.kht-section__header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kht-section__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .kht-section { padding: 56px 0; }
  .kht-section__header { margin-bottom: 32px; }
}

/* ==========================================================================
   10. Service Card
   ========================================================================== */
.kht-service-card {
  background-color: var(--color-base);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--color-dark);
  display: block;
  height: 100%;
}
.kht-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  color: var(--color-dark);
}
.kht-service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background-color: rgba(239, 109, 34, 0.1);
  color: var(--color-primary);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 24px;
}
.kht-service-card h3 { font-size: 20px; margin-bottom: 8px; }
.kht-service-card p { font-size: 14px; margin-bottom: 16px; }
.kht-service-card__link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}
.kht-service-card:hover .kht-service-card__link { color: var(--color-dark); }

/* Image-backed service card */
.kht-service-card--img { padding: 0; overflow: hidden; }
.kht-service-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.kht-service-card--img:hover .kht-service-card__image { transform: scale(1.05); }
.kht-service-card__body { padding: 24px 28px 28px; }
.kht-service-card__body h3 { font-size: 20px; margin-bottom: 8px; }
.kht-service-card__body p { font-size: 14px; margin-bottom: 16px; }

/* ==========================================================================
   11. Review Card
   ========================================================================== */
.kht-review-card {
  background-color: var(--color-base);
  border-left: 4px solid var(--color-primary);
  border-radius: 4px;
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  height: 100%;
}
.kht-review-card__stars { color: #f5b000; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.kht-review-card__text { font-size: 15px; font-style: italic; margin-bottom: 16px; }
.kht-review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-dark);
}
.kht-review-card__author small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: rgba(26,35,50,0.6);
}
.kht-verified-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.kht-verified-link:hover { color: var(--color-primary); text-decoration: underline; }

/* ==========================================================================
   12. Area Pill
   ========================================================================== */
.kht-area-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background-color: var(--color-background);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  margin: 4px;
}
.kht-area-pill:hover {
  background-color: var(--color-primary);
  color: var(--color-base);
  transform: translateY(-2px);
}

/* ==========================================================================
   13. Process Step
   ========================================================================== */
.kht-process-step { text-align: center; padding: 16px; }
.kht-process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-base);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(239, 109, 34, 0.3);
}
.kht-process-step h4 { font-size: 18px; margin-bottom: 8px; }
.kht-process-step p { font-size: 14px; }

/* ==========================================================================
   14. Benefit Card (tick)
   ========================================================================== */
.kht-benefit-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background-color: var(--color-base);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}
.kht-benefit-card::before {
  content: "✓";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background-color: var(--color-accent);
  color: var(--color-base);
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
}
.kht-benefit-card__body h4 { font-size: 17px; margin-bottom: 6px; }
.kht-benefit-card__body p { font-size: 14px; margin-bottom: 0; }

/* ==========================================================================
   15. Breadcrumb
   ========================================================================== */
.kht-breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: rgba(26,35,50,0.6);
  background-color: var(--color-background);
}
.kht-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.kht-breadcrumb li { margin: 0; }
.kht-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: rgba(26,35,50,0.4); }
.kht-breadcrumb a { color: rgba(26,35,50,0.7); }
.kht-breadcrumb a:hover { color: var(--color-primary); }
.kht-breadcrumb [aria-current] { color: var(--color-dark); font-weight: 600; }

/* ==========================================================================
   16. FAQ Accordion
   ========================================================================== */
.kht-faq-item {
  background-color: var(--color-base);
  border: 1px solid #e5e8ec;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}
.kht-faq-item[open] { box-shadow: var(--shadow-card); }
.kht-faq-item summary {
  cursor: pointer;
  padding: 18px 56px 18px 20px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  position: relative;
  list-style: none;
}
.kht-faq-item summary::-webkit-details-marker { display: none; }
.kht-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-base);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.kht-faq-item[open] summary::after { content: "−"; }
.kht-faq-item__body {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(26,35,50,0.85);
}

/* ==========================================================================
   17. Related Card
   ========================================================================== */
.kht-related-card {
  display: block;
  background-color: var(--color-base);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--color-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kht-related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--color-dark); }
.kht-related-card img { width: 100%; height: 180px; object-fit: cover; }
.kht-related-card__body { padding: 18px 20px; }
.kht-related-card h4 { font-size: 17px; margin-bottom: 6px; }
.kht-related-card p { font-size: 13px; margin: 0; color: rgba(26,35,50,0.7); }

/* ==========================================================================
   18. CTA Dark
   ========================================================================== */
.kht-cta-dark {
  background-color: var(--color-dark);
  background-image: linear-gradient(135deg, var(--color-dark) 0%, #0d111a 100%);
  color: var(--color-base);
  padding: 72px 0;
  text-align: center;
}
.kht-cta-dark h2 { color: var(--color-base); margin-bottom: 12px; }
.kht-cta-dark p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 640px; margin: 0 auto 28px; }
.kht-cta-dark .kht-btn-primary,
.kht-cta-dark .kht-btn-white { margin: 6px; }

@media (max-width: 768px) { .kht-cta-dark { padding: 56px 0; } }

/* ==========================================================================
   19. Stats Bar
   ========================================================================== */
.kht-stats-bar {
  background-color: var(--color-primary);
  color: var(--color-base);
  padding: 36px 0;
}
.kht-stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.kht-stats-bar__item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--color-base);
}
.kht-stats-bar__item span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

@media (max-width: 768px) {
  .kht-stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .kht-stats-bar__item strong { font-size: 32px; }
}

/* ==========================================================================
   20. Credential Card
   ========================================================================== */
.kht-credential-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background-color: var(--color-base);
  border: 1px solid #e5e8ec;
  border-radius: 6px;
}
.kht-credential-card__logo {
  flex-shrink: 0;
  width: 72px; height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background);
  border-radius: 6px;
}
.kht-credential-card__logo img { max-width: 60px; max-height: 60px; }
.kht-credential-card h5 { font-size: 15px; margin-bottom: 4px; }
.kht-credential-card p { font-size: 13px; margin: 0; color: rgba(26,35,50,0.7); }

/* ==========================================================================
   21. Quote Form
   ========================================================================== */
.kht-quote-form {
  background-color: var(--color-base);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-lift);
  max-width: 560px;
  margin: 0 auto;
}
.kht-quote-form h3 { margin-bottom: 8px; }
.kht-quote-form p { font-size: 14px; margin-bottom: 20px; }
.kht-quote-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.kht-quote-form input,
.kht-quote-form select,
.kht-quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dde1e6;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 14px;
  background: var(--color-base);
  color: var(--color-dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kht-quote-form input:focus,
.kht-quote-form select:focus,
.kht-quote-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(239,109,34,0.15);
}
.kht-quote-form textarea { min-height: 120px; resize: vertical; }
.kht-quote-form button { width: 100%; }

/* ==========================================================================
   22. Footer
   ========================================================================== */
.kht-footer { font-family: var(--font-body); }
.kht-footer__main { background-color: var(--color-dark); color: var(--color-base); padding: 64px 0; }
.kht-footer__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.kht-footer__heading {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}
.kht-footer__text,
.kht-footer__regs,
.kht-footer__address {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-base);
  font-style: normal;
}
.kht-footer__regs { opacity: 0.85; }

.kht-footer__links { list-style: none; margin: 0; padding: 0; }
.kht-footer__links li { margin: 0 0 10px; }
.kht-footer__links a,
.kht-footer__email a {
  color: var(--color-base);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.kht-footer__links a:hover,
.kht-footer__email a:hover { color: var(--color-primary); }

.kht-footer__social {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
}
.kht-footer__social li { margin: 0; }
.kht-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: var(--color-base);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.kht-footer__social a:hover { background-color: var(--color-primary); border-color: var(--color-primary); }

.kht-footer__phone { margin: 0 0 10px; }
.kht-footer__phone a {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.kht-footer__phone a:hover { text-decoration: underline; }
.kht-footer__email { margin: 0 0 10px; font-size: 14px; }

.kht-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 12px;
  background-color: rgba(0,104,47,0.15);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-base);
}
.kht-footer__dot {
  display: inline-block;
  width: 8px; height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0,104,47,0.6);
  animation: kht-pulse 2s ease-out infinite;
}

@keyframes kht-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(0,104,47,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(0,104,47,0);   }
  100% { box-shadow: 0 0 0 0    rgba(0,104,47,0);   }
}

/* Pulse on trust-badge tick icons */
.kht-trust-badge::before {
  animation: kht-pulse-orange 2.4s ease-out infinite;
}
@keyframes kht-pulse-orange {
  0%   { box-shadow: 0 0 0 0    rgba(0,104,47,0.5); }
  70%  { box-shadow: 0 0 0 8px  rgba(0,104,47,0);   }
  100% { box-shadow: 0 0 0 0    rgba(0,104,47,0);   }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .kht-footer__dot,
  .kht-trust-badge::before { animation: none; }
}

.kht-footer-bottom,
.kht-footer__bottom { background-color: #0d111a; color: rgba(255,255,255,0.6); font-size: 12px; }
.kht-footer__bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  text-align: center;
  line-height: 1.8;
}
.kht-footer-bottom a,
.kht-footer__bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.kht-footer-bottom a:hover,
.kht-footer__bottom a:hover { color: var(--color-primary); }

@media (max-width: 767px) {
  .kht-footer__main { padding: 48px 0; }
  .kht-footer__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .kht-footer__social { justify-content: center; }
  .kht-footer__badge { margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   Floating WhatsApp Chat Button
   ========================================================================== */
.kht-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  animation: kht-wa-in 0.4s ease-out 1s both;
}
@keyframes kht-wa-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.kht-whatsapp-float__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 18px;
  background-color: #25D366;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.kht-whatsapp-float__link:hover {
  background-color: #1ebe57;
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0, 0, 0, 0.15);
}
.kht-whatsapp-float__link svg {
  flex-shrink: 0;
  animation: kht-wa-pulse 2.4s ease-out infinite;
}
@keyframes kht-wa-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
.kht-whatsapp-float__label { white-space: nowrap; }

.kht-whatsapp-float__dismiss {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  padding: 0;
  background-color: #ffffff;
  color: #1A2332;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.kht-whatsapp-float__dismiss:hover {
  background-color: var(--color-dark);
  color: #ffffff;
  transform: scale(1.1);
}

/* Mobile: always reserve space above Astra's #ast-scroll-top button.
   Astra scroll-top: right: 30px; bottom: 30px; ~32px tall.
   Stack WhatsApp directly above with a 14px gap → bottom = 30 + 32 + 14 = 76px. */
@media (max-width: 768px) {
  .kht-whatsapp-float {
    bottom: 80px;
    right: 30px;  /* match Astra scroll-top right offset so they stack in a column */
  }
  .kht-whatsapp-float__link { padding: 12px 18px 12px 14px; font-size: 14px; }

  /* Mobile Areas sub-menu: cap visible areas + prominent "View All" CTA */
  .kht-mobile-menu .kht-mobile-hide { display: none !important; }

  .kht-mobile-menu .kht-mobile-view-all { margin: 0; }
  .kht-mobile-menu .kht-mobile-view-all a {
    display: block;
    margin: 8px 16px 12px;
    padding: 14px 16px;
    background-color: var(--color-primary);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    border-bottom: 0 !important;
    box-shadow: 0 2px 8px rgba(239, 109, 34, 0.25);
    transition: background-color 0.15s ease, transform 0.15s ease;
  }
  .kht-mobile-menu .kht-mobile-view-all a::before { content: none !important; }
  .kht-mobile-menu .kht-mobile-view-all a:hover,
  .kht-mobile-menu .kht-mobile-view-all a:focus {
    background-color: var(--color-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
  }
  .kht-mobile-menu .kht-mobile-view-all a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  }

  /* Hamburger — 3-state behaviour (mobile only):
     1. Pristine (never opened) → original default styling
     2. Active (menu open, aria-expanded="true") → white icon on Midnight Navy pill
     3. Post-close (.has-been-opened, aria-expanded="false") → Midnight Navy pill retained */
  .kht-hamburger.has-been-opened,
  .kht-hamburger[aria-expanded="true"] {
    background-color: #1A2332;
    color: #ffffff;
  }
  .kht-hamburger.has-been-opened > span,
  .kht-hamburger[aria-expanded="true"] > span {
    color: #ffffff;
  }

  /* Go To Top (Astra) — Midnight Navy on mobile */
  #ast-scroll-top {
    background-color: var(--color-dark) !important;
    color: #ffffff !important;
    border-color: var(--color-dark) !important;
    transition: background-color 0.2s ease, opacity 0.2s ease !important;
  }
  #ast-scroll-top:hover,
  #ast-scroll-top:focus {
    background-color: var(--color-dark) !important;
    opacity: 0.85;
  }
  #ast-scroll-top .ast-icon svg,
  #ast-scroll-top .ast-icon path { fill: #ffffff !important; }
}

@media print {
  .kht-whatsapp-float { display: none !important; }
}

/* ==========================================================================
   23. Global Mobile Single-Column Collapse
   All multi-column grids and flex rows stack vertically on small screens.
   ========================================================================== */
@media (max-width: 768px) {

  /* Inline-style grids (templates use style="grid-template-columns:repeat(N,1fr)") */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Hero inner grid (2-column → 1-column) */
  .kht-hero__inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 56px 20px !important;
  }

  /* Trust strip (flex row → column) */
  .kht-trust-strip__inner {
    flex-direction: column;
    gap: 10px;
  }

  /* Header CTAs (hero buttons stack) */
  .kht-hero__ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .kht-hero__ctas a {
    width: 100%;
    text-align: center;
  }

  /* Footer bottom inner — keep centred text, no changes needed */

  /* Breadcrumb list → wrap */
  .kht-breadcrumb ol {
    flex-wrap: wrap;
  }

  /* Final CTA button stacks */
  .kht-cta-dark .kht-btn-primary,
  .kht-cta-dark .kht-btn-white {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 6px auto !important;
  }

  /* Tables on engineer page become stacked */
  .kht-engineer-page table,
  .kht-engineer-page thead,
  .kht-engineer-page tbody,
  .kht-engineer-page tr,
  .kht-engineer-page td,
  .kht-engineer-page th { display: block; width: 100%; }
  .kht-engineer-page thead { display: none; }
  .kht-engineer-page td { padding: 10px 16px !important; }

  /* Service category headers in page-services.php */
  .kht-section__header { text-align: center !important; }

  /* Container padding tightens */
  .container { padding: 0 16px; }
}

/* ==========================================================================
   24. Print
   ========================================================================== */
@media print {
  .kht-announcement-bar,
  .kht-header,
  .kht-nav,
  .kht-mobile-nav,
  .kht-mobile-drawer,
  .kht-hamburger,
  .kht-phone-cta { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
