/* ============================================================
   Kogumelo Informática — style.css
   Vanilla CSS, sem Bootstrap, sem jQuery
   ============================================================ */

:root {
    --primary: #1a2b4b;
    --primary-deep: #111d33;
    --accent: #0090d9;
    --accent-hover: #006faa;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --bg-dark: #0f1829;
    --text: #1a1f2e;
    --text-soft: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --border: #e2e8f0;
    --nav-h: 68px;
    --max-w: 1140px;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, .10);
    --transition: 0.22s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

ul {
    list-style: none;
}

/* ── Utilities ───────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-caption {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    font-family: 'Roboto Condensed', sans-serif;
}

.section-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    font-family: 'Roboto Condensed', sans-serif;
}

.section-title.white {
    color: var(--white);
}

.section-intro {
    font-size: 17px;
    color: var(--text-soft);
    max-width: 640px;
    margin: 16px auto 0;
    font-family: 'Volkhov', Georgia, serif;
    font-style: italic;
}

.section-intro.white {
    color: rgba(255, 255, 255, .75);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: .5px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, .6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .15);
    border-color: var(--white);
}

.btn-dark {
    background: var(--primary);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--primary-deep);
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: var(--primary-deep);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo img {
    height: 42px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    font-weight: 400;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: .5px;
    transition: color var(--transition);
}

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

.nav-cta {
    margin-left: 16px;
}

.nav-cta .btn {
    padding: 9px 22px;
    font-size: 14px;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--primary-deep) url('imagens/fundo1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* YouTube iframe — cobre todo o hero */
#yt-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 */
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* iframe filho do #yt-bg criado pelo IFrame API */
#yt-bg iframe {
    width: 100% !important;
    height: 100% !important;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .52);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-logo {
    width: 320px;
    max-width: 70vw;
    margin: 0 auto 24px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
}

.hero-tagline {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 300;
    letter-spacing: .5px;
    font-family: 'Roboto Condensed', sans-serif;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
    margin-bottom: 32px;
}

.hero-tagline strong {
    font-weight: 700;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Video controls */
.video-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.video-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    color: var(--white);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.video-btn:hover {
    background: rgba(255, 255, 255, .32);
}

/* ── Quem Somos ──────────────────────────────────────────── */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 420px 1fr;
    gap: 40px;
    align-items: start;
}

.features-col {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 40px;
    flex-shrink: 0;
    width: 52px;
    text-align: center;
    color: #9d9d9d;
    margin-top: 4px;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.feature-text {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.6;
}

.features-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-image img {
    width: 88%;
    height: auto;
}

/* ── Sistemas Prontos ────────────────────────────────────── */
.section-dark {
    background: var(--primary);
    padding: 64px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.product-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: block;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 16px;
    background: var(--bg-alt);
}

.product-caption {
    padding: 16px 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    font-family: 'Roboto Condensed', sans-serif;
}

.product-desc {
    font-size: 13px;
    color: var(--text-soft);
}

/* ── SWSM Callout ────────────────────────────────────────── */
.callout-dark {
    background: var(--bg-dark);
    padding: 56px 0;
    text-align: center;
}

.callout-logo {
    width: 400px;
    max-width: 80vw;
    margin: 0 auto 20px;
}

.callout-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 32px;
}

/* ── Clientes Gallery ────────────────────────────────────── */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.client-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: box-shadow var(--transition);
}

.client-item:hover {
    box-shadow: var(--shadow);
}

.client-item img {
    width: 100%;
    height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
}

.client-caption {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
}

/* ── Depoimentos ─────────────────────────────────────────── */
.testimonials-section {
    background: var(--primary) url('imagens/microphone.jpg') center/cover no-repeat;
    position: relative;
    padding: 80px 0;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 24, 41, .75);
}

.testimonials-inner {
    position: relative;
    z-index: 1;
}

.testimonial-slide {
    display: none;
    text-align: center;
    color: var(--white);
    max-width: 720px;
    margin: 0 auto;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn .5s;
}

.testimonial-quote {
    font-size: clamp(15px, 2vw, 19px);
    font-style: italic;
    line-height: 1.7;
    font-family: 'Volkhov', Georgia, serif;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 32px;
}

.testimonial-quote::before {
    content: '\201C';
}

.testimonial-quote::after {
    content: '\201D';
}

.testimonial-name {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
}

.testimonial-role {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    margin-top: 4px;
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    border: none;
    transition: background var(--transition);
}

.slide-dot.active {
    background: var(--white);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ── Contato ─────────────────────────────────────────────── */
.contact-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 6px;
    letter-spacing: .3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 144, 217, .12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 8px;
}

.form-submit .btn {
    padding: 13px 40px;
    font-size: 16px;
    min-width: 180px;
}

.form-submit .btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* ── Popup ───────────────────────────────────────────────── */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, .55);
    align-items: center;
    justify-content: center;
}

.popup-overlay.open {
    display: flex;
}

.popup-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 36px 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 48px rgba(0, 0, 0, .3);
}

.popup-box p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 24px;
}

.popup-close {
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.popup-close:hover {
    background: var(--accent-hover);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    background: var(--primary-deep);
    color: rgba(255, 255, 255, .65);
    padding: 48px 0;
    text-align: center;
}

.footer-logo {
    width: 140px;
    margin: 0 auto 20px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
}

.footer-text strong {
    color: rgba(255, 255, 255, .9);
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 18px;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    transition: color var(--transition);
}

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

.footer-social img {
    width: 18px;
}

.footer-copy {
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, .35);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-image {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-cta .btn {
        display: none;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 56px 0;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-logo {
        width: 240px;
    }
}