:root {
    /* Brand Colors - Sinop Clima */
    --brand-red: #da291c;
    --brand-red-dark: #b01b12;
    --brand-blue: #0099d8;
    --brand-blue-dark: #0077a8;
    --brand-navy: #1d1d4f;

    /* Neutrals */
    --white: #ffffff;
    --gray-bg: #f4f6f9;
    --gray-border: #dde2e6;
    --text-main: #2c3e50;
    --text-light: #6c757d;

    /* UI Tokens */
    --primary-color: var(--brand-red);
    --primary-hover: var(--brand-red-dark);
    --secondary-color: var(--brand-navy);
    --accent-color: var(--brand-blue);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --font-main: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--gray-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--brand-navy);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.top-contact span {
    margin-right: 20px;
}

.top-contact i {
    margin-right: 8px;
    color: var(--brand-blue);
}

/* --- Header --- */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 4px solid var(--brand-blue);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    max-width: 220px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--brand-red);
}

.quote-btn-header {
    background-color: var(--brand-red);
    color: var(--white);
    padding: 10px 25px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-btn-header:hover {
    background-color: var(--brand-red-dark);
    box-shadow: var(--shadow-md);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background: linear-gradient(rgba(29, 29, 79, 0.8), rgba(29, 29, 79, 0.6)), url('https://images.unsplash.com/photo-1513828583688-c52646db42da?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: block;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--brand-blue);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 100%;
}

.hero-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge i {
    color: var(--brand-blue);
}

/* Quick Quote Form */
.hero-form-wrapper {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--brand-red);
}

.hero-form h3 {
    color: var(--brand-navy);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-blue);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--brand-red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    position: relative;
    padding: 10px;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--brand-navy);
    cursor: pointer;
    z-index: 10;
}

.hero-btn-main {
    display: inline-block;
    background-color: #2ecc71;
    color: white;
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: inherit;
    transition: 0.3s;
}

.hero-btn-main:hover {
    background-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(46, 204, 113, 0.4);
    color: white;
}

.btn-submit:hover {
    background-color: var(--brand-red-dark);
}

/* --- Stats Band --- */
.stats-band {
    background: var(--brand-navy);
    color: var(--white);
    padding: 40px 0;
    margin-top: -5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item h2 {
    font-size: 2.5rem;
    color: var(--brand-blue);
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #ccc;
}

/* --- Products Section --- */
.products-section {
    padding: 80px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: 2.5rem;
    color: var(--brand-navy);
    margin-bottom: 15px;
    font-weight: 800;
}

.section-head p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cat-tab {
    padding: 10px 30px;
    border: 2px solid var(--brand-navy);
    border-radius: 50px;
    font-weight: 700;
    color: var(--brand-navy);
    cursor: pointer;
    background: transparent;
}

.cat-tab.active,
.cat-tab:hover {
    background: var(--brand-navy);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--brand-navy);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-img-wrapper {
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-border);
}

.card-img-wrapper img {
    max-height: 100%;
    transition: 0.3s;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    padding: 0 15px;
}

.thumb-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border: 2px solid var(--gray-border);
    border-radius: 4px;
    cursor: pointer;
    background: #f8f9fa;
    transition: 0.2s;
}

.thumb-img:hover, .thumb-img.active {
    border-color: var(--brand-red);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 700;
}

.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: var(--radius-sm);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.spec-item i {
    color: var(--brand-blue);
    font-size: 1.1rem;
}

.btn-whatsapp-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
}

.btn-whatsapp-card:hover {
    background: #1ebc57;
}

/* --- Comparison Table --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: var(--brand-navy);
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .highlight-green {
    color: #2ecc71;
    font-weight: 700;
}

.comparison-table .highlight-red {
    color: #e74c3c;
}

/* --- Footer --- */
footer {
    background: var(--brand-navy);
    color: #aab0c8;
    padding: 70px 0 20px;
}

.footer-logo {
    font-size: 2rem;
    color: var(--white);
    font-weight: 800;
    font-style: italic;
    margin-bottom: 20px;
    display: block;
}

.footer-logo span {
    color: var(--brand-red);
}

/* Responsive */
/* --- Mobile Menu & Responsive --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--brand-navy);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}

.m-break {
    display: none;
}

@media (max-width: 900px) {
    header .container {
        padding: 5px 20px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
        border-top: 1px solid var(--gray-border);
    }

    .nav-menu.active {
        display: flex;
        z-index: 1001;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-form-wrapper {
        margin-top: 20px;
    }

    .quote-btn-header {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 10px;
    }

    .m-break {
        display: block;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 30px 0;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-badges {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .badge {
        width: auto;
    }

    .section-head h2 {
        font-size: 1.6rem;
    }

    .comparison-table th {
        font-size: 0.65rem;
        /* Reduced further */
        padding: 6px 2px;
        white-space: normal;
        line-height: 1.1;
    }

    .comparison-table td {
        font-size: 0.7rem;
        /* Reduced further */
        padding: 6px 2px;
        line-height: 1.1;
    }

    /* Narrowing the first column to make room for data */
    .comparison-table td:first-child,
    .comparison-table th:first-child {
        width: 35%;
        /* Narrowed more */
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(29, 29, 79, 0.9));
    color: var(--white);
    padding: 20px;
    transition: bottom 0.3s;
    font-weight: 600;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}