/* Base Styles */
html {
    scroll-padding-top: 80px; /* To account for fixed header */
}

:root {
    --primary-color: #013982;
    --secondary-color: #ff6b00;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #fff;
    --dark: #222;
    --transition: all 0.3s ease;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #002b5a;
    color: var(--white);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e05d00;
    color: var(--white);
    transform: translateY(-3px);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
    will-change: transform;
}

.sticky-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    width: 100%;
}

/* Logo */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 465px; /* Increased space after logo */
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 200px;
    display: block;
}

/* Contact Info Wrapper */
.contact-info-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 40px; /* Add space between logo and contact info */
    margin-right: auto; /* Push contact info to the left */
    position: relative;
    top: 5px; /* Adjust this value to move up (negative) or down (positive) */
}

.contact-info {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000000;
    font-size: 14px;
    white-space: nowrap;
    margin: 0;
    padding: 5px 10px;
    position: relative;
}

/* Add separator between items except the last one */
.info-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: #ddd;
}

.info-item i {
    color: #013982;
    font-size: 16px;
    min-width: 18px;
    text-align: center;
}

/* Force black text for all links in header */
.sticky-header .info-item a,
.sticky-header .info-item a:link,
.sticky-header .info-item a:visited,
.sticky-header .info-item a:active {
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.sticky-header .info-item a:hover {
    color: #ff6b00 !important;
    text-decoration: none;
}

.sticky-header .info-item span {
    color: #000000 !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sticky-header .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .contact-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 30px;
        text-align: center;
    }
    
    .logo {
        margin: 0 0 10px 0;
    }
}

@media (max-width: 576px) {
    .sticky-header .container {
        padding: 12px 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .info-item {
        font-size: 13px;
        gap: 6px;
    }
    
    .contact-info {
        gap: 12px 20px;
    }
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.main-nav ul li a:hover:after,
.main-nav ul li a.active:after {
    width: 100%;
}

.cta-buttons {
    display: flex;
    align-items: center;
}

.cta-buttons .btn {
    margin-left: 15px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(1, 57, 130, 0.9), rgba(1, 57, 130, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    background-color: rgba(1, 57, 130, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Appointment Section */
.appointment {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/appointment-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

.appointment h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.appointment p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.appointment-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Style for the terms checkbox in forms */
.form-group.terms-checkbox {
    margin: 5px 0 0 0;
    font-size: 12px;
    line-height: 1.2;
}

.form-group.terms-checkbox label {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.form-group.terms-checkbox input[type="checkbox"] {
    margin: 0 8px 0 0;
    width: auto;
    height: auto;
    vertical-align: middle;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about img.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 991px) {
    /* Stats Section: 2 per row */
    .stats-grid, .stat-items {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 22px 18px !important;
    }
    .stat-item {
        width: 100%;
        margin: 0;
        padding: 16px 0 12px 0;
        font-size: 1.03rem;
        text-align: center;
    }
    /* Partner Advantage: 2 logos per row, bigger logos */
    .partner-advantage .logo-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 5px 9px !important;
        margin: 0 auto;
        max-width: 500px;
    }
    .partner-advantage .logo-item {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 20px;  /* Fixed height for container */
        padding: 0 5px;
    }
    .partner-advantage .logo-item img {
        max-width: 120% !important;
        max-height: 100% !important;
        width: auto !important;
        height: 35px;
        object-fit: contain;  /* Maintain aspect ratio */
        margin: 0 auto;
        display: block;
    }
}

/* For tablets (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .partner-advantage .logo-item {
        height: 35px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 5px !important;
    }
    
    .partner-advantage .logo-grid {
        gap: 8px 10px !important;
        max-width: 100% !important;
    }
}

/* For mobile (up to 767px) */
@media (max-width: 767px) {
    .partner-advantage .logo-item {
        height: 48px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 3px !important;
    }
    
    .partner-advantage .logo-grid {
        gap: 6px 8px !important;
        max-width: 100% !important;
    }
}

/* For mobile screens (up to 767px) */
@media (max-width: 767px) {
    .partner-advantage .logo-grid {
        gap: 8px 6px !important;  /* Even smaller gaps for mobile */
        max-width: 100%;  /* Better use of available space */
    }
    
    .partner-advantage .logo-item {
        height: 35px;  /* Slightly smaller height for mobile */
    }
}

@media (max-width: 991px) {
    .main-nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 90px);
        background-color: var(--white);
        padding: 30px;
        transition: var(--transition);
        overflow-y: auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 0 0 15px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .cta-group .btn {
        width: 100%;
    }

    .features,
    .appointment {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .appointment-form {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    /* HEADER: Only logo and phone, smaller logo */
    .sticky-header .logo img {
        height: 36px !important;
        width: auto !important;
        max-width: 120px;
    }
    .sticky-header .contact-info-wrapper,
    .sticky-header .contact-info {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
    .sticky-header .contact-info .info-item {
        display: none !important;
    }
    .sticky-header .contact-info .info-item:nth-child(2) {
        display: flex !important;
        align-items: center;
        font-size: 15px;
        gap: 4px;
    }
    .sticky-header .contact-info .info-item:nth-child(2) a {
        font-size: 15px;
        color: #013982;
        font-weight: 600;
    }

    /* MODERN HERO SECTION: vertical stacking */
    .modern-hero .hero-grid {
        display: block !important;
    }
    .modern-hero .hero-content {
        margin-bottom: 18px;
        text-align: left;
        padding: 0 8px;
    }
    .modern-hero .hero-content h1 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }
    .modern-hero .hero-content .badge {
        font-size: 13px;
        padding: 5px 13px;
        margin-bottom: 8px;
    }
    .modern-hero .hero-content ul.hero-features {
        margin-bottom: 12px;
    }
    .modern-hero .hero-image {
        margin-bottom: 15px;
        text-align: center;
    }
    .modern-hero .hero-image img {
        max-width: 160px;
        height: auto;
        margin: 0 auto;
    }
    .modern-hero .cta-buttons {
        margin-bottom: 18px;
        text-align: center;
    }
    .modern-hero .cta-buttons .btn-call {
        font-size: 15px;
        padding: 10px 18px;
    }
    .modern-hero .appointment-form {
        margin: 0 auto;
        max-width: 95vw;
        font-size: 14px;
        padding: 20px 10px;
    }
    .modern-hero .appointment-form h3 {
        font-size: 1.1rem;
    }
    .modern-hero .appointment-form input,
    .modern-hero .appointment-form select {
        font-size: 14px;
        padding: 8px 10px;
    }
    .modern-hero .appointment-form .submit-btn {
        font-size: 15px;
        padding: 10px 0;
        width: 100%;
        border-radius: 25px;
    }
    .modern-hero .trust-badges {
        flex-direction: row;
        gap: 8px;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    /* HEADER: Only logo and phone, smaller logo */
    .sticky-header .logo img {
        height: 36px !important;
        width: auto !important;
        max-width: 120px;
    }
    .sticky-header .contact-info-wrapper,
    .sticky-header .contact-info {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
    .sticky-header .contact-info .info-item {
        display: none !important;
    }
    .sticky-header .contact-info .info-item:nth-child(2) {
        display: flex !important;
        align-items: center;
        font-size: 15px;
        gap: 4px;
    }
    .sticky-header .contact-info .info-item:nth-child(2) a {
        font-size: 15px;
        color: #013982;
        font-weight: 600;
    }

    /* MODERN HERO SECTION: vertical stacking & improved UI */
    .modern-hero .hero-grid {
        display: block !important;
    }
    .modern-hero .hero-content {
        margin-bottom: 22px;
        text-align: left;
        padding: 0 8px;
    }
    .modern-hero .hero-content h1 {
        font-size: 1.45rem;
        margin-bottom: 12px;
        line-height: 1.25;
    }
    .modern-hero .hero-content .badge {
        font-size: 15px;
        padding: 7px 16px;
        margin-bottom: 10px;
    }
    .modern-hero .hero-content ul.hero-features {
        margin-bottom: 16px;
        font-size: 1.05rem;
    }
    .modern-hero .hero-image {
        margin-bottom: 20px;
        text-align: center;
    }
    .modern-hero .hero-image img {
        max-width: 210px;
        width: 90vw;
        min-width: 160px;
        height: auto;
        margin: 0 auto;
    }
    .modern-hero .cta-buttons {
        margin-bottom: 22px;
        text-align: center;
    }
    .modern-hero .cta-buttons .btn-call {
        font-size: 17px;
        padding: 13px 0;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        background: #013982;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
    .modern-hero .cta-buttons .btn-call i {
        font-size: 18px;
    }
    .modern-hero .appointment-form {
        margin: 12 auto;
        max-width: 99vw;
        font-size: 15px;
        padding: 18px 6px 14px 6px;
    }
    .modern-hero .appointment-form h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }
    .modern-hero .appointment-form input,
    .modern-hero .appointment-form select {
        font-size: 15px;
        padding: 10px 12px;
    }
    .modern-hero .appointment-form .submit-btn {
        font-size: 16px;
        padding: 12px 0;
        width: 100%;
        margin-top: 8px;
    }
    .modern-hero .trust-badges {
        flex-direction: row;
        gap: 10px;
        margin-top: 12px;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-links h3:after,
    .footer-contact h3:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animated Lowest Price Guaranteed Tag - mobile only */
@media (max-width: 767px) {
    .mobile-lowest-price-tag {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 16px auto 18px auto;
        background: linear-gradient(90deg, #ff6b00 60%, #ffb366 100%);
        color: #fff;
        font-weight: 700;
        font-size: 1.18rem;
                padding: 8px 24px 8px 16px;
        box-shadow: 0 2px 10px rgba(255,107,0,0.09);
        width: fit-content;
        animation: lowestTagSlideDown 1.2s cubic-bezier(0.6,0.1,0.4,1.1);
    }
    .mobile-lowest-price-tag .tag-icon {
        font-size: 1.28em;
        animation: tagFlame 1.1s infinite alternate;
    }
    @keyframes lowestTagSlideDown {
        0% { opacity: 0; transform: translateY(-40px) scale(0.9); }
        60% { opacity: 1; transform: translateY(8px) scale(1.04); }
        85% { opacity: 1; transform: translateY(-2px) scale(0.98); }
        100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes tagFlame {
        0% { filter: brightness(1.2); transform: scale(1.1) rotate(-8deg); }
        100% { filter: brightness(1); transform: scale(1) rotate(6deg); }
    }
        padding: 6px 20px 6px 13px;
        margin: 12px auto 20px auto;
        box-shadow: 0 2px 10px rgba(255,107,0,0.08);
        width: fit-content;
        animation: lowestTagSlideDown 1.2s cubic-bezier(0.6,0.1,0.4,1.1);
    }
    .mobile-lowest-price-tag .tag-icon {
        font-size: 1.25em;
        animation: tagFlame 1.1s infinite alternate;
    }
    @keyframes lowestTagSlideDown {
        0% { opacity: 0; transform: translateY(-40px) scale(0.9); }
        60% { opacity: 1; transform: translateY(8px) scale(1.04); }
        85% { opacity: 1; transform: translateY(-2px) scale(0.98); }
        100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes tagFlame {
        0% { filter: brightness(1.2); transform: scale(1.1) rotate(-8deg); }
        100% { filter: brightness(1); transform: scale(1) rotate(6deg); }
    }
}
@media (min-width: 768px) {
    .mobile-lowest-price-tag {
        display: none !important;
    }
}

    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
