
/*
Theme Name: Health Digital
Theme URI: https://searchengineneed.com
Author: SearchEngineNeed
Description: Digital marketing theme for dental clinics, hospitals & doctors.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: health-digital
Tags: elementor, business, health, dental, custom-menu, custom-logo, responsive-layout
*/

/* ============================================================
   VARIABLES
   ============================================================ */
   :root {
    --hd-primary:       #0A66C2;
    --hd-primary-dark:  #084e99;
    --hd-primary-light: #E6F0FA;
    --hd-accent:        #FF6B35;
    --hd-accent-dark:   #e55a26;
    --hd-green:         #10B981;
    --hd-text:          #1A1A1A;
    --hd-muted:         #6B7280;
    --hd-white:         #FFFFFF;
    --hd-bg:            #F8FAFC;
    --hd-border:        #E5E7EB;
    --hd-dark:          #0D1B2A;
    --hd-font:          'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --hd-r-sm:  6px;
    --hd-r-md:  12px;
    --hd-r-lg:  20px;
    --hd-r-xl:  32px;
    --hd-sh-sm: 0 1px 4px rgba(0,0,0,.07);
    --hd-sh-md: 0 4px 20px rgba(0,0,0,.10);
    --hd-sh-lg: 0 12px 40px rgba(0,0,0,.13);
    --hd-sh-xl: 0 24px 64px rgba(0,0,0,.16);
    --hd-hh:    76px;
    --hd-maxw:  1200px;
    --hd-t:     0.25s ease;
  }
  
  /* ============================================================
     RESET
     ============================================================ */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
  body {
    font-family: var(--hd-font);
    color: var(--hd-text);
    background: var(--hd-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    /* CRITICAL: offset body for fixed header */
    padding-top: var(--hd-hh);
    overflow-x: hidden;
  }
  /* Remove padding on Elementor canvas / landing pages */
  body.elementor-editor-active,
  body.page-template-templates-landing-page { padding-top: 0 !important; }
  
  img  { max-width: 100%; height: auto; display: block; }
  a    { color: var(--hd-primary); text-decoration: none; transition: color var(--hd-t); }
  ul, ol { list-style: none; }
  button { cursor: pointer; font-family: var(--hd-font); }
  input, textarea, select { font-family: var(--hd-font); font-size: 1rem; }
  p { margin-bottom: 1rem; color: var(--hd-muted); }
  p:last-child { margin-bottom: 0; }
  
  /* ============================================================
     TYPOGRAPHY
     ============================================================ */
  h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--hd-text); }
  h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
  h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
  h4 { font-size: 1.125rem; }
  
  .hd-eyebrow {
    display: inline-block;
    font-size: .8125rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--hd-primary); background: var(--hd-primary-light);
    padding: 5px 14px; border-radius: 99px; margin-bottom: 12px;
  }
  .hd-eyebrow--accent { color: var(--hd-accent); background: #FFF0EB; }
  
  /* ============================================================
     LAYOUT
     ============================================================ */
  .hd-wrap {
    width: 100%;
    max-width: var(--hd-maxw);
    margin: 0 auto;
    padding: 0 24px;
  }
  .hd-section       { padding: 80px 0; }
  .hd-section--sm   { padding: 50px 0; }
  .hd-section--lg   { padding: 110px 0; }
  .hd-section--dark { background: var(--hd-dark); }
  .hd-section--dark h2, .hd-section--dark h3 { color: #fff; }
  .hd-section--dark p { color: #94A3B8; }
  .hd-section--grey { background: #F1F5F9; }
  .hd-section--light { background: var(--hd-primary-light); }
  .hd-section--blue { background: var(--hd-primary); }
  .hd-section--blue h2 { color: #fff; }
  .hd-section--blue p { color: rgba(255,255,255,.82); }
  
  .hd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .hd-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .hd-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .hd-text-center { text-align: center; }
  .hd-section-title { text-align: center; margin-bottom: 12px; }
  .hd-section-sub   { text-align: center; font-size: 1.125rem; max-width: 620px; margin: 0 auto 48px; }
  .hd-flex-center   { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
  
  /* ============================================================
     BUTTONS
     ============================================================ */
  .hd-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; font-size: .9375rem; font-weight: 600;
    border-radius: 99px; border: 2px solid transparent;
    transition: all var(--hd-t); white-space: nowrap; line-height: 1;
    text-decoration: none; cursor: pointer;
  }
  .hd-btn--primary  { background: var(--hd-primary);  color: #fff; border-color: var(--hd-primary); }
  .hd-btn--primary:hover { background: var(--hd-primary-dark); border-color: var(--hd-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--hd-sh-md); }
  .hd-btn--outline  { background: transparent; color: var(--hd-primary); border-color: var(--hd-primary); }
  .hd-btn--outline:hover { background: var(--hd-primary); color: #fff; transform: translateY(-2px); }
  .hd-btn--white    { background: #fff; color: var(--hd-primary); border-color: #fff; }
  .hd-btn--white:hover { background: var(--hd-primary-light); transform: translateY(-2px); }
  .hd-btn--accent   { background: var(--hd-accent); color: #fff; border-color: var(--hd-accent); animation: hd-pulse 2.5s infinite; }
  .hd-btn--accent:hover { background: var(--hd-accent-dark); color: #fff; border-color: var(--hd-accent-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,107,53,.4); animation: none; }
  .hd-btn--lg { padding: 15px 34px; font-size: 1rem; }
  .hd-btn--sm { padding: 9px 18px; font-size: .875rem; }
  .hd-btn--full { width: 100%; justify-content: center; }
  @keyframes hd-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,.35); }
    50%       { box-shadow: 0 0 0 10px rgba(255,107,53,0); }
  }
  
  /* ============================================================
     HEADER  ← THIS IS THE FIX
     
     Key rules:
     - position: fixed so it sticks
     - z-index: 9999 so it's above everything
     - The inner flex ONLY lays out logo + nav + actions in one row
     - Nav ul is ALSO flex — items side by side
     ============================================================ */
  #hd-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--hd-hh);
    background: #fff;
    border-bottom: 1px solid var(--hd-border);
    z-index: 9999;
    transition: box-shadow var(--hd-t);
  }
  #hd-header.hd-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
  
  /* This div is the single flex row inside the header */
  .hd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--hd-hh);      /* match header height exactly */
    gap: 16px;
  }
  
  /* ── Logo ── */
  .hd-logo { flex-shrink: 0; }
  .hd-logo a {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.375rem; font-weight: 800; color: var(--hd-text);
    text-decoration: none;
  }
  .hd-logo a:hover { color: var(--hd-text); }
  .hd-logo a .dot { color: var(--hd-primary); }
  .hd-logo img { height: 42px; width: auto; object-fit: contain; }
  
  /* ── Desktop Navigation ── */
  /* The nav sits between logo and actions in the flex row */
  #hd-desktop-nav {
    flex: 1;                     /* take remaining space */
    display: flex;
    align-items: center;
    justify-content: center;     /* center nav items */
  }
  
  /* The <ul> from wp_nav_menu is a horizontal flex row */
  #hd-desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0; padding: 0;
  }
  #hd-desktop-nav ul li {
    position: relative;
    list-style: none;
  }
  #hd-desktop-nav ul li a {
    display: flex; align-items: center; gap: 4px;
    padding: 8px 13px;
    font-size: .9375rem; font-weight: 500; color: var(--hd-text);
    border-radius: var(--hd-r-sm);
    text-decoration: none;
    transition: color var(--hd-t), background var(--hd-t);
    white-space: nowrap;
  }
  #hd-desktop-nav ul li a:hover,
  #hd-desktop-nav ul li.current-menu-item > a,
  #hd-desktop-nav ul li.current_page_item > a {
    color: var(--hd-primary);
    background: var(--hd-primary-light);
  }
  
  /* Dropdown (sub-menu) */
  #hd-desktop-nav ul li ul {
    display: none;
    position: absolute;
    top: calc(100% + 6px); left: 50%;
    transform: translateX(-50%);
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-r-md);
    box-shadow: var(--hd-sh-lg);
    padding: 6px;
    flex-direction: column;    /* column not row for dropdown */
    gap: 0;
    z-index: 100;
  }
  #hd-desktop-nav ul li:hover > ul { display: flex; }
  #hd-desktop-nav ul li ul li a {
    padding: 10px 14px;
    border-radius: var(--hd-r-sm);
    width: 100%;
  }
  
  /* ── Header Actions (buttons on right) ── */
  .hd-header-actions {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 8px;
  }
  /* Hide the plain "Free Audit" link on desktop, show only accent btn */
  .hd-header-actions .hd-btn--primary { display: none; }
  
  /* ── Hamburger button ── */
  .hd-hamburger {
    display: none;           /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none; border: none;
    padding: 6px; border-radius: var(--hd-r-sm);
    flex-shrink: 0;
    transition: background var(--hd-t);
  }
  .hd-hamburger:hover { background: var(--hd-primary-light); }
  .hd-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--hd-text); border-radius: 2px;
    transition: all var(--hd-t);
  }
  .hd-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hd-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hd-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  /* ── Mobile Drawer ── */
  .hd-drawer {
    display: none;    /* JS adds .is-open */
    position: fixed;
    top: var(--hd-hh); left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 8999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .hd-drawer.is-open {
    display: block;
    transform: translateX(0);
  }
  .hd-drawer-inner { padding: 8px 0; }
  
  /* Mobile nav list from wp_nav_menu */
  .hd-mobile-nav { list-style: none; margin: 0; padding: 0 16px; }
  .hd-mobile-nav li { list-style: none; }
  .hd-mobile-nav li a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem; font-weight: 500; color: var(--hd-text);
    border-radius: var(--hd-r-md);
    border-bottom: 1px solid var(--hd-border);
    text-decoration: none;
    transition: background var(--hd-t), color var(--hd-t);
  }
  .hd-mobile-nav li:last-child > a { border-bottom: none; }
  .hd-mobile-nav li a:hover { background: var(--hd-primary-light); color: var(--hd-primary); }
  /* Sub-menu in mobile */
  .hd-mobile-nav li ul {
    list-style: none; padding: 4px 0 4px 16px; margin: 0;
    border-left: 3px solid var(--hd-primary-light);
  }
  .hd-mobile-nav li ul li a {
    font-size: .9375rem; font-weight: 400;
    padding: 10px 14px; color: var(--hd-muted);
    border-bottom: none;
  }
  .hd-drawer-cta {
    padding: 20px 16px;
    border-top: 1px solid var(--hd-border);
    display: flex; flex-direction: column; gap: 10px;
  }
  .hd-drawer-cta .hd-btn { font-size: 1rem; padding: 15px; }
  
  /* ============================================================
     POPUP
     ============================================================ */
  .hd-popup-wrap {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(3px);
    z-index: 99998;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
  }
  .hd-popup-wrap.is-open { display: flex; }
  .hd-popup-box {
    background: #fff; border-radius: var(--hd-r-xl);
    width: 100%; max-width: 540px;
    box-shadow: var(--hd-sh-xl);
    position: relative; overflow: hidden;
    animation: hd-pop-in .35s cubic-bezier(.34,1.56,.64,1);
    max-height: 90vh; overflow-y: auto;
  }
  @keyframes hd-pop-in {
    from { opacity: 0; transform: scale(.87) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }
  .hd-popup-head {
    background: linear-gradient(135deg, var(--hd-primary), var(--hd-primary-dark));
    padding: 28px 32px; text-align: center;
    position: sticky; top: 0; z-index: 1;
  }
  .hd-popup-head h3 { color: #fff; margin-bottom: 6px; font-size: 1.375rem; }
  .hd-popup-head p  { color: rgba(255,255,255,.82); margin: 0; font-size: .9375rem; }
  .hd-popup-close {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,.2); border: none;
    color: #fff; font-size: 1.25rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background var(--hd-t);
  }
  .hd-popup-close:hover { background: rgba(255,255,255,.35); }
  .hd-popup-body { padding: 28px 32px; }
  
  /* ============================================================
     FORMS
     ============================================================ */
  .hd-form-group { margin-bottom: 16px; }
  .hd-form-group label {
    display: block; font-size: .875rem; font-weight: 600;
    color: var(--hd-text); margin-bottom: 5px;
  }
  .hd-form-group label .req { color: var(--hd-accent); }
  .hd-form-input, .hd-form-select, .hd-form-textarea {
    display: block; width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--hd-border);
    border-radius: var(--hd-r-md);
    font-size: .9375rem; color: var(--hd-text); background: #fff;
    transition: border-color var(--hd-t), box-shadow var(--hd-t);
  }
  .hd-form-input:focus, .hd-form-select:focus, .hd-form-textarea:focus {
    outline: none;
    border-color: var(--hd-primary);
    box-shadow: 0 0 0 3px rgba(10,102,194,.12);
  }
  .hd-form-textarea { resize: vertical; min-height: 110px; }
  .hd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hd-form-msg {
    display: none; padding: 12px 16px;
    border-radius: var(--hd-r-md); font-weight: 500; margin-top: 10px;
  }
  .hd-form-msg.success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
  .hd-form-msg.error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
  
  /* ============================================================
     HERO SLIDER
     ============================================================ */
  .hd-slider { position: relative; overflow: hidden; background: var(--hd-dark); }
  .hd-slider-track { display: flex; transition: transform .7s cubic-bezier(.4,0,.2,1); }
  .hd-slide {
    min-width: 100%; min-height: 600px;
    display: flex; align-items: center; padding: 80px 0;
    position: relative; overflow: hidden;
  }
  .hd-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
  .hd-slide-overlay { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(10,25,47,.9) 40%, rgba(10,25,47,.5)); z-index: 1; }
  .hd-slide-content { position: relative; z-index: 2; max-width: 620px; }
  .hd-slide-content .hd-eyebrow { background: rgba(255,255,255,.15); color: #93C5FD; }
  .hd-slide-content h1 { color: #fff; margin-bottom: 18px; }
  .hd-slide-content p  { color: rgba(255,255,255,.8); font-size: 1.125rem; margin-bottom: 32px; }
  .hd-slide-btns { display: flex; gap: 12px; flex-wrap: wrap; }
  .hd-slide-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
  .hd-slide-stat strong { display: block; font-size: 1.875rem; font-weight: 900; color: #fff; }
  .hd-slide-stat span   { font-size: .8125rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }
  
  .hd-slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--hd-t);
  }
  .hd-slider-btn:hover { background: rgba(255,255,255,.3); }
  .hd-slider-btn--prev { left: 20px; }
  .hd-slider-btn--next { right: 20px; }
  .hd-slider-dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
  }
  .hd-slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.4); border: none; cursor: pointer;
    transition: all var(--hd-t); padding: 0;
  }
  .hd-slider-dot.active { background: #fff; width: 22px; border-radius: 4px; }
  
  /* ============================================================
     TRUST BAR
     ============================================================ */
  .hd-trust-bar { background: #fff; border-bottom: 1px solid var(--hd-border); padding: 20px 0; }
  .hd-trust-inner {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 16px;
  }
  .hd-trust-item { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 500; color: var(--hd-muted); }
  .hd-trust-item svg { color: var(--hd-primary); flex-shrink: 0; }
  .hd-trust-div { width: 1px; height: 24px; background: var(--hd-border); }
  
  /* ============================================================
     CARDS
     ============================================================ */
  .hd-card {
    background: #fff; border-radius: var(--hd-r-lg);
    padding: 32px; border: 1px solid var(--hd-border);
    box-shadow: var(--hd-sh-sm);
    transition: transform var(--hd-t), box-shadow var(--hd-t);
    height: 100%;
  }
  .hd-card:hover { transform: translateY(-5px); box-shadow: var(--hd-sh-lg); }
  .hd-card-icon {
    width: 56px; height: 56px; border-radius: var(--hd-r-md);
    background: var(--hd-primary-light); color: var(--hd-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
  }
  .hd-card-icon--accent { background: #FFF0EB; color: var(--hd-accent); }
  .hd-card-icon--green  { background: #ECFDF5; color: var(--hd-green);  }
  .hd-card h3 { font-size: 1.125rem; margin-bottom: 10px; }
  .hd-card-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--hd-primary); font-weight: 600; font-size: .9375rem;
    margin-top: 16px; transition: gap var(--hd-t);
  }
  .hd-card-link:hover { gap: 9px; }
  .hd-checkmarks { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
  .hd-checkmark  { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 500; }
  .hd-checkmark svg { color: var(--hd-green); flex-shrink: 0; }
  .hd-includes   { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
  .hd-includes li { display: flex; align-items: center; gap: 9px; font-size: .9375rem; }
  .hd-includes li svg { color: var(--hd-green); flex-shrink: 0; }
  
  /* ============================================================
     TESTIMONIALS
     ============================================================ */
  .hd-tcard { background: #fff; border-radius: var(--hd-r-lg); padding: 32px; border: 1px solid var(--hd-border); box-shadow: var(--hd-sh-sm); }
  .hd-tcard-stars { color: #F59E0B; margin-bottom: 12px; }
  .hd-tcard p { font-size: 1rem; color: var(--hd-text); font-style: italic; margin-bottom: 18px; }
  .hd-tcard-author { display: flex; align-items: center; gap: 12px; }
  .hd-tcard-av { width: 46px; height: 46px; border-radius: 50%; background: var(--hd-primary-light); color: var(--hd-primary); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .hd-tcard-author strong { display: block; font-size: .9375rem; }
  .hd-tcard-author span   { font-size: .8125rem; color: var(--hd-muted); }
  
  /* ============================================================
     PRICING
     ============================================================ */
  .hd-price-card { background: #fff; border-radius: var(--hd-r-lg); padding: 36px; border: 1px solid var(--hd-border); text-align: center; position: relative; transition: transform var(--hd-t), box-shadow var(--hd-t); }
  .hd-price-card:hover { transform: translateY(-5px); box-shadow: var(--hd-sh-lg); }
  .hd-price-card--featured { border-color: var(--hd-primary); border-width: 2px; }
  .hd-price-badge { position: absolute; top: 16px; right: 16px; background: var(--hd-accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
  .hd-price-amount { font-size: 2.5rem; font-weight: 900; color: var(--hd-primary); line-height: 1; margin: 14px 0 4px; }
  .hd-price-amount sup { font-size: 1.125rem; vertical-align: top; margin-top: 6px; }
  .hd-price-amount sub { font-size: .875rem; font-weight: 400; color: var(--hd-muted); }
  .hd-price-feats { text-align: left; margin: 20px 0; display: flex; flex-direction: column; gap: 9px; }
  .hd-price-feat  { display: flex; align-items: center; gap: 9px; font-size: .9375rem; }
  .hd-price-feat svg { flex-shrink: 0; }
  .hd-price-feat--no svg { color: #EF4444; }
  .hd-price-feat--yes svg { color: var(--hd-green); }
  
  /* ============================================================
     FAQ
     ============================================================ */
  .hd-faq-item { border-bottom: 1px solid var(--hd-border); }
  .hd-faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 1rem;
    color: var(--hd-text); gap: 16px; list-style: none;
  }
  .hd-faq-q:hover { color: var(--hd-primary); }
  .hd-faq-icon { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--hd-primary); display: flex; align-items: center; justify-content: center; color: var(--hd-primary); flex-shrink: 0; transition: transform var(--hd-t); }
  .hd-faq-item.open .hd-faq-icon { transform: rotate(45deg); }
  .hd-faq-a { display: none; padding-bottom: 18px; color: var(--hd-muted); font-size: .9375rem; line-height: 1.75; }
  .hd-faq-item.open .hd-faq-a { display: block; }
  
  /* ============================================================
     STATS
     ============================================================ */
  .hd-stat-box { text-align: center; padding: 32px 20px; background: rgba(255,255,255,.06); border-radius: var(--hd-r-lg); border: 1px solid rgba(255,255,255,.12); }
  .hd-stat-num { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 900; color: #fff; line-height: 1; margin-bottom: 8px; }
  .hd-stat-num span { color: #60A5FA; }
  .hd-stat-label { font-size: .875rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }
  
  /* ============================================================
     BLOG CARDS
     ============================================================ */
  .hd-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
  .hd-blog-card {
    background: #fff; border-radius: var(--hd-r-lg); overflow: hidden;
    border: 1px solid var(--hd-border); box-shadow: var(--hd-sh-sm);
    transition: transform var(--hd-t), box-shadow var(--hd-t);
    display: flex; flex-direction: column;
  }
  .hd-blog-card:hover { transform: translateY(-4px); box-shadow: var(--hd-sh-lg); }
  .hd-blog-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--hd-primary-light); }
  .hd-blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
  .hd-blog-card:hover .hd-blog-thumb img { transform: scale(1.05); }
  .hd-blog-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
  .hd-blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
  .hd-blog-meta { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--hd-muted); margin-bottom: 10px; flex-wrap: wrap; }
  .hd-cat-badge { background: var(--hd-primary-light); color: var(--hd-primary); padding: 2px 9px; border-radius: 99px; font-weight: 600; font-size: .75rem; text-transform: uppercase; }
  .hd-blog-body h3 { font-size: 1.0625rem; margin-bottom: 8px; }
  .hd-blog-body h3 a { color: var(--hd-text); }
  .hd-blog-body h3 a:hover { color: var(--hd-primary); }
  .hd-read-more { display: inline-flex; align-items: center; gap: 5px; color: var(--hd-primary); font-weight: 600; font-size: .9375rem; margin-top: auto; padding-top: 12px; transition: gap var(--hd-t); }
  .hd-read-more:hover { gap: 9px; }
  
  /* ============================================================
     SINGLE POST
     ============================================================ */
  .hd-post-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding: 56px 0; }
  .hd-post-content { font-size: 1rem; line-height: 1.85; color: #374151; }
  .hd-post-content h2, .hd-post-content h3, .hd-post-content h4 { margin: 32px 0 14px; color: var(--hd-text); }
  .hd-post-content p  { color: #374151; margin-bottom: 20px; }
  .hd-post-content ul { list-style: disc; margin: 14px 0 20px 24px; }
  .hd-post-content ol { list-style: decimal; margin: 14px 0 20px 24px; }
  .hd-post-content li { margin-bottom: 7px; }
  .hd-post-content blockquote { border-left: 4px solid var(--hd-primary); background: var(--hd-primary-light); padding: 18px 24px; margin: 24px 0; border-radius: 0 var(--hd-r-md) var(--hd-r-md) 0; }
  .hd-post-content img { border-radius: var(--hd-r-md); margin: 20px 0; }
  .hd-post-content a   { text-decoration: underline; }
  .hd-post-featured { border-radius: var(--hd-r-lg); overflow: hidden; aspect-ratio: 16/7; margin-bottom: 36px; }
  .hd-post-featured img { width: 100%; height: 100%; object-fit: cover; }
  .hd-share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hd-border); }
  .hd-share-bar strong { font-size: .9375rem; }
  .hd-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; font-size: .875rem; font-weight: 600; transition: opacity var(--hd-t), transform var(--hd-t); }
  .hd-share-btn:hover { opacity: .88; transform: translateY(-1px); }
  .hd-share-btn--fb { background: #1877F2; color: #fff; }
  .hd-share-btn--li { background: var(--hd-primary); color: #fff; }
  .hd-share-btn--tw { background: #000; color: #fff; }
  .hd-author-box { display: flex; gap: 20px; background: #fff; border-radius: var(--hd-r-lg); padding: 28px; margin-top: 40px; border: 1px solid var(--hd-border); }
  .hd-author-av   { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
  .hd-author-info h4 { margin-bottom: 4px; }
  .hd-author-info .role { font-size: .875rem; color: var(--hd-primary); margin-bottom: 6px; display: block; }
  /* Sidebar */
  .hd-sw { background: #fff; border-radius: var(--hd-r-lg); padding: 24px; border: 1px solid var(--hd-border); margin-bottom: 24px; }
  .hd-sw h4 { font-size: .9375rem; font-weight: 700; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--hd-primary-light); }
  .hd-sw-cta { background: linear-gradient(135deg, var(--hd-primary), var(--hd-primary-dark)); text-align: center; padding: 28px 24px; }
  .hd-sw-cta h4, .hd-sw-cta p { color: #fff; }
  .hd-sw-cta p { color: rgba(255,255,255,.82); margin-bottom: 16px; }
  .hd-recent-list li { display: flex; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hd-border); }
  .hd-recent-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
  .hd-recent-thumb { width: 60px; height: 60px; border-radius: var(--hd-r-sm); object-fit: cover; flex-shrink: 0; background: var(--hd-primary-light); display: flex; align-items: center; justify-content: center; }
  .hd-recent-info a { font-size: .875rem; font-weight: 600; color: var(--hd-text); display: block; margin-bottom: 3px; line-height: 1.35; }
  .hd-recent-info a:hover { color: var(--hd-primary); }
  .hd-recent-info span { font-size: .8rem; color: var(--hd-muted); }
  /* Pagination */
  .hd-pagination { display: flex; justify-content: center; gap: 6px; padding: 36px 0; }
  .hd-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--hd-r-md); background: #fff; border: 1.5px solid var(--hd-border); color: var(--hd-text); font-weight: 500; transition: all var(--hd-t); }
  .hd-pagination .page-numbers:hover, .hd-pagination .page-numbers.current { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }
  
  /* ============================================================
     PAGE BANNER
     ============================================================ */
  .hd-page-banner {
    background: linear-gradient(135deg, var(--hd-primary) 0%, var(--hd-primary-dark) 100%);
    padding: 64px 0; text-align: center; position: relative; overflow: hidden;
  }
  .hd-page-banner::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  }
  .hd-page-banner h1 { color: #fff; position: relative; margin-bottom: 10px; }
  .hd-page-banner p  { color: rgba(255,255,255,.8); font-size: 1.0625rem; position: relative; }
  .hd-breadcrumb { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-size: .875rem; position: relative; }
  .hd-breadcrumb a { color: rgba(255,255,255,.8); }
  .hd-breadcrumb a:hover { color: #fff; }
  .hd-breadcrumb .sep { color: rgba(255,255,255,.4); }
  .hd-breadcrumb .cur { color: #fff; }
  
  /* ============================================================
     CTA BANNER
     ============================================================ */
  .hd-cta-section {
    background: linear-gradient(135deg, var(--hd-primary) 0%, #0D4E9A 100%);
    padding: 80px 0; text-align: center;
  }
  .hd-cta-section h2 { color: #fff; margin-bottom: 14px; }
  .hd-cta-section p  { color: rgba(255,255,255,.82); font-size: 1.0625rem; margin-bottom: 32px; }
  
  /* ============================================================
     CONTACT PAGE
     ============================================================ */
  .hd-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; padding: 72px 0; }
  .hd-contact-items { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
  .hd-contact-item { display: flex; gap: 14px; align-items: flex-start; }
  .hd-contact-icon { width: 46px; height: 46px; border-radius: var(--hd-r-md); background: var(--hd-primary-light); color: var(--hd-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .hd-contact-icon--green { background: #ECFDF5; color: var(--hd-green); }
  .hd-contact-item h4 { margin-bottom: 3px; font-size: .9375rem; }
  .hd-contact-item p  { font-size: .875rem; margin: 0; }
  .hd-contact-form-card { background: #fff; border-radius: var(--hd-r-xl); padding: 44px; box-shadow: var(--hd-sh-lg); border: 1px solid var(--hd-border); }
  .hd-map { border-radius: var(--hd-r-xl); overflow: hidden; margin-top: 48px; }
  .hd-map iframe { width: 100%; height: 360px; border: none; display: block; }
  
  /* ============================================================
     ABOUT PAGE
     ============================================================ */
  .hd-team-card { text-align: center; }
  .hd-team-av { width: 100px; height: 100px; border-radius: 50%; background: var(--hd-primary-light); color: var(--hd-primary); font-weight: 700; font-size: 1.75rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; overflow: hidden; }
  .hd-team-av img { width: 100%; height: 100%; object-fit: cover; }
  .hd-team-card h4 { margin-bottom: 3px; }
  .hd-team-role { font-size: .875rem; color: var(--hd-primary); margin-bottom: 8px; display: block; }
  .hd-values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
  .hd-value-item { display: flex; gap: 12px; background: var(--hd-primary-light); border-radius: var(--hd-r-md); padding: 18px; }
  .hd-value-icon { color: var(--hd-primary); flex-shrink: 0; margin-top: 2px; }
  .hd-value-item h4 { font-size: .9375rem; margin-bottom: 4px; }
  .hd-value-item p  { font-size: .8125rem; margin: 0; }
  
  /* ============================================================
     SERVICES PAGE
     ============================================================ */
  .hd-svc-card { background: #fff; border-radius: var(--hd-r-xl); overflow: hidden; border: 1px solid var(--hd-border); margin-bottom: 40px; }
  .hd-svc-head { padding: 36px; background: linear-gradient(135deg, var(--hd-primary-light), #fff); display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
  .hd-svc-body { padding: 32px; }
  
  /* ============================================================
     FOOTER
     ============================================================ */
  #hd-footer { background: var(--hd-dark); }
  .hd-footer-top { padding: 64px 0 48px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
  .hd-footer-logo-text { font-size: 1.375rem; font-weight: 800; color: #fff; margin-bottom: 14px; display: inline-block; }
  .hd-footer-logo-text span { color: #60A5FA; }
  .hd-footer-brand p { color: #94A3B8; font-size: .9375rem; line-height: 1.75; margin-bottom: 22px; }
  .hd-footer-social { display: flex; gap: 9px; }
  .hd-footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: #CBD5E1; display: flex; align-items: center; justify-content: center; transition: all var(--hd-t); }
  .hd-footer-social a:hover { background: var(--hd-primary); color: #fff; }
  .hd-footer-col h4 { font-size: .9375rem; font-weight: 700; color: #fff; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hd-footer-col ul li { margin-bottom: 9px; }
  .hd-footer-col ul li a { color: #94A3B8; font-size: .9375rem; transition: color var(--hd-t); }
  .hd-footer-col ul li a:hover { color: #60A5FA; }
  .hd-footer-nl h4 { font-size: .9375rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
  .hd-footer-nl p { color: #94A3B8; font-size: .875rem; margin-bottom: 12px; }
  .hd-footer-nl form { display: flex; gap: 7px; }
  .hd-footer-nl input { flex: 1; padding: 9px 13px; border-radius: var(--hd-r-md); border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #fff; font-size: .875rem; }
  .hd-footer-nl input::placeholder { color: rgba(255,255,255,.4); }
  .hd-footer-nl input:focus { outline: none; border-color: var(--hd-primary); }
  .hd-footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
  .hd-footer-bottom p { color: #64748B; font-size: .875rem; margin: 0; }
  .hd-footer-bottom-links { display: flex; gap: 18px; }
  .hd-footer-bottom-links a { color: #64748B; font-size: .875rem; }
  .hd-footer-bottom-links a:hover { color: #60A5FA; }
  
  /* ============================================================
     404
     ============================================================ */
  .hd-404-wrap { min-height: 78vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px; text-align: center; }
  .hd-404-num  { font-size: clamp(6rem, 14vw, 10rem); font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--hd-primary), #60A5FA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .hd-404-wrap h2 { margin-bottom: 14px; }
  .hd-404-wrap p  { font-size: 1.0625rem; max-width: 460px; margin: 0 auto 32px; }
  
  /* ============================================================
     SKIP LINK / ACCESSIBILITY
     ============================================================ */
  .skip-link { position: absolute; top: -999px; left: 16px; background: var(--hd-primary); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px; font-weight: 600; z-index: 99999; }
  .skip-link:focus { top: 0; }
  
  /* ============================================================
     SCROLL ANIMATIONS
     ============================================================ */
  .hd-animate { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
  .hd-animate.hd-visible { opacity: 1; transform: none; }
  
  /* ============================================================
     RESPONSIVE
     ============================================================ */
  @media (max-width: 1024px) {
    .hd-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hd-grid-4 { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 900px) {
    /* Hide desktop nav, show hamburger */
    #hd-desktop-nav { display: none; }
    .hd-hamburger   { display: flex; }
    /* Hide the plain CTA link; keep the accent button visible on mobile */
    .hd-header-actions .hd-btn--primary { display: none; }
    /* Adjust grids */
    .hd-grid-2, .hd-contact-grid, .hd-post-wrap { grid-template-columns: 1fr; }
    .hd-grid-3  { grid-template-columns: repeat(2, 1fr); }
    .hd-sidebar { order: -1; }
  }
  @media (max-width: 640px) {
    :root { --hd-hh: 64px; }
    .hd-grid-3, .hd-grid-4, .hd-blog-grid { grid-template-columns: 1fr; }
    .hd-footer-top { grid-template-columns: 1fr; gap: 28px; }
    .hd-footer-bottom { flex-direction: column; text-align: center; }
    .hd-footer-bottom-links { justify-content: center; }
    .hd-form-row { grid-template-columns: 1fr; }
    .hd-slide { min-height: 480px; padding: 60px 0; }
    .hd-trust-div { display: none; }
    .hd-trust-inner { justify-content: center; }
    .hd-values-grid { grid-template-columns: 1fr; }
    .hd-author-box { flex-direction: column; }
    .hd-section { padding: 56px 0; }
    .hd-contact-form-card { padding: 28px 20px; }
  }

/* ── WhatsApp Floating Button ─────────────────────────────── */
.hd-wa-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 8888;
    background: #25D366;
    color: #fff;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 14px;
    font-weight: 600;
    font-size: .9375rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    transition: transform var(--hd-t), box-shadow var(--hd-t);
    text-decoration: none;
    animation: hd-wa-pulse 3s infinite;
  }
  .hd-wa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37,211,102,.55);
    color: #fff;
    animation: none;
  }
  .hd-wa-btn span { white-space: nowrap; }
  @keyframes hd-wa-pulse {
    0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
    50%      { box-shadow: 0 4px 32px rgba(37,211,102,.65); }
  }
  @media (max-width: 640px) {
    .hd-wa-btn span { display: none; }
    .hd-wa-btn { padding: 14px; border-radius: 50%; }
  }
  
  /* ── Inline form wrapper ──────────────────────────────────── */
  .hd-inline-form-wrap {
    background: #fff;
    border-radius: var(--hd-r-xl);
    padding: 40px;
    box-shadow: var(--hd-sh-xl);
    border: 1px solid var(--hd-border);
  }
  @media (max-width:640px){ .hd-inline-form-wrap { padding: 24px 18px; } }
  
  /* ── Footer newsletter fix ────────────────────────────────── */
  .hd-footer-nl form {
    display: flex;
    gap: 8px;
    margin-top: 4px;
  }
  .hd-footer-nl form input[type="email"] {
    flex: 1;
    min-width: 0;        /* prevents overflow */
    padding: 10px 14px;
    border-radius: var(--hd-r-md);
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: .875rem;
    font-family: var(--hd-font);
  }
  .hd-footer-nl form input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
  .hd-footer-nl form input[type="email"]:focus { outline: none; border-color: var(--hd-primary); }
  .hd-footer-nl form button { flex-shrink: 0; }
  #hd-nl-msg.success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
  #hd-nl-msg.error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
  

/* ── Fix: all inline SVG paths default fill:none ─────────── */
.hd-card svg path[d],
.hd-card svg polyline,
.hd-card svg line,
.hd-card svg circle,
.hd-trust-item svg path,
.hd-contact-item svg path,
.hd-checkmark svg polyline,
.hd-checkmark svg circle,
.hd-includes li svg polyline,
.hd-price-feat svg polyline,
.hd-price-feat svg line { fill: none; }

/* ── WhatsApp button — fixed ──────────────────────────────── */
.hd-wa-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 8888;
  background: #25D366; color: #fff;
  border-radius: 99px;
  display: flex; align-items: center; gap: 9px;
  padding: 12px 20px 12px 14px;
  font-weight: 600; font-size: .9375rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: hd-wa-pulse 3s infinite;
}
.hd-wa-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(37,211,102,.55); color: #fff; animation: none; }
.hd-wa-btn svg  { width: 22px; height: 22px; flex-shrink: 0; fill: #fff; }
/* CRITICAL: contain the path inside svg — no accidental black fill */
.hd-wa-btn svg path { fill: #fff; }
.hd-wa-btn span { white-space: nowrap; }
@keyframes hd-wa-pulse { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,.4)}50%{box-shadow:0 4px 32px rgba(37,211,102,.65)} }
@media(max-width:640px){ .hd-wa-btn span{display:none} .hd-wa-btn{padding:14px;border-radius:50%} }

/* ── Case Studies ──────────────────────────────────────────── */
.hd-case-card {
  background: #fff; border-radius: var(--hd-r-xl);
  border: 1px solid var(--hd-border);
  overflow: hidden; box-shadow: var(--hd-sh-sm);
  transition: transform var(--hd-t), box-shadow var(--hd-t);
}
.hd-case-card:hover { transform: translateY(-5px); box-shadow: var(--hd-sh-lg); }
.hd-case-header { padding: 28px; background: linear-gradient(135deg, var(--hd-primary-light), #fff); border-bottom: 1px solid var(--hd-border); }
.hd-case-body   { padding: 32px; }
.hd-result-row  { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.hd-result-pill {
  background: var(--hd-primary-light); color: var(--hd-primary);
  padding: 8px 16px; border-radius: 99px;
  font-size: .875rem; font-weight: 600;
}
.hd-result-pill--green { background: #ECFDF5; color: var(--hd-green); }
.hd-result-pill--accent { background: #FFF0EB; color: var(--hd-accent); }

/* ── Privacy / Terms pages ────────────────────────────────── */
.hd-legal-content { max-width: 800px; margin: 0 auto; padding: 64px 24px; }
.hd-legal-content h2 { margin: 36px 0 14px; font-size: 1.375rem; }
.hd-legal-content h3 { margin: 28px 0 10px; font-size: 1.125rem; }
.hd-legal-content p  { font-size: 1rem; color: #374151; margin-bottom: 14px; }
.hd-legal-content ul { list-style: disc; margin: 10px 0 16px 24px; }
.hd-legal-content ul li { font-size: 1rem; color: #374151; margin-bottom: 6px; }

/* ── Blog category badges ─────────────────────────────────── */
.hd-cat-badge--seo    { background: #EDE9FE; color: #5B21B6; }
.hd-cat-badge--ads    { background: #FFF0EB; color: var(--hd-accent); }
.hd-cat-badge--local  { background: #ECFDF5; color: var(--hd-green); }
.hd-cat-badge--conv   { background: #FEF3C7; color: #92400E; }

/* ── "Not sure" section → new headline ───────────────────── */
.hd-notsure { background: #fff; padding: 80px 0; text-align: center; }
.hd-notsure h2 { margin-bottom: 14px; }
.hd-notsure p  { font-size: 1.0625rem; max-width: 640px; margin: 0 auto 32px; }

/* ── Tagline strip ────────────────────────────────────────── */
.hd-tagline-strip {
  background: var(--hd-primary); color: #fff;
  padding: 16px 0; text-align: center;
  font-size: 1.0625rem; font-weight: 600;
  letter-spacing: .01em;
}
.hd-tagline-strip span { color: #93C5FD; }

/* ── About page mission box ───────────────────────────────── */
.hd-mission-box { background: var(--hd-primary-light); border-radius: var(--hd-r-xl); padding: 48px; border-left: 5px solid var(--hd-primary); }

/* ── Process steps ────────────────────────────────────────── */
.hd-steps { display: flex; flex-direction: column; gap: 24px; }
.hd-step  { display: flex; gap: 18px; align-items: flex-start; }
.hd-step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--hd-primary); color: #fff; font-weight: 700; font-size: 1.125rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hd-step-body h4 { margin-bottom: 5px; }
.hd-step-body p  { font-size: .9375rem; margin: 0; }

/* ── Service hero sub-stat badges ────────────────────────── */
.hd-svc-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hd-svc-stat  { background: rgba(255,255,255,.12); border-radius: var(--hd-r-md); padding: 14px 20px; backdrop-filter: blur(4px); }
.hd-svc-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.hd-svc-stat span   { font-size: .8125rem; color: rgba(255,255,255,.7); }

/* ── Inline form wrapper ──────────────────────────────────── */
.hd-form-card {
  background: #fff; border-radius: var(--hd-r-xl);
  padding: 40px; box-shadow: var(--hd-sh-xl);
  border: 1px solid var(--hd-border);
}
@media(max-width:640px){ .hd-form-card{padding:24px 18px} }

/* ── Footer newsletter — bulletproof ─────────────────────── */
.hd-footer-nl form {
  display: flex; gap: 8px; margin-top: 6px;
}
.hd-footer-nl input[type="email"] {
  flex: 1; min-width: 0;
  padding: 10px 13px;
  border-radius: var(--hd-r-md);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.09);
  color: #fff; font-size: .875rem;
  font-family: var(--hd-font);
}
.hd-footer-nl input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
.hd-footer-nl input[type="email"]:focus { outline: none; border-color: var(--hd-primary); background: rgba(255,255,255,.14); }
.hd-footer-nl button { flex-shrink: 0; }
#hd-nl-msg { font-size: .875rem; padding: 8px 12px; }
#hd-nl-msg.success { background: #ECFDF5; color: #065F46; border-radius: var(--hd-r-md); border: 1px solid #A7F3D0; }
#hd-nl-msg.error   { background: #FEF2F2; color: #991B1B; border-radius: var(--hd-r-md); border: 1px solid #FECACA; }

/* ── Responsive fixes for new pages ──────────────────────── */
@media(max-width:900px){
  .hd-svc-stats { gap: 10px; }
  .hd-result-row { flex-direction: column; gap: 8px; }
}
@media(max-width:640px){
  .hd-mission-box { padding: 28px 20px; }
  .hd-legal-content { padding: 40px 16px; }
}

/* ── Hero slider wrapper (front-page uses hd-hero-slider) ── */
.hd-hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--hd-dark);
}
.hd-hero-slider .hd-slider-track { display: flex; transition: transform .7s cubic-bezier(.4,0,.2,1); }

/* ── Slider nav buttons (HTML uses hd-slider-prev/next) ──── */
.hd-slider-prev,
.hd-slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--hd-t);
}
.hd-slider-prev:hover, .hd-slider-next:hover { background: rgba(255,255,255,.3); }
.hd-slider-prev { left: 20px; }
.hd-slider-next { right: 20px; }

/* ── CTA banner (front-page uses hd-cta-banner) ─────────── */
.hd-cta-banner {
  background: linear-gradient(135deg, var(--hd-primary) 0%, #0D4E9A 100%);
  padding: 80px 0; text-align: center;
}
.hd-cta-banner h2 { color: #fff; margin-bottom: 14px; }
.hd-cta-banner p  { color: rgba(255,255,255,.82); font-size: 1.0625rem; margin-bottom: 32px; }

/* ── Trust bar inner (front-page uses hd-trust-bar-inner) ── */
.hd-trust-bar-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
/* trust bar divider used in front-page as hd-trust-divider */
.hd-trust-divider { width: 1px; height: 24px; background: var(--hd-border); }
@media(max-width:640px){ .hd-trust-divider { display: none; } }

/* ══════════════════════════════════════════════════════════════
   CSS CLASS-NAME ALIASES
   front-page.php uses different class names than the base CSS.
   These aliases bridge the gap without touching templates.
══════════════════════════════════════════════════════════════ */

/* ── 404 page ────────────────────────────────────────────── */
.hd-404 {
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px; text-align: center;
}
.hd-404-code {
  font-size: clamp(5rem, 14vw, 9rem); font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--hd-primary), #60A5FA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 14px;
}
.hd-404-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

/* ── Testimonials (front-page uses hd-testimonial) ───────── */
.hd-testimonial {
  background: #fff; border-radius: var(--hd-r-lg);
  padding: 32px; border: 1px solid var(--hd-border);
  box-shadow: var(--hd-sh-sm);
  display: flex; flex-direction: column;
  transition: transform var(--hd-t), box-shadow var(--hd-t);
}
.hd-testimonial:hover { transform: translateY(-4px); box-shadow: var(--hd-sh-lg); }
.hd-testimonial-stars { color: #F59E0B; font-size: 1.125rem; margin-bottom: 14px; letter-spacing: .05em; }
.hd-testimonial > p   { font-size: .9375rem; color: var(--hd-text); font-style: italic; margin-bottom: 20px; flex: 1; line-height: 1.75; }
.hd-testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.hd-testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--hd-primary-light); color: var(--hd-primary);
  font-weight: 700; font-size: .9375rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hd-testimonial-author strong { display: block; font-size: .9375rem; color: var(--hd-text); }
.hd-testimonial-author span   { font-size: .8125rem; color: var(--hd-muted); }

/* ── Pricing cards (front-page uses hd-pricing-card) ─────── */
.hd-pricing-card {
  background: #fff; border-radius: var(--hd-r-xl);
  padding: 36px 32px; border: 2px solid var(--hd-border);
  position: relative; transition: transform var(--hd-t), box-shadow var(--hd-t);
  display: flex; flex-direction: column;
}
.hd-pricing-card:hover { transform: translateY(-5px); box-shadow: var(--hd-sh-lg); }
.hd-pricing-card--featured {
  border-color: var(--hd-primary);
  box-shadow: 0 8px 40px rgba(10,102,194,.18);
}
.hd-pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--hd-accent); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 4px 16px;
  border-radius: 99px; white-space: nowrap;
}
.hd-pricing-price {
  font-size: 2.75rem; font-weight: 900; color: var(--hd-primary);
  line-height: 1; margin: 16px 0 4px;
}
.hd-pricing-price sup { font-size: 1.25rem; vertical-align: top; margin-top: 8px; }
.hd-pricing-price sub { font-size: .9rem; font-weight: 400; color: var(--hd-muted); }
.hd-pricing-features  { margin: 20px 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hd-pricing-feat      { display: flex; align-items: center; gap: 9px; font-size: .9375rem; }
.hd-pricing-feat svg  { flex-shrink: 0; }
.hd-pricing-feat.no svg { color: #EF4444; }
.hd-pricing-feat:not(.no) svg { color: var(--hd-green); }

/* ── Service includes list (used on homepage cards) ─────── */
.hd-service-includes { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.hd-service-includes li {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem; color: var(--hd-muted);
}
.hd-service-includes li svg { color: var(--hd-green); flex-shrink: 0; }

/* ── Trust item badge-style enhancement ─────────────────── */
.hd-trust-item {
  display: flex; align-items: center; gap: 9px;
  font-size: .875rem; font-weight: 600; color: var(--hd-text);
  padding: 6px 14px; border-radius: 99px;
  background: var(--hd-bg); border: 1px solid var(--hd-border);
  transition: border-color var(--hd-t), background var(--hd-t);
}
.hd-trust-item:hover { border-color: var(--hd-primary); background: var(--hd-primary-light); }
.hd-trust-item svg   { color: var(--hd-primary); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   TABLET BREAKPOINT  768px
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hd-grid-2 { gap: 32px; }
  .hd-contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hd-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hd-hero-slider .hd-slide { min-height: 520px; padding: 70px 0; }
  .hd-slide-stats { gap: 20px; margin-top: 28px; }
  .hd-slide-stat strong { font-size: 1.5rem; }
  .hd-pricing-card { padding: 28px 22px; }
  .hd-trust-bar-inner { gap: 10px; justify-content: center; }
  .hd-trust-divider { display: none; }
  .hd-trust-item { font-size: .8125rem; padding: 5px 10px; }
  .hd-popup-body { padding: 20px 22px; }
  .hd-popup-head { padding: 22px 26px; }
  .hd-svc-stats { gap: 10px; }
  .hd-svc-stat  { padding: 10px 14px; }
  .hd-svc-stat strong { font-size: 1.25rem; }
  .hd-stat-box { padding: 24px 16px; }
}

/* ══════════════════════════════════════════════════════════════
   IMPROVED MOBILE  ≤640px
══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.125rem; }

  /* Hero */
  .hd-hero-slider .hd-slide { min-height: 440px; padding: 56px 0; }
  .hd-slide-content h1 { font-size: 1.625rem; }
  .hd-slide-content p  { font-size: .9375rem; }
  .hd-slide-btns  { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hd-slide-stats { flex-direction: row; flex-wrap: wrap; gap: 16px 24px; margin-top: 24px; }
  .hd-slide-stat strong { font-size: 1.25rem; }

  /* Sections */
  .hd-section { padding: 48px 0; }
  .hd-grid-3  { grid-template-columns: 1fr; }
  .hd-grid-4  { grid-template-columns: 1fr 1fr; }
  .hd-blog-grid { grid-template-columns: 1fr; }

  /* Cards */
  .hd-card { padding: 22px 18px; }
  .hd-testimonial { padding: 22px 18px; }
  .hd-pricing-card { padding: 24px 18px; }
  .hd-pricing-price { font-size: 2.25rem; }

  /* Contact */
  .hd-contact-form-card { padding: 24px 16px; }
  .hd-map iframe { height: 260px; }

  /* Forms */
  .hd-form-row { grid-template-columns: 1fr; }
  .hd-popup-box { margin: 0 8px; }
  .hd-popup-body { padding: 16px; }
  .hd-popup-head { padding: 18px 20px; }
  .hd-form-card  { padding: 20px 16px; }

  /* Footer */
  .hd-footer-top  { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .hd-footer-bottom { flex-direction: column; text-align: center; }
  .hd-footer-bottom-links { justify-content: center; }

  /* Process / steps */
  .hd-grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hd-step   { gap: 12px; }
  .hd-step-num { width: 36px; height: 36px; font-size: 1rem; }

  /* Misc */
  .hd-section-title { font-size: 1.375rem; }
  .hd-section-sub   { font-size: .9375rem; }
  .hd-btn--lg { padding: 13px 26px; font-size: .9375rem; }
  .hd-values-grid   { grid-template-columns: 1fr; }
  .hd-author-box    { flex-direction: column; }
}

/* ── Prevent any element from bleeding past viewport ─────── */
.hd-wrap, section, footer, header { max-width: 100vw; }
img { max-width: 100%; height: auto; }

/* ── Equal-height grid items ─────────────────────────────── */
.hd-grid-3 > .hd-card,
.hd-grid-3 > .hd-testimonial,
.hd-grid-3 > .hd-pricing-card,
.hd-grid-3 > .hd-case-card { height: 100%; }

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hd-slider-track { transition: none; }
}
    