/* ═══════════════════════════════════════════════════════════════
   Hollywood Dental — Combined Stylesheet
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─── Root Variables ──────────────────────────────────────────── */
:root {
    --primary-color: #00072d;
    --secondary-color: #123499;
    --accent-color: #0a2472;
    --text-color: #e1e8f6;
    --bg-light: #e1e8f6;
    --font-main: 'Inter', 'Overused Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --gutter: 2rem;
}

::selection {
    color: var(--bg-light);
    background-color: var(--secondary-color);
}

@media (max-width: 600px) {
    :root {
        --gutter: 1rem;
    }
}

/* ─── Global Reset ────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -------------------- */
/* BACKGROUND ANIMATION */

.gradient {
    width: 1000px;
    height: 1000px;
    filter: blur(50px);
    background-image: linear-gradient(#123499, #00072d, #0a2472);
    animation: rotate 5s cubic-bezier(0.8, 0.2, 0.2, 0.8) alternate infinite;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    margin: 0 auto;
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ─── Top Navigation ─────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 2000;
    background: linear-gradient(180deg, rgba(0, 7, 45, 0.8) 0%, rgba(0, 7, 45, 0) 100%);
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 7, 45, 0.95);
    height: 70px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 0 24px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 2001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
    }

    .hamburger {
        display: flex;
        z-index: 2002;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ═══════════════════════════════════════════════════════════════
   1. GRID MOTION (Hero)
   ═══════════════════════════════════════════════════════════════ */
.content-wrap {
    background: var(--primary-color);
    overflow: clip;
}

.content-wrap header {
    min-height: 100vh;
    display: grid;
    align-content: center;
    /*max-width: 1600px;*/
    margin: 0 auto;
    padding: 0 48px;
    text-align: left;
    position: relative;
    overflow: hidden;
    /* Hide video overflow */
    background: #00072d;
    /* Solid fallback background color */
}

.hero-bg-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, rgba(0, 7, 45, 0.9) 0%, rgba(0, 7, 45, 0) 70%), url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    z-index: 0;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Above the image fallback */
    pointer-events: none;
    overflow: hidden;
}

.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw;
    /* 9/16 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16/9 aspect ratio */
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 7, 45, 0.9) 0%, rgba(0, 7, 45, 0) 70%);
    z-index: 2;
    /* Above the video */
}

.fluid {
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.8;
    margin: 0;
    color: #fff;
    font-weight: 600;
    position: relative;
    z-index: 3;
    /* Above everything */
}

h2.fluid {
    font-size: clamp(0.5rem, 2vw, 1.5rem);
    padding-top: 48px;
}

.content-wrap a {
    color: white;
}

.content-wrap main section:first-of-type {
    min-height: 240vh;
    background-color: var(--primary-color);
}

.content-wrap .content {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    place-items: center;
    align-content: center;
    position: sticky;
    top: 0;
    /*overflow: hidden;*/
    margin-bottom: 50px;
}

.content-wrap main section:last-of-type {
    min-height: 1px;
    display: grid;
    place-items: center;
    background-color: var(--primary-color);
}

.grid {
    --offset: 0;
    --container-width: 1600px;
    --gap: clamp(10px, 7.35vw, 80px);
    width: var(--container-width);
    max-width: calc(100% - (2 * var(--gutter)));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: var(--gap);
    margin: 0 auto;
    align-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        --offset: -1;
    }

    .grid>.layer:nth-of-type(1) {
        display: none;
    }

    .content-wrap main section:first-of-type {
        margin-bottom: -350px;
    }
}

.grid>.layer {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
}

.grid>.layer:nth-of-type(1) div:nth-of-type(odd) {
    grid-column: 1;
}

.grid>.layer:nth-of-type(1) div:nth-of-type(even) {
    grid-column: -2;
}

.grid>.layer:nth-of-type(2) div:nth-of-type(odd) {
    grid-column: calc(2 + var(--offset));
}

.grid>.layer:nth-of-type(2) div:nth-of-type(even) {
    grid-column: calc(-3 - var(--offset));
}

.grid>.layer:nth-of-type(3) div:first-of-type {
    grid-column: calc(3 + var(--offset));
    grid-row: 1;
}

.grid>.layer:nth-of-type(3) div:last-of-type {
    grid-column: calc(3 + var(--offset));
    grid-row: -1;
}

.grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 1rem;
}

.grid .scaler {
    position: relative;
    grid-area: 2 / calc(3 + var(--offset));
}

.scaler {
    z-index: 2;
    width: 100%;
    height: 100%;
    position: relative;
}

.scaler img {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    object-fit: cover;
    border-radius: 1rem;
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   2. SHORTS / PATIENT STORIES
   ═══════════════════════════════════════════════════════════════ */
.section-header {
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
    padding-top: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    letter-spacing: 2px;
}

.section-header p {
    color: #ccc;
    font-size: 0.9rem;
}

.story-gallery {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: none;
    justify-content: center;
}

.story-gallery::-webkit-scrollbar {
    display: none;
}

.story-card {
    flex-shrink: 0;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.story-card:hover {
    transform: scale(1.05);
}

.story-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #00d2ff 0%, #123499 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-outer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--primary-color);
    border: 3px solid var(--primary-color);
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-title {
    color: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    flex-direction: column;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 450px;
    height: 80vh;
    max-height: 800px;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#modalIframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

@media (max-width: 768px) {
    .story-gallery {
        scroll-snap-align: start;
        justify-content: flex-start;
    }
}

/* ═══════════════════════════════════════════════════════════════
   3. CTA FORM
   ═══════════════════════════════════════════════════════════════ */
.yellow {
    color: #FFDC31;
    padding-bottom: 2px;
    border-bottom: 2px solid #FFDC31;
}

.cta {
    position: relative;
    width: calc(100% - 60px);
    padding: 24px 32px;
    background: var(--secondary-color);
    border-radius: 40px;
    margin: 20px 30px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.2s ease-out;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}

.cta:hover {
    background: #46D499;
}

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

.cta:hover a>svg {
    transform: translateY(-50%) rotate(45deg);
}

.cta:hover a>svg path {
    fill: var(--primary-color);
}

.cta>.formwrap {
    display: none;
    opacity: 0;
}

.cta>.formwrap svg {
    height: 16px;
    width: 16px;
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}

.cta>.formwrap>h4 {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 20px;
    color: #fff;
}

.cta>.formwrap>form {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.cta>.formwrap>form>input {
    padding: 12px 16px;
    border: 0 none;
    outline: 0 none;
    flex: 1;
    height: 40px;
    border-radius: 0;
    border: 1px solid transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease-out;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 220, 49, 0.8);
}

.cta>.formwrap>form>input:first-of-type {
    border-radius: 8px 0 0 8px;
}

.cta>.formwrap>form>input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease-out;
}

.cta>.formwrap>form>input:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.cta>.formwrap>form>input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
}

.cta>.formwrap>form>input:focus::placeholder {
    color: transparent;
}

.cta>.formwrap>form>button {
    padding: 12px 24px;
    border: 0;
    outline: 0;
    width: 25%;
    background: #225EDE;
    color: var(--bg-light);
    height: 40px;
    border-radius: 0 8px 8px 0;
    border: 1px solid transparent;
    transition: all 0.2s ease-out;
    cursor: pointer;
}

.cta>.formwrap>form>button:hover {
    background: #46D499;
    color: var(--primary-color);
    transform: scale(1.05);
}

.cta.open {
    position: sticky;
    bottom: 20px;
    top: 80px;
    width: 100%;
    margin: 0 auto 20px;
    border-radius: 16px;
    padding: 20px;
    background: var(--accent-color);
    cursor: default;
    overflow: hidden;
}

.cta.open::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: url(https://assets.codepen.io/3436190/wedo-lines.png) 0 0 no-repeat;
    transform: translate(90%, 0%);
    z-index: -1;
    background-size: contain;
    mix-blend-mode: overlay;
}

.cta.open>.formwrap {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease-out;
}

.cta>a {
    display: block;
    height: auto;
    width: 100%;
    color: var(--bg-light);
    font-size: 20px;
    text-decoration: none;
    position: relative;
    pointer-events: none;
    transition: all 0.2s ease-out;
    opacity: 1;
}

.cta>a>svg {
    width: 32px;
    height: 32px;
    transform: translateY(-50%) rotate(-45deg);
    position: absolute;
    top: 50%;
    right: 0;
    transition: all 0.2s ease-out;
    fill: var(--bg-light);
}

.cta.open>a>svg {
    transform: translateY(-50%) rotate(45deg);
}

.cta.open>a {
    opacity: 0;
    display: none;
    animation: fadeOut 0.3s ease-out;
}

@media screen and (max-width: 960px) {
    .cta {
        margin: 20px auto;
        width: 90%;
    }

    .cta.open {
        top: 80px;
        bottom: 10px;
        width: calc(100% - 20px);
        /*transform: translateX(-20px);*/
        padding: 30px 20px;
        border-radius: 0;
    }

    .cta>a {
        font-size: 16px;
    }

    .cta>.formwrap>h4 {
        font-size: 14px;
        line-height: 1.3;
    }

    .cta>.formwrap>form {
        flex-direction: column;
        gap: 8px;
    }

    .cta>.formwrap>form>input,
    .cta>.formwrap>form>button {
        display: block;
        width: 100% !important;
        border-radius: 8px !important;
        border-right: none !important;
    }

    .cta>.formwrap>form>button {
        font-size: 14px;
        line-height: 1.2;
        padding: 12px;
    }
}

@keyframes fadeIn {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        display: block;
        opacity: 1;
    }

    99% {
        display: block;
        opacity: 0;
    }

    100% {
        display: none;
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   4. TREATMENTS
   ═══════════════════════════════════════════════════════════════ */
.treatments-section {
    padding: 80px 0;
    width: 100%;
    background-color: var(--primary-color);
}

.treatments-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.treatments-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.treatments-header p {
    font-size: 1rem;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

.treatments-swiper {
    width: 100%;
    padding: 20px 0 !important;
}

.treatments-swiper .swiper-wrapper {
    -webkit-transition-timing-function: linear !important;
    transition-timing-function: linear !important;
}

.treatment-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--secondary-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    height: 480px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.treatment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.treatment-info {
    padding: 35px 30px;
    z-index: 2;
}

.treatment-info h3 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 0.8;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.treatment-image {
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.treatment-image img {
    width: 110%;
    height: auto;
    object-fit: cover;
    object-position: bottom;
    transition: filter 0.5s ease, transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(100%);
    transform: scale(1);
    transform-origin: bottom center;
}

.treatment-card:hover .treatment-image img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

@media (max-width: 1400px) {
    .treatment-card {
        height: 440px;
    }

    .treatment-info h3 {
        font-size: 2rem;
        line-height: 0.9;
    }
}

@media (max-width: 1200px) {
    .treatment-card {
        height: 400px;
    }

    .treatment-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 991px) {
    .treatment-card {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .treatments-section {
        padding: 50px 0;
    }

    .treatments-header h2 {
        font-size: 2rem;
    }

    .treatment-card {
        height: 360px;
    }
}

@media (max-width: 480px) {
    .treatment-card {
        height: 340px;
    }

    .treatment-info {
        padding: 25px 20px;
    }

    .treatment-info h3 {
        font-size: 2.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   5. ABOUT US
   ═══════════════════════════════════════════════════════════════ */
.about-section {
    display: flex;
    padding: 60px 24px 80px 10px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    gap: 20px;
    background-color: var(--bg-light);
    color: var(--accent-color);
}

@media (min-width: 1024px) {
    .about-section {
        padding: 100px 60px;
        gap: 50px;
        min-height: 850px;
    }
}

.left-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    flex-shrink: 0;
}

.vertical-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    white-space: nowrap;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--accent-color);
    opacity: 0.9;
}

.left-bar .line {
    width: 1px;
    flex-grow: 1;
    min-height: 80px;
    background-color: var(--accent-color);
    margin: 20px 0;
    opacity: 0.3;
}

.main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 40px;
}

@media (min-width: 1024px) {
    .main-content {
        flex-direction: row;
        gap: 6vw;
        align-items: stretch;
    }
}

.text-block {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .text-block {
        flex: 1.25;
    }
}

.about-section .title {
    font-size: clamp(42px, 8vw, 96px);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: 40px;
    margin-top: -8px;
    color: #051650;
}

@media (min-width: 1024px) {
    .about-section .title {
        margin-bottom: auto;
    }
}

.description {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 40px;
    color: #222;
    letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
    .description {
        font-size: 21px;
        max-width: 650px;
        margin-bottom: 60px;
    }
}

.description p {
    margin-bottom: 16px;
}

.description p:last-child {
    margin-bottom: 0;
}

.cta-wrapper {
    margin-top: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    padding: 16px 36px;
    background: transparent;
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: var(--font-main);
    cursor: pointer;
    width: fit-content;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
    transform: translateY(0);
}

.image-block {
    width: 100%;
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .image-block {
        flex: 1;
        margin-top: 0;
        border-radius: 0;
        display: flex;
    }
}

.desktop-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
}

@media (min-width: 1024px) {
    .desktop-image {
        aspect-ratio: auto;
        height: 100%;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

@media (min-width: 1024px) {
    .image-block.fade-in {
        transform: translateX(40px);
    }
}

.left-bar.fade-in {
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translate(0);
}

/* ═══════════════════════════════════════════════════════════════
   6. AFTER & BEFORE
   ═══════════════════════════════════════════════════════════════ */
.after-before-section {
    width: 100%;
    padding: 64px 0 72px;
    background: var(--primary-color);
    overflow: hidden;
}

.ab-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 24px;
}

.ab-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-transform: uppercase;
}

.ab-header p {
    margin-top: 14px;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #8a9cc5;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.ab-swiper-wrapper {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.ab-swiper {
    width: 100%;
}

.ab-swiper .swiper-slide {
    width: 320px;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.ab-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.45s ease;
    border-radius: 16px;
}

.ab-img--before {
    opacity: 1;
    z-index: 1;
}

.ab-img--after {
    opacity: 0;
    z-index: 2;
}

.ab-swiper .swiper-slide:hover .ab-img--before {
    opacity: 0;
}

.ab-swiper .swiper-slide:hover .ab-img--after {
    opacity: 1;
}

.ab-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 32px 18px 16px;
    background: linear-gradient(to top, rgba(0, 7, 45, 0.90) 0%, transparent 100%);
    border-radius: 0 0 16px 16px;
    pointer-events: none;
}

.ab-badge {
    position: absolute;
    bottom: 16px;
    left: 18px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    line-height: 1;
    transition: opacity 0.45s ease;
}

.ab-badge--after {
    background: rgba(18, 52, 153, 0.85);
    color: var(--text-color);
    border: 1px solid rgba(18, 52, 153, 0.6);
    opacity: 1;
}

.ab-badge--before {
    background: rgba(225, 232, 246, 0.12);
    color: var(--text-color);
    border: 1px solid rgba(225, 232, 246, 0.3);
    opacity: 0;
}

.ab-swiper .swiper-slide:hover .ab-badge--after {
    opacity: 0;
}

.ab-swiper .swiper-slide:hover .ab-badge--before {
    opacity: 1;
}

@media (max-width: 768px) {
    .ab-swiper .swiper-slide {
        width: 260px;
        height: 360px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   7. GOOGLE / TRUSTPILOT REVIEWS
   ═══════════════════════════════════════════════════════════════ */
.google-reviews-section {
    padding: 80px 20px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.google-reviews-section .section-title {
    text-align: center;
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

.reviews-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    background-color: #051650;
    padding: 12px 20px;
    border-radius: 16px;
    gap: 16px;
}

.summary-logo {
    display: flex;
    align-items: center;
}

.tp-logo {
    color: #00b67a;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
}

.tp-logo-star {
    font-size: 24px;
    margin-right: 4px;
}

.tp-text {
    color: var(--text-color);
}

.summary-details {
    display: flex;
    flex-direction: column;
}

.summary-rating {
    color: var(--text-color);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-stars {
    color: #fbbc04;
    font-size: 14px;
    letter-spacing: 1px;
}

.summary-count {
    color: #9aa0a6;
    font-size: 13px;
    margin-top: 2px;
}

.reviews-container {
    position: relative;
    padding: 0 50px;
}

.reviewsSwiper {
    padding-bottom: 60px !important;
}

.reviewsSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.slide-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.review-bubble {
    background-color: #051650;
    border-radius: 24px;
    padding: 30px;
    position: relative;
    margin-bottom: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-bubble::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 36px;
    width: 0;
    height: 0;
    border-left: 0px solid transparent;
    border-right: 28px solid transparent;
    border-top: 24px solid #051650;
}

.stars {
    color: #fbbc04;
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.review-text {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 400;
    flex-grow: 1;
}

.read-more {
    color: #8ab4f8;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.g-logo-wrap {
    margin-top: auto;
}

.g-logo {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.8px;
    display: inline-block;
}

.g-blue {
    color: #4285F4;
}

.g-red {
    color: #EA4335;
}

.g-yellow {
    color: #FBBC04;
}

.g-green {
    color: #34A853;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 20px;
}

.author-avatar-wrap {
    position: relative;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    object-fit: cover;
}

.author-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    background-color: #ff6d00;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-star {
    color: #fff;
    font-size: 10px;
}

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

.author-name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-name {
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
}

.custom-verified-icon {
    width: 16px;
    height: 16px;
    fill: #4285F4;
}

.author-time {
    color: #9aa0a6;
    font-size: 13px;
    margin-top: 3px;
}

.review-nav-prev,
.review-nav-next {
    width: 44px;
    height: 44px;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -30px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-nav-prev.swiper-button-disabled,
.review-nav-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

.review-nav-prev:hover,
.review-nav-next:hover {
    background-color: #555;
}

.review-nav-prev::after,
.review-nav-next::after {
    font-size: 16px;
    font-weight: bold;
}

.review-nav-prev {
    left: 0;
}

.review-nav-next {
    right: 0;
}

.swiper-pagination {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.swiper-pagination-bullet {
    background-color: #9aa0a6;
    opacity: 0.4;
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    background-color: var(--text-color);
    opacity: 1;
}

@media (max-width: 768px) {
    .reviews-container {
        padding: 0 10px;
    }

    .review-nav-prev,
    .review-nav-next {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   8. FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq-section-wrap {
    background-color: var(--primary-color);
    position: relative;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
}

.faq-section-wrap .bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.faq-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    width: 100%;
    border-radius: 30px;
    /*padding: 40px;*/
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h2 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-color);
}

.faq-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 0.8;
}

.faq-grid {
    column-count: 2;
    gap: 20px;
    align-items: flex-start;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.faq-item {
    background-color: var(--accent-color);
    border: 1px solid var(--secondary-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: var(--secondary-color);
    border-color: var(--text-color);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    user-select: none;
}

.faq-question.active {
    color: #ffffff;
}

.faq-question .icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-question.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 25px;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.faq-question.active+.faq-answer {
    padding-bottom: 25px;
}

.faq-bg-gradient {
    background: linear-gradient(180deg, rgba(0, 7, 45, 1) 0%, rgba(255, 255, 255, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .faq-grid {
        display: flex;
        flex-direction: column;
        column-count: 1;
    }

    .faq-header h2 {
        font-size: 1.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   9. LOGO SWIPER
   ═══════════════════════════════════════════════════════════════ */
.section-logo-swiper {
    background-color: var(--primary-color);
    padding: 50px 0;
    overflow: hidden;
    width: 100%;
}

.my-custom-logo-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
    -webkit-transition-timing-function: linear !important;
}

.my-custom-logo-swiper .swiper-slide {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.my-custom-logo-swiper .swiper-slide:hover {
    opacity: 1;
}

.my-custom-logo-swiper .swiper-slide img {
    height: 45px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .my-custom-logo-swiper .swiper-slide img {
        height: 35px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   10. POPUP
   ═══════════════════════════════════════════════════════════════ */
/*--- POPUP ---*/

#popUp {
    position: fixed;
    width: 250px;
    height: 170px;
    background: var(--accent-color);
    border: 3px solid var(--secondary-color);
    bottom: 15%;
    margin-left: -425px;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
    z-index: 9999;
}

#popUp .close {
    color: var(--bg-light);
    right: 8px;
    top: 5px;
    position: absolute;
    font-size: 20px;
    cursor: pointer;
}

#popUp h5 {
    font-size: 17px;
    color: var(--bg-light);
    /* line-height: 24px; */
    font-weight: 400;
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
}

#popUp a.button {
    margin: 0 auto;
    text-align: center;
    right: 0;
    left: 0;
    position: absolute;
    width: 120px;
    font-size: 15px;
    color: #fff;
    background: var(--secondary-color);
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 10px;
    text-decoration: none;
}

#plus {
    position: fixed;
    color: var(--bg-light);
    bottom: 15%;
    font-size: 15px;
    margin-left: -425px;
    -webkit-transition: all 1.25s ease;
    -moz-transition: all 1.25s ease;
    -o-transition: all 1.25s ease;
    transition: all 1.25s ease;
    cursor: pointer;
    text-align: left;
    letter-spacing: 1px;
    z-index: 9999;
}

#plus span {
    position: absolute;
    margin-top: 109px;
    left: 5px;
    transform: rotate(-90deg);
    transform-origin: 0 0;
    width: max-content;
}

#plus::after {
    content: '';
    display: block;
    display: relative;
    /* border-top: 55px solid transparent;
  border-bottom: 55px solid transparent;
  border-left: 55px solid #1c8dc4; */
    width: 31px;
    height: 120px;
    background: var(--accent-color);
}

#telefon {
    display: block;
    text-align: center;
    font-size: 1.4em;
    color: var(--bg-light);
    font-weight: 700;
}

#telefon a {
    text-decoration: none;
    color: var(--bg-light);
}

#popUp a.button {
    display: none;
}

@media all and (max-width: 800px) {
    #telefon {
        display: none;
    }

    #popUp a.button {
        display: block;
    }
}

/* ═══════════════════════════════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════════════════════════════ */
.clinic-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 25px;
    display: block;
}

.footer-col.brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 15px;
    max-width: 300px;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: var(--bg-light);
    padding-left: 5px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .clinic-footer {
        padding: 60px 0 30px;
    }

    .footer-container {
        padding: 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col.brand p,
    .footer-col.brand .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col ul li a:hover {
        padding-left: 0;
    }
}