
:root {
    color-scheme: dark;
    --background: #101820;
    --surface: #253746;
    --surface-hover: #2b4050;
    --text: #f1f5f7;
    --text-secondary: #c3ced5;
    --accent: #a8c0cc;
    --border: #344957;
    --header-background: rgba(16, 24, 32, 0.92);
    --shadow: rgba(0, 0, 0, 0.12);
    --coffee: #b98255;
    --coffee-dark: #80583d;
    --coffee-light: #d6a477;
    --cup: #e5e8e6;
    --saucer: #cbd5d8;
}

[data-theme="light"] {
    color-scheme: light;
    --background: #f1f5f7;
    --surface: #ffffff;
    --surface-hover: #f8fbfc;
    --text: #101820;
    --text-secondary: #465866;
    --accent: #42677c;
    --border: #dce6eb;
    --header-background: rgba(241, 245, 247, 0.92);
    --shadow: rgba(16, 24, 32, 0.06);
    --cup: #ffffff;
    --saucer: #dce6eb;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-width: 320px;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

button {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--text);
    color: var(--background);
    border-radius: 6px;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Cabeçalho */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: var(--header-background);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 5px 20px var(--shadow);
}

.header-container {
    width: min(1100px, calc(100% - 48px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.wordmark {
    flex-shrink: 0;
    color: var(--text);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    background: var(--accent);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.theme-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    place-items: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    background: var(--surface);
    border-color: var(--accent);
}

.theme-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-icon-dark {
    display: none;
}

[data-theme="light"] .theme-icon-light {
    display: none;
}

[data-theme="light"] .theme-icon-dark {
    display: block;
}

.menu-toggle {
    display: none;
}

/* Estrutura geral */

.section {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    min-height: 570px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 100px;
}

.hero-container {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: center;
    gap: 70px;
}

.hero-content {
    max-width: 620px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.hero h1 {
    margin-bottom: 22px;
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 1.12;
}

.hero-subtitle {
    max-width: 550px;
    margin-bottom: 16px;
    color: var(--text);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 500;
    line-height: 1.5;
}

.hero-description {
    max-width: 560px;
    margin-bottom: 28px;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 600;
    transition: gap 0.2s ease, color 0.2s ease;
}

.text-link:hover {
    gap: 16px;
    color: var(--text);
}

/* Xícara de café */

.coffee-illustration {
    position: relative;
    width: 280px;
    height: 270px;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cup-float 5s ease-in-out infinite;
}

.coffee-cup {
    position: absolute;
    top: 112px;
    left: 50%;
    z-index: 2;
    width: 150px;
    height: 100px;
    background: var(--cup);
    border-radius: 8px 8px 48px 48px;
    box-shadow: 0 12px 25px var(--shadow);
    transform: translateX(-50%);
}

.coffee-cup::after {
    position: absolute;
    right: 12px;
    bottom: 10px;
    left: 12px;
    height: 7px;
    background: rgba(100, 120, 130, 0.12);
    border-radius: 50%;
    content: "";
}

.coffee-surface {
    position: absolute;
    top: -7px;
    right: 0;
    left: 0;
    height: 18px;
    background: var(--coffee);
    border: 5px solid var(--cup);
    border-radius: 50%;
}

.coffee-handle {
    position: absolute;
    top: 18px;
    right: -36px;
    width: 48px;
    height: 55px;
    border: 11px solid var(--cup);
    border-left: 0;
    border-radius: 0 24px 24px 0;
}

.coffee-saucer {
    position: absolute;
    top: 205px;
    left: 50%;
    z-index: 1;
    width: 205px;
    height: 22px;
    background: var(--saucer);
    border-radius: 50%;
    box-shadow: 0 9px 18px var(--shadow);
    transform: translateX(-50%);
}

.coffee-steam {
    position: absolute;
    top: 35px;
    left: 50%;
    width: 100px;
    height: 85px;
    transform: translateX(-50%);
}

.steam {
    position: absolute;
    bottom: 0;
    width: 13px;
    height: 55px;
    border-left: 2px solid var(--text-secondary);
    border-radius: 50%;
    opacity: 0;
    filter: blur(1px);
    animation: steam-rise 2.8s ease-in-out infinite;
}

.steam-one {
    left: 20px;
    animation-delay: 0s;
}

.steam-two {
    left: 45px;
    height: 65px;
    animation-delay: 0.8s;
}

.steam-three {
    left: 70px;
    animation-delay: 1.5s;
}

@keyframes steam-rise {
    0% {
        opacity: 0;
        transform: translateY(18px) scaleX(0.8);
    }

    30% {
        opacity: 0.55;
    }

    70% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: translateY(-35px) scaleX(1.4);
    }
}

@keyframes cup-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Seções */

.content-section {
    padding-top: 85px;
    padding-bottom: 85px;
    border-top: 1px solid var(--border);
}

.section-heading {
    max-width: 650px;
    margin-bottom: 36px;
}

.section-heading .eyebrow {
    margin-bottom: 10px;
}

.section-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1.2;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.section-content {
    max-width: 760px;
}

.section-content p {
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Cartões */

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

.content-card {
    min-height: 225px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.content-card:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    box-shadow: 0 12px 28px var(--shadow);
    transform: translateY(-4px);
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.card-category {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.card-arrow {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.content-card:hover .card-arrow {
    color: var(--text);
    transform: translate(3px, -3px);
}

.content-card h3 {
    margin-bottom: 9px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.content-card p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 600;
}

.social-card {
    min-height: 190px;
}

/* Rodapé */

.site-footer {
    border-top: 1px solid var(--border);
}

.footer-container {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 24px;
}

.footer-brand {
    margin-bottom: 35px;
}

.footer-brand p {
    max-width: 420px;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.back-to-top:hover {
    color: var(--text);
}

/* Animações de entrada */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade */

@media (max-width: 800px) {
    .header-container {
        gap: 16px;
    }

    .main-navigation {
        gap: 18px;
    }

    .nav-link {
        font-size: 0.82rem;
    }

    .hero-container {
        gap: 30px;
    }

    .coffee-illustration {
        transform: scale(0.85);
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 80px;
    }

    .header-container {
        width: calc(100% - 36px);
        min-height: 68px;
        gap: 12px;
    }

    .wordmark {
        font-size: 1.02rem;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-left: auto;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 50%;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 16px;
        height: 1.5px;
        background: var(--text);
        transition: transform 0.2s ease;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3.75px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-3.75px) rotate(-45deg);
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 20px;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 20px var(--shadow);
    }

    .main-navigation.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
        font-size: 0.92rem;
    }

    .nav-link::after {
        display: none;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .hero {
        min-height: auto;
        padding-top: 85px;
        padding-bottom: 75px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 11vw, 3.5rem);
    }

    .coffee-illustration {
        width: 240px;
        height: 230px;
        margin: 0 auto;
        transform: scale(0.9);
    }

    .content-section {
        padding-top: 65px;
        padding-bottom: 65px;
    }

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

    .content-card {
        min-height: 205px;
        padding: 23px;
    }

    .social-card {
        min-height: 175px;
    }

    .footer-container {
        width: calc(100% - 36px);
    }
}

@media (max-width: 380px) {
    .header-container {
        width: calc(100% - 28px);
    }

    .wordmark {
        font-size: 0.94rem;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

/* Movimento reduzido */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
