/* ================================================================
   CLÍNICA CHAN TAO — style.css
   Cores: bg #FFFFFF, detalhes #412918 (marrom), #d04936 (vermelho)
   ================================================================ */

:root {
    --brown:       #412918;
    --brown-soft:  #5A3A22;
    --red:         #d04936;
    --red-dark:    #B53D2C;
    --gold:        #C9A84C;
    --bg:          #FFFFFF;
    --bg-tint:     #FBF8F5;
    --bg-warm:     #F5EDE6;
    --text:        #1C1817;
    --text-mid:    #3D3330;
    --text-soft:   #7A6E68;
    --text-dim:    #A89E98;
    --border:      #E8DEDA;
    --border-soft: #F2EBE6;

    --font-h: 'Cormorant Garamond', Georgia, serif;
    --font-b: 'Lato', system-ui, sans-serif;

    --header-h: 72px;
    --container: 1200px;
    --pad: 1.5rem;

    --t-fast: 150ms ease;
    --t-base: 260ms ease;
    --t-slow: 420ms ease;

    --shadow-sm: 0 1px 4px rgba(65,41,24,0.06);
    --shadow-md: 0 4px 20px rgba(65,41,24,0.10);
    --shadow-lg: 0 8px 40px rgba(65,41,24,0.13);
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

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

body.is-loading { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t-base); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; font-size: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}

section { padding-block: 7rem; }
.section-tinted { background: var(--bg-tint); }

/* ---- TIPOGRAFIA ---- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
}

.section-tag::before {
    content: '';
    display: block;
    width: 20px; height: 1px;
    background: var(--red);
    flex-shrink: 0;
}

.tag-light { color: rgba(255,255,255,0.7); }
.tag-light::before { background: rgba(255,255,255,0.5); }

.section-title {
    font-family: var(--font-h);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 580px;
    line-height: 1.85;
}

.section-header { margin-bottom: 4rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-tag { justify-content: center; }
.section-header.centered .section-tag::before { display: none; }
.section-header.centered .section-tag::after {
    content: '';
    display: block;
    width: 20px; height: 1px;
    background: var(--red);
    flex-shrink: 0;
}
.section-header.centered .section-desc { margin-inline: auto; }
.section-cta { text-align: center; margin-top: 3.5rem; }

/* ---- BOTÕES ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.9rem 2rem;
    font-family: var(--font-b);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 3px;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base), transform var(--t-fast);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--brown);
    color: #fff;
    border-color: var(--brown);
}
.btn-primary:hover {
    background: var(--brown-soft);
    border-color: var(--brown-soft);
    box-shadow: 0 4px 20px rgba(65,41,24,0.3);
}

.btn-hero-primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    padding: 1rem 2.2rem;
    font-size: 0.8rem;
}
.btn-hero-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    box-shadow: 0 4px 24px rgba(208,73,54,0.4);
}

.btn-hero-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
    padding: 1rem 2.2rem;
    font-size: 0.8rem;
}
.btn-hero-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}

.btn-cta-wa {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
    padding: 1rem 2.4rem;
    font-size: 0.85rem;
}
.btn-cta-wa:hover {
    background: #1fbe5a;
    border-color: #1fbe5a;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}

.btn-form-submit {
    width: 100%;
    background: var(--brown);
    color: #fff;
    border-color: var(--brown);
    padding: 1rem;
    font-size: 0.9rem;
}
.btn-form-submit:hover {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 4px 20px rgba(208,73,54,0.3);
}

/* ---- LOADING SCREEN ---- */
#loadingScreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loadingScreen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: loaderIn 0.5s ease both;
}
@keyframes loaderIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
.loader-logo {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    object-fit: contain;
}
.loader-track {
    width: 140px;
    height: 2px;
    background: rgba(65,41,24,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.loader-fill {
    height: 100%;
    background: linear-gradient(to right, var(--brown), var(--red));
    border-radius: 2px;
    animation: loadBar 1.4s ease forwards;
}
@keyframes loadBar {
    from { width: 0; }
    to   { width: 100%; }
}

/* ---- HEADER ---- */
#header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background var(--t-slow), border-color var(--t-slow), box-shadow var(--t-slow);
}
#header.scrolled {
    background: rgba(255,255,255,0.97);
    border-bottom-color: var(--border-soft);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
}
.logo-wrap {
    flex-shrink: 0;
    display: block;
}
.logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}
/* Por padrão: header transparente sobre hero escuro → mostrar logo branca */
.logo-dark  { display: none; }
.logo-light { display: block; }
/* Header branco (scrolled) → mostrar logo escura */
#header.scrolled .logo-dark  { display: block; }
#header.scrolled .logo-light { display: none; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.8);
    position: relative;
    padding-bottom: 2px;
    transition: color var(--t-base);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: #fff;
    transition: width var(--t-base);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* nav scrolled */
#header.scrolled .nav-link { color: var(--text-soft); }
#header.scrolled .nav-link::after { background: var(--red); }
#header.scrolled .nav-link:hover,
#header.scrolled .nav-link.active { color: var(--text); }

.nav-cta {
    background: var(--red);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background var(--t-base) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-dark) !important; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.menu-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    transition: transform var(--t-base), opacity var(--t-base);
    transform-origin: center;
}
#header.scrolled .menu-toggle span { background: var(--text); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- MENU MOBILE ---- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(251,248,245,0.99);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-slow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }
.mobile-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    color: var(--text-soft);
    padding: 6px;
    transition: color var(--t-base);
}
.mobile-close svg { width: 26px; height: 26px; }
.mobile-close:hover { color: var(--text); }
.mobile-nav ul { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.mobile-link {
    font-family: var(--font-h);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--text-soft);
    transition: color var(--t-base);
}
.mobile-link:hover { color: var(--text); }
.mobile-link-cta {
    font-family: var(--font-b);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--red);
    color: #fff !important;
    padding: 0.75rem 2rem;
    border-radius: 3px;
    margin-top: 0.5rem;
}
.mobile-link-cta:hover { background: var(--red-dark); }
.mobile-footer-tel { font-size: 0.8rem; color: var(--text-dim); text-align: center; }

/* ---- HERO ---- */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('../images/header.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--brown);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20,10,5,0.55) 0%,
        rgba(30,15,8,0.45) 50%,
        rgba(20,10,5,0.70) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem var(--pad);
    max-width: 860px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}
.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    margin-bottom: 1.75rem;
}
.hero-line1 {
    display: block;
    font-family: var(--font-h);
    font-size: clamp(3.5rem, 7.5vw, 7rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.02em;
}
.hero-line2 {
    display: block;
    font-family: var(--font-h);
    font-size: clamp(1.6rem, 3.5vw, 3rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.02em;
    line-height: 1;
}
.hero-sub {
    font-family: var(--font-h);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 2.5rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3.5rem;
}
.hero-scroll-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}
.scroll-wheel {
    width: 4px; height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(14px); }
}

/* ---- SOBRE ---- */
#sobre { background: var(--bg); padding: 0; }
.sobre-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}
.sobre-imagem { position: relative; overflow: hidden; min-height: 500px; }
.sobre-img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.sobre-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}
.sobre-imagem:hover .sobre-img-wrap img { transform: scale(1.03); }
.sobre-badge {
    position: absolute;
    bottom: 2rem; left: 2rem;
    background: var(--red);
    color: #fff;
    padding: 1.2rem 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(208,73,54,0.35);
}
.sobre-badge strong {
    font-family: var(--font-h);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
.sobre-badge strong sup { font-size: 1.2rem; }
.sobre-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
    opacity: 0.9;
}
.sobre-conteudo {
    padding: 6rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: var(--bg);
}
.sobre-lead {
    font-family: var(--font-h);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.55;
    padding-left: 1.25rem;
    border-left: 3px solid var(--red);
}
.sobre-body { font-size: 0.95rem; color: var(--text-soft); line-height: 1.85; }
.sobre-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0.5rem 0;
}
.sobre-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 6px;
    transition: background var(--t-base), box-shadow var(--t-base);
    cursor: default;
}
.sobre-card:hover {
    background: var(--bg-tint);
    box-shadow: var(--shadow-sm);
}
.sobre-card-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: rgba(208,73,54,0.08);
    border-radius: 8px;
    padding: 9px;
    color: var(--red);
    transition: background var(--t-base);
}
.sobre-card:hover .sobre-card-icon { background: rgba(208,73,54,0.14); }
.sobre-card-icon svg { width: 100%; height: 100%; }
.sobre-card strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.sobre-card p { font-size: 0.8rem; color: var(--text-soft); line-height: 1.5; }

/* ---- SUBSECTION (dentro de serviços) ---- */
.subsection { margin-bottom: 5rem; }
.subsection:last-of-type { margin-bottom: 0; }
.subsection-title {
    font-family: var(--font-h);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--brown);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-soft);
    position: relative;
}
.subsection-title::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 60px; height: 2px;
    background: var(--red);
}

/* ---- TÉCNICAS GRID ---- */
.tecnicas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.tec-card {
    position: relative;
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.tec-card-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to top, rgba(10,5,3,0.88) 0%, rgba(10,5,3,0.15) 60%),
        var(--img);
    background-color: var(--brown);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.tec-card:hover .tec-card-bg { transform: scale(1.06); }
.tec-card-body {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.4rem;
    z-index: 2;
}
.tec-num {
    font-family: var(--font-b);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--red);
    display: block;
}
.tec-card-body h4 {
    font-family: var(--font-h);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}
.tec-card-body p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}
.tec-card:hover .tec-card-body p { max-height: 80px; opacity: 1; }

/* ---- SLIDER (TRATAMENTOS) ---- */
.slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.slider-viewport {
    flex: 1;
    overflow: hidden;
}
.slider-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}
.slide-card {
    position: relative;
    flex: 0 0 calc(33.333% - 0.85rem);
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.slide-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to top, rgba(10,5,3,0.85) 0%, rgba(10,5,3,0.1) 55%),
        var(--img);
    background-color: var(--brown-soft);
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.slide-card:hover .slide-bg { transform: scale(1.04); }
.slide-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem;
    z-index: 2;
}
.slide-body h4 {
    font-family: var(--font-h);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}
.slide-body p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    opacity: 0;
}
.slide-card:hover .slide-body p { max-height: 80px; opacity: 1; }

.slider-btn {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-base), border-color var(--t-base), color var(--t-base), box-shadow var(--t-base);
    z-index: 5;
}
.slider-btn svg { width: 18px; height: 18px; }
.slider-btn:hover {
    background: var(--brown);
    border-color: var(--brown);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.slider-btn:disabled { opacity: 0.3; pointer-events: none; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}
.slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background var(--t-base), transform var(--t-base);
    border: none;
}
.slider-dot.active {
    background: var(--red);
    transform: scale(1.25);
}

/* ---- DIFERENCIAIS ---- */
#diferenciais { background: var(--bg); }
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.dif-card {
    position: relative;
    background: var(--bg-tint);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    transition: border-color var(--t-base), box-shadow var(--t-base);
}
.dif-card:hover { border-color: var(--border); box-shadow: var(--shadow-md); }
.dif-num {
    position: absolute;
    top: 1.5rem; right: 1.75rem;
    font-family: var(--font-h);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(208,73,54,0.06);
    line-height: 1;
    user-select: none;
    letter-spacing: -0.04em;
}
.dif-icon {
    width: 48px; height: 48px;
    background: rgba(208,73,54,0.08);
    border-radius: 8px;
    padding: 11px;
    color: var(--red);
    transition: background var(--t-base);
}
.dif-card:hover .dif-icon { background: rgba(208,73,54,0.14); }
.dif-icon svg { width: 100%; height: 100%; }
.dif-card h3 {
    font-family: var(--font-h);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.dif-card p { font-size: 0.875rem; color: var(--text-soft); line-height: 1.85; }

/* ---- EQUIPE ---- */
.equipe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.medico-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow var(--t-base), border-color var(--t-base);
}
.medico-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border); }
.medico-foto {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: var(--bg-warm);
}
.medico-foto img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}
.medico-card:hover .medico-foto img { transform: scale(1.03); }
.medico-foto::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--brown), var(--red));
}
.medico-crm-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.95);
    color: var(--brown);
    border: 1px solid var(--border);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
}
.medico-info { padding: 2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.medico-nome {
    font-family: var(--font-h);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}
.medico-esp {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-soft);
    display: block;
}
.medico-bio { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.25rem; }
.medico-bio p { font-size: 0.875rem; color: var(--text-soft); line-height: 1.8; }

/* ---- CTA SECTION ---- */
.cta-section {
    position: relative;
    overflow: hidden;
    padding-block: 7rem;
    background: linear-gradient(135deg, var(--brown) 0%, #2E1A0E 60%, var(--brown) 100%);
}
.cta-section::before, .cta-section::after {
    content: '';
    position: absolute;
    left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}
.cta-section::before { top: 0; }
.cta-section::after  { bottom: 0; }
.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 560px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.cta-content h2 {
    font-family: var(--font-h);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
}
.cta-content p { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 420px; line-height: 1.8; }

/* ---- CONTATO ---- */
#contato { background: var(--bg); }
.contato-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: start; }
.contato-info h3 {
    font-family: var(--font-h);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2rem;
}
.info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem; }
.info-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: rgba(208,73,54,0.07);
    border: 1px solid rgba(208,73,54,0.14);
    border-radius: 8px;
    padding: 8px;
    color: var(--red);
}
.info-icon svg { width: 100%; height: 100%; }
.info-item strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 4px;
}
.info-item p, .info-item a { font-size: 0.875rem; color: var(--text-soft); line-height: 1.7; }
.info-item a:hover { color: var(--red); }

.contato-form {
    background: var(--bg-tint);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
}
.req { color: var(--red); }
.form-group input, .form-group textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.9rem 1rem;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    resize: vertical;
    transition: border-color var(--t-base), box-shadow var(--t-base);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--brown);
    box-shadow: 0 0 0 3px rgba(65,41,24,0.1);
}
.form-group input.error, .form-group textarea.error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(208,73,54,0.1);
}
.field-error { font-size: 0.73rem; color: var(--red); min-height: 1rem; display: block; }
.form-note { font-size: 0.73rem; color: var(--text-dim); text-align: center; line-height: 1.6; }

/* ---- FOOTER ---- */
#footer {
    background: var(--brown);
    padding-top: 5rem;
    padding-bottom: 2rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 4rem; }
.footer-top { display: grid; grid-template-columns: 260px 1fr; gap: 5rem; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-logo-link { display: block; }
.footer-logo { max-width: 180px; max-height: 80px; width: auto; object-fit: contain; }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.35); line-height: 1.7; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h4 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.footer-col a, .footer-col p { font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-social { display: flex; align-items: center; gap: 0.5rem; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p { font-size: 0.73rem; color: rgba(255,255,255,0.25); }
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---- WHATSAPP FLUTUANTE ---- */
.wa-float {
    position: fixed;
    bottom: 1.75rem; right: 1.75rem;
    z-index: 900;
    width: 54px; height: 54px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.wa-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37,211,102,0.25);
    animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.75); opacity: 0; }
}

/* ---- REVEAL ---- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---- RESPONSIVO ---- */
@media (max-width: 1200px) {
    .tecnicas-grid { grid-template-columns: repeat(3, 1fr); }
    .tecnicas-grid .tec-card:nth-child(4),
    .tecnicas-grid .tec-card:nth-child(5) { grid-column: auto; }
    .footer-top { grid-template-columns: 220px 1fr; gap: 3rem; }
}

@media (max-width: 1000px) {
    .tecnicas-grid { grid-template-columns: repeat(2, 1fr); }
    .sobre-conteudo { padding: 4rem 3rem; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    section { padding-block: 5rem; }
    .nav-list { display: none; }
    .menu-toggle { display: flex; }
    .sobre-inner { grid-template-columns: 1fr; }
    .sobre-imagem { min-height: 380px; }
    .sobre-conteudo { padding: 3.5rem 2rem; }
    .diferenciais-grid { grid-template-columns: 1fr; }
    .equipe-grid { grid-template-columns: 1fr; }
    .contato-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-top { grid-template-columns: 1fr; }
    .slide-card { flex: 0 0 calc(50% - 0.625rem); }
}

@media (max-width: 640px) {
    :root { --pad: 1rem; }
    section { padding-block: 4rem; }
    .tecnicas-grid { grid-template-columns: 1fr; }
    .tec-card { height: 280px; }
    .tec-card-body p { max-height: 80px; opacity: 1; }
    .slide-card { flex: 0 0 calc(100% - 0px); }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 320px; }
    .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .contato-form { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .wa-float { width: 48px; height: 48px; bottom: 1.2rem; right: 1.2rem; }
    .wa-float svg { width: 22px; height: 22px; }
}
