/*
Theme Name: نوبت دکتر 24
Theme URI: https://nobatdr24.local
Author: NobatDr24
Author URI: https://nobatdr24.local
Description: قالب اختصاصی سامانه نوبت‌دهی سلامت، کاملاً راست‌به‌چپ و سازگار با افزونه «نوبت دکتر 24». طراحی مبتنی بر سیستم طراحی Shafa Care (رنگ‌های درمانی، کارت‌های سفید، سایه‌های نرم و تایپوگرافی فارسی).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nobatdr24
Tags: rtl-language-support, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */
:root {
    /* Brand */
    --nd-primary: #006194;
    --nd-primary-strong: #007bb9;
    --nd-primary-hover: #004b73;
    --nd-primary-soft: #cce5ff;
    --nd-primary-tint: #f0f9ff;
    --nd-sky: #0284c7;

    --nd-secondary: #006c4a;
    --nd-secondary-strong: #059669;
    --nd-secondary-soft: #82f5c1;
    --nd-secondary-tint: #ecfdf5;

    --nd-amber: #f59e0b;
    --nd-amber-tint: #fffbeb;
    --nd-rose: #e11d48;
    --nd-rose-tint: #fff1f2;

    /* Surfaces */
    --nd-bg: #f8fafc;
    --nd-surface: #ffffff;
    --nd-surface-2: #f1f5f9;
    --nd-surface-3: #eaedff;
    --nd-border: #e2e8f0;
    --nd-border-strong: #cbd5e1;

    /* Text */
    --nd-text: #0f172a;
    --nd-text-2: #334155;
    --nd-text-3: #64748b;
    --nd-text-inverse: #eef0ff;

    /* Radius */
    --nd-radius-sm: 0.25rem;
    --nd-radius: 0.5rem;
    --nd-radius-md: 0.75rem;
    --nd-radius-lg: 1rem;
    --nd-radius-xl: 1.5rem;
    --nd-radius-full: 9999px;

    /* Elevation */
    --nd-shadow-flat: 0 1px 3px 0 rgba(15, 23, 42, .05), 0 1px 2px -1px rgba(15, 23, 42, .05);
    --nd-shadow-raised: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .05);
    --nd-shadow-floating: 0 12px 24px -4px rgba(15, 23, 42, .12), 0 4px 8px -2px rgba(15, 23, 42, .06);

    /* Layout */
    --nd-container: 1280px;
    --nd-gutter: 1.25rem;
    --nd-header-h: 76px;

    /* Typography */
    --nd-font: 'Vazirmatn', 'IRANSans', 'Shabnam', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

/* ==========================================================================
   3. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nd-header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--nd-font);
    font-size: 16px;
    line-height: 1.85;
    color: var(--nd-text);
    background: var(--nd-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* `clip` (not `hidden`) so the sticky header keeps working. */
    overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a {
    color: var(--nd-primary);
    text-decoration: none;
    transition: color .18s ease;
}
a:hover { color: var(--nd-primary-hover); }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .6em;
    color: var(--nd-text);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -.01em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: .875rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-inline-start: 1.4em; }

hr {
    border: 0;
    border-top: 1px solid var(--nd-border);
    margin: 2rem 0;
}

::selection {
    background: var(--nd-primary-soft);
    color: var(--nd-primary-hover);
}

:focus-visible {
    outline: 2px solid var(--nd-sky);
    outline-offset: 2px;
    border-radius: var(--nd-radius-sm);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    position: fixed;
    top: 12px; inset-inline-start: 12px;
    width: auto; height: auto;
    clip: auto;
    z-index: 100000;
    padding: .75rem 1.25rem;
    background: var(--nd-surface);
    color: var(--nd-primary);
    border-radius: var(--nd-radius);
    box-shadow: var(--nd-shadow-floating);
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.nd-container {
    width: 100%;
    max-width: var(--nd-container);
    margin-inline: auto;
    padding-inline: var(--nd-gutter);
}
.nd-container--narrow { max-width: 880px; }
.nd-container--wide { max-width: 1440px; }

.nd-section { padding-block: 3.5rem; }
.nd-section--tight { padding-block: 2rem; }
.nd-section--muted { background: var(--nd-surface); }

.nd-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.nd-section-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--nd-sky);
    background: var(--nd-primary-tint);
    border: 1px solid #dbeafe;
    border-radius: var(--nd-radius-full);
    padding: .25rem .75rem;
    margin-bottom: .65rem;
}
.nd-section-head h2 { margin: 0 0 .25rem; font-size: 1.75rem; }
.nd-section-head p { margin: 0; color: var(--nd-text-3); font-size: .9375rem; }
.nd-section-head__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .875rem;
    font-weight: 700;
    color: var(--nd-primary);
    white-space: nowrap;
}
.nd-section-head__link svg { width: 16px; height: 16px; }

/* ==========================================================================
   5. Buttons / chips / badges
   ========================================================================== */
.nd-btn {
    --_bg: var(--nd-primary);
    --_fg: #fff;
    --_bd: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.35rem;
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--_fg);
    background: var(--_bg);
    border: 1px solid var(--_bd);
    border-radius: var(--nd-radius);
    cursor: pointer;
    text-align: center;
    transition: background .18s ease, box-shadow .18s ease, transform .12s ease, border-color .18s ease;
    box-shadow: var(--nd-shadow-flat);
    text-decoration: none;
}
.nd-btn:hover {
    background: var(--nd-primary-hover);
    color: #fff;
    box-shadow: var(--nd-shadow-raised);
}
.nd-btn:active { transform: translateY(1px); }
.nd-btn svg { width: 18px; height: 18px; flex: none; }

.nd-btn--success { --_bg: var(--nd-secondary-strong); }
.nd-btn--success:hover { background: #047857; }

.nd-btn--ghost {
    --_bg: transparent;
    --_fg: var(--nd-primary);
    --_bd: var(--nd-border-strong);
    box-shadow: none;
}
.nd-btn--ghost:hover {
    background: var(--nd-primary-tint);
    color: var(--nd-primary-hover);
    border-color: var(--nd-primary-soft);
}

.nd-btn--soft {
    --_bg: var(--nd-primary-tint);
    --_fg: var(--nd-primary);
    --_bd: #dbeafe;
    box-shadow: none;
}
.nd-btn--soft:hover { background: #e0f2fe; color: var(--nd-primary-hover); }

.nd-btn--white {
    --_bg: #fff;
    --_fg: var(--nd-primary);
    --_bd: #fff;
}
.nd-btn--white:hover { background: #f8fafc; color: var(--nd-primary-hover); }

.nd-btn--lg { padding: .95rem 1.9rem; font-size: 1rem; }
.nd-btn--sm { padding: .45rem .9rem; font-size: .8125rem; }
.nd-btn--block { width: 100%; }

.nd-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--nd-text-2);
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-full);
    cursor: pointer;
    transition: all .16s ease;
    text-decoration: none;
    white-space: nowrap;
}
.nd-chip:hover {
    border-color: var(--nd-primary-soft);
    background: var(--nd-primary-tint);
    color: var(--nd-primary);
}
.nd-chip.is-active {
    background: var(--nd-primary);
    border-color: var(--nd-primary);
    color: #fff;
}

.nd-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .6rem;
    font-size: .75rem;
    font-weight: 700;
    border-radius: var(--nd-radius-full);
    background: var(--nd-secondary-tint);
    color: var(--nd-secondary);
    border: 1px solid #d1fae5;
    line-height: 1.7;
}
.nd-badge svg { width: 13px; height: 13px; }
.nd-badge--amber { background: var(--nd-amber-tint); color: #b45309; border-color: #fde68a; }
.nd-badge--rose { background: var(--nd-rose-tint); color: var(--nd-rose); border-color: #fecdd3; }
.nd-badge--info { background: var(--nd-primary-tint); color: var(--nd-primary); border-color: #dbeafe; }

.nd-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--nd-secondary-strong);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, .16);
    display: inline-block;
    flex: none;
}

.nd-stars { display: inline-flex; align-items: center; gap: 1px; }
.nd-star { display: inline-flex; color: #cbd5e1; }
.nd-star svg { width: 13px; height: 13px; }
.nd-star.is-filled { color: var(--nd-amber); }
.nd-star.is-filled svg { fill: currentColor; }

/* ==========================================================================
   6. Forms
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    font-family: inherit;
    font-size: .9375rem;
    color: var(--nd-text);
    background: var(--nd-surface);
    border: 1px solid var(--nd-border-strong);
    border-radius: var(--nd-radius);
    padding: .7rem .9rem;
    line-height: 1.6;
    transition: border-color .16s ease, box-shadow .16s ease;
    appearance: none;
}
textarea { min-height: 120px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
    border-color: var(--nd-sky);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, .12);
    outline: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left .75rem center;
    padding-inline-start: 2.25rem;
}

label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--nd-text-2);
    margin-bottom: .4rem;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--nd-secondary-strong);
    width: 16px;
    height: 16px;
    margin-inline-end: .4rem;
    vertical-align: -2px;
}

.nd-field { margin-bottom: 1.15rem; }
.nd-field__hint { font-size: .75rem; color: var(--nd-text-3); margin-top: .3rem; }

/* ==========================================================================
   7. Header
   ========================================================================== */
.nd-topbar {
    background: var(--nd-primary);
    color: #dbeafe;
    font-size: .8125rem;
}
.nd-topbar .nd-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
}
.nd-topbar__group { display: flex; align-items: center; gap: 1.1rem; }
.nd-topbar a { color: #e0f2fe; font-weight: 600; }
.nd-topbar a:hover { color: #fff; }
.nd-topbar__item { display: inline-flex; align-items: center; gap: .35rem; }
.nd-topbar svg { width: 14px; height: 14px; }

.nd-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nd-border);
    transition: box-shadow .2s ease;
}
.nd-header.is-stuck { box-shadow: var(--nd-shadow-raised); }

.nd-header__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: var(--nd-header-h);
}

.nd-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    flex: none;
    color: var(--nd-text);
    font-weight: 800;
}
.nd-brand:hover { color: var(--nd-text); }
.nd-brand__mark {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--nd-primary), var(--nd-primary-strong));
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(0, 97, 148, .65);
}
.nd-brand__mark svg { width: 24px; height: 24px; }
.nd-brand__text { display: flex; flex-direction: column; line-height: 1.35; }
.nd-brand__name { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.02em; }
.nd-brand__tag { font-size: .6875rem; font-weight: 500; color: var(--nd-text-3); }

.nd-nav { flex: 1 1 auto; }
.nd-nav ul {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nd-nav a {
    display: block;
    padding: .5rem .7rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--nd-text-2);
    border-radius: var(--nd-radius);
    white-space: nowrap;
}
.nd-nav a:hover,
.nd-nav .current-menu-item > a,
.nd-nav .current_page_item > a {
    color: var(--nd-primary);
    background: var(--nd-primary-tint);
}

.nd-header__actions { display: flex; align-items: center; gap: .5rem; flex: none; }

.nd-header__toggle {
    display: none;
    width: 42px; height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
    color: var(--nd-text-2);
    cursor: pointer;
}
.nd-header__toggle svg { width: 22px; height: 22px; }

/* Mobile drawer */
.nd-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}
.nd-drawer.is-open { display: block; }
.nd-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
}
.nd-drawer__panel {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(320px, 86vw);
    background: var(--nd-surface);
    padding: 1.25rem;
    overflow-y: auto;
    box-shadow: var(--nd-shadow-floating);
    animation: nd-slide-in .22s ease;
}
@keyframes nd-slide-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
html[dir="rtl"] .nd-drawer__panel { animation-name: nd-slide-in-rtl; }
@keyframes nd-slide-in-rtl {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.nd-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.nd-drawer__close {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
    background: var(--nd-surface-2);
    cursor: pointer;
    color: var(--nd-text-2);
}
.nd-drawer ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.nd-drawer ul a {
    display: block;
    padding: .7rem .75rem;
    border-radius: var(--nd-radius);
    color: var(--nd-text-2);
    font-weight: 600;
    font-size: .9375rem;
}
.nd-drawer ul a:hover { background: var(--nd-primary-tint); color: var(--nd-primary); }
.nd-drawer .nd-btn { width: 100%; margin-bottom: .5rem; }

/* ==========================================================================
   8. Hero
   ========================================================================== */
.nd-hero {
    position: relative;
    padding-block: 3.25rem 3rem;
    background:
        radial-gradient(1100px 420px at 85% -10%, rgba(2, 132, 199, .13), transparent 62%),
        radial-gradient(900px 380px at 10% 0%, rgba(0, 108, 74, .09), transparent 60%),
        linear-gradient(180deg, #f8fbff 0%, var(--nd-bg) 100%);
    overflow: hidden;
}
.nd-hero::after {
    content: "";
    position: absolute;
    inset-inline-start: -120px;
    top: -120px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 123, 185, .12), transparent 70%);
    pointer-events: none;
}
.nd-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 3rem;
    align-items: center;
}
.nd-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .9rem .35rem .5rem;
    background: #fff;
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-full);
    font-size: .8125rem;
    font-weight: 700;
    color: var(--nd-text-2);
    box-shadow: var(--nd-shadow-flat);
    margin-bottom: 1.1rem;
}
.nd-hero__eyebrow .nd-dot { box-shadow: 0 0 0 3px rgba(5, 150, 105, .18); }

.nd-hero h1 {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: .85rem;
}
.nd-hero h1 span { color: var(--nd-primary); }
.nd-hero__lead {
    font-size: 1.0625rem;
    color: var(--nd-text-2);
    max-width: 46ch;
    margin-bottom: 1.6rem;
}

.nd-hero__visual {
    position: relative;
    min-height: 320px;
    display: grid;
    place-items: center;
}
.nd-hero__card {
    width: 100%;
    max-width: 380px;
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-xl);
    padding: 1.35rem;
    box-shadow: var(--nd-shadow-floating);
}
.nd-hero__card-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--nd-border);
    margin-bottom: 1rem;
}
.nd-avatar {
    width: 54px; height: 54px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--nd-surface-2);
    border: 2px solid #fff;
    box-shadow: var(--nd-shadow-flat);
    flex: none;
    display: grid;
    place-items: center;
    color: var(--nd-primary);
    font-weight: 800;
    font-size: 1.125rem;
}
.nd-hero__card-name { font-size: .9375rem; font-weight: 800; margin: 0; }
.nd-hero__card-sub { font-size: .75rem; color: var(--nd-text-3); margin: 0; }
.nd-hero__slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .6rem .75rem;
    border: 1px solid #d1fae5;
    background: var(--nd-secondary-tint);
    border-radius: var(--nd-radius);
    font-size: .8125rem;
    font-weight: 700;
    color: var(--nd-secondary);
    margin-bottom: .5rem;
}
.nd-hero__slot:last-child { margin-bottom: 0; }
.nd-hero__slot.is-amber { border-color: #fde68a; background: var(--nd-amber-tint); color: #b45309; }

/* Search module */
.nd-search {
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-xl);
    box-shadow: var(--nd-shadow-floating);
    padding: .5rem;
    max-width: 720px;
}
.nd-search__form {
    display: flex;
    align-items: stretch;
    gap: .5rem;
}
.nd-search__field {
    position: relative;
    display: flex;
    align-items: center;
    gap: .2rem;
    flex: 1 1 auto;
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
    padding-inline: .9rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.nd-search__field:focus-within { border-color: var(--nd-sky); box-shadow: 0 0 0 3px rgba(2, 132, 199, .1); }
.nd-search__field svg { width: 18px; height: 18px; color: var(--nd-text-3); flex: none; }
.nd-search__field input,
.nd-search__field select {
    border: 0;
    box-shadow: none;
    background: transparent;
    min-width: 0;
    padding: .95rem .35rem;
    font-size: .9375rem;
}
.nd-search__field input:focus,
.nd-search__field select:focus { box-shadow: none; }
.nd-search__field--query input { font-size: 1rem; }
.nd-search__field--query svg { width: 20px; height: 20px; }
.nd-search__field--city { flex: 0 0 11.5rem; }
.nd-search__field select { padding-inline-start: 1.35rem; }
.nd-search__submit {
    flex: none;
    border-radius: var(--nd-radius);
    padding-inline: 1.5rem;
}
.nd-search__trending {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: .8125rem;
    color: var(--nd-text-3);
}

/* ==========================================================================
   9. Stats
   ========================================================================== */
.nd-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}
.nd-stat {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-lg);
    box-shadow: var(--nd-shadow-flat);
}
.nd-stat__icon {
    width: 44px; height: 44px;
    flex: none;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--nd-primary-tint);
    color: var(--nd-primary);
}
.nd-stat__icon svg { width: 22px; height: 22px; }
.nd-stat--green .nd-stat__icon { background: var(--nd-secondary-tint); color: var(--nd-secondary); }
.nd-stat--amber .nd-stat__icon { background: var(--nd-amber-tint); color: #b45309; }
.nd-stat__value { font-size: 1.25rem; font-weight: 800; line-height: 1.4; }
.nd-stat__label { font-size: .75rem; color: var(--nd-text-3); }

/* ==========================================================================
   10. Specialty grid
   ========================================================================== */
.nd-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.nd-spec {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-lg);
    box-shadow: var(--nd-shadow-flat);
    color: var(--nd-text);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.nd-spec:hover {
    transform: translateY(-2px);
    box-shadow: var(--nd-shadow-raised);
    border-color: var(--nd-border-strong);
    color: var(--nd-text);
}
.nd-spec__icon {
    width: 46px; height: 46px;
    flex: none;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--nd-primary-tint);
    color: var(--nd-primary);
}
.nd-spec__icon svg { width: 24px; height: 24px; }
.nd-spec__title { font-size: .9375rem; font-weight: 700; margin: 0 0 .15rem; }
.nd-spec__count { font-size: .75rem; color: var(--nd-text-3); margin: 0; }

/* ==========================================================================
   11. Provider cards
   ========================================================================== */
.nd-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.15rem;
}
.nd-card {
    display: flex;
    flex-direction: column;
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-lg);
    box-shadow: var(--nd-shadow-flat);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nd-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nd-shadow-raised);
    border-color: var(--nd-border-strong);
}
.nd-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--nd-surface-3), var(--nd-surface-2));
    overflow: hidden;
}
.nd-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nd-card__media .nd-avatar { width: 100%; height: 100%; border-radius: 0; font-size: 2.5rem; box-shadow: none; border: 0; background: transparent; }
.nd-card__badges {
    position: absolute;
    inset-block-start: .6rem;
    inset-inline-start: .6rem;
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}
.nd-card__rating {
    position: absolute;
    inset-block-start: .6rem;
    inset-inline-end: .6rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .55rem;
    background: rgba(255, 255, 255, .95);
    border-radius: var(--nd-radius-full);
    font-size: .75rem;
    font-weight: 800;
    color: var(--nd-text);
    box-shadow: var(--nd-shadow-flat);
}
.nd-card__rating svg { width: 13px; height: 13px; color: var(--nd-amber); }
.nd-card__body { padding: 1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.nd-card__name { font-size: 1rem; font-weight: 800; margin: 0; }
.nd-card__name a { color: var(--nd-text); }
.nd-card__name a:hover { color: var(--nd-primary); }
.nd-card__spec { font-size: .8125rem; color: var(--nd-text-2); margin: 0; }
.nd-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    font-size: .75rem;
    color: var(--nd-text-3);
}
.nd-card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.nd-card__meta svg { width: 14px; height: 14px; }
.nd-card__foot {
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px dashed var(--nd-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.nd-card__price { font-size: .8125rem; color: var(--nd-text-3); }
.nd-card__price b { display: block; font-size: 1rem; color: var(--nd-text); }

/* ==========================================================================
   12. Steps
   ========================================================================== */
.nd-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    counter-reset: step;
}
.nd-step {
    position: relative;
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-lg);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--nd-shadow-flat);
}
.nd-step__num {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--nd-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.0625rem;
    margin-bottom: .9rem;
    box-shadow: 0 8px 16px -8px rgba(0, 97, 148, .8);
}
.nd-step h3 { font-size: 1.0625rem; margin-bottom: .4rem; }
.nd-step p { font-size: .875rem; color: var(--nd-text-3); margin: 0; line-height: 1.9; }

/* ==========================================================================
   13. CTA
   ========================================================================== */
.nd-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--nd-radius-xl);
    background: linear-gradient(135deg, var(--nd-primary) 0%, #007bb9 55%, #0ea5e9 100%);
    color: #fff;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--nd-shadow-floating);
}
.nd-cta::after {
    content: "";
    position: absolute;
    inset-inline-end: -60px;
    bottom: -90px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}
.nd-cta h2 { color: #fff; font-size: 1.6rem; margin-bottom: .4rem; }
.nd-cta p { color: #dbeafe; margin: 0; font-size: .9375rem; }
.nd-cta .nd-btn { position: relative; z-index: 1; }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.nd-footer {
    background: #0b1b2b;
    color: #cbd5e1;
    padding-block: 3rem 1.5rem;
    margin-top: 3rem;
}
.nd-footer a { color: #cbd5e1; }
.nd-footer a:hover { color: #fff; }
.nd-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.nd-footer .nd-brand { color: #fff; }
.nd-footer .nd-brand__tag { color: #94a3b8; }
.nd-footer__about { font-size: .875rem; line-height: 2; color: #94a3b8; margin: 1rem 0; }
.nd-footer h4 {
    color: #fff;
    font-size: .9375rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.nd-footer ul { list-style: none; margin: 0; padding: 0; }
.nd-footer li { margin-bottom: .6rem; font-size: .875rem; }
.nd-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    font-size: .8125rem;
    color: #64748b;
    flex-wrap: wrap;
}
.nd-footer__trust { display: flex; gap: .5rem; }
.nd-footer__trust span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--nd-radius);
    font-size: .75rem;
    color: #94a3b8;
}
.nd-footer__trust svg { width: 14px; height: 14px; }
.nd-footer__cta { margin-top: 1.15rem; }

/* ==========================================================================
   15. Entry content / generic pages
   ========================================================================== */
.nd-page-hero {
    background: var(--nd-surface);
    border-bottom: 1px solid var(--nd-border);
    padding-block: 2.25rem;
}
.nd-page-hero h1 { margin: 0 0 .35rem; font-size: 1.75rem; }
.nd-page-hero p { margin: 0; color: var(--nd-text-3); font-size: .9375rem; }

.nd-breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    font-size: .8125rem;
    color: var(--nd-text-3);
    margin-bottom: .75rem;
}
.nd-breadcrumb a { color: var(--nd-text-3); }
.nd-breadcrumb a:hover { color: var(--nd-primary); }
.nd-breadcrumb svg { width: 14px; height: 14px; opacity: .6; }

.nd-entry {
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-lg);
    box-shadow: var(--nd-shadow-flat);
    padding: 2rem;
}
.nd-entry > *:first-child { margin-top: 0; }
.nd-entry > *:last-child { margin-bottom: 0; }
.nd-entry h2 { font-size: 1.4rem; margin-top: 1.8rem; }
.nd-entry h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.nd-entry img { border-radius: var(--nd-radius); }
.nd-entry blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid var(--nd-primary-soft);
    background: var(--nd-primary-tint);
    border-radius: var(--nd-radius);
    color: var(--nd-text-2);
}
.nd-entry table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .875rem;
}
.nd-entry th,
.nd-entry td {
    border: 1px solid var(--nd-border);
    padding: .6rem .75rem;
    text-align: start;
}
.nd-entry th { background: var(--nd-surface-2); font-weight: 700; }

.nd-post-list { display: grid; gap: 1rem; }
.nd-post-item {
    display: flex;
    gap: 1rem;
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-lg);
    padding: 1rem;
    box-shadow: var(--nd-shadow-flat);
    transition: box-shadow .16s ease, transform .16s ease;
}
.nd-post-item:hover { box-shadow: var(--nd-shadow-raised); transform: translateY(-1px); }
.nd-post-item__thumb {
    width: 132px; height: 96px;
    flex: none;
    border-radius: var(--nd-radius);
    overflow: hidden;
    background: var(--nd-surface-2);
}
.nd-post-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nd-post-item__title { font-size: 1rem; margin: 0 0 .35rem; }
.nd-post-item__title a { color: var(--nd-text); }
.nd-post-item__title a:hover { color: var(--nd-primary); }
.nd-post-item__meta { font-size: .75rem; color: var(--nd-text-3); display: flex; gap: .75rem; flex-wrap: wrap; }
.nd-post-item__excerpt { font-size: .875rem; color: var(--nd-text-3); margin: .4rem 0 0; }

/* Pagination */
.nd-pagination { display: flex; justify-content: center; margin-top: 2rem; }
.nd-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; height: 40px;
    padding-inline: .6rem;
    margin-inline: .15rem;
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
    background: var(--nd-surface);
    color: var(--nd-text-2);
    font-weight: 700;
    font-size: .875rem;
}
.nd-pagination .page-numbers:hover { border-color: var(--nd-primary-soft); color: var(--nd-primary); }
.nd-pagination .page-numbers.current {
    background: var(--nd-primary);
    border-color: var(--nd-primary);
    color: #fff;
}

/* 404 */
.nd-404 { text-align: center; padding-block: 4rem; }
.nd-404__code {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    color: var(--nd-primary-soft);
    margin-bottom: .5rem;
}

/* ==========================================================================
   16. WordPress core alignment
   ========================================================================== */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .75rem; color: var(--nd-text-3); text-align: center; margin-top: .4rem; }
.sticky { display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .nd-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .nd-hero__visual { min-height: 0; }
    .nd-hero__card { max-width: 100%; }
    .nd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* The six-item nav no longer fits next to the brand + actions, so switch
       to the drawer a little earlier. */
    .nd-nav { display: none; }
    .nd-header__toggle { display: inline-flex; }
    .nd-header__actions .nd-btn--ghost { display: none; }
}

@media (max-width: 900px) {
    .nd-steps { grid-template-columns: minmax(0, 1fr); }
    .nd-cta { grid-template-columns: minmax(0, 1fr); text-align: center; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .nd-container { padding-inline: 1rem; }
    .nd-section { padding-block: 2.25rem; }
    .nd-topbar .nd-container { min-height: 34px; }
    .nd-topbar__group:last-child { display: none; }
    .nd-hero { padding-block: 1.75rem 2rem; }
    .nd-hero h1 { font-size: 1.6rem; }
    .nd-hero__lead { font-size: .9375rem; }
    /* Query takes its own row; city and the submit button share the next one. */
    .nd-search__form { flex-wrap: wrap; }
    .nd-search__field { flex: 1 1 100%; }
    .nd-search__field--city { flex: 1 1 0; min-width: 0; }
    .nd-search__submit { flex: 1 1 0; justify-content: center; }
    .nd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .nd-stat { padding: .75rem; gap: .6rem; }
    .nd-stat__icon { width: 36px; height: 36px; }
    .nd-stat__value { font-size: 1rem; }
    .nd-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .nd-spec { padding: .75rem; gap: .6rem; }
    .nd-spec__icon { width: 38px; height: 38px; border-radius: 11px; }
    .nd-cards { grid-template-columns: minmax(0, 1fr); }
    .nd-entry { padding: 1.25rem; }
    .nd-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .nd-post-item { flex-direction: column; }
    .nd-post-item__thumb { width: 100%; height: 160px; }
    .nd-cta { padding: 1.75rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   18. Blog / page layout + widgets
   ========================================================================== */
.nd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}
.nd-layout--single { grid-template-columns: minmax(0, 1fr); }
.nd-sidebar { position: sticky; top: calc(var(--nd-header-h) + 16px); display: grid; gap: 1rem; }

.nd-widget {
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-lg);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--nd-shadow-flat);
}
.nd-widget__title {
    font-size: .9375rem;
    font-weight: 700;
    margin: 0 0 .85rem;
    padding-bottom: .6rem;
    border-bottom: 1px dashed var(--nd-border);
}
.nd-widget ul { list-style: none; margin: 0; padding: 0; }
.nd-widget li { padding: .4rem 0; font-size: .875rem; border-bottom: 1px solid var(--nd-border); }
.nd-widget li:last-child { border-bottom: 0; }
.nd-widget a { color: var(--nd-text-2); }
.nd-widget a:hover { color: var(--nd-primary); }
.nd-widget .search-form { display: flex; gap: .5rem; }
.nd-widget .search-form input[type="search"] { flex: 1; }
.nd-widget .search-form input[type="submit"] {
    background: var(--nd-primary);
    color: #fff;
    border: 0;
    border-radius: var(--nd-radius);
    padding: .7rem 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

/* Comments */
.nd-comments { margin-top: 2rem; }
.nd-comments .comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.nd-comments .comment-body {
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-lg);
    padding: 1rem 1.15rem;
    box-shadow: var(--nd-shadow-flat);
}
.nd-comments .children { list-style: none; margin: 1rem 0 0; padding-inline-start: 1.5rem; }
.nd-comments .comment-meta { font-size: .75rem; color: var(--nd-text-3); margin-bottom: .4rem; }
.nd-comments .comment-author img { border-radius: 50%; margin-inline-end: .5rem; vertical-align: middle; }
.nd-comments .reply a {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    color: var(--nd-primary);
    margin-top: .5rem;
}
.comment-form { display: grid; gap: 1rem; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: .35rem; }
.comment-form .submit {
    justify-self: start;
    background: var(--nd-primary);
    color: #fff;
    border: 0;
    border-radius: var(--nd-radius);
    padding: .7rem 1.5rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

/* Small helpers */
.nd-muted { color: var(--nd-text-3); }
.nd-stack { display: grid; gap: 1rem; }
.nd-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.nd-mt { margin-top: 1.5rem; }

/* Empty state */
.nd-empty {
    text-align: center;
    background: var(--nd-surface);
    border: 1px dashed var(--nd-border-strong);
    border-radius: var(--nd-radius-xl);
    padding: 3rem 1.5rem;
}
.nd-empty__icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    display: grid; place-items: center;
    border-radius: 18px;
    background: var(--nd-primary-tint);
    color: var(--nd-primary);
}
.nd-empty h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.nd-empty p { color: var(--nd-text-3); font-size: .9375rem; max-width: 52ch; margin: 0 auto 1.25rem; }

@media (max-width: 1024px) {
    .nd-layout { grid-template-columns: minmax(0, 1fr); }
    .nd-sidebar { position: static; }
}


/* ==========================================================================
   Provider archive filters (page-templates/providers.php)
   ========================================================================== */
.nd-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 200px 170px auto;
    gap: .5rem;
    align-items: stretch;
    padding: .6rem;
    margin-bottom: 1.25rem;
    background: var(--nd-surface);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-xl);
    box-shadow: var(--nd-shadow-flat);
}

.nd-filters__search {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-inline: .85rem;
    background: #fff;
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
}

.nd-filters__search:focus-within {
    border-color: var(--nd-sky);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, .1);
}

.nd-filters__search svg {
    flex: none;
    color: var(--nd-text-3);
}

.nd-filters__search input {
    width: 100%;
    padding: .75rem 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.nd-filters__search input:focus { box-shadow: none; }

.nd-filters__select { display: flex; }
.nd-filters__select select { width: 100%; }
.nd-filters__submit { white-space: nowrap; }

.nd-filters__active {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: .8125rem;
}

.nd-filters__clear {
    font-size: .8125rem;
    color: var(--nd-text-3);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .nd-filters { grid-template-columns: 1fr 1fr; }
    .nd-filters__search { grid-column: 1 / -1; }
    .nd-filters__submit { grid-column: 1 / -1; }
}
