/* ----- ROOT THEME ----- */
:root {
    --color-primary: #1E3557;
    --color-secondary: #2F8C8F;
    --color-accent: #D4A64A;
    --color-bg-light: #F5F7F8;
    --color-bg-white: #FFFFFF;
    --color-bg-dark: #14243C;
    --color-text-primary: #2B2B2B;
    --color-text-secondary: #6B7C86;
    --color-text-light: #FFFFFF;
    --color-border: #E0E6ED;
    --color-shadow: rgba(30, 53, 87, 0.1);
    --color-success: #4CAF50;
    --color-info: #3A86C6;
    --color-warning: #F4B740;
    --color-error: #E57373;
    --gradient-primary: linear-gradient(135deg, #2F8C8F, #1E3557);
    --gradient-accent: linear-gradient(135deg, #D4A64A, #F1C27D);
    --btn-primary-bg: var(--color-primary);
    --btn-primary-text: #FFFFFF;
    --btn-primary-hover: #162944;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-text-primary);
    line-height: 1.7;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ----- TYPOGRAPHY ----- */
h1,
h2,
h3,
h4,
.heading-font {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title i {
    color: var(--color-accent);
    margin-right: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    background: var(--color-secondary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 1.2rem;
    border-radius: 40px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* ----- BUTTONS ----- */
.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-weight: 600;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 60px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 14px rgba(30, 53, 87, 0.20);
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(30, 53, 87, 0.30);
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
    font-weight: 600;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 60px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 14px rgba(47, 140, 143, 0.25);
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #256F72;
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: 60px;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* ----- HERO ----- */
.hero {
    background: var(--color-bg-light);
    padding: 4rem 0 2.5rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(47, 140, 143, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0.5rem 0;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* ----- STATS BAR ----- */
.stats-bar {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item .stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.stat-item .stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 500;
}

/* ----- CARDS ----- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--color-bg-white);
    border-radius: 24px;
    padding: 2rem 1.8rem;
    box-shadow: 0 8px 24px var(--color-shadow), 0 2px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--color-border);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -8px rgba(30, 53, 87, 0.12);
    border-color: var(--color-secondary);
}

.card:nth-child(2) {
    animation-delay: 0.08s;
}

.card:nth-child(3) {
    animation-delay: 0.16s;
}

.card:nth-child(4) {
    animation-delay: 0.24s;
}

.card:nth-child(5) {
    animation-delay: 0.32s;
}

.card:nth-child(6) {
    animation-delay: 0.40s;
}

.card:nth-child(7) {
    animation-delay: 0.48s;
}

.card:nth-child(8) {
    animation-delay: 0.56s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-icon {
    font-size: 2.2rem;
    color: var(--color-secondary);
    background: rgba(47, 140, 143, 0.08);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1.2rem;
    transition: 0.2s;
}

.card:hover .card-icon {
    background: rgba(47, 140, 143, 0.15);
    color: var(--color-primary);
}

.card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
}

.card p,
.card li {
    color: var(--color-text-primary);
    font-size: 0.98rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.card li {
    padding: 0.3rem 0 0.3rem 1.8rem;
    position: relative;
}

.card li i {
    position: absolute;
    left: 0;
    top: 0.45rem;
    color: var(--color-accent);
    font-size: 1rem;
    width: 1.4rem;
    text-align: center;
}

.card li strong {
    color: var(--color-primary);
}

/* ----- FEATURE GRID (quick stats) ----- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: var(--color-bg-white);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: 0.2s;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--color-shadow);
}

.feature-item i {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.feature-item h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--color-primary);
    font-size: 1rem;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.2rem;
}

/* ----- TIMING TABLE ----- */
.timing-table {
    background: var(--color-bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--color-shadow);
    border: 1px solid var(--color-border);
    margin-top: 2rem;
}

.timing-table table {
    width: 100%;
    border-collapse: collapse;
}

.timing-table th {
    background: var(--color-primary);
    color: white;
    padding: 1rem 1.5rem;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.timing-table td {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.timing-table tr:last-child td {
    border-bottom: none;
}

.timing-table tr:hover td {
    background: var(--color-bg-light);
}

.timing-table .day {
    font-weight: 600;
    color: var(--color-primary);
}

.timing-table .status {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
}

.timing-table .status.open {
    background: rgba(76, 175, 80, 0.12);
    color: var(--color-success);
}

.timing-table .status.closed {
    background: rgba(229, 115, 115, 0.12);
    color: var(--color-error);
}

/* ----- APPOINTMENT BANNER ----- */
.appointment-banner {
    background: var(--gradient-primary);
    border-radius: 30px;
    padding: 3rem 2.5rem;
    color: white;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 12px 30px rgba(30, 53, 87, 0.25);
}

.appointment-banner h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.appointment-banner p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0.5rem auto 1.5rem;
    font-size: 1.1rem;
}

.appointment-banner .btn-white {
    background: white;
    color: var(--color-primary);
    font-weight: 700;
    padding: 0.9rem 2.5rem;
    border-radius: 60px;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.appointment-banner .btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.appointment-banner .btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 0.9rem 2.5rem;
    border-radius: 60px;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
    margin-left: 0.8rem;
}

.appointment-banner .btn-outline-white:hover {
    background: white;
    color: var(--color-primary);
}

/* ----- EMERGENCY BADGE ----- */
.emergency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(229, 115, 115, 0.1);
    color: var(--color-error);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(229, 115, 115, 0.2);
}

.emergency-badge i {
    font-size: 0.9rem;
}

/* ----- SECTION PADDING ----- */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--color-bg-light);
}

/* ----- FOOTER ----- */
.footer {
    background: var(--color-bg-dark);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer a {
    color: #94b8d4;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 1.2rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .appointment-banner {
        padding: 2rem 1.5rem;
    }

    .appointment-banner .btn-outline-white {
        margin-left: 0;
        margin-top: 0.8rem;
    }

    .timing-table {
        overflow-x: auto;
    }

    .timing-table table {
        min-width: 480px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-item .stat-number {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .appointment-banner h2 {
        font-size: 1.5rem;
    }

    .appointment-banner .btn-white,
    .appointment-banner .btn-outline-white {
        display: block;
        margin: 0.5rem auto;
        width: 100%;
        max-width: 280px;
    }
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}