/**
 * Palma Hair Solutions - Main Theme Styles
 * Converted from React/Tailwind to vanilla CSS
 */

/* =========================================
   CSS VARIABLES (Design Tokens)
   ========================================= */
:root {
    /* Colors - Dark Theme */
    --background: hsl(210 20% 5%);
    --foreground: hsl(42 40% 90%);

    --card: hsl(200 30% 10%);
    --card-foreground: hsl(42 40% 90%);

    --primary: hsl(42 45% 72%);
    --primary-foreground: hsl(210 20% 5%);

    --secondary: hsl(196 55% 20%);
    --secondary-foreground: hsl(42 40% 90%);

    --muted: hsl(200 20% 15%);
    --muted-foreground: hsl(200 15% 55%);

    --accent: hsl(193 80% 18%);
    --accent-foreground: hsl(42 40% 90%);

    --border: hsl(200 20% 18%);
    --input: hsl(200 20% 18%);
    --ring: hsl(42 45% 72%);

    /* Custom Colors */
    --gold: hsl(42 45% 72%);
    --gold-light: hsl(42 50% 82%);
    --dark-teal: hsl(196 36% 22%);
    --deep-teal: hsl(193 80% 18%);
    --near-black: hsl(220 30% 6%);

    /* Light Section Colors */
    --section-light-bg: hsl(40 30% 96%);
    --section-light-fg: hsl(220 30% 15%);
    --section-light-muted: hsl(220 10% 40%);

    /* Spacing */
    --container-max: 1400px;
    --container-padding: 2rem;

    /* Border Radius */
    --radius: 0.5rem;
    --radius-sm: calc(var(--radius) - 4px);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Fonts */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    max-width: 1200px;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Text Gradient */
.text-gold-gradient {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), hsl(42 40% 62%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Gradient */
.bg-gold-gradient {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

/* Gold Line Divider */
.gold-line {
    width: 64px;
    height: 2px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    margin-bottom: 1.5rem;
}

.gold-line-center {
    margin-left: auto;
    margin-right: auto;
}

/* Section Padding */
.section-padding {
    padding: 5rem 1rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 7rem 2rem;
    }
}

/* Section Themes */
.section-light {
    background-color: var(--section-light-bg);
    color: var(--section-light-fg);
}

.section-dark {
    background-color: var(--background);
    color: var(--foreground);
}

/* Section with subtle texture overlay */
.section-textured {
    position: relative;
}

.section-textured::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(200, 170, 110, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(200, 170, 110, 0.03) 1px, transparent 1px),
        linear-gradient(45deg, transparent 48%, rgba(200, 170, 110, 0.015) 49%, rgba(200, 170, 110, 0.015) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(200, 170, 110, 0.015) 49%, rgba(200, 170, 110, 0.015) 51%, transparent 52%);
    background-size: 30px 30px, 30px 30px, 60px 60px, 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.section-textured>* {
    position: relative;
    z-index: 1;
}

/* =========================================
   BEFORE & AFTER CARDS
   ========================================= */
.ba-cards-grid {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .ba-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.ba-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.ba-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ba-card-image {
    overflow: hidden;
    position: relative;
}

.ba-card-image .ba-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    /* 👈 centraliza no topo */
    transition: opacity var(--transition-normal), transform var(--transition-slow);
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.ba-card-image .ba-img.ba-img-active {
    opacity: 1;
    position: relative;
}

.ba-card:hover .ba-card-image .ba-img.ba-img-active {
    transform: scale(1.03);
}

@media (min-width: 768px) {
    .ba-card-image .ba-img {
        height: 240px;
    }
}

@media (min-width: 1024px) {
    .ba-card-image .ba-img {
        height: 380px;
    }
}

.ba-card-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, hsl(220 30% 12%), hsl(210 25% 16%));
}

.ba-tab {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.ba-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.ba-tab.ba-tab-active {
    color: var(--gold);
    background: rgba(200, 170, 110, 0.1);
}

.ba-label-divider {
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), var(--gold), rgba(255, 255, 255, 0.15));
}

/* Section Typography */
.section-label {
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title-light {
    color: var(--foreground);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--section-light-muted);
    margin-bottom: 1rem;
}

.section-text-center {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-text-light {
    color: var(--muted-foreground);
}

/* Grid Layouts */
.grid-2-cols {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem;
        align-items: center;
    }
}

.grid-reverse-mobile {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .grid-reverse-mobile {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-reverse-mobile>*:first-child {
        order: 1;
    }

    .grid-reverse-mobile>*:last-child {
        order: 2;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition-fast);
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--primary-foreground);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(12, 15, 19, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 94px;
}

.navbar-logo {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-logo img {
    max-height: 70px;
    width: auto;
}

.navbar-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
    }
}

.navbar-link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.navbar-link:hover {
    color: var(--primary);
}

.navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }
}

.navbar-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu */
.navbar-mobile {
    display: none;
    background-color: var(--near-black);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-normal);
}

.navbar-mobile.active {
    display: block;
    max-height: 300px;
}

@media (min-width: 768px) {
    .navbar-mobile {
        display: none !important;
    }
}

.navbar-mobile-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.navbar-mobile-link {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.navbar-mobile-link:hover {
    color: var(--primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top right;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(12, 15, 19, 0.95), rgba(12, 15, 19, 0.75) 50%, rgba(12, 15, 19, 0.3));
}

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5rem;
    padding-bottom: 0;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: 2rem;
    flex-direction: column-reverse;
}

@media (min-width: 768px) {
    .hero-grid {
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }
}

.hero-text {
    max-width: 600px;
    text-align: left;
    padding-bottom: 6rem;
}

.hero-doctor-image {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
    align-self: flex-end;
    margin-bottom: -5rem;
}

.hero-doctor-image img {
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

@media (min-width: 768px) {
    .hero-doctor-image {
        margin-bottom: -4rem;
    }

    .hero-doctor-image img {
        max-height: 70vh;
    }
}

@media (min-width: 1024px) {
    .hero-doctor-image {
        margin-bottom: -3.5rem;
    }

    .hero-doctor-image img {
        max-height: 85vh;
    }
}

.hero-label {
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.hero-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .hero-name {
        font-size: 2rem;
    }
}

.hero-title-large {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .hero-title-large {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title-large {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* CTA Button with Icon */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-whatsapp svg {
    width: 18px;
    height: 18px;
}

/* Hero Benefits Bar - positioned at bottom */
.hero-benefits-bar {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .hero-benefits-bar {
        bottom: 2.5rem;
        padding: 0 2rem;
    }
}

.benefits-cards {
    display: grid;
    gap: 1rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .benefits-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(35, 61, 76, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 170, 110, 0.2);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.benefit-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    border: 1px solid rgba(200, 170, 110, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.benefit-card-content {
    flex: 1;
}

.benefit-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.benefit-card-text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

/* Spacing for content after hero */
.hero+section {
    padding-top: 6rem;
}

@media (min-width: 768px) {
    .hero+section {
        padding-top: 8rem;
    }
}

/* =========================================
   IMAGE FRAMES
   ========================================= */
.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(200, 170, 110, 0.2);
    border-radius: var(--radius-sm);
    pointer-events: none;
}

.section-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .section-image {
        height: 500px;
    }
}

/* About Image */
.about-image-frame {
    position: relative;
}

.about-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-sm);
}

.about-image-border {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(200, 170, 110, 0.8);
    border-radius: var(--radius-sm);
    z-index: -1;
}

/* Results Image */
.results-image-container {
    max-width: 768px;
    margin: 0 auto 2.5rem;
}

.results-image-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(200, 170, 110, 0.1);
}

.results-image {
    width: 100%;
    object-fit: cover;
}

/* =========================================
   ADVANTAGES LIST
   ========================================= */
.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.advantage-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(200, 170, 110, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advantage-icon svg {
    width: 12px;
    height: 12px;
    color: var(--primary);
}

.advantage-item span {
    font-size: 0.875rem;
    color: hsl(220 15% 35%);
}

/* =========================================
   TREATMENTS SECTION
   ========================================= */
.treatments-grid {
    display: grid;
    gap: 1.5rem;
    margin: 3rem 0;
}

@media (min-width: 640px) {
    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .treatments-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.treatment-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: border-color var(--transition-fast);
}

.treatment-card:hover {
    border-color: rgba(200, 170, 110, 0.3);
}

.treatment-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background-color: rgba(200, 170, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.treatment-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.treatment-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.treatment-description {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

/* =========================================
   PILLARS (ABOUT SECTION)
   ========================================= */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pillar-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.pillar-item span {
    font-size: 0.75rem;
    color: hsl(220 15% 35%);
}

/* =========================================
   CLINIC SECTION
   ========================================= */
.clinic-section {
    position: relative;
}

.clinic-background {
    position: absolute;
    inset: 0;
}

.clinic-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(12, 15, 19, 0.85);
}

.clinic-content {
    position: relative;
    z-index: 10;
}

.clinic-features {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .clinic-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .clinic-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.clinic-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.clinic-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(200, 170, 110, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.clinic-feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.clinic-feature-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-grid {
    display: grid;
    gap: 0;
    margin-top: 3rem;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-map {
    min-height: 400px;
}

@media (min-width: 768px) {
    .contact-map {
        min-height: 550px;
    }
}

.contact-map iframe {
    display: block;
}

.contact-form-container {
    padding: 2rem;
    background-color: white;
}

@media (min-width: 768px) {
    .contact-form-container {
        padding: 3rem;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-label {
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-input-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(220 20% 30%);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: hsl(220 20% 15%);
    background-color: white;
    border: 1px solid hsl(220 10% 80%);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    resize: none;
    min-height: 100px;
}

/* Sex Selector */
.form-sex-selector {
    display: flex;
    gap: 0.75rem;
}

.form-sex-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(220 10% 40%);
    background: white;
    border: 2px solid hsl(220 10% 80%);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.form-sex-btn:hover {
    border-color: var(--gold);
    color: hsl(220 20% 25%);
}

.form-sex-btn.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(200, 170, 110, 0.08), rgba(200, 170, 110, 0.15));
    color: hsl(42 50% 35%);
    box-shadow: 0 0 0 3px rgba(200, 170, 110, 0.15);
}

/* Alopecia Level Selector */
.alopecia-container {
    animation: fadeInUp 0.4s ease forwards;
}

.alopecia-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .alopecia-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.alopecia-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    background: hsl(40 20% 95%);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.alopecia-option:hover {
    border-color: hsl(42 30% 75%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alopecia-option.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(200, 170, 110, 0.08), rgba(200, 170, 110, 0.15));
    box-shadow: 0 0 0 3px rgba(200, 170, 110, 0.2), 0 4px 16px rgba(200, 170, 110, 0.15);
}

.alopecia-img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}

.alopecia-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: hsl(220 10% 40%);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.alopecia-option.selected .alopecia-label {
    color: hsl(42 50% 35%);
}

/* Form Success */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.form-success-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(220 20% 15%);
    margin-bottom: 0.75rem;
}

.form-success-text {
    font-size: 0.875rem;
    color: hsl(220 10% 50%);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 1rem;
}

.footer-container {
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.footer .gold-line {
    margin: 0 auto 1.5rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* =========================================
   WHATSAPP BUTTON
   ========================================= */
.whatsapp-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 56px;
    height: 56px;
    background-color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.whatsapp-button:hover {
    background-color: #22c55e;
    transform: scale(1.05);
}

.whatsapp-button svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Animation on scroll classes - applied via JavaScript */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation-duration: 0.7s;
    animation-fill-mode: forwards;
}

.animate-on-scroll.animated[data-animation="fade-up"] {
    animation-name: fadeInUp;
}

.animate-on-scroll.animated[data-animation="fade-right"] {
    animation-name: fadeInRight;
}

.animate-on-scroll.animated[data-animation="fade-left"] {
    animation-name: fadeInLeft;
}

.animate-on-scroll.animated[data-animation="zoom-in"] {
    animation-name: zoomIn;
}

/* =========================================
   RESPONSIVE UTILITIES
   ========================================= */
@media (max-width: 767px) {
    .hero-text {
        padding-right: 1rem;
    }

    .grid-2-cols>*:first-child {
        order: 2;
    }

    .grid-2-cols>*:last-child {
        order: 1;
    }

    .grid-reverse-mobile>*:first-child {
        order: 2;
    }

    .grid-reverse-mobile>*:last-child {
        order: 1;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: linear-gradient(180deg, hsl(210 30% 7%), hsl(220 30% 5%));
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 0;
    border-top: 1px solid rgba(200, 170, 110, 0.15);
}

.footer-grid {
    display: grid;
    gap: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.4fr 0.8fr 1fr;
        gap: 4rem;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Logo & About */
.footer-logo-link {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-logo-img {
    max-height: 50px;
    width: auto;
    filter: brightness(0.95);
}

.footer-about {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(200, 170, 110, 0.25);
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200, 170, 110, 0.08);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

/* Column Titles */
.footer-col-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

/* Quick Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

/* Contact Info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.footer-contact li svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    color: var(--gold);
    margin-top: 3px;
}

.footer-contact a,
.footer-contact span {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--gold);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
}

/* =========================================
   RESPONSIVE - MOBILE (≤ 767px)
   ========================================= */
@media (max-width: 767px) {

    /* --- Global / Layout --- */
    :root {
        --container-padding: 1rem;
    }

    .section-padding {
        padding: 3rem 1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .container-narrow {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-label {
        font-size: 0.65rem;
    }

    .section-text {
        font-size: 0.85rem;
    }

    /* Buttons full-width on mobile */
    .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
    }

    .btn-whatsapp {
        display: flex;
        justify-content: center;
    }

    /* --- Navbar --- */
    .navbar-container {
        height: 70px;
    }

    .navbar-logo img {
        max-height: 50px;
    }

    .navbar-toggle {
        background: none;
        border: none;
    }

    /* --- Hero Section --- */
    .hero {
        height: auto;
        max-height: none;
        min-height: 100svh;
    }

    .hero-overlay {
        background: linear-gradient(to bottom,
                rgba(12, 15, 19, 0.6) 0%,
                rgba(12, 15, 19, 0.85) 40%,
                rgba(12, 15, 19, 0.95) 100%);
    }

    .hero-content {
        padding-top: 5rem;
        padding-bottom: 1rem;
    }

    .hero-grid {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .hero-text {
        text-align: center;
        padding-bottom: 0;
        padding-right: 0;
        max-width: 100%;
        order: 2;
    }

    .hero-doctor-image {
        justify-content: center;
        align-self: center;
        margin-bottom: 0;
        order: 1;
    }

    .hero-doctor-image img {
        max-height: 35vh;
    }

    .hero-label {
        font-size: 0.65rem;
        letter-spacing: 0.3em;
    }

    .hero-name {
        font-size: 1.4rem;
    }

    .hero-title-large {
        font-size: 1.75rem;
        letter-spacing: 0.02em;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Hero Benefits Bar */
    .hero-benefits-bar {
        position: relative;
        bottom: auto;
        padding: 1.5rem 1rem;
        background: rgba(12, 15, 19, 0.9);
    }

    .benefits-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .benefit-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .benefit-card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .benefit-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .benefit-card-title {
        font-size: 0.85rem;
    }

    .benefit-card-text {
        font-size: 0.75rem;
    }

    /* Spacing after hero - reset in mobile since benefits bar is not absolute */
    .hero+section {
        padding-top: 3rem;
    }

    /* --- Before/After Cards --- */
    .ba-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ba-card-image .ba-img {
        height: 280px;
    }

    .ba-tab {
        font-size: 0.65rem;
    }

    /* --- Treatments Grid --- */
    .treatments-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }

    .treatment-card {
        padding: 1.5rem;
    }

    /* --- About Section (grid-2-cols) --- */
    .about-image {
        height: 300px;
    }

    .about-image-border {
        bottom: -0.5rem;
        left: -0.5rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .section-image {
        height: 280px;
    }

    /* --- Clinic Section --- */
    .clinic-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .clinic-feature-icon {
        width: 52px;
        height: 52px;
    }

    .clinic-feature-text {
        font-size: 0.8rem;
    }

    /* --- Contact Section --- */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 280px;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .form-input {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .form-sex-btn {
        padding: 0.85rem 1rem;
        min-height: 48px;
    }

    .form-textarea {
        min-height: 120px;
    }

    .alopecia-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .alopecia-img {
        max-height: 100px;
    }

    /* --- Footer --- */
    .footer {
        padding: 3rem 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    /* --- Whatsapp Button --- */
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-button svg {
        width: 22px;
        height: 22px;
    }
}

/* =========================================
   RESPONSIVE - SMALL MOBILE (≤ 380px)
   ========================================= */
@media (max-width: 380px) {

    .hero-title-large {
        font-size: 1.5rem;
    }

    .hero-name {
        font-size: 1.2rem;
    }

    .hero-doctor-image img {
        max-height: 30vh;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .clinic-features {
        grid-template-columns: 1fr;
    }

    .alopecia-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }
}