/* Google Fonts are now loaded efficiently in index.html head via preconnect & link tags */

/* --- Reset & General System --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #96B2AE;
    --primary-hover-color: #7DA19C;
    --primary-light: rgba(150, 178, 174, 0.1);
    --primary-medium: rgba(150, 178, 174, 0.25);
    --primary-dark: #6C8B87;

    --text-dark: #242424;
    --text-medium: #0A0A0ABF;
    --text-light: #8E9B9A;

    --bg-white: #FFFFFF;
    --bg-cream: #FAFBFB;
    --bg-light: #F2F5F4;

    --border-color: rgba(150, 178, 174, 0.2);

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', Arial, Helvetica, sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-quick: all 0.2s ease;

    --shadow-subtle: 0 10px 30px rgba(150, 178, 174, 0.1);
    --shadow-medium: 0 15px 40px rgba(30, 35, 35, 0.08);
    --shadow-heavy: 0 25px 60px rgba(30, 35, 35, 0.12);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Common Layout Components */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

/* Typography elements */
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
}

h1,
h2 {
    font-family: var(--font-heading);
    font-size: 50px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.25;
}

p {
    font-size: 16px;
    color: var(--text-medium);
    font-weight: 400;
    line-height: 1.7;
}

strong {
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 8px 25px rgba(150, 178, 174, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(150, 178, 174, 0.45);
}

.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(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(150, 178, 174, 0.2);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Section Subtitle Tag */
.section-tag {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

/* Underline Highlight effect */
.highlight-text {
    background: linear-gradient(180deg, transparent 75%, var(--primary-light) 25%);
    display: inline;
}


/* --- Header & Navigation --- */
.announcement-bar {
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    z-index: 1001;
}

header {
    position: absolute;
    top: 2.2rem;
    /* height of announcement bar */
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: #ffffff21;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

header.sticky {
    position: fixed;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 30px rgba(30, 35, 35, 0.05);
    padding: 0.5rem 0;
    animation: slideDown 0.4s ease-out forwards;
    border-bottom: 1px solid var(--border-color);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 4rem;
}

.logo img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

/* Make logo dark on sticky */
header.sticky .logo img {
    max-width: 200px;
    filter: brightness(0.2) contrast(1.2);
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--bg-white);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.4rem 0;
    display: inline-flex;
    align-items: center;
}

header.sticky .nav-links a {
    color: var(--text-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--bg-white);
    transition: var(--transition-smooth);
}

header.sticky .nav-links a::after {
    background-color: var(--primary-color);
}

/* --- Desktop Dropdown Menu --- */
.has-dropdown {
    position: relative;
}

.has-dropdown>a {
    gap: 6px;
}

.dropdown-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: var(--transition-smooth);
    margin-top: -2px;
    /* Precision offset to match font baseline visually */
    flex-shrink: 0;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(-135deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-heavy);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 280px;
    padding: 1.2rem 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    margin-top: 10px;
    z-index: 1002;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.8rem;
    color: var(--text-medium) !important;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: var(--transition-quick);
    position: relative;
    width: 100%;
}

.dropdown-menu a::after {
    display: none !important;
    /* disable underline hover */
}

.dropdown-menu a:hover,
.dropdown-menu a.dropdown-active {
    color: var(--primary-color) !important;
    background-color: var(--bg-light);
    padding-left: 2.2rem;
}

/* Sticky modifications */
header.sticky .dropdown-menu {
    border-color: rgba(150, 178, 174, 0.15);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Header CTAs */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .btn {
    padding: 0.6rem 1.6rem;
    font-size: 0.75rem;
}

.header-actions .btn-book {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
}

.header-actions .btn-book:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
}

header.sticky .header-actions .btn-book {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.header-actions .btn-call {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
}

.header-actions .btn-call:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
}

header.sticky .header-actions .btn-call {
    background-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

/* Header Search Button */
.btn-search {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--bg-white);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    padding: 0.4rem 0.8rem;
    margin-right: 0.5rem;
}

.btn-search:hover {
    opacity: 0.85;
}

.btn-search .search-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, margin 0.3s ease;
    margin-left: 0;
    display: inline-block;
    vertical-align: middle;
}

.btn-search:hover .search-text {
    max-width: 80px;
    opacity: 1;
    margin-left: 0.5rem;
}

.search-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

header.sticky .btn-search {
    color: var(--text-dark);
}

/* --- Full Screen Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(30, 35, 35, 0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition-smooth);
}

.search-close span {
    display: block;
    width: 32px;
    height: 2px;
    background-color: var(--bg-white);
    position: absolute;
    top: 23px;
    left: 8px;
    transition: var(--transition-smooth);
}

.search-close span:nth-child(1) {
    transform: rotate(45deg);
}

.search-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.search-close:hover {
    transform: rotate(90deg);
}

.search-container {
    width: 100%;
    max-width: 700px;
    padding: 0 2rem;
    text-align: center;
}

.search-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.search-form:focus-within {
    border-color: var(--primary-color);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    outline: none;
    padding-right: 1.5rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-heading);
}

.search-form .btn-primary {
    padding: 0.8rem 2.2rem;
}

.search-info {
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

/* --- Search Results styling --- */
.search-results-list {
    margin-top: 2.5rem;
    max-height: 55vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    padding-right: 0.5rem;
}

.search-results-list::-webkit-scrollbar {
    width: 6px;
}
.search-results-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.search-results-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.search-results-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.search-result-item {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.search-result-item h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--bg-white);
    margin: 0 0 0.4rem 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.search-result-item:hover h4 {
    color: var(--primary-color);
}

.search-result-item p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

.search-no-results {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    text-align: center;
    margin-top: 3rem;
    font-family: var(--font-body);
}

mark.search-highlight {
    background-color: rgba(150, 178, 174, 0.35);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 2px;
    padding: 0 2px;
}

/* Circular Menu Toggle button and Book Now Pill */
.btn-book-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.7rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-book-pill:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(150, 178, 174, 0.3);
}

.mobile-actions {
    display: none !important;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    background-color: var(--primary-color) !important;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(150, 178, 174, 0.2);
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: var(--bg-white) !important;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.mobile-toggle:hover {
    background-color: var(--primary-dark) !important;
    transform: scale(1.05);
}

header.sticky .mobile-toggle span {
    background-color: var(--bg-white) !important;
    /* Circular toggle stays brand green and white lines in sticky too! */
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.open {
    right: 0;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid #ECECEC;
}

.drawer-close {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    text-transform: capitalize;
    padding: 0.5rem;
}

.drawer-close svg {
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.drawer-close:hover {
    color: var(--primary-color);
}

.drawer-close:hover svg {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Drawer Links */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-links li {
    border-bottom: 1px solid #F0F0F0;
    width: 100%;
}

.mobile-nav-links>li>a {
    display: block;
    padding: 1.6rem 2.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
    text-transform: uppercase;
    transition: var(--transition-smooth);
    text-align: center;
}

.mobile-nav-links>li>a:hover {
    color: var(--primary-color);
}

/* Submenu Accordion Layout */
.mobile-dropdown-header {
    position: relative;
    width: 100%;
}

.mobile-dropdown-header .services-text-link {
    display: block;
    padding: 1.6rem 65px;
    /* Symmetrical horizontal padding matching width of toggle */
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
    text-transform: uppercase;
    transition: var(--transition-smooth);
    text-align: center;
}

.mobile-dropdown-header .services-text-link:hover {
    color: var(--primary-color);
}

.mobile-dropdown-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 65px;
    background: none;
    border: none;
    border-left: 1px solid #F0F0F0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.mobile-dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.open {
    background-color: #FAFBFB;
}

.mobile-dropdown-toggle.open svg {
    transform: rotate(90deg);
    color: var(--primary-color);
}

/* Dropdown Sub-menu */
.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #FAFBFB;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-dropdown-menu.open {
    max-height: 500px;
}

.mobile-dropdown-menu li {
    border-bottom: 1px solid #F4F6F6;
}

.mobile-dropdown-menu li:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    color: var(--text-medium);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    text-align: center;
}

.mobile-dropdown-menu a:hover,
.mobile-dropdown-menu a.dropdown-active {
    color: var(--primary-color);
    background-color: rgba(150, 178, 174, 0.08);
}

/* Overlay Backdrop */
.mobile-nav-overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(30, 35, 35, 0.4);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: var(--transition-smooth);
}

.mobile-nav-overlay-bg.open {
    display: block;
    opacity: 1;
}

/* Animation on mobile toggled open */
.mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-toggle.open span {
    background-color: var(--text-dark) !important;
}


/* --- Hero Banner Section --- */
.hero {
    height: 720px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    overflow: hidden;
}

.video-container.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 aspect ratio */
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.35);
    /* scale up to crop borders/controls completely */
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.12);
    /* clear transparent backing overlay with no bottom fading */
    z-index: 2;
}

/* Floating Video Switcher Button */
.video-toggle-control {
    position: absolute;
    bottom: 35px;
    right: 4rem;
    z-index: 10;
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: var(--bg-white);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-toggle-control:hover {
    background: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.video-toggle-control svg {
    transition: var(--transition-smooth);
}

.video-toggle-control:hover svg {
    transform: rotate(15deg);
}


/* --- Empowering Wellness Section --- */
.empower-section {
    background-color: var(--bg-white);
    padding-top: 5rem;
}

.empower-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.empower-img-container {
    position: relative;
}

.empower-img-container img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-heavy);
    display: block;
    transition: var(--transition-smooth);
}

.empower-img-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 3px solid var(--primary-color);
    border-left: 3px solid var(--primary-color);
    border-top-left-radius: 24px;
    z-index: -1;
}

.empower-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.empower-content p {
    margin-bottom: 2rem;
}


/* --- Stats counter row --- */
.stats-container {
    margin-top: 5rem;
    padding-bottom: 5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-item {
    position: relative;
    padding: 0 1rem;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #BFCFCB;
    /* A delicate light grey-teal that matches Adelaide's theme beautifully */
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    /* Regular weight serif for high-end boutique feel */
    color: var(--text-dark);
    /* #1E2323 - dark charcoal/black */
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.95rem;
    /* 15px */
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #7E8B8B;
    /* Muted grey from user request */
    display: block;
    line-height: 1.4;
}


/* --- Different Experience Section (Cards Grid) --- */
.exp-section {
    background-color: var(--bg-light);
}

.exp-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.exp-header h2 {
    margin-bottom: 1rem;
}

.exp-header p {
    margin-bottom: 1.5rem;
}

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

.services-swiper-container {
    width: 100%;
    position: relative;
    padding: 1rem 0 5rem;
    overflow: hidden;
    /* Prevent page horizontal scrollbar due to bleeding slides */
}

.services-swiper {
    width: 100%;
    padding: 2rem 4rem 4rem !important;
    /* Generous padding for shadow & bleeding spacing */
    margin: 0 auto;
    overflow: visible !important;
    /* Enables beautiful slide bleed off viewport */
}

@media (max-width: 768px) {
    .services-swiper {
        padding: 1.5rem 1.5rem 3rem !important;
        /* Elegant snug fit on tablet and mobile viewports */
    }
}

/* Ensure slides sizes are stable */
.services-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

/* Custom Swiper Controls */
.services-swiper-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.services-swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styles for swiper default classes which are injected dynamically */
.services-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #BFCFCB;
    opacity: 0.5;
    transition: var(--transition-quick);
    margin: 0 5px !important;
    border-radius: 50%;
    cursor: pointer;
}

.services-swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
    width: 26px;
    border-radius: 4px;
    opacity: 1;
}

.card {
    width: 100%;
    max-width: 360px;
    /* Clean size matching grid design */
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.2rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: var(--transition-smooth);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 35, 35, 0.85) 0%, rgba(30, 35, 35, 0.3) 50%, rgba(30, 35, 35, 0) 100%);
    z-index: 2;
    transition: var(--transition-smooth);
}

.card-content {
    position: relative;
    z-index: 3;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1.2rem;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Ensure perfect, crisp white coloring regardless of PNG background */
    transition: var(--transition-smooth);
}

.card h3 {
    color: var(--bg-white);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

/* Hover effects */
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}



.card:hover .card-overlay {
    background: linear-gradient(to top, rgba(30, 35, 35, 0.9) 0%, rgba(30, 35, 35, 0.45) 50%, rgba(30, 35, 35, 0.1) 100%);
}

.card:hover .card-content {
    transform: translateY(0);
}

.card:hover .card-icon {
    transform: translateY(-4px) scale(1.05);
    /* Micro-animation to feel reactive on hover */
}

.card:hover p {
    opacity: 1;
    transform: translateY(0);
}


/* --- Smile Transformation Banner --- */
.transform-banner {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
}

.transform-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 30, 30, 0.62);
    /* Rich dark charcoal backing overlay for premium text legibility */
    z-index: 1;
}

.transform-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.transform-banner h2 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.transform-banner p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.transform-banner .btn {
    text-transform: none;
    /* Make it Title Case as in screenshot */
    font-size: 0.95rem;
    /* Clean readable size */
    padding: 0.9rem 2.6rem;
    /* Generous padding matching premium aesthetic */
    letter-spacing: 0.02em;
    /* Sleek letter spacing */
    font-weight: 500;
    border-radius: 30px;
    /* Perfectly rounded pill shape */
}


/* --- Founder Section --- */
.founder-section {
    background-color: var(--bg-white);
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.founder-content h2 {
    margin-bottom: 1.5rem;
}

.founder-content p {
    margin-bottom: 1.5rem;
}


.founder-img-container {
    position: relative;
}

.founder-img-container img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-heavy);
    display: block;
}

.founder-img-container::before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 3px solid var(--primary-color);
    border-right: 3px solid var(--primary-color);
    border-bottom-right-radius: 24px;
    z-index: -1;
}


/* --- Signature Treatments (Vertical Tabs) Section --- */
.treatments-section {
    background-color: var(--bg-cream);
    border-top: 1px solid var(--border-color);
}

.treatments-header {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 5rem;
    align-items: flex-end;
    margin-bottom: 4.5rem;
}

.treatments-header-title h2 {
    margin-bottom: 0;
}

.treatments-header-desc p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

@media (max-width: 992px) {
    .treatments-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3.5rem;
    }
}

.treatments-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Tabs list */
.tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
}

.tab-btn {
    width: 100%;
    text-align: left;
    padding: 1.25rem 2rem;
    background-color: var(--bg-white);
    border: 1px solid rgba(150, 178, 174, 0.18);
    /* Soft matching outline */
    border-radius: 12px;
    font-family: var(--font-heading);
    /* Playfair Display Serif for premium classic aesthetic */
    font-size: 1.25rem;
    /* Clean large serif font */
    font-weight: 400;
    /* Regular elegant weight */
    color: var(--text-dark);
    /* #1E2323 - Dark charcoal / black */
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(30, 35, 35, 0.02);
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.tab-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    filter: brightness(0.2) contrast(1.2);
    /* Ensure the inactive icon matches the dark charcoal color (#1E2323) perfectly */
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(6px);
}

.tab-btn:hover .tab-icon {
    transform: scale(1.05);
}

.tab-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 10px 25px rgba(150, 178, 174, 0.35);
}

.tab-btn.active .tab-icon {
    filter: brightness(0) invert(1);
    /* Ensure active icon changes to solid crisp white color */
}

/* Tab Content Display Card */
.tab-content {
    background-color: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(150, 178, 174, 0.15);
    /* Soft premium matching border */
    display: none;
    flex-direction: column;
    /* Stack vertically as per screenshot */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
    max-width: 680px;
    /* Snug matching width for elegant boutique display */
    margin: 0 auto;
}

.tab-content.active {
    display: flex;
    /* Active displays as flex block */
    opacity: 1;
    transform: translateY(0);
}

.tab-img-panel {
    width: 100%;
    height: 380px;
    /* Gorgeous height crop for high-end photography */
    overflow: hidden;
    position: relative;
}

.tab-img-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tab-content-panel {
    padding: 3rem;
    /* Snug vertical spacing padding */
}

.tab-content-panel h3 {
    font-family: var(--font-heading);
    /* Playfair Display serif font */
    font-size: 2.2rem;
    font-weight: 400;
    /* Regular elegant weight */
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.tab-content-panel p {
    color: var(--text-medium);
    font-size: 0.98rem;
    /* readable 15.5px */
    line-height: 1.65;
    margin-bottom: 2.2rem;
    font-weight: 400;
}

.tab-content-panel .btn {
    text-transform: none;
    /* Title Case 'View Details' */
    padding: 0.75rem 2.2rem;
    /* Compact premium pill button */
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    font-weight: 500;
}


/* --- Before/After Image Comparison Section --- */
.comparison-section {
    background-color: var(--bg-white);
}

.comparison-header {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 5rem;
    align-items: flex-end;
    margin-bottom: 4.5rem;
}

.comparison-header-title h2 {
    margin-bottom: 0;
}

.comparison-header-desc {
    text-align: right;
    /* Aligned right as in screenshot! */
}

.comparison-header-desc p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    font-weight: 400;
}

.comparison-header-desc .btn {
    text-transform: none;
    /* Title Case 'See More Stories' */
    font-size: 0.95rem;
    padding: 0.85rem 2.4rem;
    border-radius: 30px;
    display: inline-block;
}

@media (max-width: 992px) {
    .comparison-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3.5rem;
    }

    .comparison-header-desc {
        text-align: left;
        /* Normal left alignment on tablet/mobile viewports */
    }
}

/* Interactive slider widget container */
.slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    user-select: none;
    -webkit-user-select: none;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    /* Init at 50% split width */
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.img-after .slider-img {
    width: 100%;
    height: 100%;
    max-width: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* Slider center handle */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 44px;
    /* Generous touchscreen grab container */
    height: 100%;
    z-index: 10;
    /* Bring grab container to the absolute top for easy interaction */
    cursor: ew-resize;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    background-color: transparent;
    /* Invisible touch bounds */
}

.slider-handle::before {
    content: '';
    width: 4px;
    /* The elegant visible white dividing line */
    height: 100%;
    background-color: var(--bg-white);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background-color: var(--bg-white);
    border: 1px solid rgba(150, 178, 174, 0.25);
    /* Thin elegant outline */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(30, 35, 35, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: var(--transition-quick);
}

/* arrows inside handle circle */
.slider-button::before,
.slider-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.slider-button::before {
    border-width: 5px 6px 5px 0;
    border-color: transparent var(--text-dark) transparent transparent;
    /* Dark charcoal arrow left */
    left: 14px;
}

.slider-button::after {
    border-width: 5px 0 5px 6px;
    border-color: transparent transparent transparent var(--text-dark);
    /* Dark charcoal arrow right */
    right: 14px;
}



/* Slider overlay tags */
.slider-label {
    position: absolute;
    bottom: 20px;
    padding: 0.4rem 1rem;
    background-color: rgba(30, 35, 35, 0.6);
    backdrop-filter: blur(5px);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 4;
    pointer-events: none;
}

.label-before {
    right: 20px;
}

.label-after {
    left: 20px;
}


/* --- Instagram sneak peek grid section --- */
.insta-section {
    background-color: var(--bg-white);
    /* Clean white background */
    position: relative;
    padding: 6rem 0 4rem;
    /* Bottom padding so the stripe is visible below the images */
}

/* Pseudo-element for the beautiful grey-teal background stripe on the bottom half of the images */
.insta-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    /* Cover bottom portion of the square images and the space below */
    background-color: #96B2AE;
    /* Adelaide Dental Spa Brand Muted Teal Color */
    z-index: 1;
}

.insta-header {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 5rem;
    position: relative;
    z-index: 2;
}

.insta-header h2 {
    margin-bottom: 0.8rem;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
    /* Exact gap width as in screenshot! */
    width: 100%;
    padding: 0 4rem;
    /* Gutters aligning perfectly with nav header */
    position: relative;
    z-index: 2;
    /* Float above the grey-teal background stripe */
}

.insta-item {
    aspect-ratio: 1;
    border-radius: 0;
    /* Square corners matching screenshot exactly! */
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(150, 178, 174, 0.85);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

/* Instagram Vector icon styling */
.insta-overlay::before {
    content: '';
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform: scale(0.6);
    transition: var(--transition-smooth);
}



.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-item:hover .insta-overlay::before {
    transform: scale(1);
}

.innstaRow .contentBox {
    width: 54%;
}


/* --- Footer Section --- */
footer {
    background-color: var(--primary-color);
    padding: 6rem 0 3rem;
    color: var(--bg-white);
}

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

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

.footer-brand img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    filter: none;
    /* Keep the original white logo */
}

.footer-actions-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-grow: 1;
    max-width: 650px;
}

.footer-nav {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    padding: 0;
    margin: 0;
    width: 100%;
    justify-content: flex-end;
}

.footer-nav a {
    text-decoration: none;
    color: var(--bg-white);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-divider-thin {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    /* Light matching lines */
    margin: 1.5rem 0;
}

.footer-contact-row {
    display: flex;
    gap: 2.5rem;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.contact-link {
    text-decoration: none;
    color: var(--bg-white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    opacity: 0.7;
}

.contact-link img {
    width: 16px;
    height: auto;
    filter: brightness(0) invert(1);
    /* Turn icons white */
}

.footer-divider-wide {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    /* Light matching lines */
    margin: 3.5rem 0 2rem;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.85);
    /* Light matching copyright text */
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin: 0;
}

.footer-credit-link {
    color: var(--bg-white);
    text-decoration: underline;
    transition: var(--transition-quick);
    font-weight: 500;
}

.footer-credit-link:hover {
    color: rgba(255, 255, 255, 0.7) !important;
    /* Mute on hover */
}


/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* --- Floating Booking Button --- */
.btn-floating-book {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    background-color: #2D2D2D;
    /* Dark charcoal */
    color: var(--bg-white);
    padding: 0.95rem 1.8rem;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    /* Subtle rounding as in screenshot */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
    border: none;
    letter-spacing: 0.02em;
}

.btn-floating-book:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(150, 178, 174, 0.3);
}

.btn-floating-book.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- Floating Scroll to Top Button --- */
.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(30, 35, 35, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.3s ease,
        box-shadow 0.3s ease;
    border: none;
    outline: none;
    padding: 0;
}

/* Progress ring SVG overlay */
.btn-scroll-top .progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.btn-scroll-top .progress-circle-bg {
    fill: none;
    stroke: rgba(150, 178, 174, 0.12);
    /* Delicate matching outline background */
    stroke-width: 3.5;
}

.btn-scroll-top .progress-circle-bar {
    fill: none;
    stroke: var(--primary-color);
    /* Dynamic active progress border */
    stroke-width: 4.5;
    /* Slightly thicker for distinct pop */
    stroke-linecap: round;
    stroke-dasharray: 289.03;
    /* 2 * PI * 46 */
    stroke-dashoffset: 289.03;
    transform: rotate(-90deg);
    transform-origin: 50px 50px;
    transition: stroke-dashoffset 0.05s linear;
}

.btn-scroll-top .arrow-up {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-left: 2px solid var(--text-medium);
    border-top: 2px solid var(--text-medium);
    transform: rotate(45deg);
    margin-top: 3px;
    /* visual center offset */
    transition: var(--transition-smooth);
    z-index: 2;
}

.btn-scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.btn-scroll-top.visible:hover {
    background-color: var(--bg-white);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 25px rgba(150, 178, 174, 0.25);
    /* Brand glow */
}

.btn-scroll-top:hover .arrow-up {
    border-color: #4A605D;
    transform: rotate(45deg) translate(-2px, -2px);
    /* visual scroll up micro-animation */
}

.btn-scroll-top:hover .progress-circle-bg {
    stroke: rgba(150, 178, 174, 0.2);
}


/* --- Responsive Breakpoints (Media Queries) --- */

@media (max-width: 1024px) {
    section {
        padding: 5rem 0;
    }

    .empower-grid {
        gap: 3rem;
    }

    .empower-content h2,
    .founder-content h2,
    .treatments-header h2,
    .comparison-text h2,
    .insta-header h2,
    .exp-header h2 {
        font-size: 2.3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .treatments-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 0.8rem 1.4rem;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .tab-icon {
        width: 22px;
        height: 22px;
    }

    .tab-content {
        width: 100%;
    }

    .tab-img-panel {
        height: 280px;
        min-height: auto;
    }

    .tab-content-panel {
        padding: 2rem;
    }

    .comparison-slider-container {
        width: 100%;
    }

    .insta-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 2rem;
        gap: 0.8rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-actions-column {
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-contact-row {
        justify-content: center;
    }
}

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

    /* Navigation */
    header .nav-container {
        padding: 0.8rem 1.5rem;
    }

    .logo img {
        max-width: 150px;
    }

    .desktop-nav {
        display: none !important;
    }

    .desktop-actions {
        display: none !important;
    }

    .mobile-actions {
        display: flex !important;
        gap: 0.6rem;
        align-items: center;
    }

    .btn-book-pill {
        padding: 0.55rem 1.2rem;
        font-size: 0.82rem;
    }

    .mobile-toggle {
        width: 40px;
        height: 40px;
        gap: 3px;
    }

    .mobile-toggle span {
        width: 15px;
        height: 2px;
    }

    /* Grid system collapses */
    .empower-grid,
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .empower-img-container::before {
        display: none;
    }

    .empower-content,
    .founder-content {
        order: 2;
    }

    .empower-img-container,
    .founder-img-container {
        order: 1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item::after {
        display: none !important;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .transform-banner h2 {
        font-size: 2.2rem;
    }

    .transform-banner p {
        font-size: 0.95rem;
    }

    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem;
        gap: 0.6rem;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .footer-contact-row {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }

    /* Center align all main page sections on mobile screens */
    .empower-content,
    .founder-content,
    .treatments-header,
    .tab-content-panel,
    .comparison-header {
        text-align: center;
    }

    .comparison-header-desc {
        text-align: center !important;
    }

    /* Keep the flex buttons centered in mobile viewports */
    .empower-content .btn,
    .founder-content .btn,
    .tab-content-panel .btn,
    .comparison-header-desc .btn {
        margin: 0.5rem auto 0 auto;
        display: inline-block;
    }

    /* Adjust floating button location for smaller screens */
    .btn-floating-book {
        bottom: 20px;
        left: 20px;
        padding: 0.75rem 1.4rem;
        font-size: 13px;
    }

    /* Adjust floating scroll top button location for smaller screens */
    .btn-scroll-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
    }

    .btn-scroll-top .arrow-up {
        width: 7px;
        height: 7px;
        border-width: 1.5px;
        margin-top: 3px;
    }
}


/* =============================================================
   Inner-page Layout & Header overrides (Shared across inner pages)
   ============================================================= */
body.inner-page {
    padding-top: 0; /* let page-hero-banner handle the offset */
}

/* Active page link styling */
.nav-links a.nav-current {
    color: var(--primary-color) !important;
}
.nav-links a.nav-current::after {
    width: 100% !important;
    background-color: var(--primary-color) !important;
}

/* ── Shared Inner Page Hero Banner ────────────────────────── */
.page-hero-banner {
    position: relative;
    padding-top: 157px;
    padding-bottom: 60px;
    background-color: #1a1d1d;
    background-image: url('../assets/images/Adelaide-Dental-Spa-1.webp');
    background-size: cover;
    background-position: center 35%;
    overflow: hidden;
    text-align: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 12, 0.78);
    z-index: 1;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
}

.page-hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.25s ease;
}

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

.page-breadcrumb span[aria-hidden] {
    color: rgba(255, 255, 255, 0.35);
}

.page-breadcrumb span[aria-current="page"] {
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
    .page-hero-banner {
        padding-top: calc(34px + 60px + 40px);
        padding-bottom: 40px;
    }
}

/* --- Bootstrap Icons Premium Theme Coloring --- */
.checkmark-icon i,
.feature-icon i,
.focus-icon i,
.why-card-icon i,
.prevention-icon i,
.care-feature-box .feature-icon i {
    color: var(--primary-color) !important;
    font-style: normal;
}

/* --- Performance Optimization (Defer Offscreen Rendering) --- */
@supports (content-visibility: auto) {
    .exp-section {
        content-visibility: auto;
        contain-intrinsic-size: auto none auto 700px;
    }
    .transform-banner {
        content-visibility: auto;
        contain-intrinsic-size: auto none auto 350px;
    }
    .founder-section {
        content-visibility: auto;
        contain-intrinsic-size: auto none auto 650px;
    }
    .treatments-section {
        content-visibility: auto;
        contain-intrinsic-size: auto none auto 850px;
    }
    .comparison-section {
        content-visibility: auto;
        contain-intrinsic-size: auto none auto 800px;
    }
    .insta-section {
        content-visibility: auto;
        contain-intrinsic-size: auto none auto 600px;
    }
    footer {
        content-visibility: auto;
        contain-intrinsic-size: auto none auto 400px;
    }
}