:root {
    --primary-color: #00c2cb;
    /* Primary Turquoise */
    --secondary-color: #f0fcfd;
    /* Very Light Turquoise Wash */
    --accent-color: #0056b3;
    /* Clinical Blue as Accent */
    --dark-color: #1a2a3a;
    /* Foundation Dark */
    --text-color: #2c3e50;
    --light-text: #546e7a;
    --white: #ffffff;
    --border-color: #d1d9e6;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 194, 203, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f8fbff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
}

/* Header */
.header {
    position: fixed;
    top: 41px;
    /* Correct offset for fixed top bar */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo-text span {
    color: var(--accent-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary-color);
}

.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-whatsapp {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Global Form Styles */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
}

input,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text-color);
    font-size: 15px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a90e2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
    cursor: pointer;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Date and Time Input Polish */
input[type="date"],
input[type="time"] {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    min-height: 45px;
    background-color: var(--white);
    color: var(--text-color);
    font-size: 15px;
}

/* Ensure the calendar/clock icons are visible and styled on desktop */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(47%) sepia(87%) saturate(1469%) hue-rotate(150deg) brightness(96%) contrast(92%);
    /* Adjusting filter towards turquoise */
}

/* Hero Section */
.hero {
    height: 70vh;
    /* Reduced height */
    min-height: 500px;
    background: #f8faff;
    /* Light medical background */
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 121px;
    /* 80px + 41px fixed offset */
    overflow: hidden;
}

.hero-visual {
    position: absolute;
    top: 121px;
    /* Match hero padding offset */
    left: 0;
    width: 100%;
    height: calc(100% - 121px);
    z-index: 1;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right 30%;
    /* Focus on face, positioned right */
    transform: scale(1.1);
    transform-origin: right 30%;
    filter: brightness(1.02) contrast(1.02);
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--secondary-color) 30%, transparent 100%);
    display: block;
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-start;
    margin-left: 0;
    max-width: 100%;
    padding-left: 100px;
    /* 100px air from the left */
}

.hero-content {
    max-width: 480px;
    /* Reduced to avoid covering the face */
    padding: 80px 0;
    text-align: left;
    margin-left: 0;
}

.hero-overlay {
    display: none;
    /* Removed in favor of hero-visual blend */
}

.hero-title {
    font-size: 58px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.05;
    color: var(--dark-color);
    margin-bottom: 24px;
    text-transform: none;
    font-family: 'Montserrat', sans-serif;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--light-text);
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Philosophy Section */
.philosophy {
    padding: 100px 0;
    background-color: #fcfdfe;
}

.philosophy-top {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.philosophy-text {
    flex: 1;
}

.philosophy-text h2 {
    font-size: 40px;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 25px;
}

.philosophy-text h2 em {
    font-style: italic;
    font-weight: 400;
}

.philosophy-text p {
    font-size: 18px;
    color: var(--light-text);
}

.philosophy-image {
    flex: 0 0 300px;
    height: 300px;
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 20px;
}

.feature-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.5;
}

/* Services */
.services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 30px 25px;
    text-align: left;
    min-height: 220px;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.12);
}


.service-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.2;
}

.service-info p {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-details {
    font-size: 14px;
    color: var(--light-text);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

.service-details strong {
    color: var(--primary-color);
}

.service-info strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Transformation Section (Before/After) */
.transformation {
    padding: 100px 0;
    background-color: #fdfdfd;
}

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

.section-tag {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.1;
}

.section-description {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.testimonial-container {
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
}

.testimonial-quote {
    font-size: 20px;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-size: 18px;
}

.testimonial-author span {
    color: var(--light-text);
    font-size: 14px;
}

.transformation-nav {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Before/After Slider */
.transformation-visual {
    position: relative;
    width: 100%;
    height: 650px;
    /* Increased height as requested */
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.after-img {
    width: 50%;
    /* Adjusted by range input */
    border-right: 2px solid white;
    z-index: 2;
}

.ba-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: white;
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
    font-size: 18px;
}

/* Regenerative Hero */
.regenerative-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
}

.regenerative-content {
    max-width: 700px;
    margin: 0 auto;
}

.regenerative-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.regenerative-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

/* Appointment Section (Overlapping Card) */
.appointment-section {
    position: relative;
    padding: 100px 0;
    /* Added vertical padding for "air" */
    margin-top: -5px;
    /* Pull up to close any tiny gap */
    z-index: 20;
}

.appointment-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    /* Full width */
    height: 100%;
}

.appointment-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
    /* Slightly brighter for water texture */
}

.appointment-card {
    background: white;
    padding: 60px;
    border-radius: 40px;
    max-width: 650px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 30;
    margin: 0 auto;
    /* Removed top/bottom margin to avoid double spacing */
}

.appointment-header h2 {
    font-size: 42px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.appointment-header h2 em {
    font-style: italic;
    font-weight: 400;
}

.appointment-header p {
    color: var(--light-text);
    margin-bottom: 40px;
    font-size: 18px;
}

.appointment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.btn-full {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    background-color: var(--primary-color);
    /* Correct medical blue */
}

.btn-full:hover {
    background-color: #357abd;
}

/* Main Footer (Olive Theme) */
.main-footer {
    background-color: #1a2a3a;
    /* Slightly deeper clinical dark for contrast with turquoise */
    color: white;
    padding: 180px 0 60px;
    /* Extra top padding for overlap */
}

.footer-brand {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    font-size: 50px;
    /* Scaled down slightly */
    color: white;
}

.footer-brand .logo-text span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo i {
    font-size: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* 3 Columns */
    gap: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: white;
    color: #6b7c67;
}

.newsletter-form {
    position: relative;
    margin-top: 20px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 50px 15px 0;
    border-radius: 0;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.footer-bottom {
    margin-top: 80px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.mt-20 {
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .footer-brand .logo-text {
        font-size: 60px;
    }
}

@media (max-width: 992px) {
    .appointment-bg {
        display: none;
    }

    .appointment-card {
        max-width: 100%;
        margin: 40px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .appointment-section {
        margin-bottom: 0;
    }

    .main-footer {
        padding-top: 80px;
    }
}

@media (max-width: 992px) {
    .appointment-bg {
        display: none;
    }

    .appointment-card {
        max-width: 100%;
        margin: 40px auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .appointment-section {
        margin-bottom: 0;
    }

    .main-footer {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 36px;
    }

    .philosophy-top {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .philosophy-image {
        flex: 0 0 250px;
        height: 250px;
    }

    .philosophy-features {
        grid-template-columns: 1fr;
    }

    .transformation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .transformation-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .header-cta {
        order: -1;
        /* Above logo */
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    .philosophy-image {
        display: none;
    }

    .nav {
        display: none;
        /* Controlled by JS toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .top-bar,
    .header {
        position: relative;
        top: 0;
    }

    .form-row,
    .appointment-form .form-row {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
        justify-content: center;
        height: auto;
        padding: 40px 0 60px;
        min-height: auto;
        flex-direction: column;
    }

    .hero-visual {
        position: relative;
        top: 0;
        /* Reset desktop offset */
        width: 100%;
        height: 300px;
        order: -1;
    }

    .hero-visual::after {
        display: none;
    }

    .hero-container {
        justify-content: center;
        margin: 0 auto;
        padding-left: 20px;
        /* Reset the 100px desktop padding */
        padding-right: 20px;
    }

    .hero-content {
        padding: 40px 20px;
        margin-top: 20px;
        /* Space from top image */
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
        letter-spacing: -1px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .appointment-card {
        padding: 30px;
        border-radius: 20px;
        margin: 40px auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer (deprecated) */
.footer {
    display: none;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

.whatsapp-bubble {
    position: absolute;
    right: 75px;
    bottom: 15px;
    background: white;
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    font-size: 14px;
    font-weight: 500;
    width: max-content;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
    border: 1px solid var(--border-color);
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: 0;
    border-left: 10px solid white;
    border-top: 10px solid transparent;
}

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

/* Show bubble by default after a delay */
@keyframes fadeInBubble {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.whatsapp-bubble {
    animation: fadeInBubble 0.5s ease forwards 2s;
    /* Appear after 2s */
    opacity: 0;
    /* Important to keep it hidden before animation */
}