:root {
    --bg: #050608;
    --bg-alt: #0f1014;
    --card-bg: #14151b;
    --accent: #d4af37;
    --accent-soft: rgba(212, 175, 55, 0.12);
    --text: #f7f7f7;
    --muted: #a0a3b1;
    --border: #23242b;
    --error: #ff5a5a;
}

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

html, body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #191b26 0, #050608 55%);
    scroll-behavior: smooth;
}

body.internal-page {
    background: radial-gradient(circle at top, #181924 0, #050608 60%);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.mt-lg {
    margin-top: 2.5rem;
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(5, 6, 8, 0.96), rgba(5, 6, 8, 0.85));
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.header.internal {
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #fff 0, #d4af37 38%, #8a6d1f 80%);
    padding: 4px;
    object-fit: contain;
}

.clinic-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.clinic-title {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.clinic-subtitle {
    font-size: 0.78rem;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.nav-link {
    position: relative;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f9e4a2, var(--accent));
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

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

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.86rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #f6e3a1, #d4af37);
    color: #14151b;
    font-weight: 600;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
    filter: brightness(1.07);
}

.btn-outline {
    border: 1px solid rgba(244, 220, 130, 0.7);
    color: #f4dc82;
    background: rgba(8, 8, 10, 0.4);
}

.btn-outline:hover {
    background: rgba(250, 234, 167, 0.08);
}

.btn-block {
    width: 100%;
}

/* Hero */

.hero {
    padding: 3.5rem 0 3.2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin: 0 0 0.75rem;
}

.hero-text p {
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 520px;
}

.hero-list {
    margin: 1.1rem 0 1.6rem;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-list li::marker {
    color: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.hero-phone strong {
    color: #f9e4a2;
}

/* Hero card */

.hero-card {
    background: radial-gradient(circle at top left, rgba(245, 227, 160, 0.12), transparent 55%), var(--card-bg);
    border-radius: 1.2rem;
    padding: 1.6rem 1.4rem 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(1, 2, 4, 0.7);
}

.hero-card h2 {
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
}

.hero-card p {
    margin: 0 0 1.05rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.simple-form input,
.simple-form select,
.simple-form textarea {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #272836;
    background: #0b0c11;
    color: var(--text);
    font-size: 0.9rem;
    padding: 0.65rem 0.8rem;
    margin-bottom: 0.6rem;
    outline: none;
    transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.simple-form textarea {
    border-radius: 12px;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.simple-form input:focus,
.simple-form select:focus,
.simple-form textarea:focus {
    border-color: rgba(245, 227, 160, 0.9);
    box-shadow: 0 0 0 1px rgba(245, 227, 160, 0.35);
    background: #090a0e;
}

.simple-form small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--muted);
}

/* Sections */

.section {
    padding: 3.2rem 0;
}

.section-alt {
    background: radial-gradient(circle at top, #181924 0, #06070a 65%);
}

.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.section-header.left {
    text-align: left;
    margin-left: 0;
}

.section-header h2,
.section-header h1 {
    margin-bottom: 0.35rem;
}

.section-header p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

/* Cards grid */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.7rem;
}

.card {
    background: var(--card-bg);
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.card-body {
    padding: 1.1rem 1.1rem 1.15rem;
}

.card-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.card-body p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.card-treatment {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-treatment::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    pointer-events: none;
}

.card-treatment:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    border-color: rgba(245, 227, 160, 0.45);
}

/* About section */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.features-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1.4rem;
}

.feature {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0.65rem;
    border-radius: 0.9rem;
    background: rgba(11, 11, 18, 0.85);
    border: 1px solid #252637;
}

.feature-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent-soft);
    font-size: 1.1rem;
}

.feature h4 {
    margin: 0 0 0.1rem;
    font-size: 0.95rem;
}

.feature p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
}

/* Testimonial */

.testimonial-card {
    background: radial-gradient(circle at top, rgba(245, 227, 160, 0.22), transparent 65%), var(--card-bg);
    border-radius: 1.2rem;
    padding: 1.6rem 1.4rem 1.6rem;
    border: 1px solid rgba(245, 227, 160, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.testimonial-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.quote {
    font-size: 0.92rem;
    color: var(--text);
    position: relative;
    padding-left: 1.1rem;
}

.quote::before {
    content: "“";
    position: absolute;
    left: 0;
    top: -0.3rem;
    font-size: 1.8rem;
    color: var(--accent);
}

.quote-author {
    margin-top: 0.8rem;
    font-size: 0.86rem;
    color: var(--muted);
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
    gap: 2.2rem;
}

.contact-list {
    list-style: none;
    padding-left: 0;
    margin: 1.2rem 0 1.8rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-list li + li {
    margin-top: 0.45rem;
}

.map-card {
    background: rgba(9, 9, 14, 0.95);
    border-radius: 1.1rem;
    border: 1px solid var(--border);
    padding: 0.9rem 0.9rem 1rem;
}

.map-card h3 {
    margin: 0 0 0.5rem;
    font-size: 0.96rem;
}

.map-embed iframe {
    border-radius: 0.9rem;
}

/* Internal pages */

.about-page {
    max-width: 720px;
}

.about-page p {
    color: var(--muted);
    font-size: 0.94rem;
}

.about-page h2 {
    margin-top: 1.6rem;
}

.check-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.7rem;
    color: var(--muted);
}

.check-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.35rem;
    font-size: 0.93rem;
}

.check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.78rem;
    color: var(--accent);
}

/* Footer */

.footer {
    border-top: 1px solid rgba(255,255,255,0.04);
    background: #050609;
    padding: 0.9rem 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

/* WhatsApp floating */

.whatsapp-float {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
}

/* Responsive */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.8rem;
    }

    .hero-card {
        order: -1;
    }

    .header-inner {
        justify-content: space-between;
        flex-wrap: wrap;
        row-gap: 0.6rem;
    }

    .nav {
        flex-wrap: wrap;
        gap: 0.9rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-card {
        padding: 1.3rem 1.1rem 1.2rem;
    }

    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
    }
}
