/*
Theme Name: Doacao UEMS
Theme URI: https://uems.br
Author: UEMS
Author URI: https://uems.br
Description: Tema institucional clean da UEMS para o programa de doacao de tenis aos alunos ingressantes. Segue o manual de identidade visual da Universidade Estadual de Mato Grosso do Sul.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doacao-uems
*/

/* ============================================
   RESET E BASE
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: #067BA5;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #003A56;
}

/* ============================================
   TIPOGRAFIA — Open Sans (manual UEMS)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,600;1,700&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #163D20;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* ============================================
   HEADER / CABECALHO
   ============================================ */

.site-header {
    background: #ffffff;
    border-bottom: 4px solid #258535;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    height: 52px;
    width: auto;
}

.header-title {
    display: flex;
    flex-direction: column;
}

.header-title span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #258535;
}

.header-title h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #003A56;
    margin: 0;
    line-height: 1.2;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.header-nav a {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.header-nav a:hover {
    color: #067BA5;
    background: rgba(6, 123, 165, 0.06);
}

.header-nav a.active {
    color: #ffffff;
    background: #067BA5;
}

/* Hamburger menu - mobile */
.header-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.header-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #003A56;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #258535 0%, #067BA5 100%);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(251, 225, 0, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid rgba(255,255,255,0.25);
}

.hero-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.hero-section p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.92);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 24px;
    background: rgba(251, 225, 0, 0.2);
    border: 1px solid rgba(251, 225, 0, 0.4);
    border-radius: 50px;
    color: #FBE100;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.site-main {
    flex: 1;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

/* Info cards before form */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.info-card {
    background: #ffffff;
    padding: 24px 16px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 3px solid #258535;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.info-card:nth-child(2) {
    border-top-color: #067BA5;
}

.info-card:nth-child(3) {
    border-top-color: #FBE100;
}

.info-card-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.info-card:nth-child(1) .info-card-icon { background: rgba(37, 133, 53, 0.1); }
.info-card:nth-child(2) .info-card-icon { background: rgba(6, 123, 165, 0.1); }
.info-card:nth-child(3) .info-card-icon { background: rgba(251, 225, 0, 0.15); }

.info-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 4px;
}

.info-card p {
    font-size: 0.8125rem;
    color: #777;
    line-height: 1.5;
}

/* Section title */
.section-title {
    text-align: center;
    margin-bottom: 32px;
}

.section-title h2 {
    font-size: 1.5rem;
    color: #163D20;
    margin-bottom: 8px;
}

.section-title p {
    font-size: 0.9375rem;
    color: #666;
}

/* ============================================
   FORMULARIO — integracao com plugin
   ============================================ */

.form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e8ecf1;
}

/* Mensagens do plugin */
.doacao-tenis-msg {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    animation: fadeSlideDown 0.4s ease;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doacao-tenis-msg-sucesso {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
    border-left: 4px solid #258535;
}

.doacao-tenis-msg-erro {
    background-color: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
    border-left: 4px solid #d32f2f;
}

/* Form wrapper */
.doacao-tenis-formulario-wrapper {
    width: 100%;
}

.doacao-tenis-formulario {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doacao-tenis-campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doacao-tenis-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #444;
}

.doacao-tenis-obrigatorio {
    color: #d32f2f;
}

.doacao-tenis-input,
.doacao-tenis-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    border: 2px solid #dce3eb;
    border-radius: 8px;
    background-color: #fafbfc;
    color: #333;
    transition: all 0.2s ease;
    outline: none;
}

.doacao-tenis-input:focus,
.doacao-tenis-select:focus {
    border-color: #067BA5;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(6, 123, 165, 0.12);
}

.doacao-tenis-input::placeholder {
    color: #aab4c0;
}

.doacao-tenis-select {
    cursor: pointer;
    appearance: auto;
}

.doacao-tenis-ajuda {
    font-size: 0.8125rem;
    color: #888;
    font-style: italic;
    margin-top: 2px;
}

/* Submit button */
.doacao-tenis-botao,
button[name="doacao_tenis_enviar"] {
    display: block;
    width: 100%;
    padding: 16px 32px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #258535 0%, #1e6b2a 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(37, 133, 53, 0.3);
}

.doacao-tenis-botao:hover,
button[name="doacao_tenis_enviar"]:hover {
    background: linear-gradient(135deg, #1e6b2a 0%, #163D20 100%);
    box-shadow: 0 6px 18px rgba(37, 133, 53, 0.4);
    transform: translateY(-1px);
}

.doacao-tenis-botao:active,
button[name="doacao_tenis_enviar"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 133, 53, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: #163D20;
    color: rgba(255,255,255,0.8);
    padding: 48px 24px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand img {
    height: 56px;
    width: fit-content;
    opacity: 0.9;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #FBE100;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

.footer-contact a {
    color: #8ecae6;
}

.footer-contact a:hover {
    color: #FBE100;
}

.footer-bottom {
    max-width: 1140px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: #FBE100;
}

/* ============================================
   PAGINA DE CONTEUDO (default)
   ============================================ */

.page-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e8ecf1;
}

.page-content h1 {
    font-size: 1.75rem;
    color: #163D20;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #258535;
}

.page-content h2 {
    font-size: 1.35rem;
    color: #003A56;
    margin: 28px 0 12px;
}

.page-content h3 {
    font-size: 1.1rem;
    color: #067BA5;
    margin: 20px 0 10px;
}

.page-content p {
    margin-bottom: 16px;
    color: #444;
    line-height: 1.7;
}

.page-content ul,
.page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.page-content a {
    color: #067BA5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content blockquote {
    border-left: 4px solid #FBE100;
    padding: 16px 20px;
    margin: 20px 0;
    background: rgba(251, 225, 0, 0.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* ============================================
   STOCK STATUS BAR
   ============================================ */

.stock-status-bar {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    text-align: center;
}

.stock-status-bar h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
}

.stock-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.stock-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.stock-item.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.stock-item.low {
    background: #fff3e0;
    color: #ef6c00;
}

.stock-item.out {
    background: #fafafa;
    color: #aaa;
    text-decoration: line-through;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.stock-item.available .stock-dot { background: #4caf50; }
.stock-item.low .stock-dot { background: #ff9800; }
.stock-item.out .stock-dot { background: #ccc; }

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .header-brand {
        gap: 10px;
    }

    .header-logo {
        height: 40px;
    }

    .header-title h1 {
        font-size: 0.9rem;
    }

    .header-title span {
        font-size: 0.65rem;
    }

    .header-nav {
        display: none;
        width: 100%;
        margin-top: 12px;
    }

    .header-nav.open {
        display: block;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .header-nav a {
        display: block;
        padding: 10px 14px;
    }

    .header-toggle {
        display: flex;
    }

    .hero-section {
        padding: 40px 16px;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.9375rem;
    }

    .hero-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .site-main {
        padding: 32px 16px 48px;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-container,
    .page-content {
        padding: 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stock-grid {
        gap: 6px;
    }

    .stock-item {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

/* ============================================
   PRINT
   ============================================ */

@media print {
    .site-header,
    .site-footer,
    .hero-section {
        display: none;
    }

    .site-main {
        padding: 0;
        max-width: 100%;
    }

    .form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
