/* ===== Header — Anil Ambulance ===== */
.ah-header {
    --ah-navy: #0b2545;
    --ah-red: #e0182d;
    --ah-red-dark: #b80f21;
    position: sticky !important;   /* main.js adds .sticky-header on scroll; keep it sticky, not fixed */
    top: 0 !important;
    z-index: 1030;
    padding: 0 !important;
    background: #fff !important;
    font-family: 'Montserrat', sans-serif;
    transition: box-shadow .25s ease;
}
.ah-header.sticky-header { box-shadow: 0 6px 20px rgba(11, 37, 69, .10); }

/* Top strip */
.ah-topbar {
    background: var(--ah-navy);
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    padding: 7px 0;
}
.ah-topbar a { color: rgba(255, 255, 255, .85); text-decoration: none; margin-left: 22px; }
.ah-topbar a:hover { color: #fff; }
.ah-topbar i { margin-right: 5px; }
.ah-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #3ddc84; margin-right: 6px; vertical-align: 1px;
    box-shadow: 0 0 0 0 rgba(61, 220, 132, .6);
    animation: ah-pulse 1.8s infinite;
}
@keyframes ah-pulse {
    70%  { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.ah-rating { margin-right: 4px; }
.ah-stars { color: #ffc93c; letter-spacing: 1px; margin-right: 4px; }
.ah-muted { opacity: .6; }

/* Main bar */
.ah-nav { padding: 10px 0; border-bottom: 1px solid #e8ebf0; }
.ah-logo { height: 66px; width: auto; display: block; }

/* Header actions: call info + one primary button */
.ah-actions {
    display: flex; align-items: center; gap: 22px;
    margin-left: 32px; padding-left: 32px;
    border-left: 1px solid #e3e7ee;
}
.ah-call {
    display: flex; align-items: center; gap: 12px;
    color: var(--ah-navy); text-decoration: none;
}
.ah-call-icon {
    display: grid; place-items: center; flex: none;
    width: 42px; height: 42px; border-radius: 50%;
    background: #fdecee; color: var(--ah-red); font-size: 17px;
    transition: background .2s, color .2s;
}
.ah-call-text { display: flex; flex-direction: column; line-height: 1.2; }
.ah-call-text small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #6b7686; }
.ah-call-text strong { font-size: 18px; font-weight: 700; letter-spacing: .01em; color: var(--ah-navy); transition: color .2s; }
.ah-call:hover .ah-call-icon { background: var(--ah-red); color: #fff; }
.ah-call:hover strong { color: var(--ah-red); }
.ah-call:focus-visible { outline: 2px solid var(--ah-red); outline-offset: 4px; border-radius: 6px; }

.ah-book {
    display: inline-flex; align-items: center; justify-content: center;
    height: 46px; padding: 0 22px;
    background: var(--ah-red); color: #fff; border-radius: 6px;
    font-size: 14px; font-weight: 700; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
    box-shadow: 0 6px 14px -6px rgba(224, 24, 45, .55);
    transition: background .2s, box-shadow .2s;
}
.ah-book:hover { background: var(--ah-red-dark); color: #fff; box-shadow: 0 8px 18px -6px rgba(224, 24, 45, .6); }
.ah-book:active { transform: scale(.98); }
.ah-book:focus-visible { outline: 2px solid var(--ah-red); outline-offset: 3px; }

.ah-nav .navbar-nav .nav-link {
    position: relative;
    margin: 0 0 0 30px;
    padding: 8px 0;
    color: var(--ah-navy);
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: .01em;
    transition: color .2s;
}
.ah-nav .navbar-nav .nav-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--ah-red);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.ah-nav .navbar-nav .nav-link:hover,
.ah-nav .navbar-nav .nav-link:focus,
.ah-nav .navbar-nav .nav-link.active { color: var(--ah-red); }
.ah-nav .navbar-nav .nav-link:hover::after,
.ah-nav .navbar-nav .nav-link.active::after { transform: scaleX(1); }

/* Mobile controls */
.ah-call-sm, .ah-toggler {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 8px; font-size: 20px; padding: 0;
}
.ah-call-sm {
    background: var(--ah-red); color: #fff; margin-right: 8px;
    width: auto; display: inline-flex; align-items: center; gap: 8px;
    padding: 0 16px; font-size: 15px; font-weight: 700; text-decoration: none;
}
.ah-call-sm i { font-size: 16px; }

/* Keyboard focus */
.ah-nav .navbar-nav .nav-link:focus-visible,
.ah-call-sm:focus-visible, .ah-topbar a:focus-visible, .navbar-brand:focus-visible {
    outline: 2px solid var(--ah-red); outline-offset: 3px; border-radius: 3px;
}
.ah-call-sm:hover { color: #fff; background: var(--ah-red-dark); }
.ah-toggler { background: #f1f3f7 !important; color: var(--ah-navy); border: 0; font-size: 26px; }
.ah-toggler:focus { box-shadow: 0 0 0 3px rgba(11, 37, 69, .2); }

@media (max-width: 1199.98px) {
    .ah-nav .navbar-nav .nav-link { margin-left: 22px; }
    .ah-actions { margin-left: 22px; padding-left: 22px; gap: 16px; }
    .ah-logo { height: 58px; }
}
@media (max-width: 991.98px) {
    .ah-topbar { font-size: 12px; text-align: center; }
    .ah-topbar .container { justify-content: center !important; }
    .ah-nav { padding: 10px 0; }
    .ah-logo { height: 54px; }
    .ah-nav .navbar-collapse { margin-top: 10px; border-top: 1px solid #e8ebf0; }
    .ah-nav .navbar-nav .nav-link { margin: 0; padding: 13px 4px; border-bottom: 1px solid #f1f3f7; }
    .ah-nav .navbar-nav .nav-link::after { display: none; }
    .ah-actions { margin: 14px 0 6px; padding: 0; border: 0; flex-direction: column; align-items: stretch; gap: 12px; }
    .ah-call { justify-content: center; padding: 6px 0; }
    .ah-book { height: 50px; font-size: 15px; }
}
@media (max-width: 575.98px) {
    .ah-logo { height: 46px; }
    .ah-call-sm { padding: 0 13px; }
}
@media (max-width: 359.98px) {
    .ah-logo { height: 38px; }
    .ah-call-sm { height: 40px; padding: 0 11px; gap: 6px; font-size: 14px; margin-right: 6px; }
    .ah-toggler { width: 40px; height: 40px; font-size: 22px; }
    .ah-topbar { font-size: 11px; }
}
/* Menu jumps land below the sticky header */
#honeymoon, #about { scroll-margin-top: 110px; }

/* ===== Motion: calm and purposeful only ===== */

/* Shadow appears once the page scrolls */
.ah-header.ah-scrolled { box-shadow: 0 6px 18px rgba(11, 37, 69, .08); }

/* Thin reading-progress line under the header */
.ah-progress {
    position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
    background: var(--ah-red);
    transform-origin: left; transform: scaleX(var(--ah-progress, 0));
    pointer-events: none;
}

/* Buttons: gentle hover / press feedback */

/* Top bar links underline */
.ah-topbar a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
    background: currentColor; transform: scaleX(0); transition: transform .25s ease;
}
.ah-topbar a { position: relative; }
.ah-topbar a:hover::after { transform: scaleX(1); }

/* Mobile menu: simple fade when opened */
@media (max-width: 991.98px) {
    .ah-nav .navbar-collapse.show { animation: ah-fade .25s ease; }
}
@keyframes ah-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .ah-header *, .ah-header *::before, .ah-header *::after { animation: none !important; transition: none !important; }
}

/* Site-wide content width: 1380px on large screens */
@media (min-width: 1400px) {
    .container, .container-xxl, .cus-container { max-width: 1380px; }   /* nested: keep the same content edge */
}
