:root {
    --primary-color: #264190;
    /* San Miguel Logo Blue */
    --secondary-color: #6c757d;
    /* Bootstrap Secondary Grey */
    --accent-color: #e9ecef;
    /* Light Grey (Fresh) */
    --dark-color: #212529;
    /* Dark text */
    --light-color: #ffffff;
    --highlight-color: #20c997;
    /* Teal (Fresh Health) */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Navbar */
.navbar {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: url('../images/hero_bg.png') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(38, 65, 144, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease-out;
}

.btn-premium {
    background-color: var(--highlight-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-premium:hover {
    background-color: #1aa179;
    transform: translateY(-2px);
    color: white;
}

/* About Us */
.about-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto;
}

.personnel-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.personnel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.personnel-img {
    height: 400px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .personnel-img {
        max-height: 230px;
    }
}

.personnel-card:hover .personnel-img {
    transform: scale(1.05);
}

.card-body {
    background-color: white;
    padding: 1.5rem;
    text-align: center;
}

.personnel-name {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.personnel-role {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services */
.services-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--highlight-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: rgba(38, 65, 144, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-desc {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-branches {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Branches */
.branches-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.branch-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent !important;
}

.branch-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--highlight-color) !important;
}

.branch-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--light-color);
    position: relative;
}

.contact-form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 0.25rem rgba(32, 201, 151, 0.25);
}

.form-check-input:checked {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
}

.f-group-preference {
    display: none !important;
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
}

/* Footer */
footer {
    background-color: var(--accent-color);
    background-image: url('../images/footer_texture_dots.svg');
    color: var(--dark-color);
    padding: 4rem 0 2rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background-color: var(--highlight-color);
    color: white;
    transform: translateY(-3px);
}


.footer-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--highlight-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        /* Smaller title on mobile */
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        /* Smaller subtitle */
        padding: 0 1rem;
        /* Add side padding for better readability */
    }

    .hero-section {
        height: auto;
        /* Allow height to adjust content */
        min-height: 80vh;
        padding: 6rem 0;
        /* Add vertical padding */
    }

    .hero-content {
        padding: 0 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        height: 60vh;
    }
}