:root {
    --color-primary: #1a1a1a; /* Dark Charcoal/Black */
    --color-secondary: #f0f0f0; /* Off-White/Light Gray */
    --color-accent: #5fb8ff; /* Light Blue */
    --color-text-light: #f0f0f0;
    --color-text-dark: #333333;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
    --header-height: 72px; /* new: reserve space for fixed header to avoid overlay */
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

.accent {
    color: var(--color-accent);
    font-weight: 600;
}

/* Header and Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #000000; /* changed to solid black */
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff; /* logo text fallback white */
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem; /* added: increase distance from logo */
}

.nav-link {
    text-decoration: none;
    color: #ffffff; /* white nav links on black background */
    font-weight: 400;
    padding: 0.4rem 0.1rem;
    position: relative;
    transition: color var(--transition-speed) ease;
    font-size: 0.633rem; /* increased from 0.475rem by ~33% */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed) ease, left var(--transition-speed) ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff; /* keep text white on hover, accent shown via underline */
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
    left: 0;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff; /* toggle icon white */
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    transition: transform 0.2s, background-color var(--transition-speed), border-color var(--transition-speed);
    letter-spacing: 0.05em;
    border: 2px solid transparent;
}

.cta-button.primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.cta-button.secondary {
    background-color: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-button.primary:hover {
    background-color: #3b9ee6; /* Darker light-blue */
}
.cta-button.secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

/* Sections Layout */
.section {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section:nth-child(even) {
    background-color: #ffffff;
}

.dark-bg {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.dark-bg h2, .dark-bg h3 {
    color: var(--color-accent);
}

/* HOME (Hero) Section */
.hero {
    /* Updated layout for full screen background video */
    display: flex; /* Keep flex for centering content */
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Center content */
    min-height: 100vh;
    padding: var(--header-height) 5% 4rem; /* Adjusted padding to ensure content fits */
    position: relative; /* Context for absolute video */
    overflow: hidden;
    background-color: var(--color-primary); /* Fallback background color */
}

/* Background Video Styling */
.background-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Add a subtle overlay for text contrast */
.background-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Dark overlay */
    z-index: 2;
}

.background-video-wrapper iframe {
    /* Video sizing trick: ensures the video covers the entire container */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 100/16*9 = 56.25 */
    min-height: 100vh;
    min-width: 177.77vh; /* 100/9*16 = 177.77 */
    transform: translate(-50%, -50%);
    pointer-events: none; /* Allows clicks to pass through to content below */
    z-index: 1;
}

/* Enhanced hero content: glass card, left-weighted layout on desktop, centered on mobile */
.hero-content {
    flex: none;
    max-width: 920px;
    width: 100%;
    padding: 2.25rem 2.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border-radius: 14px;
    text-align: left;
    color: var(--color-text-light);
    z-index: 3; /* Must be higher than the video and overlay */
    backdrop-filter: blur(6px) saturate(1.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

/* Decorative accent line and subtitle */
.hero-content::before {
    content: '';
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, rgba(95,184,255,1), rgba(255,200,120,0.9));
    border-radius: 4px;
    display: block;
    margin-bottom: 0.25rem;
    opacity: 0.95;
}

/* Title styles: larger, elegant, tighter leading, subtle shadow */
.hero-content h1 {
    color: #ffffff;
    font-size: 3.4rem;
    line-height: 1.03;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 6px 18px rgba(0,0,0,0.65);
    max-width: 56ch;
}

/* Subtitle / lead paragraph — refine weight and tone */
.hero-content p {
    color: rgba(255,255,255,0.92);
    font-weight: 300;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    max-width: 60ch;
    line-height: 1.5;
    opacity: 0.95;
}

/* CTA: more prominent, rounded, glass-gradient button with icon space */
.cta-button.primary {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
    color: var(--color-primary);
    padding: 0.85rem 2.25rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(95,184,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
}

/* CTA accent variant when used on dark overlay to preserve prominence */
.hero-content a.cta-button.primary {
    background: linear-gradient(90deg, rgba(95,184,255,1), rgba(255,200,120,0.95));
    color: #072033;
    box-shadow: 0 14px 40px rgba(95,184,255,0.18);
    border: 0;
}

/* Hover interactions */
.hero-content a.cta-button.primary:hover {
    transform: translateY(-4px) scale(1.02);
    filter: saturate(1.08) brightness(1.02);
    box-shadow: 0 22px 60px rgba(95,184,255,0.20);
}

/* Make the CTA slightly larger on focus for keyboard users */
.hero-content a.cta-button.primary:focus {
    outline: none;
    box-shadow: 0 22px 60px rgba(95,184,255,0.28), 0 0 0 4px rgba(95,184,255,0.08);
    transform: translateY(-2px);
}

/* Responsive: center the card and scale typography on smaller viewports */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 720px;
        padding: 1.75rem 1.5rem;
        text-align: center;
        align-items: center;
    }
    .hero-content::before { margin-left: auto; margin-right: auto; }
    .hero-content h1 {
        font-size: 2.6rem;
        line-height: 1.08;
    }
    .hero-content p { font-size: 1rem; max-width: 46ch; }
    .hero-content a.cta-button.primary { padding: 0.78rem 1.9rem; }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1.25rem 1rem;
        border-radius: 10px;
    }
    .hero-content h1 {
        font-size: 1.9rem;
        line-height: 1.08;
        text-align: center;
    }
    .hero-content p { font-size: 0.95rem; text-align: center; max-width: 42ch; }
    .hero-content a.cta-button.primary {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1rem;
    }
}

/* Ensure content children inherit colors */
.hero-content h1 {
    /* color already set above for emphasis */
}

.hero-content p {
    /* color already set above */
}

/* Responsive video wrapper for hero section */
.video-wrapper {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* General Content Panels */
.content-panel {
    min-height: 80vh;
}

/* SERVIÇOS Grid */
.service-grid {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    padding: 0.5rem;
}

.service-item {
    flex: 1;
    padding: 2rem;
    background-color: #ffffff;
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 50%;
    border: 3px solid var(--color-accent);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.scroll-prompt {
    margin-top: 3rem;
    font-style: italic;
    color: var(--color-accent);
}

/* Carousel for Serviços */
.services-carousel {
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
    padding: 0.5rem 0.5rem;
    /* Allow horizontal pointer dragging while preserving vertical page scroll */
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.service-card {
    min-width: 209px; /* was 220px -> 5% smaller */
    max-width: 266px; /* was 280px -> 5% smaller */
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex: 0 0 auto; /* ensure horizontal flow */
}

.service-card img {
    width: 100%;
    height: 152px; /* was 160px -> 5% smaller */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0,0,0,0.04);
}

.service-card h3 {
    margin: 0.25rem 0;
    font-size: 1.05rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    margin-top: 0.5rem;
    font-weight: 300;
}

/* Carousel buttons */
.carousel-btn {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--color-primary);
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 0.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.18s ease;
}

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

.carousel-btn:active {
    transform: translateY(0);
}

/* Feature Panels (Isolamento/Tratamento) */
.feature-panel {
    flex-direction: row;
    max-width: 1400px;
    gap: 5rem;
    padding: 6rem 5%;
}

.feature-panel.stacked {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    padding: 4rem 5%;
}

.feature-panel.stacked .feature-image,
.feature-panel.stacked .feature-content {
    max-width: 980px;
    width: 100%;
}

.feature-panel.stacked .feature-image img {
    width: 96%;
    max-height: 420px;
    border-radius: 10px;
    object-fit: cover;
}

.feature-content {
    flex: 1;
    max-width: 50%;
}

.feature-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.feature-panel.reverse {
    flex-direction: row-reverse;
}

/* Fix: stack Isolamento section vertically on all viewports (desktop should behave like mobile) */
#isolamento-acustico.feature-panel.reverse {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

#isolamento-acustico.feature-panel.reverse .feature-content,
#isolamento-acustico.feature-panel.reverse .feature-image {
    max-width: 980px;
    width: 100%;
    padding: 0 0.5rem;
}

/* SOBRE NÓS Panel */
.wide-panel {
    flex-direction: column;
    gap: 4rem;
    max-width: 100%;
    padding: 10rem 5%;
}

.about-content, .about-image {
    flex: 1;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.about-content ul {
    list-style: none;
    margin-top: 1.5rem;
}

.about-content ul li {
    margin-bottom: 0.75rem;
    font-weight: 300;
    display: flex;
    align-items: center;
}
.about-content ul li span {
    margin-right: 10px;
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.85;
}

/* Ensure Sobre Nós section has strong contrast on dark background */
#sobre-nos,
#sobre-nos .about-content,
#sobre-nos .about-content p,
#sobre-nos .about-content ul,
#sobre-nos .about-content li {
    /* Use light text on the dark background to ensure strong contrast and readability */
    color: var(--color-text-light);
}

/* Ensure founder carousel text and cards inside Sobre Nós are readable on dark background */
#sobre-nos .founder-card,
#sobre-nos .founder-card .founder-bio,
#sobre-nos .founder-card .founder-bio p,
#sobre-nos .founder-card .founder-bio h3 {
    color: var(--color-text-light);
}

/* Adjust smaller text elements (lists, meta) for better legibility */
#sobre-nos .about-content ul li {
    color: rgba(255,255,255,0.92);
}
#sobre-nos .about-content p {
    color: rgba(255,255,255,0.95);
}

/* Founder block (added) */
.founder {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    margin-top: 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 1.25rem;
    border-radius: 10px;
    max-width: 920px;
}

/* Logo image sizing */
.logo img {
    height: 36px;
    display: block;
    object-fit: contain;
}

.founder-photo {
    flex: 0 0 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-photo img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.founder-bio {
    flex: 1;
    color: var(--color-text-light);
}

.founder-bio h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-accent);
    font-size: 1.15rem;
}

.founder-bio p {
    margin-bottom: 0.6rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    line-height: 1.45;
}

/* Responsive adjustments for founder block */
@media (max-width: 768px) {
    .founder {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .founder-photo {
        flex: none;
    }
    .founder-photo img {
        width: 160px;
        height: 160px;
    }
    .founder-bio h3 { text-align: center; }
}

/* LAUDOS Section */
.laudo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 2.5rem auto 0;
}

.laudo-text {
    flex: 2;
    padding-right: 2rem;
}
.laudo-text h3 {
    font-size: 1.8rem;
}

.laudo-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.laudo-image img {
    width: auto;
    max-width: 320px;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--color-accent);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Make the Laudos section explicitly use the dark theme for better contrast */
#laudos, .section#laudos {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

/* Ensure headings and text inside Laudos adopt the light color */
#laudos .section-title,
#laudos h3,
#laudos p,
#laudos .laudo-text,
#laudos .laudo-container {
    color: var(--color-text-light);
}

/* Adjust report image styles to better contrast on dark background */
#laudos .laudo-image img {
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    background: rgba(255,255,255,0.02);
}

/* New: Laudos card styling for title + text */
.laudo-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 1.75rem;
    border-radius: 10px;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

/* Ensure headings inside card keep readable contrast */
#laudos .laudo-card .section-title {
    color: var(--color-accent);
    margin-bottom: 0.25rem;
    text-align: left;
    font-size: 1.6rem;
}

#laudos .laudo-card .laudo-text h3 {
    color: var(--color-text-light);
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

#laudos .laudo-card .laudo-text p {
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

/* Responsive tweaks: ensure card stacks nicely under image on small screens */
@media (max-width: 1024px) {
    .laudo-container {
        gap: 1.25rem;
        padding-top: 0.5rem;
    }
    .laudo-card {
        padding: 1.25rem;
        max-width: 96%;
    }
}

@media (max-width: 480px) {
    .laudo-card {
        padding: 1rem;
        border-radius: 8px;
    }
    #laudos .laudo-card .section-title {
        font-size: 1.25rem;
    }
    #laudos .laudo-card .laudo-text h3 {
        font-size: 1.05rem;
    }
}

/* New: Laudos carousel card styling (refined, dark-themed, consistent with other carousels) */
.laudos-card {
    min-width: 280px;
    max-width: 360px;
    background: rgba(255,255,255,0.03); /* subtle card on dark background */
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,0.04);
}

/* thumbnail area to contain a smaller, framed image */
.laudos-thumb {
    width: 100%;
    padding: 0.35rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(0,0,0,0.02));
    border-radius: 8px;
    overflow: hidden;
}
.laudos-thumb img {
    width: 100%;
    max-width: 320px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}

/* body area with text */
.laudos-body {
    padding: 0 0.35rem 0.5rem 0.35rem;
    color: var(--color-text-light);
}
.laudos-body h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.05rem;
    color: var(--color-accent);
}
.laudos-body p {
    margin: 0 0 0.6rem 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    line-height: 1.45;
}
.laudos-body .cta-button.primary {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* make the laudos carousel responsive and consistent with other carousels */
@media (max-width: 768px) {
    .laudos-card { min-width: 68%; max-width: 68%; padding: 0.6rem; border-radius: 8px; }
    .laudos-thumb img { height: 100px; max-width: 100%; }
    .laudos-body h3 { font-size: 1rem; }
    .laudos-body p { font-size: 0.88rem; line-height: 1.35; }
    .laudos-body .cta-button.primary { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .laudos-card { min-width: 86%; max-width: 86%; padding: 0.5rem; }
    .laudos-thumb img { height: 88px; }
    .laudos-body h3 { font-size: 0.95rem; text-align: center; }
    .laudos-body p { font-size: 0.84rem; text-align: center; }
    .laudos-body .cta-button.primary { margin: 0.4rem auto 0; display: inline-block; }
}

/* New: layout laudos carousel with side arrows (align buttons to left/right of track) */
.laudos-carousel {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}
.laudos-carousel .carousel-track {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 0.5rem;
    width: 100%;
}
/* ensure the left/right buttons remain visually on the sides */
.laudos-carousel > .carousel-btn.prev { order: 0; }
.laudos-carousel > .carousel-btn.next { order: 2; }
.laudos-carousel > .carousel-track { order: 1; }

/* Portfolio section styling (matches site's sophisticated aesthetic) */
.portfolio-panel {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    max-width: 1100px;
    margin: 1.5rem auto 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    width: 100%;
}

.portfolio-thumb {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio-thumb img {
    width: 100%;
    max-width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
}

.portfolio-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-body p {
    margin: 0;
    color: var(--color-text-dark);
    font-weight: 300;
    max-width: 70ch;
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Make portfolio look good on smaller screens */
@media (max-width: 768px) {
    .portfolio-panel {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    .portfolio-thumb {
        flex: none;
        width: 72%;
    }
    .portfolio-thumb img {
        max-width: 100%;
        height: auto;
    }
    .portfolio-body p { max-width: 100%; }
    .portfolio-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    .portfolio-actions .cta-button { margin-bottom: 0.25rem; }
}

/* CONTATO Section */
.contact-section {
    min-height: 90vh;
    padding-top: 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
}

.contact-card {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-card h2 {
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

.contact-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-decoration img {
    width: 80%;
    max-width: 400px;
    height: auto;
}

/* Footer */
.main-footer {
    width: 100%;
    padding: 2rem 1.5rem;
    text-align: left;
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}
.footer-inner {
    display: flex;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 0.75rem;
    align-items: flex-start;
    justify-content: space-between;
}
.footer-col { flex: 1; min-width: 180px; }
.footer-col p { margin: 0.25rem 0; color: rgba(255,255,255,0.92); font-weight: 300; }
.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 700;
}
.footer-copy { text-align: center; margin-top: 0.5rem; color: rgba(255,255,255,0.6); font-size: 0.88rem; }

/* Responsive footer improvements: stack columns, enlarge social buttons and center text on small viewports */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    .footer-col {
        width: 100%;
        max-width: 600px;
    }
    .footer-social {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }
    .footer-social .social-link {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        margin-right: 0.25rem;
    }
    .footer-col p { font-size: 0.95rem; }
    .footer-copy { text-align: center; padding-top: 0.5rem; }
}

/* --- ANIMATION STYLES (Sophistication & Professionalism) --- */

.fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.section.visible .fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.section.visible .fade-in-left {
    opacity: 1;
    transform: translateX(0);
}

.section.visible .fade-in-right {
    opacity: 1;
    transform: translateX(0);
}

/* --- RESPONSIVENESS (Mobile Optimization) --- */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: 100vh; /* Background video needs full height */
        padding: 4rem 5% 3rem; /* reduced vertical padding */
    }
    .hero-content {
        flex: none;
        max-width: 90%;
        padding: 1.5rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.15;
        margin-bottom: 0.75rem;
    }
    .hero-content p {
        font-size: 0.96rem;
        max-width: none; /* Removed fixed max-width restriction */
        margin: 0 auto 1rem;
    }
    .hero-image {
        margin-top: 1.5rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        max-width: 92%;
        height: auto;
        max-height: 420px;
    }

    .service-grid {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    .service-item {
        padding: 1.25rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        background-color: #fff;
    }
    .service-item img {
        width: 96px;
        height: 96px;
        margin: 0 0 0.75rem 0;
        float: none;
        border-radius: 12px;
        flex: none;
        object-fit: cover;
    }
    .service-item h3 {
        margin: 0 0 0.25rem 0;
        font-size: 1.1rem;
    }
    .service-item p {
        font-size: 0.95rem;
    }
    
    .feature-panel, .wide-panel, .laudo-container, .contact-section {
        padding: 3.5rem 5%;
        max-width: 100%;
        gap: 2rem;
    }
    
    .feature-panel.reverse {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .feature-content, .about-content, .about-image, .laudo-text, .laudo-image {
        width: 100%;
    }
    .feature-content {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    .feature-image img {
        max-height: 360px;
        width: 96%;
    }
    .about-image img {
        max-height: 360px;
        width: 96%;
    }

    .about-content h2 {
        font-size: 1.6rem;
    }

    .about-content ul {
        padding-left: 0;
    }

    .contact-section {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }
    .contact-decoration {
        display: none; /* Hide abstract decoration on tablet for cleaner look */
    }
}

@media (max-width: 768px) {
    h2 { font-size: 1.8rem; }
    
    /* Keep header visible and allow toggling the nav menu separately */
    .main-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 0.75rem 5%;
        background: #000000; /* mobile header solid black */
        z-index: 1100;
    }

    /* Mobile nav default hidden, shown when .open is applied */
    .nav-menu {
        display: none;
    }
    .nav-menu.open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000000; /* mobile nav panel black */
        padding: 0.75rem 5% 1rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }
    
    .nav-menu.open {
        height: auto; /* allow content to size */
        padding: 0.75rem 5% 1rem;
    }

    .nav-link {
        padding: 0.6rem 0;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        font-size: 0.633rem; /* keep mobile nav text increased consistently */
        color: #ffffff; /* ensure mobile links are white */
    }
    
    .nav-link::after {
    }

    .menu-toggle {
        display: block; /* show menu toggle on mobile */
        background: none;
        border: none;
        font-size: 1.4rem;
        cursor: pointer;
        color: #ffffff; /* mobile toggle white */
    }

    .hero {
        padding-top: 5rem;
    }

    .service-item {
        text-align: left;
    }

    .feature-panel.reverse {
        padding-top: 2rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    .hero-content {
        padding: 1rem; /* Smaller padding on smallest screens */
    }
    .hero-content p {
        font-size: 0.95rem;
        max-width: 40ch;
    }
    .hero-image img {
        max-height: 300px;
        width: 96%;
    }
    .service-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        padding: 0.9rem;
    }
    .service-item img {
        float: none;
        margin: 0 0 0.5rem 0;
        width: 84px;
        height: 84px;
    }
    .service-item h3 {
        font-size: 1rem;
        margin: 0;
    }
    .service-item p {
        font-size: 0.9rem;
        margin-top: 4px;
    }
    .feature-image img {
        max-height: 260px;
    }
    .about-image img {
        max-height: 260px;
    }
    .laudo-image img {
        max-width: 220px;
    }
    .contact-card {
        padding: 2rem;
    }
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        padding: 0.9rem;
    }
    .main-header {
        padding: 0.75rem 4%;
    }

    /* Mobile centering & coherent styling for all card grids */
    .services-grid, .isolation-grid, .treatment-grid, .laudos-grid, .founder-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        justify-items: center;
    }
    .services-grid .service-card,
    .isolation-grid .isolation-card,
    .treatment-grid .treatment-card,
    .laudos-grid .laudos-card,
    .founder-grid .founder-card {
        width: 92%;
        max-width: 520px;
        text-align: center;
        align-items: center;
        padding: 1.1rem;
        border-radius: 12px;
        background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,250,250,0.98));
        box-shadow: 0 20px 60px rgba(0,0,0,0.12);
        border: 1px solid rgba(0,0,0,0.04);
    }
    .services-grid .service-card img,
    .isolation-grid .isolation-card img,
    .treatment-grid .treatment-card img,
    .laudos-grid .laudos-thumb img,
    .founder-grid .founder-photo img {
        width: 92%;
        height: auto;
        margin: 0 auto 0.75rem;
        border-radius: 10px;
        object-fit: cover;
    }
    .services-grid .service-card h3,
    .isolation-grid .isolation-card h3,
    .treatment-grid .treatment-card h3,
    .laudos-grid .laudos-body h3,
    .founder-grid .founder-bio h3 {
        text-align: center;
        color: var(--color-primary);
        margin-bottom: 0.4rem;
    }
    .services-grid .service-card p,
    .isolation-grid .isolation-card p,
    .treatment-grid .treatment-card p,
    .laudos-grid .laudos-body p,
    .founder-grid .founder-bio p {
        text-align: center;
        color: var(--color-text-dark);
        font-weight: 300;
    }
}

/* Isolation carousel styling (coherent with services carousel but slightly more prominent) */
.isolation-grid {
    width: 100%;
    max-width: 1200px;
    margin: 2.5rem auto 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    padding: 0.5rem;
}

.isolation-grid .isolation-card {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.isolation-grid .isolation-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 0.6rem;
}

.isolation-grid .isolation-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-primary);
}

.isolation-grid .isolation-card p {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    font-weight: 300;
    line-height: 1.45;
}

.isolation-grid .isolation-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(10,20,30,0.08);
}

@media (max-width: 1100px) {
    .isolation-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
    .isolation-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
    .isolation-grid .isolation-card img { height: 150px; }
}
@media (max-width: 480px) {
    .isolation-grid { grid-template-columns: 1fr; padding: 0; }
    .isolation-grid .isolation-card {
        padding: 0.9rem;
        text-align: center;
        align-items: center;
    }
    .isolation-grid .isolation-card img {
        width: 92%;
        height: 140px;
        margin: 0 auto 0.6rem;
    }
    .isolation-grid .isolation-card h3 { text-align: center; }
    .isolation-grid .isolation-card p { text-align: center; }
}

/* Treatment carousel styling (reuse isolation styles with slight prominence) */
.treatment-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 2.5rem auto 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.treatment-carousel .carousel-track {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 0.5rem;
    width: 100%;
}

.treatment-card {
    min-width: 280px;
    max-width: 340px;
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}
.treatment-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.04);
}
.treatment-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-primary);
}
.treatment-card p {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    font-weight: 300;
}
.treatment-card .cta-button.primary {
    margin-top: 0.5rem;
}

/* Responsive tweaks mirror isolation carousel */
@media (max-width: 768px) {
    .treatment-card { min-width: 76%; max-width: 76%; }
    .treatment-carousel .carousel-track { gap: 0.75rem; padding: 0; }
    .treatment-carousel .carousel-btn { display: none; }
}
@media (max-width: 480px) {
    .treatment-card img { height: 120px; }
    .treatment-card { min-width: 88%; max-width: 88%; }
}

.founder-carousel {
    width: 100%;
    max-width: 920px;
    margin-top: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.founder-carousel .carousel-track {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 0.5rem;
    width: 100%;
}

.founder-card {
    min-width: 320px;
    max-width: 760px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    display: flex;
    gap: 1rem;
    align-items: center;
    text-align: left;
    flex: 0 0 auto;
}

.founder-card .founder-photo {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-card .founder-photo img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
}

.founder-card .founder-bio h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    color: var(--color-accent);
}

.founder-card .founder-bio p {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.92);
    font-weight: 300;
}

/* Adjust for light backgrounds (Sobre Nós section is dark-bg, but keep resilient) */
#sobre-nos .founder-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
}

/* Responsive: founder cards stack on narrow viewports */
@media (max-width: 768px) {
    .founder-card {
        min-width: 76%;
        max-width: 76%;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .founder-card .founder-photo {
        flex: none;
    }
    .founder-card .founder-photo img {
        width: 140px;
        height: 140px;
    }
    .founder-card .founder-bio h3 { text-align: center; }
    .founder-card .founder-bio p { text-align: center; }
    .founder-carousel .carousel-btn { display: none; }
}

/* FAQ Accordion Styling */
.faq-panel {
    width: 100%;
    max-width: 920px;
    margin: 1.5rem auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}
.faq-question {
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
    padding: 1rem 1rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--color-primary);
}
.faq-question:hover {
    color: var(--color-accent);
}
.faq-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0,0,0,0.04);
    color: var(--color-primary);
    font-weight: 700;
    transition: transform 0.25s ease, background-color 0.2s;
}
.faq-item[data-open="true"] .faq-toggle {
    transform: rotate(45deg);
    background: var(--color-accent);
    color: #fff;
}
.faq-answer {
    padding: 0 1rem 1rem 1rem;
    color: var(--color-text-dark);
    font-weight: 300;
    line-height: 1.6;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.01));
}
@media (max-width: 768px) {
    .faq-question { font-size: 1rem; padding: 0.9rem; }
    .faq-answer { padding: 0.75rem 0.9rem; }
}

/* LAUDOS Section: now uses feature-panel.stacked pattern like Isolamento/Tratamento */
#laudos {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

#laudos .section-title,
#laudos h3,
#laudos p,
#laudos .feature-content {
    color: var(--color-text-light);
}

#laudos .section-title {
    color: var(--color-accent);
    text-align: center;
}

#laudos .feature-content p {
    color: rgba(255,255,255,0.92);
    font-weight: 300;
    max-width: 70ch;
    margin: 0 auto 1rem;
}

/* Replace the horizontal services carousel with a refined responsive grid */
.services-grid {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    padding: 0.5rem;
}

/* Slightly increase card prominence for grid layout */
.services-grid .service-card {
    min-width: auto;
    max-width: none;
    padding: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    text-align: left;
    align-items: flex-start;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* Image in grid cards: refined frame and aspect */
.services-grid .service-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(0,0,0,0.04);
}

/* Title and description tuned for the grid */
.services-grid .service-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem 0;
    color: var(--color-primary);
}
.services-grid .service-card p {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    font-weight: 300;
    line-height: 1.45;
}

/* Interactive hover for desktop */
.services-grid .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(10,20,30,0.08);
}

/* Responsive breakpoints: gracefully reduce columns */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .services-grid .service-card img { height: 150px; }
}
@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; padding: 0; }
    .services-grid .service-card {
        padding: 1rem;
        border-radius: 10px;
        text-align: center;
        align-items: center;
    }
    .services-grid .service-card img {
        width: 92%;
        height: 140px;
        margin: 0 auto 0.75rem;
    }
    .services-grid .service-card h3 { text-align: center; }
    .services-grid .service-card p { text-align: center; }
}

/* Ensure legacy carousel styles do not interfere (hide any leftover buttons) */
.services-carousel .carousel-btn,
.services-carousel .carousel-track { display: none; }

/* New: founder-grid layout to show all cards at once with refined spacing */
.founder-grid {
    width: 100%;
    max-width: 920px;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr; /* stacked vertically */
    gap: 1rem;
    align-items: stretch;
    padding: 0.5rem;
}

/* Slight visual tweak for cards when shown in grid */
.founder-grid .founder-card {
    min-width: auto;
    max-width: none;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    text-align: left;
    align-items: flex-start;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    gap: 1rem;
}

/* On narrow screens stack founder cards and center content */
@media (max-width: 820px) {
    .founder-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }
    .founder-grid .founder-card {
        min-width: auto;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .founder-grid .founder-card .founder-photo img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .founder-grid {
        grid-template-columns: 1fr;
    }
    .founder-grid .founder-card {
        padding: 0.9rem;
    }
    .founder-grid .founder-card .founder-photo img {
        width: 160px;
        height: 160px;
    }
}

/* New: Treatment grid layout (cards visible at once, refined & coherent with site design) */
.treatment-grid {
    width: 100%;
    max-width: 1200px;
    margin: 2.5rem auto 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    padding: 0.5rem;
}

/* Reuse treatment-card visual language but adapt for grid */
.treatment-card {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.treatment-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 0.6rem;
}

.treatment-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-primary);
}

.treatment-card p {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    font-weight: 300;
    line-height: 1.45;
}

.treatment-grid .treatment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(10,20,30,0.08);
}

/* Responsive: 2 columns on medium, 1 column on small */
@media (max-width: 1100px) {
    .treatment-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .treatment-grid { grid-template-columns: 1fr; padding: 0; }
    .treatment-card {
        padding: 0.9rem;
        text-align: center;
        align-items: center;
    }
    .treatment-card img {
        width: 92%;
        height: 140px;
        margin: 0 auto 0.6rem;
    }
    .treatment-card h3 { text-align: center; }
    .treatment-card p { text-align: center; }
}

/* Ensure any leftover carousel button styles don't display for treatment */
.treatment-carousel .carousel-btn { display: none !important; }
.treatment-carousel .carousel-track { display: none !important; }

/* Remove/override carousel-specific layout for laudos and present a refined dark-themed grid */
.laudos-grid {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 0.5rem;
    align-items: stretch;
}

.laudos-grid .laudos-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.03));
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.laudos-grid .laudos-thumb {
    padding: 0.4rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.laudos-grid .laudos-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 20px rgba(0,0,0,0.55);
}

.laudos-grid .laudos-body h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-accent);
}
.laudos-grid .laudos-body p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.92);
    font-weight: 300;
    line-height: 1.45;
}

/* Hover/Focus interactions */
.laudos-grid .laudos-card:hover,
.laudos-grid .laudos-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 34px 80px rgba(0,0,0,0.65);
}

/* Responsive: 2 columns on medium, 1 column on small */
@media (max-width: 1100px) {
    .laudos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .laudos-grid { grid-template-columns: 1fr; gap: 1rem; padding: 0.25rem; }
    .laudos-grid .laudos-thumb img { height: 120px; }
    .laudos-grid .laudos-card { padding: 0.9rem; border-radius: 10px; }
    .laudos-grid .laudos-body p { font-size: 0.92rem; }
}

/* Keep the older .laudos-carousel rules from interfering: hide if still present */
.laudos-carousel { display: none !important; }
.laudos-carousel .carousel-track { display: none !important; }

main {
    padding-top: var(--header-height); /* ensure fixed header does not cover content (hero/title) */
}