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

:root {
    --primary-blue: #0D669E;
    --primary-dark: #00426b; /* Darkened for better contrast */
    --accent-pink: #CC3366;
    --white: #ffffff;
    --light-gray: #f2f5f7;
    --text-dark: #000000; /* Pure black for maximum contrast */
    --text-light: #444444; /* Darker gray for better contrast */
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -1px;
}

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

ul {
    list-style: none;
}

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

/* Top Bar & Language Selector */
.header-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar {
    background: transparent !important;
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
    width: 100%;
}

.top-bar-container {
    display: flex;
    justify-content: space-between !important; /* Force space-between */
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar .separator {
    margin: 0 10px;
    opacity: 0.5;
}

.lang-selector {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
}

.lang-selector .lang-visible {
    display: flex;
    gap: 10px;
}

.lang-selector .lang-visible a {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

.lang-selector .lang-visible a.active {
    opacity: 1;
    font-weight: 700;
}

.lang-dropdown {
    position: relative;
    cursor: pointer;
    padding-bottom: 10px; /* Bridge the gap */
    margin-bottom: -10px;
}

.lang-dropdown:hover .lang-menu {
    display: grid;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    width: 180px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-radius: 15px;
    z-index: 1100;
    border: 1px solid rgba(255,255,255,0.3);
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    pointer-events: none;
}

.lang-dropdown:hover .lang-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.lang-menu a:hover {
    background: rgba(13, 102, 158, 0.1);
    color: var(--primary-blue);
}

.flag {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%; /* Circular flags */
    border: 1px solid rgba(0,0,0,0.05);
}

/* Header & Nav */
header {
    width: 100%;
    padding: 15px 5%;
    transition: var(--transition);
    color: var(--white);
    background: transparent !important;
}

header.scrolled {
    position: fixed; /* Switch to fixed for sticky behavior when scrolled */
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    color: var(--white) !important;
    z-index: 2000; /* Ensure it's on top */
}

header.scrolled .logo-text,
header.scrolled .nav-links a {
    color: var(--white) !important;
}

.nav {
    display: flex;
    justify-content: flex-end; /* Align links and CTA to the right */
    align-items: center;
    width: 100%;
    max-width: none;
    padding: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Hamburger Menu Hide by default */
.nav-toggle, .nav-toggle-label {
    display: none;
}

.logo {
    font-size: 1.8rem; /* Larger logo */
    font-weight: 800;
    color: inherit; /* Inherit white or dark from header */
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 25px; /* Gap 25px as requested */
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 700;
    color: inherit; /* Use header color */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(13, 102, 158, 0.4), inset 0 2px 2px rgba(255,255,255,0.3);
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.btn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-cta:hover::after {
    left: 100%;
}

.btn-cta.shadow-btn {
    box-shadow: 0 10px 25px rgba(13, 102, 158, 0.5), inset 0 2px 2px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-cta-app {
    background: var(--text-dark);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-cta-app:hover {
    background: #000;
    transform: translateY(-2px);
}

.btn-cta-app i {
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    height: 110vh;
    background-image: linear-gradient(rgba(13, 102, 158, 0.45), rgba(9, 74, 115, 0.7)), url('../assets/hero-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 100px;
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
}

.hero-logo-text {
    font-size: 5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -2px;
}

.hero-logo-text span {
    color: #4da6ff; /* A slightly lighter blue for the 'it' to match branding if needed, or keep white */
}

.hero-logo-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-top: -5px;
    opacity: 0.9;
    color: var(--white);
}

.official-logo .logo-subtitle,
.logo-subtitle,
.hero-logo-subtitle {
    color: #FFD700 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.05;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-transform: uppercase; /* Explicitly keep hero title uppercase for drama */
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    max-width: 600px;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero-btns {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-btns a {
    height: 70px; /* Unified height */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.6rem; /* Normalized large text */
    padding: 0 40px;
    border-radius: 50px; /* Pill style */
}

.wa-btn svg {
    margin-right: -5px; /* Adjust official balloon logo spacing */
}

.btn-outline {
    border: 2px solid var(--white);
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-5px); /* Stronger hover lift */
}

/* Glass Cards */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.4);
}

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

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.section-title p {
    color: var(--text-light);
    font-weight: 500;
}

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

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* Tariffs Table */
.tariffs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
}

.tariffs-table th, .tariffs-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tariffs-table th {
    background: var(--primary-blue);
    color: var(--white);
}

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

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

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

/* Final Responsive Rules */
/* Hamburger Menu for Mobile */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        padding: 10px;
        z-index: 2005;
        position: relative;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--white);
        height: 3px;
        width: 30px;
        border-radius: 2px;
        position: relative;
        transition: var(--transition);
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .nav-toggle-label span::before { bottom: 10px; }
    .nav-toggle-label span::after { top: 10px; }

    header.scrolled .nav-toggle-label span,
    header.scrolled .nav-toggle-label span::before,
    header.scrolled .nav-toggle-label span::after {
        background: var(--white);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 10, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        padding: 60px 40px;
    }

    .nav-toggle:checked ~ .nav-menu {
        right: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); bottom: 0; }
    .nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-links a {
        font-size: 1.8rem;
        font-weight: 700;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 12px;
        padding: 10px;
        text-align: center;
    }

    .hero {
        padding: 120px 5% 60px;
        text-align: center;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        align-items: center;
        margin: 0 auto;
    }

    .hero-logo {
        align-items: center;
        margin-bottom: 40px;
    }

    .hero-logo-text {
        font-size: 4rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
        margin: 0 auto 30px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 20px;
        align-items: stretch;
    }

    .hero-btns a {
        display: flex !important;
        width: 100% !important;
        padding: 0 20px !important;
        height: 65px !important;
        font-size: 1.4rem !important;
        margin: 0 !important;
    }
}

/* --- Calculator Widget --- */
.search-container {
    position: relative;
    width: 100%;
}

.search-container input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border-radius: 30px;
    border: 2px solid rgba(30,58,138,0.15);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.search-container input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(30,58,138,0.1);
}

.search-container .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    list-style: none;
    padding: 0;
    margin-top: 10px;
    display: none;
}

.search-results li {
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    color: var(--text-dark);
}

.search-results li:last-child {
    border-bottom: none;
}

.search-results li:hover {
    background: rgba(30,58,138,0.05);
    color: var(--primary-blue);
}

.calculator-result {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding: 20px 25px;
    border-radius: 15px;
    background: rgba(30,58,138,0.05);
    border: 1px solid rgba(30,58,138,0.1);
    animation: fadeIn 0.3s ease-in-out;
}

.calculator-result .price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
}

@media (max-width: 500px) {
    .calculator-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .calculator-result > div:last-child {
        text-align: left;
    }
}
