/* ROOT VARIABLES for modern clean theme */
:root {
    --primary-color: #0d6efd; /* Modern Blue */
    --primary-hover: #0b5ed7;
    --secondary-color: #f8f9fa; /* Light grey/white for buttons */
    --secondary-hover: #e2e6ea;
    --text-main: #212529;
    --text-muted: #6c757d;
    --bg-main: #ffffff;
    --bg-light: #f4f6f9;
    --border-color: #dee2e6;
    
    --whatsapp-color: #25D366;
    --whatsapp-hover: #1EBE55;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s ease;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

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

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

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.hidden {
    display: none;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 1rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
    color: #fff;
}

.btn-secondary {
    background-color: var(--bg-main);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-outline-light {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--text-main);
}

.btn-whatsapp-header {
    border-color: var(--whatsapp-color);
    color: var(--whatsapp-color);
}

.btn-whatsapp-header:hover {
    background-color: var(--whatsapp-color);
    color: #fff;
}

/* HEADER */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary-color);
}

#main-header:not(.scrolled) .logo-text {
    color: #ffffff;  /* White when on top of hero background */
}

/* When not scrolled, make links white */
#main-header:not(.scrolled) .desktop-nav a {
    color: #ffffff;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

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

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

.desktop-nav a:hover::after {
    width: 100%;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

#main-header:not(.scrolled) .menu-toggle {
    color: #ffffff;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    transform: translateY(-20px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-nav-content ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-content a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-color: #2c3e50; /* Fallback color */
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 900px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-height: 130px;
    margin-bottom: 20px;
    object-fit: contain;
}

.navbar-logo {
    max-height: 55px;
    object-fit: contain;
    transition: var(--transition);
}

.hero h1.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero h1.hero-title span {
    color: #e0f0ff;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Animation utilities */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* SERVICES SECTION */
.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(13, 110, 253, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
}

/* ABOUT / TRUST SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.about-trust h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.trust-logos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 120px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.client-logo img {
    max-height: 80px;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
    object-fit: contain;
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

.client-logo:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

/* CONTACT SECTION */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.calendar-card, .form-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.calendar-card h3, .form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.calendar-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.mock-calendar {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: #fff;
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-header button:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.calendar-days span {
    font-size: 0.9rem;
    padding: 8px 0;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.calendar-days span:nth-child(-n+7) {
    font-weight: 700;
    color: var(--text-muted);
    cursor: default;
}

.calendar-days span:not(:nth-child(-n+7)):hover:not(.disabled) {
    background-color: var(--secondary-hover);
}

.calendar-days span.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: transparent !important;
}

.calendar-days span.active {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-slot {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 8px 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

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

.time-slot.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

/* FOOTER */
.main-footer {
    background: var(--text-main);
    color: #fff;
    padding: 40px 0;
    margin-top: 40px;
}

/* FLOATING WHATSAPP */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1);
    color: #fff;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1.hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav, .header-buttons {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1.hero-title {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero h1.hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-logo {
        max-height: 80px;
        margin-bottom: 15px;
        padding: 8px 15px;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }

    .hero-actions .btn {
        width: 100%;
    }
    
    .calendar-days {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        text-align: center;
    }

    .about-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-trust {
        text-align: center;
    }

    .trust-logos {
        justify-content: center;
        gap: 20px;
    }

    .client-logo {
        width: 45%;
        height: 100px;
    }

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}
