html {
    scroll-behavior: smooth;
}

iframe {
    height: 300px;
    width: 100%;
}

/* Overlay */
.overlay1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(255 255 255 / 22%);
    /* Semi-transparent black overlay */
    /* Masks out a 200px transparent circle or rectangle in the dead center */
    mask: linear-gradient(#000 0 0) exclude,
        linear-gradient(#000 0 0) content-box;
    /* Formula: calc(50vh - (HOLE_HEIGHT / 2)) calc(50vw - (HOLE_WIDTH / 2)) */
    padding: calc(50vh - 250px) calc(50vw - 550px);
    /* Positions the cutout */
    border-radius: 20px;
    /* Adjust this to change the corner curvature */
    z-index: 1;
}

.overlay {
    position: absolute;
    left: -10%;
    top: -10%;
    width: 60%;
    height: 120%;
    border-radius: 250px;
    background:
        radial-gradient(ellipse at left center,
            rgba(255, 255, 255, .97) 0%,
            rgba(255, 255, 255, .90) 45%,
            rgba(255, 255, 255, .06) 75%,
            rgba(255, 255, 255, .10) 82%,
            rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

/* === HERO === */
.hero-section {
    height: 100vh;
    background-image: url("../img/hero-background.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* === HERO CONTENT === */
.hero-content {
    position: relative;
    z-index: 2;
    /* max-width: 470px; */
    color: #fff;
}

.subtitle {
    letter-spacing: 3px;
    color: #fff;
    font-size: .9rem;
}

.hero-content h1 {
    margin-left: 20px;
    margin-top: 20px;
    font-size: 5rem;
    font-weight: 400;
    line-height: 1.1;
    /* margin: 20px 0; */
    font-family: "Tangerine", cursive;
    font-style: normal;
    color: var(--black);
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #eee;
}

/* Sections */
.section-title {
    font-family: var(--font-secondory);
    font-size: 3.5rem;
    color: var(--black);
    /* margin-bottom: 20px; */
}

/* Philosophy */
.philosophy {
    display: flex;
    align-items: center;
    padding: 60px 5%;
    background: var(--bg-alt);
    gap: 80px;
}

.phil-image {
    width: 100%;
    height: 600px;
    background: url('../img/doctor-profile.jpeg') center/cover;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.phil-text {
    flex: 1;
}

.phil-text h2 {
    font-family: var(--font-secondory);
    font-size: 3rem;
    color: var(--black);
    margin-bottom: 30px;
    font-style: italic;
}

.phil-text p {
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 20px;
}

/* Clinic Experience */
.clinic-experience {
    padding: 100px 5%;
    text-align: center;
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 100%);
}

/* Treatments */
.treatments {
    padding: 30px 5%;
    background: var(--bg-cream);
}

.treatments-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Journey */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.journey-step {
    padding: 30px 20px;
    border: 1px solid rgba(132, 121, 121, 0.2);
    border-radius: 200px 200px 0 0;
    background: transparent;
    transition: 0.3s;
}

.journey-step:hover {
    border-color: var(--burgundy);
    background: rgba(255, 255, 255, 0.3);
}

.journey-step h3 {
    font-family: var(--font-secondory);
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.journey-step h4 {
    font-family: var(--font-secondory);
    font-style: italic;
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 15px;
}

.journey-step p {
    font-size: 0.9rem;
    color: var(--taupe);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-areas: "header header"; */
}

.services-grid-header {
    display: grid;
    place-items: center;
    grid-row: 1;
    /* Places header strictly in the first row */
    grid-column: 1 / -1;
    margin-bottom: 30px;
    /* Spans from the first line to the last line */
    /* Assigns element to the 'header' area */
}

.service-cell {
    padding: 25px 40px;
    border: 1px solid rgba(132, 121, 121, 0.3);
    transition: background-color 0.3s ease;
}

.service-cell:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.service-num {
    font-size: 0.8rem;
    color: var(--taupe);
    margin-bottom: 20px;
    display: block;
    letter-spacing: 2px;
}

.service-cell h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--black);
    font-family: var(--font-primary);
    font-weight: 400;
}

.service-cell h3 em {
    font-family: var(--font-secondory);
    font-style: italic;
    color: var(--burgundy);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--taupe);
    margin-bottom: 25px;
    min-height: 65px;
}

.service-list {
    list-style: none;
    margin-bottom: 30px;
}

.service-list li {
    font-size: 0.9rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(132, 121, 121, 0.2);
    position: relative;
    padding-left: 15px;
    color: var(--charcoal);
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.service-list li:last-child {
    border-bottom: none;
}

/* Gallery */
.gallery {
    padding: 40px 5%;
    background: var(--bg-alt);
    text-align: center;
}

.gallery-subtitle {
    color: var(--taupe);
    font-size: 1.1rem;
    /* margin-bottom: 60px; */
}

/* .gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    text-align: left;
}

.gallery-images {
    display: flex;
    gap: 2px;
    background: var(--burgundy);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.gallery-images img {
    width: 50%;
    height: 400px;
    object-fit: cover;
}

.gallery-caption {
    margin-top: 15px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--charcoal);
    font-weight: 500;
} */

.image-grid {
    display: grid;
    /* Automatically wraps into 1 column on mobile, max 2 columns on desktop */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    /* Spacing between the images */
    width: 100%;
    max-width: 1200px;
    /* Optional: limits total width on very large screens */
    margin: 0 auto;
}

.image-grid img {
    width: 100%;
    height: 400px;
    /* Adjust or remove depending on your aspect ratio needs */
    object-fit: cover;
    /* Forces images to fill the space cleanly without distortion */
    display: block;
    border-radius: 4px;
}

/* Testimonials */
.testimonials {
    padding: 60px 5%;
    text-align: center;
    background: var(--bg-cream);
}

.stars {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 5px;
}

.test-quote {
    font-family: var(--font-secondory);
    font-size: 2.5rem;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
    min-height: 150px;
    transition: opacity 0.6s ease;
    color: var(--black);
    line-height: 1.4;
}

/* Footer */
/* .footer-left {
    flex: 1.5;
    min-width: 350px;
}

.footer-left h2 {
    font-family: var(--font-secondory);
    font-size: 3rem;
    color: var(--bg-cream);
    margin-bottom: 40px;
}

.footer-right {
    flex: 1;
    min-width: 300px;
    padding-top: 20px;
}

.footer-right h3 {
    color: var(--gold);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-right p,
.footer-right a {
    color: var(--taupe);
    margin-bottom: 30px;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
}

.footer-right a:hover {
    color: var(--bg-cream);
}

.footer-logo {
    font-family: var(--font-secondory);
    font-size: 2rem;
    color: var(--bg-cream);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    display: inline;
    margin-bottom: 0;
    border-bottom: 1px solid transparent;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.social-links a:hover {
    border-bottom-color: var(--gold);
    color: var(--gold);
} */

/* === MOBILE === */
@media(max-width:991px) {
    .overlay {
        left: -15%;
        border-radius: 100%;
    }

    .hero-content {
        max-width: 100%;
        text-align: left;
        margin: auto;
        margin-top: 30%;
    }

    .hero-content h1 {
        font-size: 2.7rem;
        font-family: "Tangerine", cursive;
        font-style: normal;
        color: var(--black);
        /* 
    margin-left: 20px;
    font-size: 5rem;
    font-weight: 400;
    line-height: 1.1;margin: 20px 0; */
    }

    .philosophy {
        flex-direction: column;
        padding: 80px 5%;
        gap: 30px;
    }

    .phil-image {
        width: 100%;
        height: 400px;
    }

    .journey-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-images img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    /* iframe {
        height: 300px;
        width: 100%;
    } */

    .overlay {
        left: -15%;
        border-radius: 100%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        margin-top: 60%;
    }

    .tagline {
        font-size: 2.1rem;
    }

    .journey-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-images img {
        height: 240px;
    }

    .whatsapp-float {
        bottom: 22px;
        right: 18px;
    }

    .form-row {
        flex-direction: column;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .test-quote {
        transition: none;
    }
}