﻿/* ============================================================
   BClima Landing  Mobile-first stylesheet
   ============================================================ */

/*  Design tokens  */
:root {
    --bg:            #f0f4fb;
    --surface:       #ffffff;
    --surface-soft:  #f6f9fc;
    --text:          #0f1d2e;
    --text-soft:     #3d5068;
    --primary:       #0b6bff;
    --primary-dark:  #0854c7;
    --accent:        #18b860;
    --accent-dark:   #0f9148;
    --border:        #d2dce8;
    --shadow-sm:     0 2px 8px rgba(12,28,52,0.07);
    --shadow-md:     0 8px 22px rgba(12,28,52,0.1);
    --radius:        8px;
    --radius-lg:     10px;
}

/*  Reset / Base  */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: "Segoe UI", system-ui, Arial, sans-serif;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.55;
}

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

/*  Container  */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/*  Sections  */
section { padding: 3rem 0; }

/*  Typography  */
h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    line-height: 1.2;
}

.section-lead {
    margin: 0 0 1.5rem;
    color: var(--text-soft);
    font-size: 1rem;
    max-width: 62ch;
}

/*  Top bar  */
.top-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.top-bar-content {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 1.25rem;
}

.top-bar-brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-logo { width: 120px; height: auto; }

.top-bar-note {
    display: none;
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 500;
}

.top-bar-social { display: flex; align-items: center; gap: 0.4rem; }

.top-bar-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    background: var(--surface);
}

.top-bar-social a:hover { background: #eef4ff; color: var(--primary-dark); }
.top-bar-social a svg  { width: 18px; height: 18px; }

/*  Hero  */
.hero {
    background: #0d2845;
    color: #fff;
    padding: 2.5rem 0 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-copy { flex: 1; }

.hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    line-height: 1.15;
}

.hero p {
    margin: 0.8rem 0 0;
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    max-width: 54ch;
}

.hero-points {
    list-style: none;
    margin: 1.2rem 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.97rem;
    color: rgba(255,255,255,0.92);
}

.hero-points li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #5de09c;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s;
}

.cta-button:hover { background: var(--accent-dark); }

.hero-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 18px 34px rgba(0,0,0,0.45);
}

.hero-media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/*  Mini-card (shared: feature / stat / roadmap)  */
.mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

@media (hover: hover) {
    .mini-card:hover {
        transform: translateY(-2px);
        border-color: #a8c4e0;
        box-shadow: var(--shadow-md);
    }
}

/*  Features  */
.features { background: var(--surface); }

.features h2, .stats h2, .cta h2 { text-align: center; }

.features .section-lead,
.stats .section-lead { text-align: center; margin-inline: auto; }

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #1b4a7e;
    background: #ddeeff;
    border: 1px solid #b8d6f5;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.feature h3 {
    margin: 0;
    font-size: 1.02rem;
    color: var(--primary-dark);
}

.feature p, .stat p {
    margin: 0.4rem 0 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

/*  Stats  */
.stats { background: #e8eef8; }

.stats-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.stats-media {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #ccd8e8;
    box-shadow: var(--shadow-md);
}

.stats-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-wide { grid-column: 1 / -1; }

.stat-icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat h3 {
    margin: 0;
    font-size: 2rem;
    color: #0f7a4c;
    font-weight: 800;
    line-height: 1;
}

/*  Roadmap  */
.about {
    background: #071729;
    color: #e4ecf8;
    padding: 3.5rem 0 4rem;
}

.about h2 {
    color: #edf3ff;
    text-align: center;
}

.about > .container > p {
    text-align: center;
    color: #8098b8;
    margin: 0 auto 2.5rem;
    max-width: 60ch;
}

/* Dark card override */
.about .mini-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(120,160,220,0.22);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

@media (hover: hover) {
    .about .mini-card:hover {
        background: rgba(255,255,255,0.09);
        border-color: rgba(120,160,220,0.42);
        box-shadow: 0 8px 24px rgba(0,0,0,0.45);
        transform: translateY(-2px);
    }
}

/* Mobile: vertical list with left connector line */
.roadmap-horizontal {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 2.5rem;
}

.roadmap-track {
    position: absolute;
    left: 19px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #3a7ef5 0%, #0b6bff 50%, #3a7ef5 100%);
}

.roadmap-step { position: relative; z-index: 1; }
.roadmap-step.is-top, .roadmap-step.is-bottom { transform: none; }

.roadmap-node {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(11,107,255,0.42);
    margin-bottom: 0.65rem;
    position: relative;
}

/* Connector dot (mobile only) */
.roadmap-node::before {
    content: "";
    position: absolute;
    left: -2.05rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #071729;
    box-shadow: 0 0 0 3px rgba(11,107,255,0.35);
}

.roadmap-node svg { width: 18px; height: 18px; }

.roadmap-step h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #edf3ff;
}

.roadmap-step p {
    margin: 0.4rem 0 0;
    color: #8098b8;
    font-size: 0.95rem;
}

/*  CTA / Form  */
.cta { background: var(--surface); padding-bottom: 3rem; }

.cta-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.cta p {
    margin: 0.3rem 0 0;
    text-align: center;
    color: var(--text-soft);
}

.channel-tabs {
    margin-top: 1.25rem;
    display: flex;
    background: #e4edf8;
    border-radius: var(--radius);
    padding: 0.25rem;
    gap: 0.25rem;
}

.channel-tab {
    flex: 1;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-soft);
    font-weight: 600;
    padding: 0.72rem 1rem;
    margin: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.18s, color 0.18s;
}

.channel-tab.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(11,107,255,0.28);
}

.channel-panel { margin-top: 0.75rem; }

form { margin-top: 0.5rem; }

label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

input, textarea, select, button { width: 100%; font: inherit; }

input, textarea, select {
    margin-top: 0.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.82rem 0.9rem;
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.18s, box-shadow 0.18s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11,107,255,0.14);
}

textarea { min-height: 110px; resize: vertical; }

.phone-row {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.4rem;
}

.dial-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.82rem 0.5rem;
    background: #eef4ff;
    color: var(--primary-dark);
    font-weight: 700;
}

.phone-row input { margin-top: 0; }

/*  Checkboxes  */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.93rem;
    line-height: 1.5;
    color: var(--text-soft);
    margin-top: 1.1rem;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin: 0.15rem 0 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.consent-label a { color: var(--primary-dark); text-decoration: none; font-weight: 600; }
.consent-label a:hover { text-decoration: underline; }
.optional-consent { margin-top: 0.5rem; font-size: 0.9rem; }

.hidden-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

button[type="submit"] {
    margin-top: 1.25rem;
    border: none;
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s;
}

button[type="submit"]:hover { background: var(--accent-dark); }
button[type="submit"]:disabled { opacity: 0.65; cursor: wait; }

#status, #emailStatus {
    margin-top: 0.9rem;
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 1.4rem;
}

#status a, #emailStatus a { color: var(--primary-dark); }

/*  Contacts section  */
.contact-section {
    background: #091e38;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 2.5rem 0 1.5rem;
}

.contact-grid { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-list { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(180,210,250,0.14);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
}

.contact-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #7db8ff;
    margin-top: 0.15rem;
}

.contact-item p { margin: 0; color: #7a9dbf; font-size: 0.82rem; }

.contact-item a, .contact-item span {
    color: #dceeff;
    font-weight: 600;
    font-size: 0.97rem;
    text-decoration: none;
}

.contact-item a:hover { text-decoration: underline; }

.map-wrap {
    border: 1px solid rgba(180,210,250,0.2);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 280px;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
    display: block;
}

/*  Footer  */
footer {
    text-align: center;
    padding: 1.25rem 1rem 2.5rem;
    background: #091e38;
    color: #6c8caf;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

footer p { margin: 0.4rem 0; }
footer a { color: #96bbdc; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/*  Floating WhatsApp button  */
.wa-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 1000;
    width: 58px;
    height: 58px;
    background: #18b860;
    color: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(16,130,70,0.5);
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.wa-fab svg { width: 28px; height: 28px; }

.wa-fab:hover {
    background: #0f9148;
    transform: scale(1.07);
    box-shadow: 0 8px 26px rgba(16,130,70,0.6);
}

.wa-fab::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: calc(var(--radius) + 5px);
    border: 2px solid #18b860;
    animation: wa-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes wa-pulse {
    0%   { opacity: 0.75; transform: scale(1); }
    70%  { opacity: 0;    transform: scale(1.35); }
    100% { opacity: 0;    transform: scale(1.35); }
}

/* ================================================================
   RESPONSIVE  Tablet ( 640px)
   ================================================================ */
@media (min-width: 640px) {
    .top-bar-note { display: block; }

    .hero { padding: 3rem 0 2.5rem; }
    .hero-media img { height: 280px; }

    .feature-grid { grid-template-columns: repeat(2, 1fr); }

    .stats-media img { height: 260px; }

    /* Roadmap: 2-col grid on tablet, no connector line */
    .roadmap-horizontal {
        flex-direction: unset;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding-left: 0;
        padding-top: 0;
    }

    .roadmap-track { display: none; }
    .roadmap-node::before { display: none; }
    .roadmap-step.is-top, .roadmap-step.is-bottom { transform: none; }

    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .map-wrap { min-height: 360px; }
    .map-wrap iframe { min-height: 360px; }
}

/* ================================================================
   RESPONSIVE  Desktop ( 1024px)
   ================================================================ */
@media (min-width: 1024px) {
    section { padding: 4.5rem 0; }

    .hero { padding: 4rem 0 3rem; }

    .hero-content {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .hero-copy { flex: 1.2; }
    .hero-media { flex: 1; }
    .hero-media img { height: 380px; }

    .stats-layout {
        flex-direction: row;
        align-items: stretch;
        gap: 1.75rem;
    }

    .stats-media { flex: 1; }
    .stats-media img { height: 100%; min-height: 300px; }
    .stat-grid { flex: 1; }

    /* Horizontal roadmap  4 cols + central track */
    .roadmap-horizontal {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding-left: 0;
        padding-top: 4rem;
        padding-bottom: 4rem;
        position: relative;
    }

    .roadmap-track {
        display: block;
        position: absolute;
        left: 3%;
        right: 3%;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        height: 3px;
        background: linear-gradient(90deg, #1e55c4 0%, #4a8eff 50%, #1e55c4 100%);
        opacity: 0.55;
        border-radius: 2px;
    }

    .roadmap-step.is-top  { transform: translateY(-32px); }
    .roadmap-step.is-bottom { transform: translateY(32px); }

    .roadmap-node::before { display: none; }
}
