@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #12326F;       /* Logo Blue */
    --primary-dark: #0d2552;
    --primary-light: #f0f4f8;
    --accent: #10813F;        /* Logo Green */
    --accent-dark: #0c6331;
    --accent-light: #e7f3ec;
    --secondary: #12326F;     /* Standardizing on Logo Blue */
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --white: #ffffff;
    --bg-light: #f8fbfe;
    --shadow: 0 10px 40px rgba(18, 50, 111, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

p {
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    color: var(--white);
    transition: all 0.4s ease;
    padding: 10px 0;
}

header.scrolled {
    background: var(--primary);
    box-shadow: var(--shadow);
    padding: 5px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 129, 63, 0.3);
}

header.scrolled .nav-links a {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-btn {
    display: none; /* will be shown on smaller screens via media query */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--white);
    background: var(--primary);
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-appointment {
    background: var(--accent);
    color: var(--white) !important;
    padding: 12px 25px;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(16, 129, 63, 0.2);
}

.btn-appointment:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 129, 63, 0.3);
}

/* Hero Slider */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)),
                linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 25%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* About Us */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--accent);
    font-size: 2rem;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Branches */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.branch-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.branch-info h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

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

footer p {
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about img {
    height: 60px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-bottom p, .footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal {
    margin-top: 10px;
}

.footer-legal a {
    margin: 0 10px;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128c7e;
}

/* Booking Section */
.booking-section {
    background: var(--white);
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.booking-step {
    margin-bottom: 40px;
}

.booking-step h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Branch Selector */
.branch-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.branch-opt {
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.branch-opt i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.branch-opt.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}

.branch-opt.selected i, .branch-opt.selected span {
    color: var(--accent);
    font-weight: 600;
}

/* Date Selector */
.date-selector {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
}

.date-card {
    min-width: 90px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.date-card .day {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
}

.date-card .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.date-card.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}

.date-card.selected .day, .date-card.selected .number {
    color: var(--accent);
}

/* Time Grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.time-slot {
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.time-slot:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.time-slot.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Summary and Confirm */
.booking-confirm {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.summary-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.summary-box p {
    font-weight: 600;
    color: var(--secondary);
}

.btn-appointment.disabled {
    background: #ccc;
    box-shadow: none;
    pointer-events: none;
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(18, 50, 111, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 12px 0;
        width: 80%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

    .nav-links a {
        display: block;
        width: 100%;
        font-size: 1.4rem;
        padding: 15px 0;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
    }

    .mobile-menu-btn {
        display: block !important;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1001;
        color: var(--white);
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 8px 12px;
        border-radius: 12px;
        transition: var(--transition);
    }
    
    header.scrolled .mobile-menu-btn {
        background: var(--primary);
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
