/* =====================================================
   DR. EDUARDO ABDALA — CIRURGIÃO DE COLUNA
   Sistema de Design · Brasília-DF
   ===================================================== */

/* ── Variáveis de Design ── */
:root {
    --color-graphite:    #2D2D2D;
    --color-graphite-90: #1a1a1a;
    --color-red:         #C8102E;
    --color-red-dark:    #a50d26;
    --color-red-light:   rgba(200, 16, 46, 0.08);
    --color-white:       #FFFFFF;
    --color-off-white:   #F8F8F8;
    --color-light-gray:  #F2F2F2;
    --color-mid-gray:    #999999;
    --color-border:      #E8E8E8;
    --color-text:        #2D2D2D;
    --color-text-light:  #666666;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
    --shadow-red: 0 8px 30px rgba(200,16,46,0.25);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ── Animações de entrada ── */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="fade-left"] {
    transform: translateX(40px);
}
[data-animate="fade-right"] {
    transform: translateX(-40px);
}
[data-animate].is-visible {
    opacity: 1;
    transform: none;
}

/* =====================================================
   BOTÕES
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-red);
    color: var(--color-white);
    box-shadow: var(--shadow-red);
}
.btn-primary:hover {
    background: var(--color-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(200,16,46,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-white);
}

.btn-full { width: 100%; justify-content: center; }

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    border-radius: 8px;
    padding: 4px 10px;
    transition: background var(--transition);
}
.nav-logo img {
    height: 72px;
    width: auto;
    filter: invert(1) hue-rotate(180deg);
}
.navbar.scrolled .nav-logo img {
    filter: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: 50px;
    transition: all var(--transition);
}
.nav-link:hover {
    color: var(--color-white);
    background: rgba(255,255,255,0.12);
}
.navbar.scrolled .nav-link {
    color: var(--color-graphite);
}
.navbar.scrolled .nav-link:hover {
    color: var(--color-red);
    background: var(--color-red-light);
}

.nav-cta {
    padding: 0.625rem 1.5rem;
    background: var(--color-red);
    color: var(--color-white) !important;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: var(--shadow-red);
}
.nav-cta:hover {
    background: var(--color-red-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition);
}
.navbar.scrolled .nav-toggle span {
    background: var(--color-graphite);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(29,29,29,0.92) 0%, rgba(45,45,45,0.85) 60%, rgba(29,29,29,0.95) 100%);
    background-color: var(--color-graphite-90);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(200,16,46,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(20,20,20,0.7) 0%, transparent 70%);
}

.hero-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px var(--space-lg) 80px;
    position: relative;
    z-index: 1;
}

/* Marca d'água grande de fundo */
.hero-bg-watermark {
    position: absolute;
    right: -4%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.hero-wm-crop {
    width: 680px;
    height: 400px;
    overflow: hidden;
    opacity: 0.04;
    filter: invert(1);
}

.hero-wm-crop img {
    width: 680px;
    height: auto;
    display: block;
}

/* EA Mark destaque no Hero */
.hero-ea-mark {
    display: inline-block;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(200,16,46,0.4),
        0 20px 60px rgba(0,0,0,0.5),
        0 0 80px rgba(200,16,46,0.15);
    position: relative;
}

.hero-ea-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid rgba(200,16,46,0.3);
    pointer-events: none;
}

.hero-ea-crop {
    width: 260px;
    height: 152px;
    overflow: hidden;
    background: var(--color-graphite-90);
}

.hero-ea-crop img {
    width: 260px;
    height: auto;
    display: block;
    filter: invert(1) hue-rotate(180deg);
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 1.25rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(200,16,46,0.4);
    border-radius: 50px;
    background: rgba(200,16,46,0.08);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}
.hero-title em {
    font-style: italic;
    color: var(--color-red);
}

.hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2.25rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.stat { display: flex; flex-direction: column; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.25rem;
    line-height: 1.3;
}
.stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* Hero Image */
.hero-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.08);
}

.hero-photo-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(200,16,46,0.4), transparent 50%);
    z-index: 0;
}

.hero-photo {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: top center;
    position: relative;
    z-index: 1;
    border-radius: inherit;
    display: block;
}

.hero-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20,20,20,0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200,16,46,0.3);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.5rem;
    text-align: center;
    white-space: nowrap;
    z-index: 2;
}
.hero-badge-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-red);
}
.hero-badge-subs {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.15rem;
}

/* Hero Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
    transition: color var(--transition);
}
.hero-scroll-hint:hover { color: rgba(255,255,255,0.7); }

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* =====================================================
   SHARED SECTION STYLES
   ===================================================== */
section { padding: var(--space-3xl) 0; }

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 1rem;
}
.section-eyebrow.light { color: rgba(200,16,46,0.8); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-graphite);
    margin-bottom: 1.25rem;
}
.section-title.centered { text-align: center; }
.section-title.light { color: var(--color-white); }
.section-title em {
    font-style: italic;
    color: var(--color-red);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* =====================================================
   SOBRE / ABOUT
   ===================================================== */
.about { background: var(--color-white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-images {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.about-img-main {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.about-img-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top;
    transition: transform var(--transition-slow);
}
.about-img-main:hover img { transform: scale(1.03); }

.about-img-surgery {
    width: 200px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}
.about-img-surgery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.about-img-surgery:hover img { transform: scale(1.03); }

.about-img-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem 0.75rem 0.75rem;
    background: linear-gradient(to top, rgba(20,20,20,0.9), transparent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.85);
    text-align: center;
}

.about-content { }

.about-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}
.about-text strong { color: var(--color-graphite); font-weight: 600; }

.about-quote {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-style: italic;
    color: var(--color-graphite);
    line-height: 1.65;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-left: 3px solid var(--color-red);
    background: var(--color-light-gray);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.75rem 0;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.75rem;
}

.credential {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.credential-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-red);
    flex-shrink: 0;
    margin-top: 0.4rem;
}

.credential-body strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-graphite);
    line-height: 1.3;
}
.credential-body span {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}
.lattes-link {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-red);
    margin-top: 0.15rem;
    transition: letter-spacing var(--transition);
}
.lattes-link:hover { letter-spacing: 0.02em; }

/* =====================================================
   PROCEDIMENTOS
   ===================================================== */
.procedures { background: var(--color-off-white); }

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

.proc-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.proc-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--color-red);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.proc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.proc-card:hover::after { transform: scaleX(1); }

.proc-card.featured {
    background: var(--color-graphite-90);
    border-color: transparent;
    color: var(--color-white);
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}
.proc-card.featured::after {
    background: var(--color-red);
    transform: scaleX(1);
    height: 4px;
}
.proc-card.featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.proc-featured-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-red);
    background: rgba(200,16,46,0.12);
    border: 1px solid rgba(200,16,46,0.3);
    border-radius: 50px;
    padding: 0.3rem 0.875rem;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.proc-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    color: var(--color-red);
}
.proc-icon svg {
    width: 100%;
    height: 100%;
}

.proc-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--color-graphite);
}
.proc-card.featured h3 {
    font-size: 1.625rem;
    color: var(--color-white);
}

.proc-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
    flex: 1;
}
.proc-card.featured p {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
}

.proc-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-red);
    transition: gap var(--transition);
}
.proc-link:hover { letter-spacing: 0.03em; }

/* =====================================================
   TECNOLOGIA ROBÓTICA
   ===================================================== */
.robotics { background: var(--color-off-white); }

.robotics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.robotics-image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.robotics-image-wrap img,
.robotics-video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}
.robotics-image-wrap:hover img,
.robotics-image-wrap:hover .robotics-video { transform: scale(1.03); }

.robotics-img-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--color-red);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-red);
}

.robotics-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}
.robotics-text strong { color: var(--color-graphite); font-weight: 600; }

.robotics-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.robotics-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.robotics-benefit:hover {
    border-color: var(--color-red);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.robotics-benefit strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-graphite);
    margin-bottom: 0.2rem;
}
.robotics-benefit p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .robotics-grid { grid-template-columns: 1fr; gap: 3rem; }
    .robotics-image-wrap img,
    .robotics-video { height: 320px; }
}

/* =====================================================
   DEFORMIDADES
   ===================================================== */
.deformities {
    padding: 0;
    background: var(--color-graphite-90);
    position: relative;
    overflow: hidden;
}

.deformities::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(200,16,46,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.deformities-inner {
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 1;
}

.deformities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.deformities-content { }

.deformities-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.68);
    margin-bottom: 2rem;
}
.deformities-text strong { color: rgba(255,255,255,0.9); }

.deformities-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.deformities-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.def-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-red);
    flex-shrink: 0;
    margin-top: 0.45rem;
    box-shadow: 0 0 10px rgba(200,16,46,0.5);
}

.deformities-list li strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}
.deformities-list li p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0;
}

.deformities-image-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.deformities-image-wrap img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}
.deformities-image-wrap:hover img { transform: scale(1.03); }

.deformities-img-note {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.5rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(10,10,10,0.92), transparent);
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

/* =====================================================
   HOSPITAIS
   ===================================================== */
.hospitals { background: var(--color-white); }

.hospitals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hospital-card {
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    position: relative;
    transition: all var(--transition);
    overflow: hidden;
}

.hospital-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--color-border);
    transition: background var(--transition);
}

.hospital-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
    background: var(--color-white);
    transform: translateY(-4px);
}
.hospital-card:hover::before { background: var(--color-red); }

.hospital-card.premium {
    background: var(--color-graphite-90);
    border-color: transparent;
    color: var(--color-white);
}
.hospital-card.premium::before { background: var(--color-red); }
.hospital-card.premium:hover { background: var(--color-graphite); }

.hospital-card.sus {
    border-color: rgba(200,16,46,0.2);
}
.hospital-card.sus::before { background: var(--color-red); }

.hospital-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-red);
    background: rgba(200,16,46,0.12);
    border: 1px solid rgba(200,16,46,0.3);
    border-radius: 50px;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1rem;
    width: fit-content;
}

.sus-badge {
    color: var(--color-red);
}

.hospital-icon {
    width: 40px;
    height: 40px;
    color: var(--color-red);
    margin-bottom: 1rem;
}
.hospital-icon svg { width: 100%; height: 100%; }

.hospital-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-graphite);
    margin-bottom: 0.25rem;
}
.hospital-card.premium h3 { color: var(--color-white); }

.hospital-city {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-red);
    margin-bottom: 0.75rem;
}

.hospital-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}
.hospital-card.premium .hospital-desc { color: rgba(255,255,255,0.55); }

.hospital-phone {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-graphite);
    margin-top: 0.5rem;
}

.hospital-cta {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-red);
    margin-top: 0.75rem;
    transition: letter-spacing var(--transition);
}
.hospital-cta:hover { letter-spacing: 0.03em; }

/* =====================================================
   GALERIA
   ===================================================== */
.gallery { background: var(--color-off-white); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item.large-h {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.gallery-item.large img { height: 340px; }
.gallery-item.large-h img { height: 280px; }

.gallery-item:hover img { transform: scale(1.04); }

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(20,20,20,0.85), transparent);
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
    transform: translateY(4px);
    opacity: 0;
    transition: all var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-item.large,
    .gallery-item.large-h {
        grid-column: span 2;
    }
    .gallery-item img,
    .gallery-item.large img,
    .gallery-item.large-h img { height: 220px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.large,
    .gallery-item.large-h { grid-column: auto; }
}

/* =====================================================
   CONVÊNIOS
   ===================================================== */
.insurance { background: var(--color-off-white); }

.insurance-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.insurance-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 0.625rem 1.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-graphite);
    transition: all var(--transition);
}
.insurance-item:hover {
    border-color: var(--color-red);
    color: var(--color-red);
    background: var(--color-red-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.insurance-item.highlight {
    background: var(--color-graphite-90);
    color: var(--color-white);
    border-color: transparent;
}
.insurance-item.highlight:hover {
    background: var(--color-graphite);
    color: var(--color-white);
}
.insurance-item.muted {
    background: transparent;
    color: var(--color-mid-gray);
    border-style: dashed;
}

.insurance-note {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.65;
}

/* =====================================================
   CONTATO
   ===================================================== */
.contact { background: var(--color-white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: flex-start;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-off-white);
    transition: all var(--transition);
    color: var(--color-graphite);
}

.contact-channel:hover {
    border-color: var(--color-red);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.contact-channel.whatsapp {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.contact-channel.whatsapp:hover {
    background: #dcfce7;
    border-color: #4ade80;
    box-shadow: 0 4px 20px rgba(74,222,128,0.2);
}

.channel-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white);
}
.channel-icon svg { width: 22px; height: 22px; }
.channel-icon.whatsapp { background: #22c55e; }
.channel-icon.phone { background: var(--color-graphite); }
.channel-icon.insta { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.contact-channel.whatsapp .channel-icon {
    background: #22c55e;
}

.channel-info { display: flex; flex-direction: column; gap: 0.15rem; }
.channel-info strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-graphite);
}
.channel-info span {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-graphite);
}
.channel-info em {
    font-style: normal;
    font-size: 0.8125rem;
    color: var(--color-mid-gray);
}

/* Form */
.contact-form {
    background: var(--color-off-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-graphite);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-graphite);
    background: var(--color-white);
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-mid-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}

.form-group select { cursor: pointer; }

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

.form-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-mid-gray);
    margin-top: 1rem;
    line-height: 1.5;
}

/* Form Success */
.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}
.form-success.visible { display: block; }
.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-graphite);
    margin-bottom: 0.5rem;
}
.form-success p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--color-graphite-90);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: invert(1) hue-rotate(180deg);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    max-width: 300px;
    margin-bottom: 1.25rem;
}

.footer-insta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}
.footer-insta:hover { color: var(--color-white); }

.footer-nav h4,
.footer-contact h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-nav a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-white); }

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-contact li {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.3);
}
.footer-disclaimer { font-style: italic; }
.footer-bottom p.footer-crm {
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.hero-badge-crm {
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
    margin-top: 0.2rem;
}

/* =====================================================
   WHATSAPP FLUTUANTE
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 30px rgba(37,211,102,0.45);
    z-index: 99;
    transition: all var(--transition);
    animation: waPulse 3s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: var(--color-white);
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 40px rgba(37,211,102,0.55);
    animation: none;
}

.float-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: var(--color-graphite-90);
    color: var(--color-white);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    opacity: 0;
    transform: translateX(8px);
    transition: all var(--transition);
    pointer-events: none;
}
.float-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--color-graphite-90);
}

.whatsapp-float:hover .float-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 6px 30px rgba(37,211,102,0.45); }
    50% { box-shadow: 0 6px 40px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* =====================================================
   RESPONSIVIDADE
   ===================================================== */
@media (max-width: 1100px) {
    .proc-grid { grid-template-columns: repeat(2, 1fr); }
    .proc-card.featured { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 900px) {
    :root {
        --space-3xl: 5rem;
        --space-xl: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 140px;
        text-align: center;
    }
    .hero-content { order: 2; }
    .hero-image-wrap { order: 1; }

    .hero-subtitle { margin: 0 auto 2.25rem; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }

    .hero-photo-frame { max-width: 320px; margin: 0 auto; }
    .hero-photo { height: 360px; }

    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-img-main img { height: 380px; }
    .about-img-surgery { width: 160px; }
    .about-img-surgery img { height: 200px; }

    .deformities-grid { grid-template-columns: 1fr; gap: 3rem; }
    .deformities-image-wrap img { height: 360px; }

    .hospitals-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-brand { grid-column: span 2; }

    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: var(--color-graphite-90);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0.25rem;
        transition: right var(--transition);
        z-index: 99;
        box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    }
    .nav-menu.open { right: 0; }
    .nav-menu li { width: 100%; }
    .nav-link,
    .navbar.scrolled .nav-link { color: rgba(255,255,255,0.75); padding: 0.875rem 1rem; width: 100%; display: block; border-radius: var(--radius-sm); }
    .navbar.scrolled .nav-link:hover { color: var(--color-white); background: rgba(255,255,255,0.08); }
    .nav-cta { display: block; }
    .nav-cta { margin-top: 0.5rem; text-align: center; }
    .nav-toggle { display: flex; z-index: 100; position: relative; }

    .navbar .nav-toggle span { background: var(--color-white); }
    .navbar.scrolled .nav-toggle span { background: var(--color-graphite); }

    .navbar .nav-toggle.active span { background: var(--color-white); }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 600px) {
    .proc-grid { grid-template-columns: 1fr; }
    .proc-card.featured { grid-column: auto; }
    .hospitals-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; align-items: center; gap: 1rem; }
    .stat-sep { width: 40px; height: 1px; }
    .about-images { flex-direction: column; }
    .about-img-surgery { width: 100%; }
    .about-img-surgery img { height: 220px; }
    .container { padding: 0 1.25rem; }
    .contact-form { padding: 1.75rem 1.25rem; }
    .whatsapp-float { bottom: 1.25rem; right: 1.25rem; }
}
