/*
Theme Name: Instituto Professor Joao Margon Vaz
Theme URI: https://institutojoaomargonvaz.org.br/
Author: Instituto Professor Joao Margon Vaz
Description: Landing page institucional para chamada de alunos ao curso e processo seletivo de Matematica do Instituto Professor Joao Margon Vaz.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: instituto-joao-margon-vaz
*/

:root {
    --green: #075b3b;
    --green-2: #0f754f;
    --red: #a7282d;
    --yellow: #ffc629;
    --cream: #f7f5ef;
    --ink: #252525;
    --muted: #63635e;
    --line: rgba(7, 91, 59, 0.14);
    --shadow: 0 22px 60px rgba(7, 91, 59, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Montserrat", Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
    overflow: hidden;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(7, 91, 59, 0.94);
    color: #fff;
    backdrop-filter: blur(14px);
}

.topbar__inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand strong,
.brand span {
    display: block;
    line-height: 1.05;
    text-transform: uppercase;
}

.brand strong {
    font-family: "Anton", Impact, sans-serif;
    font-size: clamp(1rem, 2vw, 1.45rem);
    letter-spacing: 0;
}

.brand span {
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 800;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 800;
}

.nav a {
    padding: 10px 12px;
    border-radius: 6px;
}

.nav a:hover,
.nav a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(247, 245, 239, 0.98) 0%, rgba(247, 245, 239, 0.9) 46%, rgba(247, 245, 239, 0.35) 66%, rgba(247, 245, 239, 0.08) 100%),
        url("assets/alunos-matematica.png") right bottom / min(58vw, 720px) auto no-repeat;
}

.hero::before {
    content: "a² + 2ab + b²   Σx   √μ";
    position: absolute;
    top: 30px;
    right: clamp(20px, 6vw, 90px);
    max-width: 410px;
    color: rgba(7, 91, 59, 0.55);
    font-family: "Patrick Hand", "Comic Sans MS", cursive;
    font-size: clamp(2rem, 5vw, 4.6rem);
    line-height: 0.9;
    transform: rotate(-3deg);
}

.hero__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 92px;
}

.hero__copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--red);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.eyebrow i {
    width: 21px;
    height: 21px;
    color: var(--yellow);
    fill: var(--yellow);
}

h1,
h2,
h3,
.display {
    margin: 0;
    font-family: "Anton", Impact, sans-serif;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    color: var(--green);
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: 0.9;
}

h1 span {
    color: var(--red);
}

.hero__lead {
    max-width: 610px;
    margin: 22px 0 0;
    font-size: clamp(1.08rem, 2vw, 1.32rem);
    font-weight: 750;
}

.hero__lead strong {
    color: var(--red);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 20px;
    border: 0;
    border-radius: 6px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 14px 28px rgba(167, 40, 45, 0.18);
}

.button i {
    width: 20px;
    height: 20px;
}

.button--primary {
    background: var(--red);
    color: #fff;
}

.button--secondary {
    background: var(--yellow);
    color: #651619;
}

.hero__notice {
    width: min(900px, 100%);
    margin-top: 34px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero__notice strong,
.hero__notice span {
    display: block;
    padding: 13px 18px;
    font-family: "Anton", Impact, sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero__notice strong {
    background: var(--red);
    color: #fff;
    font-size: clamp(1.28rem, 3vw, 2.05rem);
}

.hero__notice span {
    background: var(--yellow);
    color: #7b1c22;
    font-size: clamp(1.05rem, 2.5vw, 1.68rem);
}

.section {
    padding: 78px 0;
}

.section--green {
    color: #fff;
    background: var(--green);
}

.section--white {
    background: #fff;
}

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.section-head h2 {
    color: var(--green);
    font-size: clamp(2rem, 5vw, 4.1rem);
    line-height: 0.95;
}

.section--green .section-head h2 {
    color: #fff;
}

.section-head p {
    max-width: 500px;
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
    font-weight: 650;
}

.section--green .section-head p {
    color: rgba(255, 255, 255, 0.84);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.proof-card {
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(7, 91, 59, 0.08);
}

.proof-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--red);
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
}

.proof-card__tag i {
    width: 19px;
    height: 19px;
}

.proof-card h3 {
    color: var(--green);
    font-size: 1.8rem;
    line-height: 1;
}

.proof-card ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.proof-card li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 9px;
    align-items: start;
    color: #3c3c38;
    font-weight: 650;
}

.proof-card li i {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    color: var(--green-2);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: center;
}

.about-panel {
    padding: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.about-panel p {
    margin: 0 0 16px;
    font-size: 1.12rem;
    font-weight: 700;
}

.about-panel p:last-child {
    margin-bottom: 0;
}

.challenge-list {
    display: grid;
    gap: 14px;
}

.challenge {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 76px;
    padding: 13px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

.challenge i {
    width: 54px;
    height: 54px;
    padding: 13px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
}

.challenge:nth-child(2) i,
.challenge:nth-child(4) i {
    background: var(--green-2);
}

.challenge:nth-child(3) i {
    background: var(--yellow);
    color: #651619;
}

.challenge strong {
    display: block;
    color: var(--red);
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.more-item {
    display: grid;
    gap: 10px;
    justify-items: center;
    min-height: 160px;
    padding: 24px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
    font-weight: 900;
}

.more-item i {
    width: 58px;
    height: 58px;
    padding: 13px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
}

.more-item:nth-child(odd) i {
    background: var(--red);
}

.info-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-box {
    padding: 24px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
}

.info-box--yellow {
    background: var(--yellow);
    color: #651619;
}

.info-box h3 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.info-box p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.contact {
    color: #fff;
    background: var(--red);
}

.sponsors {
    padding: 30px 0 36px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.sponsors img {
    display: block;
    width: min(100%, 1040px);
    height: auto;
    margin: 0 auto;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 18px;
    align-items: start;
}

.contact a,
.contact span {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 36px;
    font-weight: 800;
}

.contact i {
    width: 22px;
    min-width: 22px;
    color: var(--yellow);
}

.float-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    max-width: calc(100% - 36px);
    padding: 14px 18px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 950;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.float-whatsapp i {
    width: 24px;
    height: 24px;
}

@media (max-width: 960px) {
    .nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-bottom: 260px;
        background:
            linear-gradient(180deg, rgba(247, 245, 239, 0.98) 0%, rgba(247, 245, 239, 0.92) 58%, rgba(247, 245, 239, 0.2) 100%),
            url("assets/alunos-matematica.png") right bottom / min(86vw, 520px) auto no-repeat;
    }

    .hero::before {
        opacity: 0.42;
        right: 16px;
        top: 96px;
    }

    .section-head,
    .about-grid,
    .info-band,
    .contact__grid {
        grid-template-columns: 1fr;
        display: grid;
    }

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

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

@media (max-width: 560px) {
    .topbar__inner {
        min-height: 68px;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .hero__inner {
        padding-top: 32px;
    }

    .hero__actions {
        display: grid;
    }

    .button {
        width: 100%;
        padding-inline: 14px;
        font-size: 0.9rem;
    }

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

    .float-whatsapp span {
        display: none;
    }
}

@media (max-width: 720px) {
    .float-whatsapp {
        width: 58px;
        height: 58px;
        padding: 0;
        justify-content: center;
    }

    .float-whatsapp span {
        display: none;
    }
}
