/* ============================================================
   Action Hospital — Custom Styles
   Bootstrap 5 overrides + component styling
   Brand palette & typography matched to actionhospital.in
   ============================================================ */

:root {
    /* Brand tokens (sampled from actionhospital.in) */
    --ah-primary: #0a9b9c;      /* bright teal — main accent      */
    --ah-primary-rgb: 10, 155, 156;
    --ah-dark: #004f51;         /* dark teal — headings / hovers  */
    --ah-darkest: #013233;      /* darkest teal — footer base     */
    --ah-deep: #092929;         /* deep teal — request section    */
    --ah-light: #ebf9ff;        /* soft section / hover background */
    --ah-cream: #fbf3ef;        /* warm cream accent              */
    --ah-peach: #fee9e0;        /* warm peach accent              */
    --ah-accent: #e0a458;       /* warm gold for highlights/CTAs  */
    --ah-text: #5c5c5c;         /* body text                      */
    --ah-heading: #353434;      /* headings                       */

    /* Re-map Bootstrap's primary -> teal so all utilities follow */
    --bs-primary: var(--ah-primary);
    --bs-primary-rgb: var(--ah-primary-rgb);
    --bs-link-color: var(--ah-primary);
    --bs-link-color-rgb: var(--ah-primary-rgb);
    --bs-link-hover-color: var(--ah-dark);
    --bs-link-hover-color-rgb: 0, 79, 81;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ah-text);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.fw-bold {
    color: #8b8888;
}

/* Buttons --------------------------------------------------- */
.btn {
    border-radius: 50px;      /* pill buttons, like the brand site */
    font-weight: 500;
}
.btn-primary {
    --bs-btn-bg: var(--ah-primary);
    --bs-btn-border-color: var(--ah-primary);
    --bs-btn-hover-bg: var(--ah-dark);
    --bs-btn-hover-border-color: var(--ah-dark);
    --bs-btn-active-bg: var(--ah-dark);
    --bs-btn-active-border-color: var(--ah-dark);
    --bs-btn-disabled-bg: var(--ah-primary);
    --bs-btn-disabled-border-color: var(--ah-primary);
}
.btn-outline-primary {
    --bs-btn-color: var(--ah-primary);
    --bs-btn-border-color: var(--ah-primary);
    --bs-btn-hover-bg: var(--ah-primary);
    --bs-btn-hover-border-color: var(--ah-primary);
    --bs-btn-active-bg: var(--ah-primary);
}
/* Warm accent button (replaces yellow btn-warning on dark hero) */
.btn-warning {
    --bs-btn-bg: var(--ah-accent);
    --bs-btn-border-color: var(--ah-accent);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #c98c3f;
    --bs-btn-hover-border-color: #c98c3f;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #c98c3f;
    --bs-btn-active-color: #fff;
}

/* Topbar / Navbar ------------------------------------------- */
.topbar {
    background: var(--ah-dark) !important;
}
.navbar {
    background-color: var(--ah-light) !important;   /* soft teal-tinted nav */
}
.navbar-brand {
    color: var(--ah-primary) !important;
    font-size: 1.35rem;
}
.navbar .nav-link {
    color: var(--ah-heading);
    font-weight: 500;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--ah-primary);
}

/* Highlighted hero word (text-warning) ---------------------- */
.text-warning {
    color: var(--ah-accent) !important;
}

/* Section helpers ------------------------------------------- */
.bg-light {
    background-color: var(--ah-light) !important;
}

/* Hero ------------------------------------------------------ */
.hero {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--ah-dark) 0%, var(--ah-primary) 100%);
    position: relative;
}

/* Banner appointment form ----------------------------------- */
.hero-form-card {
    border-radius: 16px;
}
.hero-form-card .card-body > h4 {
    color: var(--ah-dark);
}
.hero-form-card .form-control,
.hero-form-card .form-select {
    border-radius: 8px;
}
.hero-form-card .form-control:focus,
.hero-form-card .form-select:focus {
    border-color: var(--ah-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--ah-primary-rgb), .25);
}

/* Service cards --------------------------------------------- */
.service-card {
    transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 .75rem 1.5rem rgba(var(--ah-primary-rgb), .18) !important;
}
.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--ah-primary-rgb), .12);
    color: var(--ah-primary);
    font-size: 1.75rem;
}

/* Brand logos ----------------------------------------------- */
.brand-logo {
    height: 48px;
    width: auto;
}
.footer-logo {
    height: 56px;
    width: auto;
    max-width: 100%;
}
@media (max-width: 575.98px) {
    .brand-logo { height: 38px; }
}

/* Speciality pills ------------------------------------------ */
.dept-pill {
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    font-weight: 500;
}
.dept-pill .spec-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--ah-primary-rgb), .12);
    color: var(--ah-primary);
    font-size: 1.25rem;
    transition: background .2s ease, color .2s ease;
}
.dept-pill:hover {
    background: var(--ah-primary) !important;
    color: #fff;
    cursor: default;
}
.dept-pill:hover .spec-icon {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}
.dept-pill:hover .bi {
    color: #fff !important;
}

/* Thank-you page -------------------------------------------- */
.thankyou-icon i {
    font-size: 4.5rem;
    color: var(--ah-primary);
    line-height: 1;
}

/* Stats ----------------------------------------------------- */
.stat-item i {
    font-size: 2.5rem;
    line-height: 1;
}
.stat-value {
    font-size: 1.9rem;
    line-height: 1.1;
    color: var(--ah-dark);
    word-break: break-word;
}

/* Footer ---------------------------------------------------- */
footer.bg-dark {
    background-color: var(--ah-darkest) !important;
}
footer.bg-dark .text-primary {
    color: #30abab !important;   /* lighter teal for contrast on dark */
}
.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color .2s ease;
}
.footer-link:hover {
    color: #fff;
}

/* Smooth scroll for anchor nav ------------------------------ */
html {
    scroll-behavior: smooth;
}
section {
    scroll-margin-top: 80px;
}

/* Topbar overflow safety (long emergency numbers) ----------- */
.topbar .container {
    flex-wrap: wrap;
    gap: .25rem 1rem;
}
.topbar a {
    white-space: nowrap;
}

/* ============================================================
   Responsive tweaks
   ============================================================ */

/* Tablet (≤ 991.98px) --------------------------------------- */
@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
    }
    /* Centre only the hero copy, never the form inputs */
    .hero-copy {
        text-align: center;
    }
    .hero-form-card {
        max-width: 540px;
        margin-inline: auto;
    }
    .navbar-collapse {
        padding-top: .5rem;
    }
    .navbar-nav .btn {
        display: inline-block;
        width: auto;
    }
}

/* Mobile (≤ 767.98px) --------------------------------------- */
@media (max-width: 767.98px) {
    .stat-item i {
        font-size: 2rem;
    }
    .stat-value {
        font-size: 1.4rem;
    }
    /* Stack speciality icon above its label so long names fit */
    .dept-pill {
        flex-direction: column;
        text-align: center;
    }
    .dept-pill .spec-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin: 0 0 .5rem 0 !important;
    }
    .dept-pill .fw-medium {
        font-size: .85rem;
        line-height: 1.25;
    }
}

/* Small phones (≤ 575.98px) --------------------------------- */
@media (max-width: 575.98px) {
    .hero-copy h1 {
        font-size: 2rem;
    }
    .hero .btn-lg {
        padding: .5rem 1.25rem;
        font-size: 1rem;
    }
    .hero .btn-lg.me-2 {
        margin-bottom: .5rem;
    }
    .hero-form-card .card-body {
        padding: 1.25rem !important;
    }
}
