:root {
    /* Colors */
    --bg-dark: #313841;
    /* Main Background */
    --bg-card: #3a424c;
    /* Slightly lighter for cards (derived for contrast) */
    --text-primary: #FFFFFF;
    --text-secondary: #d1d5db;
    /* Light grey for better contrast on dark bg */
    --neutral: #5A6067;
    /* User provided grey - good for borders/subtle text */

    --primary: #EA9216;
    /* Orange */
    --primary-dim: rgba(234, 146, 22, 0.15);
    --secondary: #A76200;
    /* Darker Orange */
    --accent: #FFFFFF;

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --container-padding: 2rem;
    --section-gap: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
.logo,
.nav-link {
    font-family: var(--font-heading);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary);
}

.section {
    padding: var(--section-gap) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-dim);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid var(--primary-dim);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Premium Button Styles */
.btn-primary {
    background: linear-gradient(90deg, var(--primary) 0%, #ffaa33 50%, var(--primary) 100%);
    background-size: 200% auto;
    color: #fff;
    border: none;
    box-shadow: 0 0 15px rgba(234, 146, 22, 0.4);
    transition: all 0.4s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    background-position: right center; /* change the direction of the change here */
    box-shadow: 0 0 25px rgba(234, 146, 22, 0.7);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    margin-left: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: transparent;
    transition: all 0.4s ease;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline:hover::before {
    left: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(49, 56, 65, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
}

/* Header escuro para páginas internas */
.header.dark {
    background: rgba(49, 56, 65, 0.95);
    backdrop-filter: blur(15px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.btn-prominent {
    padding: 0.5rem 1.25rem;
    background: var(--primary-dim);
    color: var(--primary);
    border-radius: 6px;
    border: 1px solid var(--primary-dim);
}

.btn-prominent:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.mobile-menu-btn {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    background: linear-gradient(rgba(49, 56, 65, 0.7), rgba(49, 56, 65, 0.75)), url('../../assets/img/bg_guia_medico_home-02-01.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Fade out effect at the bottom of Hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    z-index: 1;
    pointer-events: none;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind content */
}

/* Organic Neon Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.2;
    z-index: 0;
    mix-blend-mode: screen;
    will-change: transform, opacity, filter;
}

.orb-1 {
    top: -5%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, var(--secondary) 40%, rgba(167, 98, 0, 0) 70%);
    animation: floatOrganic1 12s infinite ease-in-out, pulse1 4s infinite ease-in-out;
}

.orb-2 {
    bottom: -5%;
    left: 0%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #ffaa33 0%, var(--primary) 35%, rgba(234, 146, 22, 0) 65%);
    animation: floatOrganic2 15s infinite ease-in-out, pulse2 5s infinite ease-in-out;
}

@keyframes floatOrganic1 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(-40px, 30px) scale(1.1) rotate(5deg);
    }
    50% {
        transform: translate(20px, 60px) scale(0.95) rotate(-3deg);
    }
    75% {
        transform: translate(-20px, 20px) scale(1.05) rotate(2deg);
    }
}

@keyframes floatOrganic2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(50px, -40px) scale(1.15) rotate(-5deg);
    }
    50% {
        transform: translate(-30px, -70px) scale(0.9) rotate(4deg);
    }
    75% {
        transform: translate(30px, -30px) scale(1.08) rotate(-2deg);
    }
}

@keyframes pulse1 {
    0%, 100% {
        opacity: 0.25;
        filter: blur(160px);
    }
    50% {
        opacity: 0.35;
        filter: blur(140px);
    }
}

@keyframes pulse2 {
    0%, 100% {
        opacity: 0.2;
        filter: blur(165px);
    }
    50% {
        opacity: 0.3;
        filter: blur(145px);
    }
}

/* Grid Overlay - Restored */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; /* Slightly larger grid */
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    position: relative;
    z-index: 2; /* In front of grid */
}

.hero-content {
    max-width: 900px; /* Wider to allow big text */
}

/* Typography Overrides for Hero */
.hero-title {
    font-size: 5rem; /* Massive text */
    line-height: 1;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.text-white {
    color: #fff;
}

.text-highlight {
    color: var(--primary);
}

.hero-description {
    font-size: 1.25rem;
    max-width: 500px;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

.eyebrow {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Outline Button Style (formerly Link Button) */
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    background: transparent;
    text-decoration: none;
}

.btn-link:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-bg-elements {
        display: none; 
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Adjusted for 2 cards */
    gap: 2rem;
    max-width: 900px; /* Limit width nicely */
    margin: 0 auto; /* Center the grid */
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-icon {
    width: 50px;
    height: 50px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Service List inside Cards */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

.segments-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.segment-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-dim);
    color: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(234, 146, 22, 0.2);
}

.segment-badge:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(234, 146, 22, 0.4);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.highlight-item .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--primary);
}

.highlight-item span:last-child {
    font-weight: 500;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}

.full-width {
    width: 100%;
}

/* Footer */
.site-footer {
    padding: 4rem 0 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 6rem;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.brand-col {
    padding-right: 2rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.contact-li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.icon-small {
    color: var(--primary);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--primary-dim);
}

.badge-new {
    font-size: 0.7rem;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.legal-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Google Material Icons Adjustment */
.icon-adjust {
    vertical-align: middle;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary); /* Brand highlight color */
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 25, 0.85);
    border-top: 2px solid var(--primary);
    padding: 2rem 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(15px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #ffaa33;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-outline-cookie {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-cookie:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(234, 146, 22, 0.1);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Footer Responsive */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .brand-col {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, 40px);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        z-index: 99;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* Hidden by default */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 3rem;
        height: 100%;
        justify-content: center;
    }

    .nav-link {
        font-size: 1.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
        height: 24px;
        width: 30px;
        position: relative;
        cursor: pointer;
        background: none;
        border: none;
        z-index: 100; /* Above nav overlay */
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background: white;
        position: absolute;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn span:nth-child(1) { top: 0; }
    .mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .mobile-menu-btn span:nth-child(3) { bottom: 0; }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 50%;
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 50%;
        bottom: auto;
    }
    
    /* Layout Adjustments */
    .hero-title {
        font-size: 3rem; /* Smaller than desktop 5rem */
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Background Adjustments */
    .hero-bg-elements {
        overflow: hidden;
    }

    .orb {
        filter: blur(80px); /* Reduce blur slightly for performance/visuals */
        opacity: 0.2;
    }

    .orb-1 {
        width: 300px;
        height: 300px;
        top: -10%;
        right: -20%;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
        bottom: 0%;
        left: -20%;
    }
}

/* Login Button */
.btn-login {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle background */
    color: var(--text-secondary);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-login:hover {
    background: var(--bg-card);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-login svg {
    transition: transform 0.3s ease;
}

.btn-login:hover svg {
    transform: translateX(2px);
}