/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
    font-family: 'AlbertSans';
    src: url('../fonts/AlbertSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlbertSans';
    src: url('../fonts/AlbertSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlbertSans';
    src: url('../fonts/AlbertSans-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rawline';
    src: url('../fonts/rawline-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rawline';
    src: url('../fonts/rawline-900.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'AlbertSans', sans-serif;
    color: var(--color-dark);
    background-color: var(--color-bg);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
a {
    overflow-wrap: break-word;
}

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

button {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.text-accent {
    color: var(--color-red);
}

:root {
    --color-red: #d3181a;
    --color-red-dark: #c21414;
    --color-dark: #333333;
    --color-muted: #5f5f5f;
    --color-bg: #eaeaea;
    --color-panel: #dedede;
    --color-panel-dark: #d4d4d4;
    --color-table-header: #d8d8d8;
    --color-border: #cbcbcb;
    --color-white: #ffffff;
    --color-footer-red: #ff0000;
    --container: 1200px;
    --font-display: 'Rawline', 'AlbertSans', sans-serif;
    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft);
}

.btn:hover {
    opacity: 0.88;
}

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

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

.btn--outline-light {
    background-color: rgba(255, 255, 255, 0.16);
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    padding: 12px 26px;
    font-size: 0.85rem;
}

.icon-search,
.icon-whatsapp {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background-color: var(--color-bg);
    padding: 20px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.container.header__inner {
    padding: 0 24px;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__cta {
    padding: 13px 28px;
    font-size: 0.82rem;
    pointer-events: none;
    cursor: default;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--color-red);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 56px 24px 56px 0;
}

.hero__text {
    flex: 0 0 auto;
    width: 46%;
    max-width: 500px;
    padding-left: 24px;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.hero__logo {
    /* height: 32px; */
    width: 200px;
}

.hero__text h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.hero__cta {
    align-self: flex-start;
}

.hero__visual {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.hero__visual img {
    width: 100%;
    max-width: 640px;
    height: auto;
}

/* ==========================================================================
   Program
   ========================================================================== */
.program {
    background-color: var(--color-bg);
    padding: 64px 0;
}

.program__panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background-color: var(--color-panel);
    border-radius: 28px;
    padding: 56px;
    overflow: hidden;
}

.program__text {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.steps h2,
.support h2,
.faq__title,
.locator__bar h2,
.contact__text h2,
.reseller__text h2 {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: -0.01em;
}

.program__text h2 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-red);
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.program__text h2 strong {
    font-weight: 900;
}

.program__text h2 a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.program__text p {
    max-width: 480px;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.4;
}

.program__map {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 34%;
    max-width: 320px;
}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps {
    background-color: var(--color-bg);
    padding: 0 0 64px;
}

.steps h2 {
    margin-bottom: 8px;
    color: var(--color-red);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.1;
}

.steps__intro {
    margin-bottom: 24px;
    color: var(--color-muted);
    font-size: 1.08rem;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

.step-card {
    background-color: var(--color-red);
    color: var(--color-white);
    border-radius: 16px;
    padding: 24px 22px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: auto;
    border-radius: 12px;
    background-color: var(--color-panel);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-red);
}

.step-card h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
}

.step-card p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ==========================================================================
   Support
   ========================================================================== */
.support {
    background-color: var(--color-bg);
    padding: 52px 0;
    text-align: center;
}

.support__inner {
    max-width: 780px;
}

.support h2 {
    color: var(--color-red);
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    line-height: 1.25;
    margin-bottom: 16px;
}

.support p {
    color: var(--color-muted);
    font-size: 1.02rem;
    line-height: 1.35;
}

/* ==========================================================================
   Locator ("Onde retirar")
   ========================================================================== */
.locator {
    background-color: var(--color-bg);
    padding: 0 0 64px;
}

.locator__inner {
    border-radius: 24px;
    overflow: hidden;
}

.locator__bar {
    position: relative;
    overflow: hidden;
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 24px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.locator__bar h2 {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
}

.locator__subtitle {
    position: relative;
    z-index: 1;
    font-weight: 800;
    font-size: 1.1rem;
    flex: 1 1 auto;
    text-align: center;
}

.locator__clear {
    position: relative;
    z-index: 1;
}

.locator__panel {
    background-color: var(--color-panel);
    padding: 28px 32px 36px;
}

.locator__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}

.locator__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 180px;
}

.locator__field label {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--color-dark);
}

.locator__field select,
.locator__field input {
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background-color: var(--color-white);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--color-dark);
}

.locator__table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 480px;
    border-radius: 12px;
    background-color: var(--color-white);
}

.locator__table {
    width: 100%;
    min-width: 660px;
    border-collapse: collapse;
    table-layout: fixed;
}

.locator__table th:first-child,
.locator__table td:first-child {
    width: 70px;
}

.locator__table th:last-child,
.locator__table td:last-child {
    width: 110px;
    white-space: nowrap;
}

.locator__table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: var(--color-table-header);
    color: var(--color-red);
    font-size: 0.88rem;
    font-weight: 800;
    text-align: left;
    padding: 16px 18px;
    white-space: nowrap;
}

.locator__table td {
    padding: 16px 18px;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.9rem;
}

.locator__address {
    display: block;
    color: var(--color-dark);
    font-weight: 700;
}

.locator__address-sub {
    display: block;
    margin-top: 2px;
    font-size: 0.82rem;
    color: var(--color-muted);
}

.locator__uf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 6px 8px;
    border-radius: 8px;
    background-color: var(--color-red);
    color: var(--color-white);
    font-weight: 800;
    font-size: 0.85rem;
}

.locator__empty {
    padding: 32px 18px;
    text-align: center;
    color: var(--color-muted);
    background-color: var(--color-white);
}

.locator__notice {
    padding: 14px 18px;
    text-align: center;
    color: var(--color-red-dark);
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    background-color: var(--color-bg);
    padding: 0 0 72px;
}

.faq__title {
    margin-bottom: 24px;
    color: var(--color-red);
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    line-height: 1.15;
}

.faq__list {
    border-top: 1px solid var(--color-border);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 4px;
    color: var(--color-red);
    font-size: 1rem;
    font-weight: 800;
    text-align: left;
}

.faq-item__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--color-red);
    transition: transform 0.25s ease;
}

.faq-item__icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.faq-item.is-open .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item__answer p {
    max-width: 900px;
    padding: 0 4px 22px;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.faq-item__answer a {
    color: var(--color-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-item__answer ul {
    max-width: 900px;
    margin: 0 0 22px;
    padding: 0 4px 0 22px;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.faq-item__answer ul li {
    margin-bottom: 6px;
}

.faq-item.is-open .faq-item__answer {
    max-height: 480px;
}

.faq__cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
    background-color: var(--color-bg);
    padding: 0 0 32px;
}

.contact__panel {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 32px;
    background-color: var(--color-panel);
    border-radius: 28px;
    padding: 48px 56px;
    overflow: hidden;
}

.contact__text h2 {
    max-width: 380px;
    margin-bottom: 18px;
    color: var(--color-red);
    font-size: clamp(1.6rem, 2.7vw, 2.15rem);
    line-height: 1.15;
}

.contact__text p {
    max-width: 340px;
    margin-bottom: 26px;
    color: var(--color-muted);
    font-size: 1.02rem;
    line-height: 1.3;
}

.contact__image {
    display: flex;
    justify-content: center;
}

.contact__image img {
    width: min(100%, 320px);
}

/* ==========================================================================
   Reseller CTA
   ========================================================================== */
.reseller {
    background-color: var(--color-bg);
    padding: 0 0 40px;
}

.reseller__panel {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: end;
    gap: 24px;
    background-color: var(--color-panel);
    border-radius: 28px;
    padding: 48px 0 0 56px;
    overflow: hidden;
}

.reseller__text {
    padding-bottom: 48px;
}

.reseller__text h2 {
    max-width: 460px;
    margin-bottom: 18px;
    color: var(--color-red);
    font-size: clamp(1.6rem, 2.6vw, 2.05rem);
    line-height: 1.2;
}

.reseller__text p {
    max-width: 420px;
    margin-bottom: 26px;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.3;
}

.reseller__image {
    display: flex;
    justify-content: center;
    align-self: end;
}

.reseller__image img {
    width: 100%;
    max-width: 340px;
    display: block;
}

/* ==========================================================================
   Institutional and Footer
   ========================================================================== */
.institutional {
    background-color: var(--color-bg);
    padding: 32px 0 40px;
}

.institutional__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 32px;
}

.institutional__logo {
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.72rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.institutional__logo--ministry {
    text-align: right;
}

.institutional__logo strong {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.85rem;
    font-weight: 900;
}

.institutional__logo--gaspovo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.3rem;
    line-height: 1.05;
    text-transform: uppercase;
}

.institutional__flag {
    width: 107px;
    height: auto;
    border-radius: 4px;
}

.footer {
    background-color: var(--color-footer-red);
    color: var(--color-white);
    padding: 40px 0 24px;
}

.footer__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding-bottom: 28px;
}

.footer__logo img {
    height: 30px;
    width: auto;
}

.footer__links {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    justify-content: center;
    gap: 8px 40px;
}

.footer__links a {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-white);
    opacity: 0.88;
    transition: opacity 0.24s var(--ease-soft);
    text-align: center;
}

.footer__links a:hover {
    opacity: 1;
}

.footer__social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer__social-label {
    font-size: 0.92rem;
}

.footer__social-icons {
    display: flex;
    gap: 12px;
}

.footer__social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer__social-icons img {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.footer__copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 24px;
    }

    .hero__text {
        width: 100%;
        max-width: none;
        padding-left: 0;
    }

    .hero__visual {
        width: 100%;
        justify-content: center;
    }

    .hero__visual img {
        max-width: 420px;
    }

    .program__panel {
        flex-direction: column;
        text-align: center;
        padding: 40px 32px;
    }

    .program__text {
        max-width: none;
    }

    .program__text p {
        margin: 0 auto;
    }

    .program__map {
        width: 60%;
        max-width: 260px;
    }

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

    .contact__panel,
    .reseller__panel {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 32px;
    }

    .contact__text h2,
    .contact__text p,
    .reseller__text h2,
    .reseller__text p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .reseller__text {
        padding-bottom: 0;
    }

    .reseller__image {
        align-self: center;
    }

    .footer__social {
        align-items: center;
    }
}

@media (max-width: 720px) {
    .locator__bar {
        flex-direction: column;
        text-align: center;
    }

    .locator__filters {
        flex-direction: column;
        align-items: stretch;
    }

    .locator__field {
        flex: 0 0 auto;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer__social {
        align-items: center;
    }
}

@media (max-width: 620px) {
    .container {
        padding: 0 17px;
    }

    main,
    section,
    .header,
    .footer,
    .container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .btn {
        width: 100%;
        max-width: 330px;
        padding: 13px 18px;
        white-space: normal;
    }

    .header__inner {
        gap: 12px;
        padding: 0 17px;
    }

    .header__logo img {
        height: 30px;
    }

    .header__cta {
        padding: 10px 16px;
        font-size: 0.68rem;
    }

    .hero__inner {
        padding: 32px 17px;
        gap: 24px;
    }

    .hero__logo {
        width: 150px;
    }

    .hero__text h1 {
        font-size: 1.55rem;
    }

    .hero__visual {
        display: none;
    }

    .program {
        padding: 48px 0;
    }

    .program__panel {
        border-radius: 20px;
        padding: 32px 22px;
    }

    .steps {
        padding-bottom: 48px;
    }

    .steps__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .step-card {
        min-height: 0;
        padding: 22px 20px;
    }

    .support {
        padding: 40px 0;
    }

    .locator {
        padding-bottom: 48px;
    }

    .locator__inner {
        border-radius: 18px;
    }

    .locator__bar,
    .locator__panel {
        padding: 22px 18px 28px;
    }

    .faq {
        padding-bottom: 48px;
    }

    .contact,
    .reseller {
        padding-bottom: 24px;
    }

    .contact__panel,
    .reseller__panel {
        border-radius: 20px;
        padding: 32px 22px;
    }

    .contact__image img,
    .reseller__image img {
        max-width: 220px;
    }

    .institutional {
        padding: 28px 0 32px;
    }

    .institutional__inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 18px;
    }

    .institutional__logo--ministry {
        text-align: center;
    }

    .footer__links {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        justify-content: center;
        justify-items: center;
        gap: 10px;
    }
}
