:root {
    /* Color Palette */
    --color-bg-dark: #1C1E21;
    --color-bg-card: #2D3136;
    --color-text-main: #FFFFFF;
    --color-text-muted: #A0AAB2;
    --color-accent-silver: #E0E5EC;
    --color-accent-silver-dark: #9AA0A6;
    --color-cta-orange: #d89f1a;
    --color-cta-orange-hover: #b8860b;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Structure */
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
}

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

ul {
    list-style: none;
}

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

/* 1. Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-accent-silver);
    padding: 1rem 0;
}

.main-header .logo {
    color: var(--color-bg-dark);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-text-main);
    letter-spacing: 1px;
}

.logo span {
    color: var(--color-cta-orange);
}

.logo img {
    max-height: 100px;
    width: auto;
    display: block;
}

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

.main-nav a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-bg-dark);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: var(--color-cta-orange);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-bg-dark);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}
.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.contact-info .email {
    font-size: 0.85rem;
    color: var(--color-bg-dark);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-cta-orange);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-cta-orange-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(216, 159, 26, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(216, 159, 26, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(216, 159, 26, 0);
    }
}

/* 2. Hero Section */
.hero {
    position: relative;
    padding: 8rem 0;
    background-color: var(--color-bg-dark);
    text-align: center;
    border-bottom: 4px solid var(--color-cta-orange);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 12, 16, 0.9) 0%, rgba(10, 12, 16, 0.7) 50%, rgba(10, 12, 16, 0.4) 100%);
    z-index: 1;
}

.hero-watermark-cover {
    position: absolute;
    bottom: 30px;
    right: 40px;
    width: 220px;
    height: auto;
    z-index: 2;
    opacity: 0.95;
    pointer-events: none;
}

.mobile-only-seal {
    display: none;
    width: 140px;
    margin: 0 auto 1.5rem auto;
}

/* Adjust size and position on smaller screens so it doesn't overlap the CTA button */
@media (max-width: 768px) {
    .hero-watermark-cover {
        display: none; /* Hide on mobile to avoid layout issues */
    }
    
    .mobile-only-seal {
        display: block; /* Show at the top of the next section instead */
    }
}

/* For very large screens (like secondary widescreen monitors), the watermark might be further in or larger */
@media (min-width: 1600px) {
    .hero-watermark-cover {
        width: 320px;
        bottom: 50px;
        right: 80px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* Premium Sobre-Nós Hero */
.sobre-nos-hero {
    position: relative;
    padding: 10rem 0 8rem 0;
    background-color: var(--color-bg-dark);
    text-align: center;
    border-bottom: 4px solid var(--color-cta-orange);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('../stand_octanorm_feiras_eventos_locacao.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay-premium {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28, 30, 33, 0.8) 0%, rgba(28, 30, 33, 0.4) 60%, rgba(216, 159, 26, 0.25) 100%);
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-accent-silver);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 3. Metrics Section */
.metrics-section {
    padding: 4rem 0;
    background-color: var(--color-bg-card);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.metric-card .metric-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-cta-orange);
    line-height: 1;
}

.metric-card .metric-plus {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-cta-orange);
    vertical-align: top;
}

.metric-card p {
    font-weight: 600;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* 4. Portfolio Grid */
.portfolio-section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-accent-silver);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--color-accent-silver-dark);
    color: var(--color-text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--color-cta-orange);
    border-color: var(--color-cta-orange);
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.portfolio-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0; /* Accommodate hover translations */
}

.portfolio-carousel-wrapper .portfolio-item {
    width: 500px;
    flex-shrink: 0;
}

.portfolio-carousel-wrapper .portfolio-image {
    aspect-ratio: 16 / 9;
}

.portfolio-carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll-carousel 20s linear infinite;
}

.portfolio-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    /* Shifts exactly half the track width (the duplicated set minus half a gap) */
    100% { transform: translateX(calc(-50% - 1rem)); }
}

.portfolio-item {
    background-color: var(--color-bg-card);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    padding: 2px;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 2px;
    background-color: var(--color-bg-card);
    border-radius: 2px;
    z-index: 1;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--color-cta-orange));
    animation: rotate-border 4s linear infinite;
    z-index: 0;
}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: #1a1c1e;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border-bottom: 2px solid var(--color-accent-silver-dark);
}

.img-placeholder {
    color: var(--color-text-muted);
    font-weight: 500;
}

.portfolio-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* 5. Advantages Matrix */
.advantages-section {
    padding: 6rem 0;
    background-color: var(--color-bg-card);
}

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

.advantage-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--color-bg-dark);
    border-radius: 4px;
    border-top: 3px solid var(--color-accent-silver-dark);
    transition: border-color 0.3s ease;
}

.advantage-card:hover {
    border-color: var(--color-cta-orange);
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(216, 159, 26, 0.1);
    color: var(--color-cta-orange);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.advantage-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

/* 6. Footer & Drip Feed */
.main-footer {
    background-color: #151618;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-info p {
    color: var(--color-text-muted);
    margin: 1.5rem 0;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent-silver);
}

.footer-coverage h3 {
    margin-bottom: 1rem;
    color: var(--color-cta-orange);
}

.city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.city-list li a {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-accent-silver-dark);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.city-list li a:hover {
    border-color: var(--color-cta-orange);
    color: #fff;
}

.footer-bottom {
    background-color: #0f1012;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Smart CTA floating */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

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

.floating-email-cta {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    background-color: var(--color-cta-orange);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

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

/* Tooltips for floating buttons */
.floating-cta[data-tooltip]::before,
.floating-email-cta[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background-color: #333;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.floating-cta[data-tooltip]::after,
.floating-email-cta[data-tooltip]::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(0px);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-cta[data-tooltip]:hover::before,
.floating-email-cta[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(-15px);
}

.floating-cta[data-tooltip]:hover::after,
.floating-email-cta[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(-3px);
}

/* Portfolio Carousel Section */
.portfolio-carousel-section {
    padding: 4rem 0;
    background-color: var(--color-bg);
    overflow: hidden;
    position: relative;
}

.portfolio-carousel-title {
    text-align: center;
    margin-bottom: 3rem;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll-carousel 30s linear infinite;
    /* We duplicate the content to make it infinite */
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    width: 300px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.75rem)); } /* -50% shifts halfway through the duplicated track */
}

/* SEO Content Sections */
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--color-accent-silver);
}

.content-section {
    padding: 6rem 0;
    background-color: var(--color-bg-dark);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    line-height: 1.6;
}

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

.text-card {
    background-color: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-cta-orange);
}

.text-card h3 {
    margin-bottom: 1rem;
    color: var(--color-text-main);
    font-size: 1.3rem;
}

.text-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.services-info-section {
    padding: 6rem 0;
    background-color: var(--color-bg-card);
}

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

.service-block .check-list {
    list-style: none;
    padding: 0;
}

.service-block .check-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
    font-size: 1.05rem;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--color-bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background-color: var(--color-bg-card);
    color: var(--color-text-main);
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

.faq-question:hover, .faq-question.active {
    background-color: var(--color-cta-orange);
    color: white;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    background-color: var(--color-bg-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .advantages-grid, .text-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    .content-section, .services-info-section, .location-context, .hero, .advantages-section, .portfolio-section, .metrics-section, .faq-section {
        padding: 3rem 0 !important;
    }
    .text-card {
        padding: 1.5rem;
    }
    .portfolio-carousel-track {
        gap: 1rem;
    }
    .portfolio-carousel-wrapper .portfolio-item {
        width: 300px;
    }
    .portfolio-carousel-wrapper .portfolio-image {
        aspect-ratio: 4 / 3;
    }
    .metrics-grid, .text-grid, .services-grid, .advantages-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .main-nav {
        display: none;
    }
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid var(--color-accent-silver);
        padding: 1.5rem 0;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }
    .main-nav.active ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    .header-cta {
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    .logo {
        order: 1;
    }
    .header-cta .email {
        display: none;
    }
    .logo img {
        max-height: 60px;
    }
    .header-cta .btn-primary {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
        animation: sonarPulse 2s infinite;
    }
    .header-cta .btn-primary svg {
        display: none;
    }
    .service-block h2 {
        font-size: 1.5rem !important;
    }
    .section-desc {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }
    .footer-map {
        height: 250px !important;
    }
}

@keyframes sonarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(216, 159, 26, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(216, 159, 26, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(216, 159, 26, 0);
    }
}

.pulse-whatsapp {
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
