/* ════════════════════════════════════════════════════════════════
   HealthDir Theme — Main Stylesheet
   ════════════════════════════════════════════════════════════════ */

/* ── Google Fonts fallback (loaded via functions.php) ──────────── */
:root {
    --hd-primary:        #0A6E6E;
    --hd-primary-dark:   #074f4f;
    --hd-primary-light:  #E8F5F5;
    --hd-accent:         #FF6B35;
    --hd-accent-light:   #FFF0EA;
    --hd-gold:           #FFD166;
    --hd-text:           #1A2332;
    --hd-text-muted:     #6B7A8D;
    --hd-border:         #DEE5EC;
    --hd-bg:             #F5F7FA;
    --hd-white:          #FFFFFF;
    --hd-shadow-sm:      0 1px 4px rgba(26,35,50,.08);
    --hd-shadow:         0 2px 12px rgba(10,110,110,.10);
    --hd-shadow-lg:      0 8px 32px rgba(10,110,110,.15);
    --hd-radius:         12px;
    --hd-radius-sm:      6px;
    --hd-radius-lg:      20px;
    --font-heading:      'Sora', system-ui, sans-serif;
    --font-body:         'Inter', system-ui, sans-serif;
    --hd-header-height:  72px;
    --hd-max-width:      1200px;
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--hd-text);
    background: var(--hd-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.25; }
a { color: var(--hd-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Layout helpers ─────────────────────────────────────────────── */
.hdt-container { max-width: var(--hd-max-width); margin: 0 auto; padding: 0 24px; }
.hdt-section   { padding: 64px 0; }
.hdt-section--sm { padding: 40px 0; }
.hdt-section--lg { padding: 96px 0; }

/* ════════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════════ */
.hdt-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--hd-white);
    border-bottom: 1px solid var(--hd-border);
    box-shadow: var(--hd-shadow-sm);
    height: var(--hd-header-height);
}
.hdt-header__inner {
    max-width: var(--hd-max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.hdt-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800; font-size: 20px;
    color: var(--hd-primary);
    text-decoration: none; white-space: nowrap;
    flex-shrink: 0;
}
.hdt-logo:hover { text-decoration: none; color: var(--hd-primary-dark); }
.hdt-logo--light { color: rgba(255,255,255,.9); }
.hdt-logo--light:hover { color: #fff; }
.hdt-logo span { color: var(--hd-text); }
.hdt-logo--light span { color: rgba(255,255,255,.75); }

/* Nav */
.hdt-nav { flex: 1; }
.hdt-nav ul { display: flex; gap: 4px; align-items: center; }
.hdt-nav li a {
    padding: 8px 14px; border-radius: var(--hd-radius-sm);
    font-size: 15px; font-weight: 500; color: var(--hd-text-muted);
    text-decoration: none; transition: all .15s;
}
.hdt-nav li a:hover,
.hdt-nav li.current-menu-item a { color: var(--hd-primary); background: var(--hd-primary-light); }

/* Header CTA */
.hdt-header__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Header Buttons */
.hdt-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: var(--hd-radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer;
    border: 2px solid transparent; text-decoration: none;
    transition: all .18s; white-space: nowrap; font-family: var(--font-body);
}
.hdt-btn--primary { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }
.hdt-btn--primary:hover { background: var(--hd-primary-dark); border-color: var(--hd-primary-dark); color: #fff; text-decoration: none; }
.hdt-btn--outline { background: transparent; color: var(--hd-primary); border-color: var(--hd-primary); }
.hdt-btn--outline:hover { background: var(--hd-primary-light); text-decoration: none; }
.hdt-btn--ghost { background: transparent; color: var(--hd-text-muted); border-color: transparent; }
.hdt-btn--ghost:hover { background: var(--hd-bg); color: var(--hd-text); text-decoration: none; }
.hdt-btn--accent { background: var(--hd-accent); color: #fff; border-color: var(--hd-accent); }
.hdt-btn--accent:hover { background: #e05a25; border-color: #e05a25; color: #fff; text-decoration: none; }
.hdt-btn--lg { padding: 14px 32px; font-size: 16px; border-radius: var(--hd-radius); }
.hdt-btn--sm { padding: 6px 14px; font-size: 13px; }
.hdt-btn--full { width: 100%; justify-content: center; }

/* Mobile menu toggle */
.hdt-menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    font-size: 24px; color: var(--hd-text); padding: 4px 8px; margin-left: auto;
}

/* ════════════════════════════════════════════════════════════════
   HOMEPAGE HERO
════════════════════════════════════════════════════════════════ */
.hdt-hero {
    background: linear-gradient(135deg, var(--hd-primary) 0%, var(--hd-primary-dark) 60%, #033030 100%);
    padding: 96px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hdt-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hdt-hero__inner { position: relative; max-width: 760px; margin: 0 auto; }
.hdt-hero__eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
    padding: 6px 18px; border-radius: 20px;
    font-size: 13px; font-weight: 600; letter-spacing: .5px;
    text-transform: uppercase; margin-bottom: 24px;
}
.hdt-hero__title {
    font-size: clamp(32px,6vw,64px);
    font-weight: 800; color: #fff; margin-bottom: 20px;
    letter-spacing: -1.5px; line-height: 1.1;
}
.hdt-hero__title .highlight { color: var(--hd-gold); }
.hdt-hero__subtitle {
    font-size: clamp(16px,2vw,20px);
    color: rgba(255,255,255,.8); margin-bottom: 48px; line-height: 1.6;
}

/* Hero Search Bar */
.hdt-search-hero {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--hd-radius-lg);
    padding: 8px;
    display: flex; gap: 8px; flex-wrap: wrap;
    max-width: 860px; margin: 0 auto 40px;
}
.hdt-search-hero__field {
    flex: 1; min-width: 180px;
    background: rgba(255,255,255,.95);
    border-radius: 12px;
    display: flex; align-items: center;
    padding: 0 16px; gap: 10px;
}
.hdt-search-hero__field svg {
    width: 18px; height: 18px; color: var(--hd-text-muted); flex-shrink: 0;
}
.hdt-search-hero__field input,
.hdt-search-hero__field select {
    border: none; outline: none; background: transparent;
    font-size: 15px; color: var(--hd-text); width: 100%;
    padding: 14px 0; font-family: var(--font-body);
}
.hdt-search-hero .hdt-btn--accent { padding: 14px 28px; font-size: 15px; border-radius: 12px; flex-shrink: 0; }

/* Hero Stats */
.hdt-hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.hdt-hero-stat { color: rgba(255,255,255,.85); text-align: center; }
.hdt-hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 4px; }
.hdt-hero-stat span { font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }

/* ════════════════════════════════════════════════════════════════
   TRUST BAR / TYPE NAV
════════════════════════════════════════════════════════════════ */
.hdt-type-nav {
    background: var(--hd-white);
    border-bottom: 1px solid var(--hd-border);
    padding: 0;
}
.hdt-type-nav__inner {
    max-width: var(--hd-max-width); margin: 0 auto;
    display: flex; align-items: center; overflow-x: auto; gap: 0;
    scrollbar-width: none;
}
.hdt-type-nav__inner::-webkit-scrollbar { display: none; }
.hdt-type-tab {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 24px; white-space: nowrap;
    border-bottom: 3px solid transparent;
    font-size: 14px; font-weight: 600; color: var(--hd-text-muted);
    cursor: pointer; transition: all .15s; text-decoration: none;
    flex-shrink: 0;
}
.hdt-type-tab:hover { color: var(--hd-primary); border-bottom-color: var(--hd-primary-light); text-decoration: none; }
.hdt-type-tab.active { color: var(--hd-primary); border-bottom-color: var(--hd-primary); }
.hdt-type-tab__icon { font-size: 20px; }

/* ════════════════════════════════════════════════════════════════
   SECTION HEADINGS
════════════════════════════════════════════════════════════════ */
.hdt-section-heading { margin-bottom: 40px; }
.hdt-section-heading__label {
    display: inline-block;
    color: var(--hd-primary); font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.hdt-section-heading h2 {
    font-size: clamp(24px,4vw,38px); font-weight: 800;
    color: var(--hd-text); margin-bottom: 14px; letter-spacing: -.5px;
}
.hdt-section-heading p { color: var(--hd-text-muted); font-size: 17px; max-width: 560px; line-height: 1.6; }
.hdt-section-heading--center { text-align: center; }
.hdt-section-heading--center p { margin: 0 auto; }

/* ════════════════════════════════════════════════════════════════
   FEATURED PROVIDERS GRID
════════════════════════════════════════════════════════════════ */
.hdt-featured-section {
    background: var(--hd-white);
    border-top: 1px solid var(--hd-border);
    border-bottom: 1px solid var(--hd-border);
}
.hdt-featured-section .hdt-section-heading {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.hdt-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Provider Card */
.hdt-card {
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex; flex-direction: column;
    cursor: pointer;
}
.hdt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hd-shadow-lg);
    border-color: var(--hd-primary);
    text-decoration: none; color: inherit;
}
.hdt-card--featured { border-color: var(--hd-gold); background: #FFFDF5; }
.hdt-card--featured:hover { border-color: #e6b800; }

.hdt-card__thumb {
    position: relative; height: 200px;
    background: var(--hd-primary-light); overflow: hidden;
}
.hdt-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hdt-card:hover .hdt-card__thumb img { transform: scale(1.04); }
.hdt-card__thumb-initials {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 48px; font-weight: 800;
    color: var(--hd-primary); opacity: .5;
    background: linear-gradient(135deg, var(--hd-primary-light), #c6e6e6);
}
.hdt-card__badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; gap: 6px; flex-wrap: wrap;
}
.hdt-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: .3px;
    line-height: 1.4;
}
.hdt-badge--featured  { background: #FFF3CD; color: #7A5C00; border: 1px solid #FFD166; }
.hdt-badge--verified  { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.hdt-badge--type      { background: var(--hd-primary-light); color: var(--hd-primary); border: 1px solid #b0d8d8; }

.hdt-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hdt-card__type {
    display: inline-block;
    background: var(--hd-primary-light); color: var(--hd-primary);
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: 20px; text-transform: uppercase; letter-spacing: .4px;
    align-self: flex-start; margin-bottom: 2px;
}
.hdt-card__name { font-size: 16px; font-weight: 700; color: var(--hd-text); line-height: 1.3; }
.hdt-card__spec { font-size: 13px; color: var(--hd-text-muted); }
.hdt-card__region { font-size: 13px; color: var(--hd-text-muted); display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; }
.hdt-card__footer {
    padding: 12px 18px;
    border-top: 1px solid var(--hd-border);
    display: flex; align-items: center; justify-content: space-between;
    background: var(--hd-bg);
}
.hdt-card__phone { font-size: 13px; color: var(--hd-primary); font-weight: 600; }
.hdt-card__cta {
    font-size: 13px; font-weight: 600; color: var(--hd-primary);
    display: flex; align-items: center; gap: 4px;
}
.hdt-card__cta::after { content: '→'; transition: transform .15s; }
.hdt-card:hover .hdt-card__cta::after { transform: translateX(4px); }

/* ════════════════════════════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════════════════════════════ */
.hdt-how-steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 32px; margin-top: 48px; }
.hdt-how-step { text-align: center; }
.hdt-how-step__icon {
    width: 72px; height: 72px; margin: 0 auto 20px;
    background: var(--hd-primary-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}
.hdt-how-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.hdt-how-step p { font-size: 14px; color: var(--hd-text-muted); line-height: 1.6; }
.hdt-how-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; background: var(--hd-primary); color: #fff;
    border-radius: 50%; font-size: 13px; font-weight: 800;
    margin-bottom: 16px;
}

/* ════════════════════════════════════════════════════════════════
   CTA BANNER
════════════════════════════════════════════════════════════════ */
.hdt-cta-banner {
    background: linear-gradient(135deg, var(--hd-primary) 0%, var(--hd-primary-dark) 100%);
    border-radius: var(--hd-radius-lg);
    padding: 64px 48px;
    text-align: center;
    margin: 64px 0;
    position: relative; overflow: hidden;
}
.hdt-cta-banner h2 { font-size: clamp(24px,4vw,40px); color: #fff; font-weight: 800; margin-bottom: 14px; }
.hdt-cta-banner p  { color: rgba(255,255,255,.8); font-size: 17px; margin-bottom: 32px; }
.hdt-cta-banner__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hdt-cta-banner .hdt-btn--white { background: #fff; color: var(--hd-primary); border-color: #fff; }
.hdt-cta-banner .hdt-btn--white:hover { background: var(--hd-primary-light); }
.hdt-cta-banner .hdt-btn--ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.hdt-cta-banner .hdt-btn--ghost-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ════════════════════════════════════════════════════════════════
   SINGLE PROVIDER PAGE
════════════════════════════════════════════════════════════════ */
.hdt-provider-single { padding: 40px 0 80px; }
.hdt-provider-single__inner { max-width: 900px; margin: 0 auto; }
.hdt-provider-single__breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--hd-text-muted); margin-bottom: 24px;
}
.hdt-provider-single__breadcrumb a { color: var(--hd-primary); text-decoration: none; }
.hdt-provider-single__breadcrumb span { color: var(--hd-border); }

.hdt-provider-hero {
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    overflow: hidden; margin-bottom: 24px;
}
.hdt-provider-hero__banner {
    height: 200px;
    background: linear-gradient(135deg, var(--hd-primary-light), #c0e0e0);
    position: relative;
}
.hdt-provider-hero__body {
    padding: 0 32px 28px;
    display: flex; gap: 24px; align-items: flex-end;
}
.hdt-provider-hero__photo {
    margin-top: -48px; flex-shrink: 0;
    width: 96px; height: 96px; border-radius: 50%;
    border: 4px solid var(--hd-white);
    overflow: hidden; background: var(--hd-primary-light);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: var(--hd-primary);
    box-shadow: var(--hd-shadow);
}
.hdt-provider-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hdt-provider-hero__info { padding-top: 12px; flex: 1; }
.hdt-provider-hero__name {
    font-size: 26px; font-weight: 800; color: var(--hd-text);
    margin-bottom: 8px; letter-spacing: -.5px;
}
.hdt-provider-hero__meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.hdt-provider-hero__spec { font-size: 14px; color: var(--hd-text-muted); }
.hdt-provider-hero__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.hdt-provider-body { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }

.hdt-provider-section {
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    padding: 28px; margin-bottom: 20px;
}
.hdt-provider-section h3 {
    font-size: 16px; font-weight: 700; color: var(--hd-text);
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--hd-border);
    display: flex; align-items: center; gap: 8px;
}

/* Sidebar contact */
.hdt-contact-card {
    background: var(--hd-white); border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius); padding: 24px; position: sticky; top: 88px;
}
.hdt-contact-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.hdt-contact-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--hd-border);
}
.hdt-contact-item:last-of-type { border-bottom: none; }
.hdt-contact-item__icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.hdt-contact-item__label { font-size: 11px; font-weight: 600; color: var(--hd-text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.hdt-contact-item__value { font-size: 14px; color: var(--hd-text); font-weight: 500; }
.hdt-contact-item__value a { color: var(--hd-primary); text-decoration: none; }
.hdt-contact-item__value a:hover { text-decoration: underline; }

.hdt-hours-grid { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 8px; }
.hdt-hours-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--hd-border); }
.hdt-hours-row:last-child { border: none; }
.hdt-hours-row__day { font-weight: 600; color: var(--hd-text); }
.hdt-hours-row__time { color: var(--hd-text-muted); }

/* ════════════════════════════════════════════════════════════════
   ARCHIVE / SEARCH RESULTS PAGE
════════════════════════════════════════════════════════════════ */
.hdt-archive-header {
    background: var(--hd-white); border-bottom: 1px solid var(--hd-border);
    padding: 32px 0;
}
.hdt-archive-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.hdt-archive-header p  { color: var(--hd-text-muted); }

.hdt-results-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 40px 0; align-items: start; }

/* Filter sidebar */
.hdt-filters {
    background: var(--hd-white); border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius); padding: 24px; position: sticky; top: 88px;
}
.hdt-filters h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--hd-text-muted); margin-bottom: 16px; }
.hdt-filter-group { margin-bottom: 24px; }
.hdt-filter-group h4 { font-size: 13px; font-weight: 700; color: var(--hd-text); margin-bottom: 10px; }
.hdt-filter-option { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.hdt-filter-option input { accent-color: var(--hd-primary); width: 15px; height: 15px; cursor: pointer; }
.hdt-filter-option label { font-size: 14px; color: var(--hd-text-muted); cursor: pointer; flex: 1; }
.hdt-filter-option input:checked + label { color: var(--hd-primary); font-weight: 600; }
.hdt-filter-count { font-size: 11px; color: var(--hd-text-muted); background: var(--hd-bg); padding: 1px 6px; border-radius: 10px; }

/* Results */
.hdt-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.hdt-results-header h2 { font-size: 18px; font-weight: 700; }
.hdt-results-count { font-size: 14px; color: var(--hd-text-muted); }
.hdt-sort-select { border: 1px solid var(--hd-border); border-radius: var(--hd-radius-sm); padding: 7px 12px; font-size: 13px; outline: none; color: var(--hd-text); }

.hdt-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.hdt-results-grid--list { grid-template-columns: 1fr; }
.hdt-results-grid--list .hdt-card { flex-direction: row; max-height: 160px; }
.hdt-results-grid--list .hdt-card__thumb { width: 160px; flex-shrink: 0; height: auto; }

/* Loading */
.hdt-loading-overlay { display: flex; flex-direction: column; align-items: center; padding: 80px 0; color: var(--hd-text-muted); }
.hdt-spinner { width: 44px; height: 44px; border: 4px solid var(--hd-border); border-top-color: var(--hd-primary); border-radius: 50%; animation: spin .7s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pagination */
.hdt-pagination { display: flex; gap: 6px; justify-content: center; padding: 40px 0 0; flex-wrap: wrap; }
.hdt-page-btn {
    min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--hd-radius-sm); border: 1px solid var(--hd-border);
    background: var(--hd-white); color: var(--hd-text); cursor: pointer;
    font-size: 14px; font-weight: 600; transition: all .15s;
    text-decoration: none;
}
.hdt-page-btn:hover { background: var(--hd-primary-light); border-color: var(--hd-primary); color: var(--hd-primary); text-decoration: none; }
.hdt-page-btn.active { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }
.hdt-page-btn--prev::before { content: '←  '; }
.hdt-page-btn--next::after  { content: '  →'; }

/* ════════════════════════════════════════════════════════════════
   AUTH PAGES (login/register)
════════════════════════════════════════════════════════════════ */
.hdt-auth-page {
    min-height: calc(100vh - var(--hd-header-height));
    background: var(--hd-bg);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
}
.hdt-auth-card {
    width: 100%; max-width: 480px;
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    box-shadow: var(--hd-shadow-lg);
    padding: 44px;
}
.hdt-auth-card__head { text-align: center; margin-bottom: 32px; }
.hdt-auth-card__logo { font-size: 52px; margin-bottom: 12px; line-height: 1; }
.hdt-auth-card__head h1 { font-size: 24px; font-weight: 800; color: var(--hd-text); margin-bottom: 6px; }
.hdt-auth-card__head p  { color: var(--hd-text-muted); font-size: 15px; }

.hdt-social-row { display: flex; flex-direction: column; gap: 10px; }
.hdt-social-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 13px 20px; border-radius: var(--hd-radius-sm);
    border: 1px solid var(--hd-border); background: var(--hd-white);
    color: var(--hd-text); font-size: 15px; font-weight: 600;
    text-decoration: none; transition: all .15s; cursor: pointer;
}
.hdt-social-btn:hover { background: var(--hd-bg); box-shadow: var(--hd-shadow-sm); text-decoration: none; color: var(--hd-text); }

.hdt-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 0; color: var(--hd-text-muted); font-size: 13px;
}
.hdt-divider::before, .hdt-divider::after { content: ''; flex: 1; height: 1px; background: var(--hd-border); }

.hdt-form-group { margin-bottom: 18px; }
.hdt-form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--hd-text); margin-bottom: 6px; }
.hdt-form-group input,
.hdt-form-group select,
.hdt-form-group textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--hd-border); border-radius: var(--hd-radius-sm);
    font-size: 15px; color: var(--hd-text); outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: var(--font-body);
}
.hdt-form-group input:focus,
.hdt-form-group select:focus,
.hdt-form-group textarea:focus {
    border-color: var(--hd-primary);
    box-shadow: 0 0 0 3px rgba(10,110,110,.12);
}
.hdt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hdt-form-group--full { grid-column: 1 / -1; }
.hdt-form-inline { display: flex; align-items: center; justify-content: space-between; }
.hdt-form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--hd-text-muted); cursor: pointer; }
.hdt-form-check input { accent-color: var(--hd-primary); width: 16px; height: 16px; }

.hdt-auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--hd-text-muted); }
.hdt-auth-footer a { color: var(--hd-primary); font-weight: 600; }

.hdt-alert { padding: 12px 16px; border-radius: var(--hd-radius-sm); margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.hdt-alert--error   { background: #FEF0EE; color: #B91C1C; border-left: 3px solid #EF4444; }
.hdt-alert--success { background: #ECFDF5; color: #065F46; border-left: 3px solid #10B981; }
.hdt-alert--info    { background: #EFF6FF; color: #1E40AF; border-left: 3px solid #3B82F6; }
.hdt-alert--warning { background: #FFFBEB; color: #92400E; border-left: 3px solid #F59E0B; }

/* ════════════════════════════════════════════════════════════════
   DASHBOARD
════════════════════════════════════════════════════════════════ */
.hdt-dashboard { padding: 40px 0 80px; }
.hdt-dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }

/* Sidebar */
.hdt-dash-sidebar { position: sticky; top: 88px; }
.hdt-dash-profile {
    background: var(--hd-white); border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius); padding: 24px; text-align: center; margin-bottom: 16px;
}
.hdt-dash-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--hd-primary), var(--hd-primary-dark));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 24px; font-weight: 800;
    margin: 0 auto 12px;
}
.hdt-dash-profile__name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.hdt-dash-profile__email { font-size: 13px; color: var(--hd-text-muted); margin-bottom: 12px; word-break: break-all; }
.hdt-dash-profile__badges { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

.hdt-dash-nav {
    background: var(--hd-white); border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius); overflow: hidden;
}
.hdt-dash-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 18px; border-bottom: 1px solid var(--hd-border);
    font-size: 14px; font-weight: 600; color: var(--hd-text-muted);
    cursor: pointer; transition: all .15s; text-decoration: none;
}
.hdt-dash-nav-item:last-child { border: none; }
.hdt-dash-nav-item:hover { background: var(--hd-bg); color: var(--hd-primary); text-decoration: none; }
.hdt-dash-nav-item.active { background: var(--hd-primary-light); color: var(--hd-primary); border-left: 3px solid var(--hd-primary); padding-left: 15px; }
.hdt-dash-nav-item__icon { font-size: 18px; }

/* Main content */
.hdt-dash-content > .hdt-dash-panel { display: none; }
.hdt-dash-content > .hdt-dash-panel.active { display: block; }

.hdt-dash-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.hdt-dash-header h2 { font-size: 22px; font-weight: 800; }

.hdt-form-card {
    background: var(--hd-white); border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius); padding: 28px; margin-bottom: 20px;
}
.hdt-form-card h3 {
    font-size: 15px; font-weight: 700; color: var(--hd-text);
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 1px solid var(--hd-border);
    display: flex; align-items: center; gap: 8px;
}
.hdt-form-card h3 .icon { font-size: 18px; }

.hdt-form-actions {
    display: flex; align-items: center; gap: 16px; padding-top: 8px;
}
.hdt-form-actions small { color: var(--hd-text-muted); font-size: 13px; }

/* Photo upload */
.hdt-photo-uploader { display: flex; align-items: center; gap: 20px; }
.hdt-photo-preview {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--hd-primary-light); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; color: var(--hd-primary);
    flex-shrink: 0;
}
.hdt-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.hdt-photo-info label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.hdt-photo-info input { display: block; font-size: 14px; margin-bottom: 4px; }
.hdt-photo-info small { color: var(--hd-text-muted); font-size: 12px; }

/* ════════════════════════════════════════════════════════════════
   WIDGETS
════════════════════════════════════════════════════════════════ */
.widget-area { display: flex; flex-direction: column; gap: 24px; }
.hdt-widget {
    background: var(--hd-white); border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius); padding: 20px;
}
.hdt-widget-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--hd-border); }

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.hdt-footer {
    background: #0F1923; color: rgba(255,255,255,.7);
    padding: 64px 0 0;
    margin-top: 80px;
}
.hdt-footer__inner {
    max-width: var(--hd-max-width); margin: 0 auto; padding: 0 24px 48px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.hdt-footer__brand .hdt-logo { font-size: 20px; margin-bottom: 14px; }
.hdt-footer__brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.hdt-footer__col h4 {
    color: #fff; font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px;
}
.hdt-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.hdt-footer__col ul li a { color: rgba(255,255,255,.6); font-size: 14px; text-decoration: none; transition: color .15s; }
.hdt-footer__col ul li a:hover { color: #fff; text-decoration: none; }
.hdt-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    max-width: var(--hd-max-width); margin: 0 auto; padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.hdt-footer__bottom p { font-size: 13px; }

/* ════════════════════════════════════════════════════════════════
   MISC — Utility classes
════════════════════════════════════════════════════════════════ */
.hdt-tag {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
}
.hdt-tag--primary { background: var(--hd-primary-light); color: var(--hd-primary); }
.hdt-tag--accent  { background: var(--hd-accent-light);  color: var(--hd-accent); }
.hdt-tag--muted   { background: var(--hd-bg); color: var(--hd-text-muted); border: 1px solid var(--hd-border); }

.hdt-contact-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--hd-primary-light); color: var(--hd-primary);
    border-radius: 24px; padding: 8px 16px; font-size: 14px; font-weight: 600;
    text-decoration: none; transition: background .15s;
}
.hdt-contact-pill:hover { background: #b8dada; text-decoration: none; color: var(--hd-primary-dark); }

.hdt-no-results {
    text-align: center; padding: 80px 24px; color: var(--hd-text-muted);
}
.hdt-no-results__icon { font-size: 56px; margin-bottom: 16px; }
.hdt-no-results h3 { font-size: 20px; font-weight: 700; color: var(--hd-text); margin-bottom: 8px; }
.hdt-no-results p  { font-size: 15px; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hdt-provider-body { grid-template-columns: 1fr; }
    .hdt-results-layout { grid-template-columns: 1fr; }
    .hdt-filters { position: static; }
    .hdt-footer__inner { grid-template-columns: 1fr 1fr; }
    .hdt-dash-layout { grid-template-columns: 1fr; }
    .hdt-dash-sidebar { position: static; }
    .hdt-dash-nav { display: flex; overflow-x: auto; }
    .hdt-dash-nav-item { flex-shrink: 0; border-bottom: none; border-right: 1px solid var(--hd-border); }
}
@media (max-width: 768px) {
    .hdt-header__inner { gap: 16px; }
    .hdt-nav { display: none; }
    .hdt-nav.open { display: block; position: fixed; top: var(--hd-header-height); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--hd-border); padding: 16px; z-index: 999; }
    .hdt-nav.open ul { flex-direction: column; }
    .hdt-header__cta .hdt-btn--ghost { display: none; }
    .hdt-menu-toggle { display: flex; }
    .hdt-hero { padding: 56px 24px 48px; }
    .hdt-search-hero { flex-direction: column; }
    .hdt-search-hero__field { min-width: auto; }
    .hdt-hero-stats { gap: 24px; }
    .hdt-form-row { grid-template-columns: 1fr; }
    .hdt-auth-card { padding: 32px 20px; }
    .hdt-footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .hdt-cta-banner { padding: 40px 24px; }
    .hdt-provider-hero__body { flex-direction: column; align-items: flex-start; }
    .hdt-provider-hero__actions { margin-left: 0; }
    .hdt-featured-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hdt-hero__title { font-size: 28px; }
    .hdt-type-tab { padding: 14px 16px; font-size: 13px; }
    .hdt-page-btn { min-width: 36px; height: 36px; }
}
