:root {
    /* Alecrim Palette based on printscreen */
    --c-red: #da291c;
    --c-red-dark: #b82218;
    --c-yellow: #f2c300;
    --c-green: #00853f;
    --c-dark: #1f1411;
    --c-darker: #130c0a;
    --c-light: #fdfaf0;
    --c-light-alt: #f5eedc;
    --c-text: #4a3831;
    --c-text-light: #ffffff;

    --font-serif: 'DM Serif Display', serif;
    --font-sans: 'Outfit', sans-serif;

    --header-height: 80px;
    --radius-lg: 20px;
    --radius-md: 12px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--c-text);
    background-color: var(--c-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 400;
    line-height: 1.1;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--c-text);
    margin-bottom: 1.5rem;
}

.section-title em {
    color: var(--c-yellow);
    font-style: italic;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--c-red);
}

.text-light {
    color: var(--c-text-light);
}

.text-yellow {
    color: var(--c-yellow);
}

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

/* Buttons */
.btn-red {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--c-red) 0%, var(--c-red-dark) 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    border-bottom: 4px solid #8b1c14;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-red::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.btn-red:hover {
    transform: translateY(-5px);
    border-bottom-width: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-red:hover::after {
    left: 200%;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.btn-outline:hover {
    transform: translateY(-5px);
    border-bottom-width: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.btn-outline:hover::after {
    left: 200%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 100;
    transition: background 0.3s ease;
}

.navbar.scrolled,
.navbar.solid-nav {
    background: rgba(31, 20, 17, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.logo-mascot-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.logo-red-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background-color: var(--c-red);
    border-radius: 50%;
    z-index: 1;
}

.logo-mascot-wrapper img {
    position: relative;
    max-height: 70px;
    z-index: 2;
    margin-bottom: -5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 0.9;
    margin-bottom: 2px;
}

.logo-subtitle {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-yellow);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--c-yellow);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
    padding-bottom: 6rem;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.hero-text {
    max-width: 600px;
    color: #fff;
}

.pill-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--c-yellow);
    color: var(--c-dark);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-family: var(--font-serif);
    font-size: 4.2rem;
    line-height: 1;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.1);
}

.hero-text h1 em {
    color: var(--c-yellow);
    font-style: italic;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* Ticker Bar */
.ticker-bar {
    background: linear-gradient(to right, var(--c-green) 0%, var(--c-yellow) 50%, var(--c-red) 100%);
    padding: 12px 0;
    overflow: hidden;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    gap: 3rem;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.history-section,
.roberto-section,
.services-section,
.gallery-section,
.hours-section,
.location-section {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
}

.service-card,
.small-card,
.history-image img,
.roberto-image img,
.gallery-images img,
.contact-item,
.stat-item {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.service-card:hover,
.small-card:hover,
.contact-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.history-image img:hover,
.roberto-image img:hover,
.gallery-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-item:hover {
    transform: scale(1.1);
}

/* History */
.history-section {
    padding: 6rem 0;
    background: var(--c-light);
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.history-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.stats-grid {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item strong {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--c-red);
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--c-red);
    margin-left: 2px;
}

.stat-item span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
}

.history-image img {
    border-radius: var(--radius-lg);
    box-shadow: 15px 15px 0 var(--c-yellow);
}

/* Roberto Legacy */
.roberto-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--c-dark) 0%, #301710 100%);
    color: #fff;
}

.roberto-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.roberto-image img {
    border-radius: var(--radius-md);
    border: 3px solid var(--c-yellow);
    max-width: 300px;
    margin: 0 auto;
}

.roberto-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Services */
.services-section {
    padding: 6rem 0;
    background: var(--c-light);
}

.services-header {
    margin-bottom: 3rem;
}

.services-header .section-title {
    color: var(--c-green);
}

.services-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card.with-bg {
    padding: 0;
    background-size: cover;
    background-position: center;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
}

.card-content {
    position: relative;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.icon-circle.green {
    background: var(--c-green);
}

.icon-circle.red {
    background: var(--c-red);
}

.card-header h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.card-header h3 span {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

.with-bg .card-header h3 span {
    color: rgba(255, 255, 255, 0.8);
}

.check-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.check-list li::before {
    content: "✓";
    color: var(--c-green);
    font-weight: bold;
}

.with-bg .check-list li::before {
    color: var(--c-yellow);
}

.card-img-bottom {
    margin-top: 2rem;
    border-radius: var(--radius-md);
}

.services-small-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.small-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.small-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.icon-small {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.small-card h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.small-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Gallery */
.gallery-section {
    padding: 6rem 0;
    background: var(--c-light-alt);
}

.gallery-grid-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.gallery-text {
    text-align: center;
}

.gallery-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.mascot-wrapper {
    position: relative;
    display: block;
    margin: 2rem auto 0;
    width: fit-content;
}

.red-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    background-color: var(--c-red);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.mascot-wrapper:hover .red-circle {
    transform: translate(-50%, -50%) scale(1.2);
    background-color: var(--c-yellow);
}

.gallery-mascot {
    position: relative;
    max-width: 220px;
    z-index: 2;
    transition: transform 0.4s ease;
}

.mascot-wrapper:hover .gallery-mascot {
    transform: scale(1.1) rotate(5deg);
}

.gallery-images {
    display: grid;
    gap: 1rem;
}

.img-large {
    border-radius: var(--radius-md);
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.img-medium {
    border-radius: var(--radius-md);
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-col.col-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.img-small {
    border-radius: var(--radius-md);
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Hours */
.hours-section {
    padding: 8rem 0;
    background-image: url('../images/paleta_cores_posto.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: #fff;
}

.hours-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 12, 10, 0.85);
    z-index: 1;
}

.hours-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hours-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hour-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.hour-card h4 {
    color: var(--c-yellow);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.hour-card p {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hour-card span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Location */
.location-section {
    padding: 6rem 0;
    background: var(--c-light);
}

.location-header {
    margin-bottom: 3rem;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-size: 0.9rem;
    color: #666;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
}

/* Footer */
.footer {
    background: var(--c-darker);
    color: #fff;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-flex;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--c-yellow);
    color: var(--c-dark);
    border-color: var(--c-yellow);
}

.footer h4 {
    color: var(--c-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

.footer ul a:hover {
    color: #fff;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-content {
    padding: 1.5rem 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-line {
    height: 4px;
    background: linear-gradient(to right, var(--c-green) 33%, var(--c-yellow) 33% 66%, var(--c-red) 66%);
}

/* Lazy rendering */
.lazy-render {
    content-visibility: visible;
}

/* Floating WS */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Responsive */
@media(max-width: 1024px) {
    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-mascot {
        width: 350px;
    }

    .gallery-grid-layout {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .hero {
        padding-bottom: 4rem;
        min-height: auto;
        padding-top: calc(var(--header-height) + 2rem);
    }

    .hero-text h1 {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-desc {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .hero-actions .btn-red,
    .hero-actions .btn-outline {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .nav-menu,
    .nav-right .btn-red {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(31, 20, 17, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 99;
        animation: fadeIn 0.3s ease;
    }

    .nav-menu.active ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-menu.active ul li a {
        font-size: 1.8rem;
    }

    .menu-toggle {
        position: relative;
        z-index: 101;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .history-grid,
    .roberto-grid,
    .services-main-grid,
    .services-small-grid,
    .hours-grid,
    .location-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
}