/* ===== Global Styles ===== */
:root {
    --primary: #0F2B46;
    --primary-dark: #091d30;
    --primary-light: #1a4060;
    --primary-lighter: #245580;
    --accent: #4A90D9;
    --accent-light: #6BA5E3;
    --light-bg: #F0F4F8;
    --dark-bg: #0B1F33;
    --text-dark: #1C2D3F;
    --text-muted: #5A6F83;
    --border-color: #D0DBE5;
    --white: #ffffff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}

a {
    transition: all 0.3s ease;
    color: var(--accent);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Header ===== */
.site-header {
    box-shadow: 0 2px 10px rgba(15,43,70,0.08);
    background: var(--white);
}

.navbar-logo {
    height: 158px !important;
    width: auto !important;
    max-height: 158px !important;
    object-fit: contain;
}

.site-header .navbar {
    background-color: var(--white) !important;
    padding: 0;
    border-top: 1px solid var(--border-color) !important;
}

.nav-link {
    font-weight: 400;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: var(--text-muted) !important;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 500;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-lighter) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.04)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,218.7C672,203,768,149,864,128C960,107,1056,117,1152,133.3C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    color: var(--white);
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 15px;
}

.hero-section .lead {
    font-size: 1.1rem;
    opacity: 0.85;
}

.hero-btn {
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
}

.hero-btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.hero-btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74,144,217,0.4);
    color: var(--white);
}

.hero-btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.hero-btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== Section Styles ===== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ===== Service Cards ===== */
.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(15,43,70,0.08);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(15,43,70,0.15);
    border-color: var(--accent);
}

.service-card .card-img-wrapper {
    height: 250px;
    overflow: hidden;
}

.service-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.service-card .card-body {
    padding: 25px;
}

.service-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card .card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Why Choose Us ===== */
.feature-box {
    text-align: center;
    padding: 35px 25px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 3px 15px rgba(15,43,70,0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15,43,70,0.12);
    border-color: var(--accent);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--white);
}

.feature-box h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== Testimonials ===== */
.testimonial-section {
    background: var(--light-bg);
}

.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(15,43,70,0.06);
    text-align: center;
    height: 100%;
    position: relative;
    border: 1px solid var(--border-color);
}

.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.25;
    position: absolute;
    top: 10px;
    left: 25px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-card .testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--accent);
}

.testimonial-card .testimonial-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 3px;
}

.testimonial-card .testimonial-role {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 70px 0;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.cta-section p {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* ===== Contact Form ===== */
.contact-form .form-control,
.contact-form .form-select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(74,144,217,0.15);
}

.contact-form label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    padding: 12px 40px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74,144,217,0.3);
}

/* ===== Page Header (Inner Pages) ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== Appointment Form ===== */
.appointment-form {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(15,43,70,0.1);
    border: 1px solid var(--border-color);
}

.appointment-form h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 25px;
}

.appointment-form .form-control,
.appointment-form .form-select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(74,144,217,0.15);
}

/* ===== Service Area Badge ===== */
.service-area-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark-bg) !important;
}

footer h5 {
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
    color: var(--white);
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

footer a {
    color: rgba(255,255,255,0.7) !important;
}

footer a:hover {
    color: var(--accent) !important;
}

/* ===== Scroll to Top ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 3px 15px rgba(15,43,70,0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== Blog Cards ===== */
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(15,43,70,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15,43,70,0.15);
    border-color: var(--accent);
}

.blog-card .card-body {
    padding: 25px;
}

.blog-card .blog-date {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card .blog-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin: 10px 0;
}

.blog-card .blog-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-tag {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 2px;
    border: 1px solid var(--border-color);
}

/* ===== Alert Messages ===== */
.alert-success-custom {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 8px;
    padding: 15px 20px;
}

.alert-error-custom {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 8px;
    padding: 15px 20px;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.4rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .navbar-logo {
        height: 90px !important;
        max-height: 90px !important;
    }

    .nav-link {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .appointment-form {
        padding: 25px;
    }

    .service-card .card-img-wrapper {
        height: 200px;
    }

    .navbar-logo {
        height: 70px !important;
        max-height: 70px !important;
    }

    .nav-link {
        font-size: 1.1rem;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .navbar-logo {
        height: 60px !important;
        max-height: 60px !important;
    }
}
