/* ==========================================================================
   Nurses Express LLC - modern redesign
   ========================================================================== */

:root {
    --teal-50: #effcfa;
    --teal-100: #d7f6f2;
    --teal-500: #0ea5a3;
    --teal-600: #0d8f8d;
    --teal-700: #0b7574;
    --navy-900: #0b1f3a;
    --navy-800: #12294a;
    --navy-700: #1d3a63;
    --ink: #1e2a3a;
    --ink-soft: #55657a;
    --line: #e4eaf1;
    --bg: #ffffff;
    --bg-soft: #f5f9fb;
    --blue: #2f6fed;
    --green: #16a34a;
    --amber: #f59e0b;
    --red: #d63048;
    --red-deep: #b91f38;
    --red-soft: #fbe4e8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(11, 31, 58, .06);
    --shadow-md: 0 10px 30px rgba(11, 31, 58, .10);
    --shadow-lg: 0 24px 60px rgba(11, 31, 58, .16);
    --grad: linear-gradient(120deg, var(--teal-600), #14b8a6 55%, #2dd4bf);
    --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--navy-900);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.08rem; font-weight: 700; }

.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.center { text-align: center; margin-top: 3rem; }
.text-gradient {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    padding: .8rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: .55rem 1.2rem; font-size: .88rem; }
.btn.full { width: 100%; }

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 143, 141, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13, 143, 141, .45); }

.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--teal-700); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-600); }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    padding: 1rem 0;
    transition: padding .25s ease, background .25s ease, box-shadow .25s ease;
}
.navbar.scrolled {
    padding: .55rem 0;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { height: 46px; transition: height .25s; }
.navbar.scrolled .brand img { height: 40px; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-link {
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
    position: relative;
    padding: .3rem 0;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--teal-600); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: .5rem;
}
.nav-toggle span {
    width: 24px; height: 2.5px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 9.5rem 0 5rem;
    overflow: hidden;
    background: linear-gradient(180deg, #f2fbfa 0%, #ffffff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob-1 { width: 480px; height: 480px; background: #b7f0ea; top: -140px; right: -120px; }
.blob-2 { width: 380px; height: 380px; background: #dbeafe; bottom: -160px; left: -140px; }
.blob-3 { width: 300px; height: 300px; background: #fbd0d8; top: 30%; left: 38%; opacity: .35; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(13, 143, 141, .13) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 4rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    border-radius: 999px;
    padding: .45rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 1.4rem;
}
.pulse-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--red);
    position: relative;
}
.pulse-dot::after {
    content: "";
    position: absolute; inset: -4px;
    border-radius: 50%;
    background: var(--red);
    opacity: .4;
    animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
    from { transform: scale(.6); opacity: .5; }
    to { transform: scale(1.8); opacity: 0; }
}

.hero .lead {
    font-size: 1.12rem;
    color: var(--ink-soft);
    margin: 1.3rem 0 2rem;
    max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-trust { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; }
.hero-trust p { font-size: .92rem; color: var(--ink-soft); }
.hero-trust strong { color: var(--navy-900); }
.avatars { display: flex; }
.avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    font-family: var(--font-head);
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    margin-left: -10px;
    box-shadow: var(--shadow-sm);
}
.avatar:first-child { margin-left: 0; }
.avatar:nth-child(2) { background: linear-gradient(120deg, #2f6fed, #60a5fa); }
.avatar:nth-child(3) { background: linear-gradient(120deg, #16a34a, #4ade80); }
.avatar:nth-child(4) { background: linear-gradient(120deg, var(--red-deep), #f0596f); }

.hero-img-wrap { position: relative; }
.hero-img-wrap > img {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}
.hero-img-wrap::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border-radius: 24px;
    background: var(--grad);
    opacity: .16;
    z-index: -1;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .8rem;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 14px;
    padding: .8rem 1.1rem;
    box-shadow: var(--shadow-md);
    animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: .9rem; color: var(--navy-900); }
.float-card span { font-size: .78rem; color: var(--ink-soft); }
.card-verified { top: 8%; left: -9%; }
.card-support { bottom: 7%; right: -6%; animation-delay: 2.5s; }
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- Icon chips ---------- */
.icon-chip {
    flex: none;
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
}
.icon-chip svg { width: 22px; height: 22px; }
.icon-chip.lg { width: 58px; height: 58px; border-radius: 16px; }
.icon-chip.lg svg { width: 27px; height: 27px; }
.chip-teal { background: var(--teal-100); color: var(--teal-700); }
.chip-blue { background: #e3edff; color: var(--blue); }
.chip-green { background: #dcf5e5; color: var(--green); }
.chip-amber { background: #fdf0d8; color: #d97706; }
.chip-red { background: var(--red-soft); color: var(--red-deep); }

/* ---------- Stats strip ---------- */
.stats-strip {
    background: var(--navy-900);
    background-image: radial-gradient(ellipse at 20% 0%, rgba(14, 165, 163, .28), transparent 55%),
        radial-gradient(ellipse at 55% 130%, rgba(214, 48, 72, .18), transparent 50%),
        radial-gradient(ellipse at 85% 100%, rgba(47, 111, 237, .22), transparent 55%);
    padding: 3rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-value {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.stat-label { color: #9fb3cc; font-size: .92rem; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-soft); }
.section-dark {
    background: var(--navy-900);
    background-image: radial-gradient(ellipse at 80% 0%, rgba(14, 165, 163, .22), transparent 50%),
        radial-gradient(ellipse at 5% 100%, rgba(214, 48, 72, .14), transparent 45%);
}
.section-dark h2 { color: #fff; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-sub { color: var(--ink-soft); margin-top: .9rem; }
.section-dark .section-sub { color: #9fb3cc; }

.section-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--teal-600);
    background: var(--teal-100);
    border-radius: 999px;
    padding: .35rem 1rem;
    margin-bottom: 1.1rem;
}
.section-tag.light { background: rgba(14, 165, 163, .18); color: #5eead4; }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}
.about-copy .section-tag { margin-bottom: .9rem; }
.about-copy h2 { margin-bottom: 1.2rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; }

.check-list { list-style: none; margin-top: 1.4rem; }
.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: .65rem;
    font-weight: 600;
    color: var(--navy-800);
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .32em;
    width: 19px; height: 19px;
    border-radius: 50%;
    background: var(--teal-100) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230b7574" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / 11px no-repeat;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
}
.about-cards .mini-card:nth-child(even) { transform: translateY(1.4rem); }

.mini-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.mini-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.about-cards .mini-card:nth-child(even):hover { transform: translateY(calc(1.4rem - 5px)); }
.mini-card h4 { margin: .95rem 0 .4rem; }
.mini-card p { font-size: .92rem; color: var(--ink-soft); }
.mini-card.horizontal { display: flex; gap: 1.1rem; align-items: flex-start; }
.mini-card.horizontal h4 { margin-top: 0; }

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 2.4rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card.featured { border-top: 4px solid var(--teal-500); }
.service-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.6rem; }
.service-head .muted { font-size: .88rem; }

.feature-list { list-style: none; margin-bottom: 2rem; flex: 1; }
.feature-list li {
    position: relative;
    padding: .85rem 0 .85rem 2.2rem;
    border-bottom: 1px dashed var(--line);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 1.05rem;
    width: 21px; height: 21px;
    border-radius: 50%;
    background: var(--teal-100) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230b7574" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / 12px no-repeat;
}
.feature-list strong { display: block; color: var(--navy-900); font-family: var(--font-head); font-size: .97rem; }
.feature-list span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Process ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
    counter-reset: step;
}
.process-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 1.6rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
    position: absolute;
    top: 1.1rem; right: 1.3rem;
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--line);
    line-height: 1;
}
.process-step h4 { margin: 1.1rem 0 .5rem; }
.process-step p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.slider { max-width: 780px; margin: 0 auto; }
.slider-track {
    display: grid;
    grid-template-areas: "card";
    overflow: hidden;
    border-radius: 22px;
}
.t-card {
    grid-area: card;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    padding: 2.6rem clamp(1.6rem, 4vw, 3.2rem);
    text-align: center;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .45s ease, transform .45s ease;
    pointer-events: none;
    visibility: hidden;
}
.t-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}
.stars { color: #fbbf24; letter-spacing: .2em; font-size: 1.1rem; margin-bottom: 1.3rem; }
.stars .dim { color: rgba(255, 255, 255, .25); }
.t-card blockquote {
    font-size: 1.12rem;
    color: #e6edf6;
    font-weight: 500;
    line-height: 1.75;
    margin-bottom: 1.8rem;
}
.t-card figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    text-align: left;
}
.t-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .85rem;
}
.t-card:nth-child(2) .t-avatar { background: linear-gradient(120deg, var(--red-deep), #f0596f); }
.t-card:nth-child(3) .t-avatar { background: linear-gradient(120deg, #2f6fed, #60a5fa); }
.t-card figcaption strong { color: #fff; display: block; font-family: var(--font-head); }
.t-card figcaption span { color: #9fb3cc; font-size: .85rem; }

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 2rem;
}
.slider-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s, border-color .2s;
}
.slider-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.slider-btn svg { width: 20px; height: 20px; }
.slider-dots { display: flex; gap: .55rem; }
.slider-dots button {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: background .2s, width .25s;
}
.slider-dots button.active { background: #2dd4bf; width: 26px; border-radius: 5px; }

/* ---------- Apply CTA ---------- */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    background: var(--grad);
    background-image: radial-gradient(ellipse at 90% 10%, rgba(255, 255, 255, .22), transparent 55%),
        radial-gradient(ellipse at 0% 110%, rgba(185, 31, 56, .5), transparent 40%),
        linear-gradient(120deg, var(--teal-700), var(--teal-500) 60%, #2dd4bf);
    border-radius: 26px;
    padding: clamp(2rem, 5vw, 3.6rem);
    box-shadow: 0 22px 50px rgba(13, 143, 141, .35);
    margin-bottom: 3rem;
}
.cta-band h2 { color: #fff; margin-bottom: .7rem; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 34rem; }

.apply-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; }
.accordion details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: .9rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .2s;
}
.accordion details[open] { box-shadow: var(--shadow-md); border-color: #c9e8e6; }
.accordion summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy-900);
}
.accordion summary::-webkit-details-marker { display: none; }
.acc-icon {
    flex: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--teal-100);
    position: relative;
    transition: transform .3s ease;
}
.acc-icon::before, .acc-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--teal-700);
    border-radius: 2px;
}
.acc-icon::before { width: 12px; height: 2px; }
.acc-icon::after { width: 2px; height: 12px; transition: transform .3s; }
details[open] .acc-icon::after { transform: rotate(90deg); }
details[open] .acc-icon { transform: rotate(180deg); }
.acc-body { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.contact-info {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}
.info-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.info-item strong { font-family: var(--font-head); color: var(--navy-900); display: block; margin-bottom: .15rem; }
.info-item p { color: var(--ink-soft); font-size: .95rem; }

.socials { display: flex; gap: .8rem; margin-top: auto; padding-top: .5rem; }
.socials a {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    transition: all .2s;
}
.socials a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }

.contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .88rem;
    color: var(--navy-800);
    margin-bottom: .4rem;
}
.field input, .field textarea, .field select {
    width: 100%;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    padding: .78rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--teal-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 163, .13);
}
.field input.invalid, .field textarea.invalid, .field select.invalid {
    border-color: #e11d48;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, .1);
}
.form-note { margin-top: 1rem; color: var(--green); font-weight: 600; text-align: center; }

.map-wrap {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    line-height: 0;
}
.map-wrap iframe { width: 100%; height: 400px; border: 0; filter: saturate(.85); }

/* ---------- Footer ---------- */
.footer {
    background: var(--navy-900);
    background-image: radial-gradient(ellipse at 15% 0%, rgba(14, 165, 163, .16), transparent 50%);
    color: #b9c7da;
    padding: 4.5rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-brand img { height: 48px; margin-bottom: 1.2rem; background: #fff; padding: 6px 10px; border-radius: 10px; }
.footer-brand p { font-size: .93rem; max-width: 22rem; }
.footer-col h5 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; }
.footer-col a {
    display: block;
    color: #b9c7da;
    font-size: .92rem;
    padding: .28rem 0;
    transition: color .2s, transform .2s;
}
.footer-col a:hover { color: #2dd4bf; transform: translateX(4px); }
.footer-cta-text { font-size: .92rem; margin-bottom: 1rem; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.4rem 0;
    text-align: center;
    font-size: .88rem;
    color: #7e91ab;
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 1.6rem;
    bottom: 1.6rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(120deg, var(--red-deep), var(--red) 60%, #f0596f);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(214, 48, 72, .40);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .3s, transform .3s;
    z-index: 90;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(11, 31, 58, .55);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    padding: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
    background: #fff;
    border-radius: 22px;
    width: min(780px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: translateY(24px) scale(.98);
    transition: transform .3s ease;
    overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.8rem 1.8rem 1.2rem;
}
.modal-header .muted { font-size: .86rem; margin-top: .2rem; }
.modal-close {
    flex: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .2s;
}
.modal-close:hover { background: var(--bg-soft); color: var(--navy-900); }
.modal-close svg { width: 17px; height: 17px; }

.stepper {
    display: flex;
    gap: .4rem;
    padding: 0 1.8rem 1.2rem;
    border-bottom: 1px solid var(--line);
}
.step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink-soft);
    padding: .45rem .6rem;
    border-radius: 999px;
    transition: background .25s, color .25s;
}
.step span {
    flex: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--line);
    color: var(--ink-soft);
    display: grid;
    place-items: center;
    font-size: .72rem;
    transition: background .25s, color .25s;
}
.step.active { color: var(--teal-700); background: var(--teal-50); }
.step.active span { background: var(--grad); color: #fff; }
.step.done span {
    background: var(--green);
    color: transparent;
    position: relative;
}
.step.done span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / 12px no-repeat;
}

.modal-body {
    padding: 1.6rem 1.8rem 1.8rem;
    overflow-y: auto;
}
.form-step { display: none; border: 0; }
.form-step.active { display: block; animation: stepIn .35s ease; }
@keyframes stepIn {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

.pill-group { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.pill { position: relative; display: block; cursor: pointer; }
.pill input { position: absolute; opacity: 0; }
.pill span {
    display: block;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
    padding: .85rem .8rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    transition: all .2s;
}
.pill input:checked + span {
    border-color: var(--teal-500);
    background: var(--teal-50);
    color: var(--teal-700);
    box-shadow: 0 0 0 4px rgba(14, 165, 163, .12);
}
.pill-group.invalid .pill span { border-color: #e11d48; }

.review-box {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.3rem;
    font-size: .93rem;
}
.review-box dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.2rem; }
.review-box dt { font-weight: 700; font-family: var(--font-head); color: var(--navy-800); }
.review-box dd { color: var(--ink-soft); }

.consent { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-size: .9rem; color: var(--ink-soft); }
.consent input { margin-top: .3rem; accent-color: var(--teal-600); width: 17px; height: 17px; flex: none; }
.consent.invalid span { color: #e11d48; }

.modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
}

.form-success { text-align: center; padding: 2rem 1rem; }
.success-icon {
    width: 74px; height: 74px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    display: grid;
    place-items: center;
    animation: popIn .45s cubic-bezier(.2, 1.4, .4, 1);
}
.success-icon svg { width: 36px; height: 36px; }
@keyframes popIn {
    from { transform: scale(.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.form-success h3 { margin-bottom: .6rem; }
.form-success p { color: var(--ink-soft); max-width: 26rem; margin: 0 auto 1.6rem; }

body.modal-open { overflow: hidden; }

/* ---------- Alerts, toast, honeypot ---------- */
.alert {
    border-radius: var(--radius-sm);
    padding: .9rem 1.2rem;
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert-success { background: #e7f8ee; color: #15803d; border: 1px solid #bbe9cd; }
.alert-error { background: #fdeef1; color: #be123c; border: 1px solid #f6ccd5; }

.toast {
    position: fixed;
    top: 5.4rem;
    right: 1.4rem;
    z-index: 300;
    display: flex;
    align-items: center;
    gap: .7rem;
    max-width: min(420px, calc(100vw - 2.8rem));
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 12px;
    padding: .95rem 1.1rem;
    box-shadow: var(--shadow-lg);
    font-size: .92rem;
    font-weight: 600;
    color: var(--navy-800);
    animation: toastIn .4s ease;
}
.toast svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.toast button {
    border: 0;
    background: none;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    margin-left: .3rem;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ---------- Wizard extras ---------- */
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row.cols-name { grid-template-columns: 5fr 2fr 5fr; }
.form-row.cols-3-1 { grid-template-columns: 3fr 1fr; }
.field label small { font-weight: 500; color: var(--ink-soft); }
.step-hint {
    font-size: .9rem;
    color: var(--ink-soft);
    background: var(--teal-50);
    border: 1px solid #c9e8e6;
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    margin-bottom: 1.2rem;
}

.field.conditional { display: none; }
.field.conditional.shown { display: block; animation: stepIn .3s ease; }

.pill-group.yn { grid-template-columns: repeat(2, minmax(0, 130px)); }

.opt-group {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: .9rem;
    background: #fff;
    overflow: hidden;
}
.opt-group[open] { border-color: #c9e8e6; }
.opt-group summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.1rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    color: var(--navy-900);
    background: var(--bg-soft);
}
.opt-group summary::-webkit-details-marker { display: none; }
.opt-group summary small { font-weight: 500; color: var(--ink-soft); }
.opt-group .opt-body { padding: 1.1rem 1.1rem .3rem; }

.emp-entry {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.1rem .3rem;
    margin-bottom: 1rem;
}
.emp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .9rem;
}
.emp-head h4 { font-size: .98rem; }
.remove-emp {
    border: 0;
    background: none;
    color: #be123c;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    font-family: var(--font-head);
}
.remove-emp:hover { text-decoration: underline; }
.add-btn { margin-bottom: 1.2rem; }

.consent { margin-bottom: 1rem; }

/* ---------- Info modals (privacy / terms / accessibility) ---------- */
.info-modal { width: min(660px, 100%); }
.info-body { font-size: .95rem; color: var(--ink-soft); }
.info-body h4 {
    color: var(--navy-900);
    margin: 1.4rem 0 .5rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}
.info-body h4:first-of-type { border-top: 0; padding-top: 0; margin-top: 1rem; }
.info-body p { margin-bottom: .8rem; }
.info-body ul { padding-left: 1.3rem; margin-bottom: .8rem; }
.info-body li { margin-bottom: .5rem; }
.info-body strong { color: var(--navy-800); }
.signature-input {
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 1.05rem;
}

/* ---------- Reveal animations ---------- */
html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}
html.js .reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .float-card, .pulse-dot::after { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero { padding-top: 8rem; }
    .hero-visual { max-width: 560px; margin: 0 auto; }
    .card-verified { left: 2%; }
    .card-support { right: 2%; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .apply-features { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
    .cta-band { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 768px) {
    .section { padding: 4.2rem 0; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        height: 100dvh;
        width: min(320px, 82vw);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.3rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform .35s ease;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-link { font-size: 1.05rem; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .about-cards .mini-card:nth-child(even) { transform: none; }
    .about-cards .mini-card:nth-child(even):hover { transform: translateY(-5px); }
    .form-row, .form-row.cols-3, .form-row.cols-3-1 { grid-template-columns: 1fr; }
    .form-row.cols-name { grid-template-columns: 5fr 2fr; }
    .form-row.cols-name .field:last-child { grid-column: 1 / -1; }
    .pill-group { grid-template-columns: 1fr; }
    .pill-group.yn { grid-template-columns: 1fr 1fr; }
    .step { font-size: 0; gap: 0; justify-content: center; }
    .step span { font-size: .72rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .float-card { padding: .6rem .85rem; }
    .float-card strong { font-size: .8rem; }
    .float-card span { font-size: .7rem; }
}

@media (max-width: 480px) {
    .container { width: calc(100% - 2.2rem); }
    .process-grid { grid-template-columns: 1fr; }
    .about-cards { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
}
