/* ==================================================
   KORYO — STYLE.CSS (VERSÃO FINAL ORGANIZADA)
   Projeto: KORYO Institucional
   Mantém visual atual (Desktop + Mobile)
   FAQ mantido para página própria
   ================================================== */

/* ==================================================
   1. VARIÁVEIS GLOBAIS
================================================== */
:root {
    --primary: #00766c;
    --primary-dark: #004d46;

    --bg-body: #ffffff;
    --bg-soft: #f8fafc;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-light: #e2e8f0;

    --radius-sm: 6px;
    --radius-md: 12px;

    --container-width: 1200px;
    --header-height: 80px;

    --transition: 0.25s ease;
}

/* ==================================================
   2. RESET / BASE
================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==================================================
   3. TIPOGRAFIA
================================================== */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--primary);
}

h1 {
    font-size: clamp(2.6rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 2.5rem;
}

h2 {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ==================================================
   4. LINKS
================================================== */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* ==================================================
   5. LAYOUT GLOBAL
================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 3rem 0;
}

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

.grid {
    display: grid;
    gap: 3rem;
    row-gap: 2rem;
}

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

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

@media (max-width: 900px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   6. COMPONENTES
================================================== */

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 118, 108, 0.04);
}

/* Cards */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 3rem 2.5rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.card h4 {
    margin-bottom: 1rem;
}

.card p {
    flex-grow: 1;
    margin-bottom: 2.5rem;
}

.card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-actions .btn {
    width: 100%;
    margin: 0 !important;
}

/* Badge */
.product-badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background-color: rgba(0, 118, 108, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

/* Imagens */
img {
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.08);
}

/* ==================================================
   7. HEADER / MENU
================================================== */
header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #3a3f45;
    border-bottom: 1px solid #1e2e2b;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #ffffff;
}

.logo svg {
    stroke: #ffffff;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    font-size: 1.5rem;
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1200;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #0f1b19;
        padding: 1.5rem 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid #1e2e2b;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
        align-items: flex-start;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links.open a {
        font-size: 1rem;
        color: #ffffff;
    }
}

/* ==================================================
   8. FORMULÁRIOS
================================================== */
input,
select,
textarea {
    width: 100%;
    display: block;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #1e293b;
    margin-top: 0.4rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 118, 108, 0.15);
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.2rem;
}

form button,
form .btn {
    margin-top: 1.5rem;
    width: 100%;
}

form,
.form-card,
.card form {
    max-width: 520px;
}

/* ==================================================
   9. FAQ (MANTIDO)
================================================== */
.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 1.6rem 0;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    position: relative;
    padding-left: 2rem;
}

.faq-item summary::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.faq-item[open] summary::before {
    content: "−";
    color: var(--primary);
}

.faq-item p {
    margin-top: 1rem;
    margin-left: 2rem;
    max-width: 720px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ==================================================
   10. FOOTER
================================================== */
footer {
    background-color: #3a3f45;
    color: #eaeaea;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

footer a {
    color: #9fb8b2;
}

footer a:hover {
    color: #ffffff;
}

footer .container {
    margin-top: 0;
}

/* ==================================================
   11. RESPONSIVO FINAL
================================================== */
@media (max-width: 768px) {
    .section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .grid {
        row-gap: 1.5rem;
    }

    footer {
        padding-top: 1.5rem;
        padding-bottom: 1.2rem;
    }

    .img-presentation {
        margin-bottom: 1.2rem;
    }

    .presentation-grid {
        row-gap: 1.2rem;
    }

    .presentation-grid h1,
    .presentation-grid p {
        text-align: center;
    }

    .presentation-grid div[style*="display:flex"] {
        justify-content: center;
    }
}

/* ==================================================
   CORES DIFERENCIADAS — PRODUTOS (SOMENTE TÍTULOS)
================================================== */

.section-title {
    font-weight: 700;
}

/* Verde (Sistema Online) — mantém padrão atual */
.section-online {
    color: var(--primary);
}

/* Laranja (Softwares) */
.section-software {
    color: #f59e0b;
    /* laranja elegante */
}

/* Azul (Livros) */
.section-livros {
    color: #2563eb;
    /* azul institucional */
}

/* ==================================================
   PRODUTOS — CORES POR CATEGORIA (TÍTULOS DOS CARDS)
================================================== */

/* Sistema Online — VERDE */
.section-online~.grid h4 {
    color: var(--primary);
}

/* Softwares — LARANJA */
.section-software~.grid h4 {
    color: #f59e0b;
}

/* Livros — AZUL */
.section-livros~.grid h4 {
    color: #2563eb;
}

/* ==================================================
   Quem Somos – Imagens institucionais
================================================== */

/* Imagem conceitual central (caso ainda use em alguma página) */
.about-image {
    margin: 2.5rem auto 3rem;
    text-align: center;
    max-width: 900px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    opacity: 0.95;
}

/* Imagem lateral do Quem Somos (layout tipo HOME) */
.about-media img {
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* Quando a imagem for HERO (mesma força visual da HOME) */
.about-media.hero-media img {
    max-height: none;
    object-fit: cover;
}

/* Mobile: imagem sobe e ocupa o topo */
@media (max-width: 768px) {
    .about-top {
        grid-template-columns: 1fr;
    }

    .about-media {
        order: -1;
        margin-bottom: 2rem;
    }
}