/* ==========================================================================
   DuPorco Alimentos — Design tokens & reset
   ========================================================================== */

:root {
    --color-primary: #9C1A1D;
    --color-primary-dark: #7A1416;
    --color-primary-light: #B22222;

    --color-ink: #221A17;
    --color-ink-soft: #3A2E29;
    --color-cream: #FBF6EF;
    --color-cream-soft: #F3EBE0;
    --color-white: #FFFFFF;

    --color-text: #2B2320;
    --color-text-muted: #6E635C;
    --color-text-on-dark: #F5EEE6;
    --color-text-on-dark-muted: #C9BDB4;

    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #1DA851;

    --radius-sm: 4px;
    --radius-md: 8px;

    --shadow-sm: 0 2px 10px rgba(34, 26, 23, 0.08);
    --shadow-md: 0 12px 30px rgba(34, 26, 23, 0.16);

    --container-width: 1180px;
    --header-height: 76px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--color-cream);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-ink);
}

section {
    position: relative;
}

#inicio,
#produtos,
#sobre,
#contato {
    scroll-margin-top: var(--header-height);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    z-index: 2000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.section-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 5rem 2rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 620px;
}

/* Reveal-on-scroll (progressively enhanced by JS) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

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

.btn-whatsapp:hover {
    background: var(--color-whatsapp-dark);
    border-color: var(--color-whatsapp-dark);
}

.btn-lg {
    padding: 1.15rem 2.4rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    height: var(--header-height);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    flex-shrink: 0;
    line-height: 0;
}

.brand-logo {
    height: 56px;
    width: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.main-nav a {
    color: var(--color-text-on-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.4rem 0.1rem;
    transition: color var(--transition-fast);
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-text-on-dark);
    transition: width var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-whatsapp span {
    display: inline;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text-on-dark);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(92vh - var(--header-height));
    color: var(--color-text-on-dark);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(18, 13, 11, 0.88) 0%, rgba(18, 13, 11, 0.72) 38%, rgba(18, 13, 11, 0.3) 68%, rgba(18, 13, 11, 0.15) 100%);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% 45%;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

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

.hero-text h1 {
    color: var(--color-text-on-dark);
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--color-text-on-dark-muted);
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   Differentials
   ========================================================================== */

.differentials {
    background: var(--color-ink);
}

.differentials .section-inner {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.differentials h2 {
    color: var(--color-text-on-dark);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 2.75rem;
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.differential-item i {
    font-size: 1.8rem;
    color: var(--color-primary-light);
    margin-bottom: 1.1rem;
}

.differential-item h3 {
    color: var(--color-text-on-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.differential-item p {
    color: var(--color-text-on-dark-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Products
   ========================================================================== */

.products {
    background: var(--color-cream);
    text-align: center;
}

.products .section-subtitle {
    margin: 0 auto 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    text-align: left;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-card-image {
    aspect-ratio: 4.3 / 5;
    overflow: hidden;
    background: var(--color-cream-soft);
    padding: 0.5rem;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 1.5rem;
}

.product-card-body h3 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--color-primary);
}

.product-weight {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-cream-soft);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.product-card-body p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
    min-height: 3.1rem;
}

.product-card-body .product-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 0;
    margin-bottom: 1.1rem;
}

.product-card-body .btn {
    width: 100%;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.product-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--color-cream-soft);
    border-radius: var(--radius-sm);
}

.product-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.product-option-weight {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.product-option-box {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.product-option .btn {
    width: auto;
    flex-shrink: 0;
    padding: 0.55rem 0.75rem;
}

/* ==========================================================================
   Transformation ("Da DuPorco para a sua mesa")
   ========================================================================== */

.transformation {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    color: var(--color-text-on-dark);
}

.transformation-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.transformation-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 14, 12, 0.82) 0%, rgba(20, 14, 12, 0.55) 45%, rgba(20, 14, 12, 0.15) 100%);
}

.transformation-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 72%;
}

.transformation-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

.transformation-content h2 {
    color: var(--color-text-on-dark);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    max-width: 560px;
    margin-bottom: 1rem;
}

.transformation-content p {
    color: var(--color-text-on-dark-muted);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    max-width: 440px;
}

/* ==========================================================================
   Showcase ("Feito para compartilhar")
   ========================================================================== */

.showcase {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    color: var(--color-text-on-dark);
}

.showcase-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.showcase-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 14, 12, 0.82) 0%, rgba(20, 14, 12, 0.55) 45%, rgba(20, 14, 12, 0.15) 100%);
}

.showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
}

.showcase-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

.showcase-content h2 {
    color: var(--color-text-on-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 560px;
    margin-bottom: 1rem;
}

.showcase-content p {
    color: var(--color-text-on-dark-muted);
    font-size: 1.15rem;
    max-width: 480px;
    margin-bottom: 2rem;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
    background: var(--color-cream);
}

.about-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
}

.about-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.about-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1.25rem;
}

.about-text p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    max-width: 540px;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.5rem 0 1.5rem;
}

.about-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-cream-soft);
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(156, 26, 29, 0.15);
}

.about-text .btn {
    margin-top: 0.75rem;
}

/* ==========================================================================
   Instagram
   ========================================================================== */

.instagram {
    background: var(--color-ink);
}

.instagram-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.instagram-mascot {
    width: 140px;
    margin-bottom: 1rem;
}

.instagram-mascot img {
    width: 100%;
    height: auto;
    display: block;
}

.instagram-inner i {
    font-size: 2.4rem;
    color: var(--color-text-on-dark);
    margin-bottom: 1rem;
}

.instagram-inner h2 {
    color: var(--color-text-on-dark);
    margin-bottom: 0.4rem;
}

.instagram-inner p {
    color: var(--color-text-on-dark-muted);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}

.instagram-inner .btn-outline {
    color: var(--color-text-on-dark);
    border-color: var(--color-text-on-dark-muted);
}

.instagram-inner .btn-outline:hover {
    background: var(--color-text-on-dark);
    color: var(--color-ink);
    border-color: var(--color-text-on-dark);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
    background: var(--color-cream-soft);
    text-align: center;
}

.contact .section-subtitle {
    margin: 0 auto 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: left;
}

.contact-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

a.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-card i {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 0.9rem;
}

.contact-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.contact-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-card-highlight {
    background: var(--color-primary);
}

.contact-card-highlight i,
.contact-card-highlight h3,
.contact-card-highlight p {
    color: var(--color-text-on-dark);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-on-dark);
}

.final-cta-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.final-cta-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 14, 12, 0.78), rgba(20, 14, 12, 0.86));
}

.final-cta-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 48%;
}

.final-cta-content {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    max-width: 640px;
}

.final-cta-content h2 {
    color: var(--color-text-on-dark);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.9rem;
}

.final-cta-content p {
    color: var(--color-text-on-dark-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-ink);
    color: var(--color-text-on-dark-muted);
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 3.5rem 2rem 2.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-logo {
    height: 44px;
    width: auto;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--color-text-on-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-links a,
.footer-contact a {
    font-size: 0.95rem;
    padding: 0.3rem 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-text-on-dark);
}

.footer-contact a i {
    width: 1.1rem;
    text-align: center;
    margin-right: 0.4rem;
    color: var(--color-primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 56px;
    height: 56px;
    background: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-md);
    z-index: 900;
    transition: transform var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .differentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .header-whatsapp span {
        display: none;
    }

    .header-whatsapp {
        padding: 0.7rem;
        border-radius: 50%;
    }

    .header-whatsapp i {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
        box-shadow: var(--shadow-md);
    }

    .main-nav.is-open {
        max-height: 320px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 2rem 1.5rem;
    }

    .main-nav a {
        display: block;
        padding: 0.85rem 0;
        width: 100%;
    }

    .hero {
        min-height: 78vh;
        align-items: flex-end;
    }

    .hero-inner {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .hero-media::after {
        background: linear-gradient(180deg, rgba(18, 13, 11, 0.4) 0%, rgba(18, 13, 11, 0.78) 55%, rgba(18, 13, 11, 0.92) 100%);
    }

    .hero-media img {
        object-position: 60% 40%;
    }

    .hero-text p {
        max-width: none;
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-media {
        max-width: 380px;
        margin: 0 auto;
    }

    .about-text {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .section-inner {
        padding: 3.5rem 1.25rem;
    }

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

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 3rem 1.25rem 2rem;
    }

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

    .hero-ctas .btn {
        text-align: center;
    }

    .showcase,
    .transformation,
    .final-cta {
        text-align: center;
    }

    .showcase-content p,
    .showcase-content h2,
    .transformation-content p,
    .transformation-content h2 {
        max-width: none;
    }

    .showcase-content,
    .transformation-content,
    .final-cta-content {
        padding: 3rem 1.25rem;
    }

    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

@media (max-width: 380px) {
    .header-inner {
        padding: 0 1.25rem;
    }

    .brand-logo {
        height: 46px;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {

    .site-header,
    .whatsapp-float,
    .final-cta,
    .showcase,
    .transformation {
        display: none;
    }
}
