/* 
   MG Transportes - Main Stylesheet
   Based on Design System defined in design_system.md
*/

:root {
    /* Color Palette (Strict) */
    --color-dust-grey: #d6d6d6;
    --color-bright-lemon: #ffee32;
    --color-gold: #ffd100;
    --color-carbon-black: #202020;
    --color-graphite: #333533;
    --color-white: #ffffff;
    --color-text-on-dark: #f5f5f5;
    --color-text-muted: #707070;

    /* Design Tokens */
    --primary: var(--color-gold);
    --primary-hover: var(--color-bright-lemon);
    --accent: var(--color-bright-lemon);

    --bg-main: var(--color-dust-grey);
    --bg-alt: var(--color-white);
    --bg-dark: var(--color-carbon-black);

    --surface-card: var(--color-white);
    --border-soft: var(--color-dust-grey);

    --text-main: var(--color-graphite);
    --text-muted: var(--color-text-muted);
    --text-on-dark: var(--color-text-on-dark);

    --header-bg: var(--color-carbon-black);
    --footer-bg: var(--color-carbon-black);
    --header-text: var(--color-text-on-dark);
    --footer-text: var(--color-text-on-dark);

    --link-default: var(--color-gold);
    --link-hover: var(--color-bright-lemon);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'PT Sans', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--link-default);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center !important;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: rgba(212, 175, 55, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--color-carbon-black);
}

.btn-primary:hover {
    background: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    color: var(--color-carbon-black);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    color: var(--color-carbon-black);
}

.btn-text {
    color: var(--color-white);
    text-decoration: underline;
    background: none;
}

.btn-text:hover {
    color: var(--primary);
}

/* Button size variants */
.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-full-width {
    width: 100%;
}

.rounded {
    border-radius: 16px;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

/* --- Header --- */
#main-header {
    background-color: rgba(32, 32, 32, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--color-text-on-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

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

.header-cta {
    display: none;
}

.header-cta .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-color: var(--bg-dark);
    /* Base color */
    color: var(--color-white);
    text-align: center;
    padding: 160px 0 100px;
    overflow: hidden;
}

/* Background Crossfade Elements */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(5px);
    /* Gaussian blur effect */
    z-index: 1;
}

.hero-bg-active {
    opacity: 1;
    z-index: 1;
}

.hero-bg-next {
    opacity: 0;
    z-index: 0;
}


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

.hero-content h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .subheadline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ddd;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-badges {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Sections General --- */
section {
    padding: 80px 0;
}

.section-light {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 50%, #ececec 100%);
    position: relative;
}

.section-grey {
    background: linear-gradient(135deg, #e8e8e8 0%, #d6d6d6 40%, #c8c8c8 100%);
    position: relative;
}

/* Add subtle geometric pattern overlay for depth */
.section-grey::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 209, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 209, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.section-grey>.container {
    position: relative;
    z-index: 1;
}

/* Quando section vier depois do hero-intro, padding-top igual ao gap dos cards */
.hero-intro+.section-grey,
.hero-intro+.section-dark {
    padding-top: 30px;
}

.section-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 50%, #2d2d2d 100%);
    color: var(--color-text-on-dark);
    position: relative;
}

/* Add subtle light spots for depth on dark sections */
.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(255, 209, 0, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 80%, rgba(255, 209, 0, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Light Gradient Section - "Golden Glow" on Light */
.section-light-gradient {
    /* Warmer base: White to very subtle warm beige, removing the "dead grey" feel */
    background: linear-gradient(135deg, #ffffff 0%, #faf9f5 100%);
    position: relative;
    color: var(--text-main);
}

.section-light-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Significantly boosted opacity and size for visible "Life" */
    background-image: url('../img/bg-light-gold-v2.png');
    background-size: 150% 150%;
    background-position: center;
    background-repeat: no-repeat;
    animation: subtle-drift 120s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes subtle-drift {
    0% {
        background-position: 0% 0%;
    }

    33% {
        background-position: 100% 0%;
    }

    66% {
        background-position: 50% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}




/* Static Noise overlay for texture */
.section-light-gradient::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    /* Static grain */
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.section-light-gradient>.container {
    position: relative;
    z-index: 1;
}

.section-dark>.container {
    position: relative;
    z-index: 1;
}

.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark li {
    color: var(--color-text-on-dark);
}

.section-dark i,
.section-dark .icon-small,
.section-dark .result-icon {
    color: var(--accent);
    /* Bright Lemon on Dark */
}

.section-highlight {
    background: linear-gradient(135deg, rgba(255, 209, 0, 0.12) 0%, rgba(255, 238, 50, 0.08) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 4px solid var(--primary);
    border-bottom: 1px solid rgba(255, 209, 0, 0.25);
    box-shadow: inset 0 0 60px rgba(255, 209, 0, 0.05);
}

.section-header {
    margin-bottom: 0;
    text-align: center;
}

/* Uniform vertical distribution: 20px between all elements */
.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.section-header p {
    margin-bottom: 20px;
}

.text-on-dark {
    color: var(--color-text-on-dark);
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 4-column grid variant */
.services-grid-4col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .services-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid-4col {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Cards on dark sections */
.section-dark .card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.section-dark .card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.service-card {
    background: rgba(153, 153, 153, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px !important;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    overflow: visible;
    transition: all 0.3s ease;
    position: relative;

    /* Spotlight variables */
    --base: 50;
    --spread: 0;
    --radius: 16;
    --border: 1;
    --backdrop: hsl(0 0% 60% / 0.12);
    --backup-border: rgba(0, 0, 0, 0.05);
    --size: 200;
    --outer: 1;
    --border-size: calc(var(--border, 1) * 1px);
    --spotlight-size: calc(var(--size, 150) * 1px);
    --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--primary) !important;
}

/* Spotlight border effect for service-card */
.service-card::before,
.service-card::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: calc(var(--radius) * 1px);
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-repeat: no-repeat;
    background-position: 50% 50%;
    -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    -webkit-mask-clip: padding-box, border-box;
    mask-clip: padding-box, border-box;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.service-card::before {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue, 50) 100% 50% / 1), transparent 100%);
    filter: brightness(2);
    z-index: 2;
}

.service-card::after {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.7) calc(var(--spotlight-size) * 0.7) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            rgba(255, 209, 0, 0.25), transparent 100%);
    z-index: 2;
}

.service-card .card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.service-card h3 {
    font-size: 1rem;
    margin: 15px 10px 8px;
    color: var(--text-main);
}

.service-card p {
    margin: 0 10px 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.card-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--link-default);
}

.card-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* --- Mini Sobre --- */
.content-split {
    display: flex;
    gap: 50px;
    align-items: stretch;
}

.text-block {
    flex: 1;
}

/* Section intro: title and description in same container */
.section-intro {
    margin-bottom: 20px;
    line-height: 1.6;
}

.section-title {
    display: block;
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.section-dark .section-title {
    color: #fff;
}

.text-block .feature-cards-grid {
    margin-top: 0;
    grid-template-columns: repeat(2, 1fr);
}

.image-block {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- Cases Section --- */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.result-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 6px;
}

.result-icon {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

.result-item p {
    margin: 0;
    color: var(--color-text-on-dark);
}

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

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* --- Contact Highlight --- */
.microcopy {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* --- Image Placeholders --- */
.img-placeholder {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 250px;
    /* Default height */
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: 'Imagem Ilustrativa';
    font-size: 0.8rem;
}

.img-placeholder-large {
    min-height: 400px;
}

.img-placeholder-wide {
    min-height: 300px;
    width: 100%;
}

/* --- Steps / Process Section --- */
.steps-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--color-carbon-black);
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 5px rgba(255, 209, 0, 0.2);
}

.step-item h4 {
    color: var(--color-text-on-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step-item p {
    color: #ccc;
    font-size: 0.9rem;
}

/* --- Differentials List --- */
.differentials-list {
    list-style: none;
    margin-top: 20px;
}

.differentials-list li {
    position: relative;
    padding-left: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Removed .differentials-list li::before to allow for custom icons in HTML */

/* --- About Us Page Specifics --- */

/* Mission / Vision Grid */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.mvv-card {
    background-color: var(--surface-card);
    padding: 40px;
    border-radius: 8px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mvv-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.mvv-card p {
    font-size: 1.05rem;
    color: var(--text-main);
}

/* Values Grid */
.values-section {
    margin-top: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Note: 3-column behavior handled by specific classes, not section-dark override */

/* 3-column grid variant */
.values-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

/* 4-column grid variant */
.values-grid-4col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .values-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .values-grid-4col {
        grid-template-columns: 1fr;
    }
}

.value-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;

    /* Spotlight variables */
    --base: 50;
    --spread: 0;
    --radius: 12;
    --border: 1;
    --backdrop: hsl(0 0% 60% / 0.12);
    --backup-border: rgba(255, 255, 255, 0.12);
    --size: 200;
    --outer: 1;
    --border-size: calc(var(--border, 1) * 1px);
    --spotlight-size: calc(var(--size, 150) * 1px);
    --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));

    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    /* Removed background and border-color change on hover as per user request */
}

/* Spotlight border effect for value-item */
.value-item::before,
.value-item::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: calc(var(--radius) * 1px);
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-repeat: no-repeat;
    background-position: 50% 50%;
    -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    -webkit-mask-clip: padding-box, border-box;
    mask-clip: padding-box, border-box;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.value-item::before {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue, 50) 100% 50% / 1), transparent 100%);
    filter: brightness(2);
    z-index: 2;
}

.value-item::after {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.7) calc(var(--spotlight-size) * 0.7) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            rgba(255, 209, 0, 0.25), transparent 100%);
    z-index: 2;
}

.value-item i,
.value-item h4,
.value-item p {
    position: relative;
    z-index: 20;
}

/* Icon and title alignment using line-height matching */
.value-item i {
    display: inline-block !important;
    font-size: 1.3rem !important;
    margin-bottom: 0 !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    color: var(--primary) !important;
    line-height: 1.2 !important;
}

.value-item h4 {
    display: inline !important;
    color: var(--text-main);
    margin: 0 !important;
    font-size: 1.1rem !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 12px 0 0 0;
}

/* Feature Cards Grid - Dynamic List Replacement */
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

/* 4-column variant */
.feature-cards-4col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .feature-cards-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .feature-cards-4col {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;

    /* Spotlight variables */
    --base: 50;
    --spread: 0;
    --radius: 12;
    --border: 1;
    --backdrop: hsl(0 0% 60% / 0.12);
    --backup-border: rgba(255, 255, 255, 0.12);
    --size: 200;
    --outer: 1;
    --border-size: calc(var(--border, 1) * 1px);
    --spotlight-size: calc(var(--size, 150) * 1px);
    --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));
}

.feature-card:hover {
    transform: translateY(-5px);
    /* Removed background and border-color change on hover as per user request */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Spotlight border effect for feature-card */
.feature-card::before,
.feature-card::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: calc(var(--radius) * 1px);
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-repeat: no-repeat;
    background-position: 50% 50%;
    -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    -webkit-mask-clip: padding-box, border-box;
    mask-clip: padding-box, border-box;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.feature-card::before {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue, 50) 100% 50% / 1), transparent 100%);
    filter: brightness(2);
    z-index: 2;
}

.feature-card::after {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.7) calc(var(--spotlight-size) * 0.7) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            rgba(255, 209, 0, 0.25), transparent 100%);
    z-index: 2;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, #d4a800 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.feature-icon i {
    font-size: 1.3rem;
    color: var(--text-main);
}

.feature-card h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 5px;
    /* white-space: nowrap; - Removed to prevent truncation */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Mobile: 2 columns then 1 column */
@media (max-width: 768px) {
    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .feature-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark variant for feature cards */
.feature-cards-dark .feature-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-cards-dark .feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 209, 0, 0.3);
}

.feature-cards-dark .feature-card h4 {
    color: var(--primary);
}

.feature-cards-dark .feature-card p {
    color: #ccc;
}

/* Horizontal variant - icon on left */
.feature-card-horizontal {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 20px;
    position: relative;
    overflow: visible;

    /* Spotlight variables */
    --base: 50;
    --spread: 0;
    --radius: 12;
    --border: 1;
    --backdrop: hsl(0 0% 60% / 0.12);
    --backup-border: rgba(255, 255, 255, 0.25);
    --size: 200;
    --outer: 1;
    --border-size: calc(var(--border, 1) * 1px);
    --spotlight-size: calc(var(--size, 150) * 1px);
    --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));

}

.feature-card-horizontal::before,
.feature-card-horizontal::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: calc(var(--radius) * 1px);
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-repeat: no-repeat;
    background-position: 50% 50%;
    -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    -webkit-mask-clip: padding-box, border-box;
    mask-clip: padding-box, border-box;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    z-index: 2;
}

.feature-card-horizontal::before {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue, 50) 100% 50% / 1), transparent 100%);
    filter: brightness(2);
}

.feature-card-horizontal::after {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.7) calc(var(--spotlight-size) * 0.7) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            rgba(255, 209, 0, 0.25), transparent 100%);
}

.feature-card-horizontal .feature-icon {
    margin: 0;
    flex-shrink: 0;
}

.feature-card-horizontal .feature-card-content h4 {
    margin-bottom: 5px;
}

.feature-card-horizontal .feature-card-content p {
    margin: 0;
}

/* Contact cards row - 2 columns side by side */
.contact-cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Mobile: smaller padding for contact cards */
@media (max-width: 768px) {
    #contato-direto .feature-card-horizontal {
        padding: 15px 10px;
        gap: 10px;
    }

    #contato-direto .feature-icon {
        width: 40px;
        height: 40px;
    }

    #contato-direto .feature-icon i {
        font-size: 1rem;
    }

    #contato-direto .feature-card-content h4 {
        font-size: 0.9rem;
    }

    #contato-direto .feature-card-content p {
        font-size: 0.75rem;
    }

    /* Image matches text-block width */
    #contato-direto .text-block,
    #contato-direto .image-block {
        width: 100%;
    }

    #contato-direto .hero-card-visual,
    #contato-direto .hero-card-visual img {
        width: 100%;
        max-width: 100%;
    }

    #contato-direto {
        height: auto;
        min-height: 900px;
    }
}

/* Contato: hero-intro styling */
#contato-direto {
    margin-top: 0;
    height: 700px;
}

#contato-direto::before {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#contato-direto .hero-intro-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px 0;
}

/* Cards com estilo de vidro */
#contato-direto .feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

#contato-direto .feature-card h4,
#contato-direto .feature-card p {
    color: #fff;
}

#contato-direto .hero-intro-overlay>.container {
    width: 100%;
}

#contato-direto h2 {
    color: var(--primary);
}

#contato-direto .hero-card-visual {
    padding: 8px;
    max-height: 478px;
}

#contato-direto .hero-card-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Mini-Sobre: hero-intro styling */
#mini-sobre {
    margin-top: 0;
    height: 500px;
}

#mini-sobre::before {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#mini-sobre .hero-intro-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px 0;
}

#mini-sobre h2 {
    color: var(--primary);
}

#mini-sobre p {
    color: #fff;
}

#mini-sobre .text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#mini-sobre .hero-card-visual {
    padding: 10px;
    max-height: 450px;
    /* Adjusted height to accommodate padding */
}

#mini-sobre .hero-card-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Botão alinhamento */
#mini-sobre .btn-outline {
    align-self: flex-start;
    width: fit-content;
}

@media (max-width: 768px) {
    #mini-sobre {
        height: 700px;
    }
}

/* Behaviors List (legacy) */
.behaviors-list-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.behaviors-list li {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Timeline (Simple) */
.timeline-block {
    flex: 1;
    padding-left: 40px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-list {
    list-style: none;
}

.timeline-list li {
    position: relative;
    margin-bottom: 40px;
    padding: 20px;
    padding-left: 30px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: visible;

    /* Spotlight variables - Timeline Item */
    --base: 50;
    --spread: 0;
    --radius: 10;
    --border: 1;
    --backdrop: hsl(0 0% 60% / 0.12);
    --backup-border: rgba(255, 255, 255, 0.1);
    --size: 200;
    --outer: 1;
    --border-size: calc(var(--border, 1) * 1px);
    --spotlight-size: calc(var(--size, 150) * 1px);
    --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));

    /* Inner Glow on main element background */
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.7) calc(var(--spotlight-size) * 0.7) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            rgba(255, 209, 0, 0.15), transparent 100%);
    background-repeat: no-repeat;
}

/* Spotlight Border on ::after (since ::before is used for the dot) */
.timeline-list li::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: calc(var(--radius) * 1px);
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-repeat: no-repeat;
    background-position: 50% 50%;
    -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    -webkit-mask-clip: padding-box, border-box;
    mask-clip: padding-box, border-box;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    z-index: 2;

    /* Border Gradient */
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue, 50) 100% 50% / 1), transparent 100%);
    filter: brightness(2);
}

.timeline-list li:hover {
    transform: translateX(5px);
    /* Keep hover slight bg change for timeline */
    background-color: rgba(255, 255, 255, 0.12);
}


.timeline-list li::before {
    content: '';
    position: absolute;
    left: -46px;
    /* Adjust based on padding and border width */
    top: 25px;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 209, 0, 0.2);
}

.timeline-list .year {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.timeline-list p {
    color: var(--color-text-on-dark);
    margin: 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* Separates the buttons */
    flex-wrap: wrap;
    /* Ensures responsiveness on small screens */
}

.footer-col a:hover {
    color: var(--accent);
}

.contact-info li {
    font-size: 0.9rem;
    color: var(--color-text-on-dark);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    margin-right: 10px;
    color: var(--accent);
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-text-on-dark);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 0 15px;
    }

    .logo {
        flex: 1;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-cta {
        display: none;
        /* Hide CTA on mobile to save space */
    }

    /* Mobile Nav */
    .main-nav {
        width: 100%;
        order: 3;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(32, 32, 32, 0.95);
        padding: 20px 0;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 15px;
    }

    .main-nav ul.nav-active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .main-nav li {
        margin: 15px 0;
    }

    .main-nav a {
        font-size: 1.1rem;
        display: block;
        padding: 5px;
    }

    /* Layout Adjustments */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 140px 0 80px;
    }

    .content-split,
    .content-split.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .image-block,
    .text-block {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-col {
        margin-bottom: 0;
    }

    .steps-container {
        flex-direction: column;
    }

    .social-icons {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Footer --- */
#main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col a {
    color: var(--color-text-on-dark);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.contact-info li {
    color: var(--color-text-on-dark);
    margin-bottom: 10px;
}

.contact-info i {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    background-color: rgba(0, 0, 0, 0.2);
}

/* --- Forms --- */
/* Contact form 2-column grid */
.contact-form-grid .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-grid .form-full {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .contact-form-grid .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-alt);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.1);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* =========================================
   MOBILE UI/UX IMPROVEMENTS (2025-11-25)
   ========================================= */

@media (max-width: 768px) {

    /* 1. Layout Responsiveness (1 Column) */
    .services-grid,
    .blog-grid,
    .mvv-grid,
    .values-grid,
    .partners-grid,
    /* Assuming this class exists for partnerships */
    .certifications-grid {
        /* Assuming this class exists */
        grid-template-columns: 1fr !important;
    }

    /* Hero Attributes (Rapidez, Economia, etc.) */
    .hero-badges {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hero-badges span {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* 2. Typography */
    h1 {
        font-size: 28px !important;
        /* ~1.75rem */
    }

    h2 {
        font-size: 24px !important;
        /* ~1.5rem */
    }

    p {
        line-height: 1.6;
        font-size: 1rem;
    }

    /* 3. Navigation & Header */
    .header-container {
        padding: 0 20px;
    }

    /* Mobile Menu Items */
    .main-nav a {
        font-size: 1.2rem !important;
        padding: 15px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Client Area Button in Menu */
    .main-nav .btn-primary {
        background-color: var(--primary);
        color: var(--color-carbon-black) !important;
        display: inline-block;
        margin-top: 15px;
        width: auto;
        padding: 10px 30px !important;
    }

    /* Active Menu Item Highlight */
    .main-nav a.active {
        color: var(--primary) !important;
        font-weight: 700;
        border-left: 3px solid var(--primary);
        padding-left: 10px !important;
    }

    /* Close Icon Size */
    .mobile-menu-btn {
        font-size: 2rem;
        /* Larger icon */
        padding: 10px;
        /* Larger touch target */
    }

    /* 4. Footer */
    .footer-container {
        display: flex !important;
        flex-direction: column;
        gap: 40px;
    }

    .social-icons a {
        font-size: 2rem !important;
        /* Larger icons (32px+) */
        margin: 0 15px;
        display: inline-block;
        padding: 10px;
        /* Touch target */
    }

    /* 5. Accessibility & Touch Targets */
    .btn,
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Reset display for inline links that shouldn't be flex */
    p a,
    .footer-col a,
    .main-nav a {
        display: inline-block;
    }

    .main-nav a {
        display: block;
        /* Menu items are block */
    }

    /* Full width buttons */
    .hero-ctas .btn,
    .form-group .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* 6. Forms */
    .form-control {
        width: 100% !important;
    }

    .form-group {
        margin-bottom: 25px;
        /* Increased spacing */
    }
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-alt);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.1);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.forgot-password-link {
    display: block;
    padding: 15px;
    font-size: 1rem !important;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    margin-top: 10px;
}

/* --- Hero Carousel & New Layout (Rewritten) --- */
.hero-content.full-width-carousel {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.hero-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100% !important;
    width: 100% !important;
    flex-shrink: 0;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width if any */
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    z-index: 2;
}

.hero-slide-split {
    width: 100%;
    padding: 0;
    /* Resets for inner container usage */
}

.slide-inner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 40px 20px;
    min-height: 400px;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}




.slide-text-content {
    flex: 1.2;
    text-align: center;
    z-index: 2;
}

.slide-text-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-text-content h1 i {
    color: var(--primary);
    margin-right: 10px;
}

.slide-text-content .subheadline {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    max-width: 90%;
}

.slide-visual-content {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-visual {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;

    /* Spotlight variables */
    --base: 50;
    --spread: 0;
    --radius: 12;
    --border: 2;
    --backdrop: hsl(0 0% 60% / 0.12);
    --backup-border: rgba(255, 255, 255, 0.12);
    --size: 200;
    --outer: 1;
    --border-size: calc(var(--border, 1) * 1px);
    --spotlight-size: calc(var(--size, 150) * 1px);
    --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));
}

/* Spotlight border effect for hero-card-visual */
.hero-card-visual::before,
.hero-card-visual::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: calc(var(--radius) * 1px);
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-repeat: no-repeat;
    background-position: 50% 50%;
    -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    -webkit-mask-clip: padding-box, border-box;
    mask-clip: padding-box, border-box;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.hero-card-visual::before {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue, 50) 100% 50% / 1), transparent 100%);
    filter: brightness(2);
    z-index: 2;
}

.hero-card-visual::after {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.7) calc(var(--spotlight-size) * 0.7) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            rgba(255, 209, 0, 0.25), transparent 100%);
    z-index: 2;
}

/* Ensure overlay is ON TOP of the image (which has z-index 20 via .service-card img) */
.hero-card-visual .spotlight-overlay {
    z-index: 25;
}

/* On hero section, limit width */
.hero-slideshow .hero-card-visual {
    max-width: 400px;
}

.hero-card-img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-ctas {
    justify-content: center;
}

.hero-ctas .btn:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 215, 0, 0.6);
}

.hero-ctas .btn-outline:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.5);
}

/* --- Carousel Navigation (Global) --- */
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 20px;
    left: 0;
    z-index: 10;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--primary);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* --- Responsive Adjustments (Tablet/Desktop) --- */

/* --- Global Fixes & New Components --- */

/* Fix for fixed header overlap */
/* Fix for fixed header overlap (Internal pages only) */
body:not(.home) #content {
    padding-top: 40px;
    background-color: var(--color-white);
}

/* Darker "Step/Process" Section */
.section-dark-step {
    background-color: #1a1a1a;
    /* Very dark grey, almost black */
    color: var(--color-white);
    padding: 60px 0;
}

.section-dark-step h2,
.section-dark-step h3,
.section-dark-step h4,
.section-dark-step p {
    color: var(--color-white);
}

.section-dark-step .text-on-dark {
    color: #cccccc;
}

/* Reusable FAQ Styles (Migrated from faq.html) */
.faq-category {
    margin-bottom: 60px;
}

.faq-category h3 {
    color: var(--primary);
    border-bottom: 2px solid var(--border-soft);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.section-light .faq-category h3 {
    border-bottom: 2px solid #ccc;
}

.faq-item {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 0 !important;
    margin-bottom: 20px;
    overflow: visible;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease;
    position: relative;

    /* Spotlight variables */
    --base: 50;
    --spread: 0;
    --radius: 10;
    --border: 1;
    --backdrop: hsl(0 0% 60% / 0.12);
    --backup-border: rgba(255, 255, 255, 0.12);
    --size: 200;
    --outer: 1;
    --border-size: calc(var(--border, 1) * 1px);
    --spotlight-size: calc(var(--size, 150) * 1px);
    --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* Spotlight border effect for faq-item */
.faq-item::before,
.faq-item::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: calc(var(--radius) * 1px);
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-repeat: no-repeat;
    background-position: 50% 50%;
    -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    -webkit-mask-clip: padding-box, border-box;
    mask-clip: padding-box, border-box;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.faq-item::before {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue, 50) 100% 50% / 1), transparent 100%);
    filter: brightness(2);
    z-index: 2;
}

.faq-item::after {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.7) calc(var(--spotlight-size) * 0.7) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            rgba(255, 209, 0, 0.25), transparent 100%);
    z-index: 2;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--color-white);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--color-white);
    font-size: 0.95rem;
    opacity: 0;
    /* Add opacity transition */
}

/* Specific overrides for FAQ in Light Sections (Service Pages) - Text Color Only */
.section-light .faq-item .faq-question {
    color: var(--color-carbon-black);
}

.section-light .faq-item .faq-answer,
.section-light .faq-item .faq-answer p {
    color: var(--text-main);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
    /* Increase max-height safety margin */
    opacity: 1;
}



/* --- Mobile Specific Fixes (Max-width 768px) --- */
@media (max-width: 768px) {

    /* Mobile Menu */
    .main-nav {
        width: 100%;
        order: 3;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(32, 32, 32, 0.98);
        padding: 10px 0;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        padding: 40px 20px;
        min-height: 400px;
    }

    /* Value Items Mobile Layout - Icon inline with title */
    .value-item {
        text-align: left;
        padding: 20px;
    }

    .value-item i {
        display: inline-block !important;
        font-size: 1.2rem !important;
        margin-bottom: 0 !important;
        margin-right: 10px !important;
        vertical-align: middle;
    }

    .value-item h4 {
        display: inline;
        color: var(--text-main) !important;
        /* Black instead of yellow */
        font-size: 1rem;
        vertical-align: middle;
    }

    .value-item p {
        margin-top: 10px;
    }

    .slide-text-content {
        flex: 1.2;
        text-align: left;
        z-index: 2;
    }

    .slide-text-content h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        color: var(--color-white);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .slide-text-content h1 i {
        color: var(--primary);
        margin-right: 10px;
    }

    .slide-text-content .subheadline {
        font-size: 1.1rem;
        color: var(--color-white);
        margin-bottom: 2rem;
        max-width: 90%;
    }

    .slide-visual-content {
        flex: 0.8;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-card-visual {
        width: 100%;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 16px;
        padding: 10px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }

    .hero-card-img {
        border-radius: 6px;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .hero-ctas .btn {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    /* --- Carousel Navigation (Global) --- */
    .carousel-nav {
        position: absolute;
        top: 50%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        transform: translateY(-50%);
        pointer-events: none;
        padding: 0 20px;
        left: 0;
        z-index: 10;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        pointer-events: auto;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

        /* Glassmorphism */
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: var(--color-white);
    }

    .carousel-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        color: var(--primary);
        transform: scale(1.1);
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .dot.active {
        background-color: var(--primary);
        transform: scale(1.2);
    }

    /* --- Responsive Adjustments (Tablet/Desktop) --- */
    @media (max-width: 992px) {
        .slide-inner-container {
            flex-direction: column;
            text-align: center;
            padding: 20px 40px;
            gap: 10px !important;
            justify-content: center;
            min-height: auto;
            height: auto;
        }

        .slide-text-content {
            text-align: center;
            margin-bottom: 0 !important;
        }

        .slide-text-content .subheadline {
            margin: 0 auto 15px auto !important;
        }

        .hero-ctas {
            justify-content: center;
        }

        .carousel-dots {
            margin-top: 15px !important;
        }

        .hero-ctas .btn {
            margin-bottom: 0 !important;
        }

        .hero-card-visual {
            padding-top: 10px !important;
        }

        .slide-text-content h1 {
            margin-bottom: 15px !important;
            white-space: nowrap !important;
            font-size: clamp(14px, 5vw, 1.8rem) !important;
        }
    }

    /* --- Mobile Specific Fixes (Max-width 768px) --- */
    @media (max-width: 768px) {

        /* Mobile Menu */
        .main-nav {
            width: 100%;
            order: 3;
        }

        .main-nav ul {
            display: none;
            flex-direction: column;
            width: 100%;
            background-color: rgba(32, 32, 32, 0.98);
            padding: 10px 0;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 10px;
            max-height: 70vh;
            overflow-y: auto;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }

        .main-nav ul.nav-active {
            display: flex;
            animation: slideDown 0.3s ease forwards;
        }

        .main-nav li {
            margin: 0;
            width: 100%;
        }

        .main-nav a {
            font-size: 1.1rem !important;
            display: block;
            padding: 12px 0 !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            width: 100%;
        }

        .main-nav .btn-primary {
            margin: 15px auto;
            display: inline-block;
            width: auto;
            padding: 10px 30px !important;
        }

        /* Hide Carousel Arrows on Mobile */
        .carousel-nav {
            display: none !important;
        }

        /* Hero Buttons Mobile Fix */
        .hero-ctas {
            gap: 0 !important;
            margin-bottom: 15px !important;
            flex-direction: column;
            align-items: center;
        }

        .hero-ctas .btn {
            max-width: 400px !important;
            width: 100% !important;
            margin-left: auto !important;
            margin-right: auto !important;
            display: block !important;
            margin-bottom: 15px !important;
        }

        .hero-ctas .btn:last-child {
            margin-bottom: 0 !important;
        }
    }
}

/* ===========================================
   GLASSMORPHISM UTILITY CLASSES
   =========================================== */

/* Variação Light (para fundos escuros/imagens) */
.glass-light {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.glass-light:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Variação Dark (para fundos claros) */
.glass-dark {
    background: rgba(32, 32, 32, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    color: var(--color-text-on-dark);
}

.glass-dark:hover {
    background: rgba(32, 32, 32, 0.85);
}

/* Variação Gold (destaque da marca) */
.glass-gold {
    background: rgba(255, 209, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 209, 0, 0.2);
    box-shadow: 0 8px 32px rgba(255, 209, 0, 0.08);
    border-radius: 12px;
}

.glass-gold:hover {
    background: rgba(255, 209, 0, 0.12);
    border-color: rgba(255, 209, 0, 0.3);
}

/* Fallback para navegadores sem suporte */
@supports not (backdrop-filter: blur(12px)) {
    .glass-light {
        background: rgba(255, 255, 255, 0.85);
    }

    .glass-dark {
        background: rgba(32, 32, 32, 0.95);
    }

    .glass-gold {
        background: rgba(255, 209, 0, 0.15);
    }
}

/* Ajuste de performance para mobile */
@media (max-width: 768px) {

    .glass-light,
    .glass-dark,
    .glass-gold {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* --- Aplicação em Cards da Home --- */
.section-dark .result-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.section-dark .result-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Benefits section in section-dark: 3 columns and yellow titles */
.section-dark .values-grid {
    grid-template-columns: repeat(3, 1fr);
}

.section-dark .value-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.section-dark .value-item h4 {
    color: var(--primary) !important;
    display: block !important;
}

.section-dark .value-item p {
    color: #ddd;
}

/* Mobile: 1 column for section-dark benefits */
@media (max-width: 768px) {
    .section-dark .values-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Hero Intro Section (Banner com BG + Overlay Escuro + Texto) --- */
.hero-intro {
    position: relative;
    width: 100%;
    min-height: 350px;
    margin-top: -80px;
    /* Estende o BG para baixo do header */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.85) 0%, rgba(50, 50, 50, 0.75) 100%);
    z-index: 1;
}

.hero-intro-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 150px 0 60px 0;
    /* Mais padding no topo para compensar o margin negativo */
}

.hero-intro h1 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.hero-intro p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-intro p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero-intro {
        min-height: 280px;
    }

    .hero-intro-overlay {
        padding: 120px 0 30px 0;
    }

    .hero-intro h1 {
        font-size: 1.6rem;
    }

    .hero-intro p {
        font-size: 0.95rem;
        padding: 0 15px;
    }
}

/* --- GLOBAL SPOTLIGHT VARIABLES --- */
:root {
    --backdrop: hsl(0 0% 60% / 0.12);
    --radius: 14;
    --border: 3;
    --backup-border: var(--backdrop);
    --size: 200;
    --outer: 1;
    --base: 50;
    /* Yellow/Gold Hue */
    --spread: 200;
}

/* --- SPOTLIGHT CARD --- */
.spotlight-card {
    /* Theme Variables */
    --base: 50;
    /* Gold/Yellow */
    --spread: 0;
    /* FIXED: Set to 0 to prevent hue rotation */
    --radius: 14;
    --border: 2;
    --backdrop: hsl(0 0% 60% / 0.12);
    --backup-border: var(--backdrop);
    --size: 200;
    --outer: 1;

    /* Config Vars */
    --border-size: calc(var(--border, 2) * 1px);
    --spotlight-size: calc(var(--size, 150) * 1px);
    --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));

    position: relative;
    border-radius: calc(var(--radius) * 1px);
    border: var(--border-size) solid var(--backup-border);
    background-color: var(--backdrop, transparent);

    /* Main Gradient Body (Inner Glow) - REMOVED from card */
    background-image: none;

    background-size: 100% 100%;
    background-position: 0 0;
    /* Removed fixed attachment to allow transform */
    touch-action: none;
    overflow: visible;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Fix for Hover Conflict: Ensure the base border doesn't turn solid color on hover */
.spotlight-card:hover {
    border-color: var(--backup-border) !important;
    transform: translateY(-5px);
}

/* Pseudo-elements for Border Glow */
.spotlight-card::before,
.spotlight-card::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: calc(var(--radius) * 1px);

    /* Local Coordinates for Border */
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-repeat: no-repeat;
    background-position: 50% 50%;

    /* Masking Logic for Border */
    -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    -webkit-mask-clip: padding-box, border-box;
    mask-clip: padding-box, border-box;
    /* WebKit support for 'intersect' */
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.spotlight-card::before {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue, 210) calc(var(--saturation, 100) * 1%) calc(var(--lightness, 50) * 1%) / var(--border-spot-opacity, 1)), transparent 100%);
    filter: brightness(2);
    z-index: 2;
}

.spotlight-card::after {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(0 100% 100% / var(--border-light-opacity, 1)), transparent 100%);
    z-index: 2;
}

/* --- SPOTLIGHT OVERLAY (The inner blur glow) --- */
.spotlight-overlay {
    position: absolute;
    inset: 0;
    will-change: filter;
    opacity: var(--outer, 1);
    border-radius: calc(var(--radius) * 1px);
    /* filter: blur(calc(var(--border-size) * 10)); */
    pointer-events: none;
    z-index: 10;
    /* Higher z-index to sit above hover backgrounds */

    /* MOVED INNER GLOW HERE */
    background-image: radial-gradient(var(--spotlight-size) var(--spotlight-size) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            rgba(255, 215, 0, 0.15), transparent);
    background-size: 100% 100%;
    background-position: 0 0;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
    /* Optional: helps glow pop against dark bg */
    transition: opacity 0.3s;
    /* Smooth entry */
}

.spotlight-card .result-icon,
.spotlight-card h3,
.spotlight-card h4,
.spotlight-card p,
.spotlight-card .feature-icon,
.service-card img {
    position: relative;
    z-index: 20;
}

/* --- Marquee Section (Partner Brands) --- */
.marquee-section {
    padding: 40px 0 0;
    /* Removed bottom padding */
    overflow: hidden;
    background-color: var(--bg-alt);
    /* White background */
}

/* Reduce spacing of the next section specifically */
#o-que-fazemos {
    padding-top: 30px;
}

/* Ensure container prevents overflow */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    /* Space for hover effects */
    /* Fade edges for smooth look */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Reduce gap between rows by pulling the second one up */
.marquee-container+.marquee-container {
    margin-top: -10px;
}

.mt-4 {
    margin-top: 0;
    /* Overridden for tighter layout */
}

.marquee-track {
    display: flex;
    gap: 2rem;
    /* Spacing between logos */
    width: max-content;
    will-change: transform;
}

/* Animation Definitions */
.marquee-left {
    animation: marquee-scroll-left 40s linear infinite;
}

.marquee-right {
    animation: marquee-scroll-right 40s linear infinite;
}

/* Pause on hover for better UX */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Moves half the width (the first set) */
    }
}

@keyframes marquee-scroll-right {
    0% {
        transform: translateX(-50%);
        /* Start shifted by 50% */
    }

    100% {
        transform: translateX(0);
        /* Move back to 0 */
    }
}

/* Partner Logo Placeholder Styling */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 50px;
    /* Pillow shape like the reference */
    padding: 12px 25px;
    min-width: 180px;
    height: 60px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.partner-logo i {
    font-size: 1.4rem;
    color: #d1d1d1;
    transition: color 0.3s ease;
}

.partner-logo:hover {
    background-color: var(--color-white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    transform: translateY(-2px);
}

.partner-logo:hover i {
    color: var(--primary);
}

/* --- FAQ Section --- */
.faq-category {
    margin-bottom: 40px;
}

.faq-category h3 {
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}



.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 500px;
    /* Arbitrary large height */
}

.faq-answer p {
    margin: 0;
    color: var(--color-white);
}

/* FIX: Force 4 columns for the Setores section in Parcerias */
@media (min-width: 992px) {
    #setores .values-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* 2-column grid variant for features */
.feature-cards-2col {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 576px) {
    .feature-cards-2col {
        grid-template-columns: 1fr !important;
    }
}

/* ==============================================
   TESTIMONIAL CARDS - Global Style
   ============================================== */
.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover handled by .spotlight-card - only add z-index fix for content */
.testimonial-card .text-testimonial,
.testimonial-card .testimonial-author {
    position: relative;
    z-index: 20;
}

.testimonial-card .text-testimonial {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-on-dark);
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
}

.testimonial-card .text-testimonial::before {
    content: '"';
    position: absolute;
    left: -15px;
    top: -10px;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar::before {
    content: '\f007';
    /* Font Awesome user icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-carbon-black);
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--color-text-on-dark);
    margin-bottom: 4px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Testimonial card text colors on light sections */
.section-light .testimonial-card .text-testimonial,
.section-grey .testimonial-card .text-testimonial {
    color: var(--text-main);
}

.section-light .author-info h4,
.section-grey .author-info h4 {
    color: var(--text-main);
}