/* ==========================================================================
   Dr. Carlos José Cardoso - Personal Website Stylesheet
   Design Language: Premium, Minimalist Medical/Dermatological Excellence
   Colors: Off-White (#FAF8F5), Deep Slate (#0A1F33), Gold/Bronze (#BD9B60)
   Typography: Newsreader (Editorial Serif) & Inter (Modern Sans-Serif)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Variables
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --color-bg: #FAF8F5;          /* Warm elegant off-white */
    --color-bg-alt: #F3F1EC;      /* Soft beige-gray for section contrast */
    --color-primary: #0A1F33;     /* Deep slate blue for main text and solid headers */
    --color-primary-light: #162C42;
    --color-text: #2A3E52;        /* Dark slate grey for body text */
    --color-muted: #627588;       /* Medium grey for tertiary text/subtle labels */
    --color-gold: #BD9B60;        /* Core gold accent */
    --color-gold-light: #D4BC8C;  /* Soft golden/champagne color */
    --color-gold-dark: #A18047;   /* Rich dark gold for contrast */
    --color-white: #FFFFFF;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 90px;
    --header-height-scrolled: 74px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Typography */
    --font-serif: "Newsreader", Georgia, serif;
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 20px rgba(10, 31, 51, 0.04);
    --shadow-md: 0 16px 36px rgba(10, 31, 51, 0.06);
    --shadow-lg: 0 24px 50px rgba(10, 31, 51, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height-scrolled);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Scale */
h1, h2, h3, h4 {
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
}

p {
    margin-bottom: 1.25rem;
}

strong {
    color: var(--color-primary);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(189, 155, 96, 0.35);
}

.btn-highlight-consultorio {
    padding: 16px 38px; /* Preenchimento maior para destaque */
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    animation: btnGlowPulse 3s infinite ease-in-out;
}

@keyframes btnGlowPulse {
    0% {
        box-shadow: 0 4px 15px rgba(189, 155, 96, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 28px rgba(189, 155, 96, 0.6);
        transform: scale(1.03); /* Leve pulsação */
    }
    100% {
        box-shadow: 0 4px 15px rgba(189, 155, 96, 0.2);
        transform: scale(1);
    }
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: rgba(10, 31, 51, 0.15);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Section Common Elements */
section {
    padding: 100px 0;
    position: relative;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-desc {
    color: var(--color-muted);
    font-size: 1.1rem;
    max-width: 680px;
    margin-bottom: 48px;
}

.section-head.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.section-head.center .section-desc {
    margin-bottom: 0;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Custom Background Patterns */
.bg-dots-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(10, 31, 51, 0.025) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

/* Reveal Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 100;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: var(--header-height-scrolled);
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -15px rgba(10, 31, 51, 0.08);
    border-bottom: 1px solid rgba(10, 31, 51, 0.04);
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(189, 155, 96, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-gold);
    background-color: rgba(250, 248, 245, 0.6);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.brand-logo:hover .logo-mark {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1.2;
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-top: 1px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px; /* Destaque inferior de 2px */
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
    font-weight: 600; /* Negrito ao selecionar/hover */
}

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

/* Header CTA Button */
.btn-nav-cta {
    padding: 10px 20px;
    font-size: 0.78rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px;
}

.btn-nav-cta:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    z-index: 110;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.bg-geometric-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.bg-geometric-lines svg {
    width: 100%;
    height: 100%;
    animation: linePulse 16s ease-in-out infinite;
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transição ultra suave para o parallax do mouse */
}

@keyframes linePulse {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translate(25px, -15px) scale(1.04) rotate(0.8deg);
        opacity: 1;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.7;
    }
}

.hero-container {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.hero-circular-logo {
    width: 156px;
    height: 156px;
    position: relative;
}

.rotating-group {
    transform-origin: 100px 100px;
    animation: rotateSlow 25s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.desktop-only {
    display: inline;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.1;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.gold-italic {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-gold);
    font-weight: 300;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text);
    max-width: 640px;
    margin: 0 auto 36px;
    font-weight: 300;
    line-height: 1.7;
}

.hero-specialties {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.hero-specialties .separator {
    color: var(--color-gold-light);
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 44px;
}

.hero-location {
    font-size: 0.82rem;
    color: var(--color-muted);
    letter-spacing: 0.02em;
}

/* Floating Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-gold);
    z-index: 5;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
    color: var(--color-gold-dark);
}

.scroll-indicator .mouse {
    width: 20px;
    height: 32px;
    border: 1.5px solid currentColor;
    border-radius: 10px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 3px;
    height: 6px;
    background-color: currentColor;
    border-radius: 1.5px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s ease-in-out infinite;
}

@keyframes scrollMouse {
    0% { top: 6px; opacity: 0; }
    30% { opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

/* --------------------------------------------------------------------------
   5. Key Stats Band
   -------------------------------------------------------------------------- */
.stats-band {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 50px 0;
    border-top: 1px solid rgba(189, 155, 96, 0.2);
    border-bottom: 1px solid rgba(189, 155, 96, 0.2);
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--color-gold-light);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------------------------------------
   6. Sobre / About Section
   -------------------------------------------------------------------------- */
.about-section {
    background-color: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

/* Doctor Image styling */
.about-image-wrapper {
    position: relative;
}

.image-box {
    position: relative;
    border-radius: 4px;
    overflow: visible;
}

.doctor-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top center; /* Impede que a cabeça seja cortada */
    border-radius: 4px;
    position: relative;
    z-index: 3;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-md);
}

/* Fallback elegant placeholder */
.doctor-photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    box-shadow: var(--shadow-md);
}

.placeholder-content {
    text-align: center;
    color: var(--color-gold-light);
}

.placeholder-initials {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.placeholder-sub {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Visual border outline */
.image-border-decor {
    position: absolute;
    top: 24px;
    left: -24px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-gold);
    border-radius: 4px;
    z-index: 1;
    pointer-events: none;
}

.doctor-title-sub {
    font-size: 1.05rem;
    color: var(--color-gold-dark);
    margin-bottom: 24px;
    font-weight: 500;
}

.bio-text {
    font-weight: 300;
    color: var(--color-text);
    margin-bottom: 30px;
}

.bio-text p {
    margin-bottom: 16px;
}

.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.credentials-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cred-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.credentials-list li span {
    font-size: 0.94rem;
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   7. Procedures Section
   -------------------------------------------------------------------------- */
.procedures-section {
    background-color: var(--color-bg-alt);
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.procedure-card {
    background-color: var(--color-bg);
    border: 1px solid rgba(10, 31, 51, 0.06);
    border-radius: 8px;
    padding: 40px 32px;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.procedure-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(189, 155, 96, 0.3);
}

.card-num {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-gold);
    margin-bottom: 18px;
}

.card-title {
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.card-text {
    font-size: 0.94rem;
    color: var(--color-text);
    font-weight: 300;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-details {
    border-top: 1px solid rgba(10, 31, 51, 0.05);
    padding-top: 16px;
    font-size: 0.78rem;
    color: var(--color-muted);
}

.procedures-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 60px;
    gap: 16px;
}

.procedures-cta p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8. Book Section
   -------------------------------------------------------------------------- */
.book-section {
    background-color: var(--color-bg);
}

.book-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.book-subtitle {
    font-size: 1.1rem;
    color: var(--color-gold-dark);
    margin-bottom: 24px;
}

.book-text p {
    font-weight: 300;
    margin-bottom: 18px;
}

.book-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 36px;
    border-top: 1px solid rgba(10, 31, 51, 0.08);
    padding-top: 30px;
}

.bh-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bh-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-primary);
}

.bh-desc {
    font-size: 0.86rem;
    color: var(--color-muted);
}

/* Book portrait styling */
.book-portrait-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-portrait-frame {
    width: 320px;
    height: 480px;
    position: relative;
    box-shadow: var(--shadow-premium);
    border-radius: 4px;
    z-index: 1;
}

.doctor-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Evita cortar a cabeça */
    border-radius: 4px;
    border: 1px solid rgba(189, 155, 96, 0.2);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.doctor-portrait-frame:hover .doctor-portrait-img {
    transform: scale(1.02);
}

.frame-border {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--color-gold);
    border-radius: 4px;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.doctor-portrait-frame:hover .frame-border {
    transform: translate(-6px, -6px);
}

.book-cta {
    margin-top: 32px;
}



/* --------------------------------------------------------------------------
   9. Clinic / Instituto Section
   -------------------------------------------------------------------------- */
.clinic-section {
    padding: 0; /* Remove padding as the banner is full-width */
}

.clinic-hero-image-band {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.clinic-band-img {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: calc(100% + 120px);
    object-fit: cover;
    object-position: center;
    will-change: transform;
    pointer-events: none;
    z-index: 1;
}

.clinic-band-img-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.clinic-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 31, 51, 0.95) 0%, rgba(10, 31, 51, 0.75) 50%, rgba(10, 31, 51, 0.3) 100%);
    z-index: 2;
}

.clinic-hero-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    color: var(--color-white);
}

.white-gold {
    color: var(--color-gold-light);
}

.clinic-hero-content .section-title.white {
    color: var(--color-white);
}

.clinic-lead-text {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

/* Features grid below image band */
.clinic-details-container {
    position: relative;
    margin-top: -60px; /* Overlap effect */
    z-index: 5;
    padding-bottom: 100px;
}

.clinic-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    background-color: var(--color-bg);
    border: 1px solid rgba(10, 31, 51, 0.06);
    border-radius: 8px;
    padding: 40px 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(189, 155, 96, 0.2);
}

.feat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(189, 155, 96, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.feature-item p {
    font-size: 0.92rem;
    color: var(--color-text);
    font-weight: 300;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials-section {
    background-color: var(--color-bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-bg);
    border: 1px solid rgba(10, 31, 51, 0.05);
    border-radius: 8px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.stars-row {
    color: var(--color-gold);
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.testimonial-quote {
    font-size: 0.94rem;
    color: var(--color-text);
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-card-author {
    border-top: 1px solid rgba(10, 31, 51, 0.05);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.author-info {
    font-size: 0.76rem;
    color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   11. Contact & Map Section
   -------------------------------------------------------------------------- */
.contact-section {
    background-color: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-desc {
    font-weight: 300;
    margin-bottom: 36px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.channel-item {
    display: flex;
    gap: 20px;
}

.ch-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(189, 155, 96, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ch-content h4 {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.ch-link {
    font-size: 1.15rem;
    color: var(--color-primary);
    font-weight: 500;
}

.ch-link:hover {
    color: var(--color-gold);
}

.ch-text {
    font-size: 0.92rem;
    color: var(--color-text);
    font-weight: 300;
    line-height: 1.6;
}

/* Map integration styling */
.contact-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.map-container {
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(10, 31, 51, 0.08);
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border: 0;
}

.map-cta {
    display: flex;
}

.map-cta .btn {
    text-align: center;
    width: 100%;
}

/* --------------------------------------------------------------------------
   12. Footer Section
   -------------------------------------------------------------------------- */
.main-footer {
    background-color: #071727; /* Dark elegant background */
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 30px;
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 48px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-logo-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
}

.brand-logo-footer .logo-mark {
    background-color: transparent;
    color: var(--color-gold-light);
    border-color: rgba(212, 188, 140, 0.4);
}

.logo-text-footer {
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.footer-bio-summary {
    font-weight: 300;
    line-height: 1.6;
}

.clinic-mini-photo {
    width: 160px;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.7;
}

.footer-col h4 {
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--color-gold-light);
    padding-left: 4px;
}

.social-desc {
    font-weight: 300;
    margin-bottom: 18px;
    line-height: 1.6;
}

.social-links-grid {
    display: flex;
    gap: 16px;
}

.social-link {
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    border: 1px solid rgba(212, 188, 140, 0.25);
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

/* Footer Bottom: Ethics & Copyright */
.footer-bottom {
    padding-top: 30px;
}

.ethics-disclaimer {
    font-size: 0.74rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
}

.ethics-disclaimer strong {
    color: rgba(255, 255, 255, 0.75);
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.35);
}

.dev-credits {
    font-style: italic;
}

.morada-link {
    color: var(--color-gold-light); /* Destaque em ouro claro premium */
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border-bottom: 1px dotted rgba(212, 188, 140, 0.4);
    padding-bottom: 1px;
}

.morada-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* --------------------------------------------------------------------------
   13. Sticky Bottom Mobile Action Bar
   -------------------------------------------------------------------------- */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 31, 51, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(189, 155, 96, 0.3);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.sticky-bottom-bar.show {
    transform: translateY(0);
}

.sticky-info {
    display: flex;
    flex-direction: column;
}

.sticky-dr-name {
    font-family: var(--font-serif);
    color: var(--color-white);
    font-size: 0.96rem;
    line-height: 1.2;
}

.sticky-dr-crm {
    font-family: var(--font-sans);
    color: var(--color-gold-light);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.btn-sticky-whatsapp {
    padding: 10px 18px;
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpp-icon-svg {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   14. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Responsive: 1024px and less */
@media (max-width: 1024px) {
    .about-grid, .book-grid, .contact-grid {
        gap: 40px;
    }
    
    .procedures-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   10. Courses & Mentorias Section
   ========================================================================== */
.courses-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-soft);
    border-bottom: 1px solid var(--border-color);
}

.courses-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.courses-tabs {
    display: flex;
    background-color: #f1ede7;
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-muted);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.tab-btn.active {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 31, 51, 0.15);
}

.courses-content {
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.course-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: stretch;
}



.course-info {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-badge {
    align-self: flex-start;
    background: #eae4d9;
    color: var(--color-gold);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.course-info h3 {
    font-family: var(--font-secondary);
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.course-intro {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.course-details-section {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-bottom: 30px;
}

.course-details-section h4 {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.course-curriculum-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.course-curriculum-list li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
}

.course-curriculum-list li::before {
    content: "•";
    color: var(--color-gold);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.course-action-buttons {
    margin-top: 20px;
}

/* Mentoria VIP Gold Card styling */
.course-mentorship-box {
    background: linear-gradient(145deg, rgba(32, 64, 100, 0.75) 0%, rgba(18, 38, 60, 0.85) 100%);
    border: 1px solid rgba(189, 155, 96, 0.4);
    padding: 50px 40px;
    border-radius: 12px;
    color: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.course-mentorship-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/dr-carlos-laser-co2.jpg');
    background-size: cover;
    background-position: center 25%;
    opacity: 0.22; /* Visibilidade da foto aumentada */
    z-index: 1;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
}

.course-mentorship-box:hover::before {
    transform: scale(1.06);
    opacity: 0.32;
}

.course-mentorship-box > * {
    position: relative;
    z-index: 2; /* Mantém todo o conteúdo acima da foto */
}

.course-mentorship-box::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(189, 155, 96, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.mentorship-header {
    margin-bottom: 30px;
}

.vip-tag {
    display: inline-block;
    color: var(--color-gold);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.course-mentorship-box h3 {
    font-family: var(--font-secondary);
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
}

.mentorship-desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.mentorship-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.mentorship-perks li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
}

.mentorship-perks li::before {
    content: "✓";
    color: var(--color-gold);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.btn-gold-metallic {
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    border: 1px solid #aa7c11;
    color: #fff !important;
}

.btn-gold-metallic:hover {
    background: linear-gradient(135deg, #aa7c11 0%, #d4af37 100%);
    box-shadow: 0 5px 15px rgba(189, 155, 96, 0.4);
}

/* ==========================================================================
   11. Paciente Modelo Section
   ========================================================================== */
.model-patient-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.model-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-card {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(189, 155, 96, 0.5);
}

.benefit-icon-box {
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #eae4d9;
    border-radius: 50%;
}

.benefit-card h3 {
    font-family: var(--font-secondary);
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.benefit-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.model-cta-block {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
}

.model-cta-block p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* ==========================================================================
   12. Patient Form Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 31, 51, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #061220; /* Fundo azul escuro premium */
    border: 1px solid rgba(189, 155, 96, 0.3); /* Borda dourada sutil */
    color: #fff; /* Fontes principais claras */
    border-radius: 12px;
    width: 90%;
    max-width: 580px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.5); /* Close cinza suave */
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-header h3 {
    font-family: var(--font-secondary);
    font-size: 26px;
    color: #fff; /* Título em branco */
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7); /* Subtítulo cinza claro */
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.modal-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9); /* Rótulo claro */
    margin-bottom: 8px;
}

.modal-form input[type="text"],
.modal-form input[type="tel"],
.modal-form input[type="number"],
.modal-form input[type="date"],
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Borda escura mais sutil */
    background-color: rgba(255, 255, 255, 0.04); /* Fundo translúcido escuro */
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #fff; /* Texto em branco */
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: rgba(255, 255, 255, 0.08); /* Foco translúcido leve */
    box-shadow: 0 0 0 3px rgba(189, 155, 96, 0.25);
}

.modal-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BD9B60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.form-disclaimer {
    margin: 20px 0 25px 0;
}

.form-disclaimer p {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5); /* Cinza sutil */
    font-style: italic;
}

.width-full {
    width: 100%;
}

/* Tablet and small desktops header adjustment to prevent crowding */
@media (min-width: 769px) and (max-width: 1200px) {
    .nav-list {
        gap: 12px;
    }
    .nav-link {
        font-size: 0.75rem;
    }
    .brand-logo {
        gap: 8px;
    }
    .logo-name {
        font-size: 0.95rem;
    }
    .logo-sub {
        font-size: 0.54rem;
        letter-spacing: 0.18em;
    }
    .btn-nav-cta {
        padding: 8px 14px;
        font-size: 0.74rem;
    }
}

/* Responsive: 768px (Mobile & Tablet) */
@media (max-width: 768px) {
    :root {
        --header-height: 74px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .desktop-only {
        display: none;
    }
    
    /* Compact brand logo for mobile */
    .logo-name {
        font-size: 0.92rem;
    }
    .logo-sub {
        font-size: 0.54rem;
        letter-spacing: 0.18em;
    }
    .logo-mark {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    .brand-logo {
        gap: 8px;
    }
    
    /* Hide desktop CTA on mobile */
    .header-actions .btn-nav-cta {
        display: none;
    }
    
    /* Navigation toggle */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg);
        z-index: 105;
        padding: 40px 24px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        border-top: 1px solid rgba(10, 31, 51, 0.05);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        pointer-events: none;
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    /* Mobile menu open animation state for toggle button */
    .mobile-toggle.open .bar1 {
        transform: translateY(6.5px) rotate(45deg);
    }
    
    .mobile-toggle.open .bar2 {
        opacity: 0;
    }
    
    .mobile-toggle.open .bar3 {
        transform: translateY(-6.5px) rotate(-45deg);
    }
    
    /* Hero Section adjust */
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-specialties {
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-cta-group .btn {
        width: 100%;
    }
    
    /* Grid structures to single column */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }
    
    .about-grid, .book-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrapper {
        order: -1; /* Image always on top in mobile */
        max-width: 440px;
        margin: 0 auto;
        width: 100%;
    }
    
    .image-border-decor {
        top: 16px;
        left: -16px;
    }
    
    .procedures-grid, .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .book-mockup-wrapper {
        order: -1;
        max-width: 250px;
        margin: 0 auto;
    }
    
    /* Clinic Band Adjust */
    .clinic-hero-image-band {
        height: 380px;
    }
    
    .clinic-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .clinic-details-container {
        margin-top: -40px;
        padding-bottom: 70px;
    }
    
    /* Footer layout */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-copyright {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-bottom {
        padding-bottom: 60px; /* Space for the sticky bottom bar */
    }
    
    /* Courses Mobile overrides */
    .courses-section {
        padding: 60px 0;
    }
    
    .courses-tabs {
        flex-direction: column;
        width: 100%;
        border-radius: 12px;
        padding: 4px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
        text-align: center;
        width: 100%;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .course-info {
        padding: 30px 20px;
    }
    
    .course-info h3 {
        font-size: 24px;
    }
    
    .course-curriculum-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .course-mentorship-box {
        padding: 35px 25px;
    }
    
    .course-mentorship-box h3 {
        font-size: 22px;
    }
    
    /* Paciente Modelo Mobile overrides */
    .model-patient-section {
        padding: 60px 0;
    }
    
    .model-benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 30px 20px;
    }
    
    /* Modal mobile overrides */
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   Multi-Step Triagem Form Styles (Aplica a todas as telas)
   ========================================================================== */

/* Progress Indicator for Modal Steps */
.modal-steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(10, 31, 51, 0.06);
    padding-bottom: 20px;
}

.step-indicator {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.step-indicator span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-soft);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-indicator.active {
    color: var(--color-primary);
    font-weight: 600;
}

.step-indicator.active span {
    border-color: var(--color-gold);
    background-color: var(--color-gold);
    color: #fff;
}

.step-indicator.completed span {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: #fff;
}

.step-indicator-line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
    margin: 0 15px;
}

/* Steps elements */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInStep 0.4s ease forwards;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff; /* Título da etapa em branco */
    margin-bottom: 15px;
    border-left: 3px solid var(--color-gold);
    padding-left: 10px;
}

.step-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7); /* Descrição da etapa em cinza claro */
    line-height: 1.5;
    margin-bottom: 25px;
}

.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Linha divisória fina */
    padding-top: 20px;
}

.step-actions .btn {
    padding: 10px 24px;
    font-size: 13px;
}

/* Radio & Checkbox layouts */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 6px;
    margin-bottom: 8px;
}

.radio-group.inline {
    display: inline-flex;
    margin: 0 15px 0 10px;
}

.radio-group label,
.checkbox-list label,
.checkbox-grid-2 label,
.checkbox-grid-3 label {
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9); /* Rótulo claro legível */
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 0;
}

.radio-group input[type="radio"],
.checkbox-list input[type="checkbox"],
.checkbox-grid-2 input[type="checkbox"],
.checkbox-grid-3 input[type="checkbox"] {
    accent-color: var(--color-gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.checkbox-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 12px;
}

/* Dynamic details text input */
.details-input {
    display: none;
    margin-top: 10px !important;
    animation: slideDownInput 0.3s ease forwards;
}

@keyframes slideDownInput {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Diabetes block */
.diabetes-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    margin-top: 15px;
}

.diabetes-control {
    display: none;
    align-items: center;
    animation: fadeInStep 0.3s ease forwards;
}

/* Conditional specific fields section */
.conditional-fields-group {
    background-color: rgba(189, 155, 96, 0.05);
    border: 1px solid rgba(189, 155, 96, 0.25);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    animation: fadeInStep 0.4s ease forwards;
}

.field-sub-note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 6px;
}

.consent-list label {
    align-items: flex-start;
    line-height: 1.4;
}

.consent-list input[type="checkbox"] {
    margin-top: 2px;
}

/* Form validation styling */
.modal-form input:invalid:focus {
    border-color: #d9534f;
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.15);
}

/* Overrides para Telas Menores (580px) */
@media (max-width: 580px) {
    .modal-steps-indicator {
        padding-bottom: 12px;
        margin-bottom: 20px;
    }
    .step-indicator {
        font-size: 0; /* Oculta o texto descritivo no celular */
    }
    .step-indicator span {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .checkbox-grid-2,
    .checkbox-grid-3 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .diabetes-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .radio-group {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Reduced Motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
