/* Frontend Styles - Modern Medical Appointment Booking */
/* Fonts: DM Sans + Playfair Display loaded in pages/includes/header.php */

:root {
    /* Legacy hex aliases (keep for existing components) */
    --primary-color: #4b9a94;
    --primary-dark: #3a7a75;
    --primary-light: #6bb5af;
    --secondary-color: #f8f9fa;
    --accent-color: #ff6b6b;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #4b9a94 0%, #3a7a75 100%);

    /* Soft, calming fertility wellness palette (HSL tokens) */
    --background: 40 33% 98%;
    --foreground: 200 25% 20%;

    --card: 0 0% 100%;
    --card-foreground: 200 25% 20%;

    --popover: 0 0% 100%;
    --popover-foreground: 200 25% 20%;

    --primary: 175 35% 45%;
    --primary-foreground: 0 0% 100%;

    --secondary: 38 40% 92%;
    --secondary-foreground: 200 25% 20%;

    --muted: 160 20% 92%;
    --muted-foreground: 200 15% 45%;

    --accent: 12 70% 70%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 175 20% 88%;
    --input: 175 20% 88%;
    --ring: 175 35% 45%;

    --radius: 0.75rem;

    --gradient-hero: linear-gradient(135deg, hsl(175 35% 45% / 0.08) 0%, hsl(38 40% 92%) 50%, hsl(12 70% 70% / 0.1) 100%);
    --gradient-card: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(38 40% 96%) 100%);
    --gradient-cta: linear-gradient(135deg, hsl(175 35% 45%) 0%, hsl(175 40% 38%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(12 70% 70%) 0%, hsl(12 65% 60%) 100%);

    --shadow-soft: 0 4px 20px -4px hsl(200 25% 20% / 0.08);
    --shadow-card: 0 8px 30px -8px hsl(200 25% 20% / 0.1);
    --shadow-elevated: 0 20px 50px -15px hsl(200 25% 20% / 0.15);

    /* Sidebar (compatibility) */
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.dark {
    --background: 200 25% 10%;
    --foreground: 40 33% 95%;

    --card: 200 25% 14%;
    --card-foreground: 40 33% 95%;

    --popover: 200 25% 14%;
    --popover-foreground: 40 33% 95%;

    --primary: 175 40% 55%;
    --primary-foreground: 200 25% 10%;

    --secondary: 200 20% 20%;
    --secondary-foreground: 40 33% 95%;

    --muted: 200 20% 18%;
    --muted-foreground: 200 15% 60%;

    --accent: 12 60% 60%;
    --accent-foreground: 200 25% 10%;

    --destructive: 0 62.8% 50%;
    --destructive-foreground: 210 40% 98%;

    --border: 200 20% 20%;
    --input: 200 20% 20%;
    --ring: 175 40% 55%;

    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    font-family: var(--font-body);
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Titles and headings - Playfair Display */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.card-title,
.modal-title,
.services-page-title,
.consult-hero-title,
.egg-hero-title,
.about-hero-title,
.about-section-title,
.about-cta-title,
.ovulation-hero-title,
.how-it-works-title,
.specialists-title,
.svc-inner-title,
.svc-detail-title,
.booking-header h1,
.testimonials-section .section-title {
    font-family: var(--font-heading);
}

/* Navbar Styles */
.navbar {
    padding: 0rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
}

/* fabhealth logo - two-tone */
.brand-logo {
    display: inline-flex;
    align-items: baseline;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: inherit;
}
.brand-logo img {
    height: 76px;
    width: auto;
    display: block;
    vertical-align: middle;
}
.brand-logo-fab {
    color: var(--primary-color);
    font-weight: 800;
}
.brand-logo-health {
    color: var(--primary-light);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.brand-logo.brand-logo-light .brand-logo-health {
    color: rgba(255,255,255,0.9);
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Navbar: center menu + right "Book a Test" button */
.navbar-collapse-centered {
    flex-grow: 1;
    --display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.navbar-nav-center {
    margin-left: 0;
    margin-right: auto;
}
.navbar-nav-right {
    margin-left: auto;
    margin-right: 0;
    align-items: center;
    gap: 0.25rem;
}

/* Patient video / report navbar notice */
.site-video-nav-notice {
    background: linear-gradient(90deg, #e8f5f3 0%, #f0faf9 100%);
    border-bottom: 1px solid rgba(75, 154, 148, 0.25);
    font-size: 0.925rem;
}
.site-video-nav-notice--success {
    background: linear-gradient(90deg, #d1fae5 0%, #ecfdf5 100%);
    border-bottom-color: rgba(16, 185, 129, 0.25);
}
.site-video-nav-notice--info {
    background: linear-gradient(90deg, #e0f2fe 0%, #f0f9ff 100%);
    border-bottom-color: rgba(14, 165, 233, 0.25);
}
.site-video-nav-notice--hidden {
    display: none !important;
}
.site-video-nav-notice__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding: 0.65rem 0;
    min-height: 44px;
}
.site-video-nav-notice--patient .site-video-nav-notice__inner {
    padding: 0.65rem 0;
}
.site-video-nav-notice__icon {
    color: var(--primary-color, #4b9a94);
    flex-shrink: 0;
}
.site-video-nav-notice--success .site-video-nav-notice__icon {
    color: #059669;
}
.site-video-nav-notice--info .site-video-nav-notice__icon {
    color: #0284c7;
}
.site-video-nav-notice__text {
    flex: 1 1 200px;
    color: #1a2e2c;
    font-weight: 500;
    line-height: 1.4;
}
.site-video-nav-notice__action {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--primary-color, #4b9a94);
    text-decoration: none;
    white-space: nowrap;
}
.site-video-nav-notice__action:hover {
    color: var(--primary-dark, #3a7a75);
    text-decoration: underline;
}
.site-video-nav-notice--success .site-video-nav-notice__action {
    color: #047857;
}
.site-video-nav-notice__dismiss {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}
.site-video-nav-notice__dismiss:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #334155;
}
.site-nav-video-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem !important;
    border-radius: 999px;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    white-space: nowrap;
    animation: siteVideoPillPulse 2s ease-in-out infinite;
}
.site-nav-video-pill--success {
    background: #d1fae5 !important;
    color: #047857 !important;
}
.site-nav-video-pill--info {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}
.site-nav-video-pill:hover {
    opacity: 0.92;
}
@keyframes siteVideoPillPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(75, 154, 148, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(75, 154, 148, 0); }
}
@keyframes navFreeVideoBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
    }
    50% {
        opacity: 0.55;
        transform: scale(1.2);
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }
}
.nav-free-video-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    margin-left: 6px;
    vertical-align: middle;
    animation: navFreeVideoBlink 1.15s ease-in-out infinite;
}
.nav-link--free-video-eligible {
    font-weight: 600;
}
.site-nav-video-pill .nav-free-video-dot {
    margin-left: 0;
    width: 7px;
    height: 7px;
    background: currentColor;
}

@media (min-width: 992px) {
    .navbar-collapse-centered {
                display: flex !important;

        justify-content: space-between;
    }
    .navbar-nav-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    .navbar-nav-right {
        margin-left: auto;
    }
}

/* Book a Test button - teal pill, lighter text */
.btn-book-test {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #b8e0dd !important;
    background-color: #3d8c83;
    border: none;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.btn-book-test:hover {
    background-color: #369c97;
    color: #e0f2f1 !important;
}

/* Hero Section – design tokens + soft gradient (see .gradient-hero) */
.hero-section {
    padding: 60px 0 100px;
    background-color: hsl(var(--background));
    background-image: url('../../assets/images/hero-bg.jpg'), var(--gradient-hero);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-section.gradient-hero {
    background-image: url('../../assets/images/hero-bg.jpg'), var(--gradient-hero);
}

/* Light overlay – keeps photo readable */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    z-index: 0;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsl(var(--primary) / 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.min-vh-50 {
    min-height: 60vh;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 22px;
    margin-top: 0;
    animation: slide-up 0.6s ease-out;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Global container width */
.container {
    width: 100%;
    max-width: 80rem; /* 1280px */
    margin-left: auto;
    margin-right: auto;
            padding-left: 2rem;
        padding-right: 2rem;
}

/* Align hero content and image from the same top line on desktop */
.hero-section .row.min-vh-50 {
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    padding: 0.5rem 1.25rem;
   background: #29605b2b;
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-soft);
}

.hero-badge-icon {
    margin-right: 0.4rem;
    color: hsl(var(--primary));
    font-size: 0.85rem;
    vertical-align: middle;
}

/* Hero title – Playfair + token colors, balanced wrapping */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground));
    font-feature-settings: "kern", "liga", "clig", "calt";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    margin-bottom: 1rem;
}

.hero-title.text-balance {
    text-wrap: balance;
}

.hero-title .hero-accent {
    color: hsl(var(--primary));
    font-style: normal;
    font-weight: 600;
    font-size: 1em;
    line-height: inherit;
    letter-spacing: inherit;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-subtitle-readmore,
.consult-hero-readmore {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.hero-subtitle-readmore::after,
.consult-hero-readmore::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
}

.hero-subtitle-readmore:hover,
.hero-subtitle-readmore:focus,
.consult-hero-readmore:hover,
.consult-hero-readmore:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 1.75rem;
}

.hero-benefit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: hsl(var(--primary) / 0.09);
    color: hsl(var(--foreground));
    font-size: 0.9rem;
}

.hero-benefit i {
    color: hsl(var(--primary));
    font-size: 0.9rem;
}

.hero-benefit span {
    white-space: nowrap;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    padding: .8rem 1.3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(75, 154, 148, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 154, 148, 0.4);
    color: var(--white);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .hero-benefits {
        flex-direction: column;
        align-items: flex-start;
    }
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(75, 154, 148, 0.2);
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.5rem;
    color: var(--text-color);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-stats .stat-number {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.hero-stats-below-image {
    margin-top: 1.5rem;
    margin-bottom: 0;
    padding: 1.5rem 1rem;
    border-top: none;
   --background: linear-gradient(135deg, rgba(240,249,248,0.9) 0%, rgba(234,243,242,0.9) 50%, rgba(255,255,255,0.95) 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgb(55 152 147 / 20%);
}

.hero-image-wrapper {
    position: relative;
    height: auto;
    min-height: 432px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 24px hsl(var(--primary) / 0.15));
}

.hero-shape {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 420px;
    height: 420px;
    margin-left: -210px;
    margin-top: -210px;
    background: var(--gradient-primary);
    border-radius: 20px;
    opacity: 0.12;
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.hero-icon {
    font-size: 250px;
    color: var(--primary-color);
    opacity: 0.15;
    position: relative;
    z-index: 2;
}

/* Hero photo – square card frame (same aspect width/height) */
.hero-professional-img {
    position: relative;
    z-index: 2;
    width: 480px;
    height: 480px;
    max-width: min(576px, 100%);
    max-height: min(576px, 85vw);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    box-shadow: var(--shadow-elevated);
    animation: heroFadeUp 0.65s ease-out forwards;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dsScaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Design system utilities (plain CSS; mirrors Tailwind @layer components/utilities) */
.text-balance {
    text-wrap: balance;
}

.container-section {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Use on inner panels only; .hero-section already layers photo + this gradient */
.gradient-hero:not(.hero-section) {
    background-image: var(--gradient-hero);
}

.hero-section.gradient-hero {
    /* Reinforce layered bg when both classes used */
    background-image: url('../../assets/images/hero-bg.jpg'), var(--gradient-hero);
}

.gradient-card {
    background: var(--gradient-card);
}

.gradient-cta {
    background: var(--gradient-cta);
}

.gradient-accent {
    background: var(--gradient-accent);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.shadow-card {
    box-shadow: var(--shadow-card);
}

.shadow-elevated {
    box-shadow: var(--shadow-elevated);
}

.organic-shape {
    border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
}

.organic-blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.animate-float {
    animation: heroFloat 6s ease-in-out infinite;
}

.animate-fade-up {
    animation: heroFadeUp 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: dsScaleIn 0.5s ease-out forwards;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: hsl(var(--secondary) / .3);
}

.section-header {
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(75, 154, 148, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0 5rem;
    background-color: hsl(var(--card));
}

.how-it-works-header {
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.how-it-works-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.how-it-works-title {
    font-size: 2.15rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.how-it-works-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    margin: 0;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
}

.how-it-works-card {
    background: hsl(var(--card));
    border-radius: 16px;
    padding: 2.25rem 1.5rem 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: visible;
    transition: box-shadow 0.3s ease;
}

.how-it-works-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* Step number: half in, half out of card (top-left corner) */
.how-it-works-step {
    position: absolute;
    top: -12px;
    left: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    background: #52bd9f;
    color: hsl(var(--primary-foreground));
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    z-index: 1;
}

.how-it-works-icon {
    font-size: 2.5rem;
    color: #519999;
    margin-bottom: 1.25rem;
}

.how-it-works-icon i {
    display: block;
}

.how-it-works-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #2F4858;
    margin-bottom: 0.5rem;
}

.how-it-works-card-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 992px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .how-it-works-section {
        padding: 3rem 0 4rem;
    }
    .how-it-works-title {
        font-size: 1.75rem;
    }
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .how-it-works-card {
        padding: 1.75rem 1.25rem;
    }
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card-image {
    width: calc(100% + 5rem);
    margin: -2.5rem -2.5rem 1.25rem -2.5rem;
    height: 180px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: var(--secondary-color);
    display: block;
}

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

/* Homepage services: show full uploaded image without cropping */
.services-section .service-card-image {
    height: auto;
    min-height: 200px;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7f6;
}
.services-section .service-card-image img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    object-position: center;
}

.service-card-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef4 100%);
    color: var(--text-light);
}

.service-card-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.service-card-image-placeholder span {
    font-size: 0.85rem;
    font-weight: 500;
}

.service-card-image-color {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
}

.service-card-image-color i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.service-card-image-color span {
    font-size: 0.85rem;
    font-weight: 500;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(75, 154, 148, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.service-package-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem 0;
}

.service-keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    background: rgba(75, 154, 148, 0.12);
    border-radius: 50px;
    white-space: normal;
    max-width: 100%;
    line-height: 1.35;
}

.service-keyword-tag i.fa-circle-check {
    color: var(--primary-dark);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.service-price-wrap {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

.service-footer-price {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.service-footer-price .service-price-wrap {
    padding-top: 0;
    border-top: none;
    margin: 0;
}

.service-footer.service-footer-buttons {
    padding-top: 0;
    border-top: none;
    margin-top: 0.25rem;
}

.service-footer-buttons .btn,
.service-footer-buttons a {
    flex: 1;
    text-align: center;
    justify-content: center;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
   --border: 2px solid var(--primary-color);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-service-view {
    background: #4fa7a033;
    color: var(--primary-color);
}

.btn-service-view:hover {
    background: rgba(75, 154, 148, 0.1);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-service-book {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.btn-service-book:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateX(3px);
}

/* Services page: thumbnail + keywords */
.service-card-page .service-thumb-wrap {
    height: 200px;
    overflow: hidden;
    background: var(--secondary-color);
    border-radius: 12px 12px 0 0;
}

.service-card-page .service-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card-page .service-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef4 100%);
    color: var(--text-light);
}

.service-card-page .service-thumb-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.service-card-page .service-thumb-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

.service-card-page .service-thumb-color {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
}

.service-card-page .service-thumb-color i {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.service-card-page .service-thumb-color span {
    font-size: 0.9rem;
    font-weight: 500;
}

.service-keywords-h {
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--secondary-color);
}

.about-content {
    padding-right: 2rem;
}

.about-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.about-info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.about-info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(75, 154, 148, 0.1);
    border-radius: 10px;
}

.about-info-item strong {
    display: block;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.about-info-item p {
    color: var(--text-light);
    margin: 0;
}

.about-bio {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-top: 1rem;
}

.clinic-info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-hover);
    height: 100%;
}

.clinic-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
}

.clinic-card-title i {
    color: var(--primary-color);
}

.clinic-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.clinic-detail-item {
    display: flex;
    gap: 1.5rem;
}

.clinic-detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(75, 154, 148, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.clinic-detail-item strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.clinic-detail-item p {
    color: var(--text-light);
    margin: 0;
}

.clinic-detail-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.clinic-detail-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.feature-box {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(75, 154, 148, 0.3);
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-box h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.feature-box p {
    color: var(--text-light);
    margin: 0;
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 0;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-family: var(--font-heading);
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-icon {
        font-size: 180px;
    }
    
    .hero-image-wrapper {
        min-height: 400px;
    }

    .hero-professional-img {
        width: min(400px, 100%);
        height: min(400px, 100%);
        max-height: 400px;
    }

    .hero-shape {
        width: 400px;
        height: 400px;
        margin-left: -200px;
        margin-top: -200px;
        border-radius: 18px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

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

    /* Mobile hero: reorder to 1) image 2) badge+heading+desc+buttons+benefits 3) stats */
    .hero-section .row.min-vh-50 {
        display: grid;
        grid-template-rows: auto 1fr auto;
        gap: 0;
        align-items: start;
    }
    .hero-section .hero-image {
        display: contents;
    }
    .hero-section .hero-image-wrapper {
        grid-row: 1;
        height: auto;
        min-height: 280px;
        margin-bottom: 0;
        width: 100%;
    }
    .hero-section .hero-content {
        grid-row: 2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.25rem 0 0;
        width: 100%;
        max-width: 100%;
    }
    .hero-section .hero-content .hero-badge,
    .hero-section .hero-content .hero-title,
    .hero-section .hero-content .hero-subtitle {
        text-align: center;
    }
    .hero-section .hero-content .hero-subtitle {
        max-width: 100%;
        padding: 10px;
    }
    .hero-section .hero-content .hero-title .hero-accent {
        display: block;
        font-style: normal;
    }
    .hero-section .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        align-items: center;
        justify-content: center;
    }
    .hero-section .hero-benefits {
        justify-content: center;
        align-items: center;
    }
    .hero-section .hero-stats {
        grid-row: 3;
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        margin: 1rem;
        padding: 1.5rem;
        --margin-left: 0;
        --margin-right: 0;
    }
    .hero-section .hero-stats .stat-item {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section .hero-image-wrapper {
        min-height: 260px;
    }
    .hero-section .hero-professional-img {
       --width: min(280px, 92vw);
        height: min(280px, 92vw);
        max-width: 92vw;
        max-height: 92vw;
        object-fit: cover;
        object-position: top center;
        border-radius: 14px;
    }

    .hero-section .hero-shape {
        width: min(280px, 92vw);
        height: min(280px, 92vw);
        margin-left: calc(min(280px, 92vw) / -2);
        margin-top: calc(min(280px, 92vw) / -2);
        border-radius: 14px;
    }
    .hero-section .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

/* Footer - 4 columns + copyright */
.site-footer {
    background: #f2f2f2;
    color: var(--text-color);
    padding: 3.5rem 0 0;
    margin-top: 4rem;
}
.site-footer-upper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}
.site-footer-logo {
    margin-bottom: 1rem;
}
.site-footer-logo .brand-logo-fab { color: #379893; }
.site-footer-logo .brand-logo-health { color: #5ab5b0; }
.site-footer-tagline {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 280px;
}
.site-footer-social {
    display: flex;
    gap: 0.75rem;
}
.site-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #379893;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.site-footer-social a:hover {
    background: #379893;
    color: #fff;
}
.site-footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 1.25rem;
}
.site-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer-links li {
    margin-bottom: 0.6rem;
}
.site-footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.site-footer-links a:hover {
    color: #379893;
}
.site-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: var(--text-light);
}
.site-footer-contact-item i {
    color: #379893;
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.site-footer-contact-item a {
    color: var(--text-light);
    text-decoration: none;
}
.site-footer-contact-item a:hover {
    color: #379893;
}
.site-footer-lower {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1rem;
}
.site-footer-lower-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}
.site-footer-lower-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 1rem;
}
.site-footer-lower-links a:hover {
    color: #379893;
}
@media (max-width: 992px) {
    .site-footer-upper {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 576px) {
    .site-footer-upper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    .site-footer-lower-inner {
        flex-direction: column;
        text-align: center;
    }
    .site-footer-lower-links a { margin-left: 0; margin-right: 1rem; }
}

/* Ensure pill-shaped buttons everywhere (final override) */
[class*="btn"] {
    border-radius: .75rem !important;
}