/* 
================================================================================
   MiBliss Premium Redesign - "Botanical Serenity" Design System Stylesheet
================================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Outfit:wght@100..900&display=swap');

:root {
    /* Color Tokens (HSL Tailored - Richer and more Vibrant Botanicals) */
    --primary: hsl(143, 22%, 19%);
    /* Deep Forest Sage */
    --primary-light: hsl(143, 20%, 28%);
    --primary-dark: hsl(143, 24%, 12%);
    --primary-soft: hsla(143, 22%, 19%, 0.07);

    --secondary: hsl(14, 62%, 91%);
    /* Radiant Blush Peach */
    --secondary-light: hsl(14, 70%, 95%);
    --secondary-dark: hsl(14, 50%, 82%);
    --secondary-soft: hsla(14, 62%, 91%, 0.45);

    --accent: hsl(38, 48%, 52%);
    /* Polished Antique Bronze / Gold */
    --accent-light: hsl(38, 55%, 60%);
    --accent-dark: hsl(38, 55%, 42%);

    --bg-cream: hsl(33, 22%, 97%);
    /* Warm Morning Cream Background */
    --bg-pure: hsl(0, 0%, 100%);

    --text-dark: hsl(143, 16%, 15%);
    --text-muted: hsl(143, 10%, 42%);
    --text-light: hsl(33, 20%, 95%);

    --white-glass: rgba(255, 255, 255, 0.82);
    --border-glass: rgba(255, 255, 255, 0.5);

    /* Layout Tokens */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Animation Tokens */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-elastic: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Scroll Reveal Animations */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

/* Dynamic Glow Filter and Keyframes */
.glow-hover {
    transition: var(--transition-smooth);
}

.glow-hover:hover {
    filter: drop-shadow(0 0 12px rgba(38, 200, 120, 0.25));
    transform: scale(1.02);
}

/* Patent Pulse Animation */
.patent-pulse {
    position: relative;
    overflow: visible;
}

.patent-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    border: 2px solid var(--accent);
    animation: accentPulse 3s infinite;
    pointer-events: none;
}

@keyframes accentPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

/* Ambient Leaf Floating Keyframes */
.floating-leaf-detail {
    animation: leafDrift 10s ease-in-out infinite alternate;
}

@keyframes leafDrift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(20px, -20px) rotate(20deg);
    }
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 20%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Reset & Global Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }
}

/* Typography Helpers */
.text-center {
    text-align: center;
}

.section-tag {
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

/* Premium Styling Blocks */
.glass {
    background: var(--white-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.glass-card {
    background: var(--bg-pure);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(14, 45, 90, 0.04);
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 45, 90, 0.08);
    border-color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-cream);
    box-shadow: 0 4px 15px rgba(26, 60, 52, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: scale(1.03);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--bg-pure);
    transform: scale(1.03);
}

.btn-accent {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent-dark);
}

.btn-accent:hover {
    background-color: var(--accent);
    color: var(--bg-cream);
    transform: scale(1.03);
}

/* Navigation Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 25px rgba(26, 60, 52, 0.06);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icon {
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.nav-icon:hover {
    background-color: var(--primary-soft);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent);
    color: var(--bg-cream);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 6rem 0;
    background: radial-gradient(circle at 80% 20%, var(--secondary-soft) 0%, transparent 60%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--accent-dark);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-bg-blob {
    position: absolute;
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    z-index: -1;
    border-radius: var(--radius-full);
}

.hero-product-img {
    filter: drop-shadow(0 20px 40px rgba(26, 60, 52, 0.12));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Distressed-Reality Check */
.reality-section {
    background-color: hsl(30, 20%, 96%);
}

.reality-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
}

.reality-side {
    padding: 4rem;
    display: flex;
    flex-direction: column;
}

.reality-side.traditional {
    background-color: #f1ebd9;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.traditional-tag {
    background: #e2d8b8;
    color: #6d5b27;
}

.mibliss-tag {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.reality-tag {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    align-self: flex-start;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.reality-side h3 {
    margin-bottom: 2rem;
}

.reality-list {
    list-style: none;
}

.reality-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.reality-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.traditional .reality-icon {
    background-color: #ffd2d2;
    color: #c93b3b;
}

.mibliss .reality-icon {
    background-color: #dbfcd4;
    color: #278c18;
}

.reality-side.mibliss {
    background-color: var(--bg-pure);
}

@media (max-width: 768px) {
    .reality-box {
        grid-template-columns: 1fr;
    }

    .reality-side {
        padding: 2.5rem 1.5rem;
    }
}

/* Innovations / Patents Grid */
.innovation-card {
    position: relative;
    overflow: hidden;
}

.innovation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
    transform-origin: left;
}

.innovation-card:hover::before {
    transform: scaleX(1);
}

.innovation-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.innovation-card h4 {
    margin-bottom: 1rem;
}

.patent-badge {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--bg-cream);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

/* Biome Science - Exploded Pad View */
.science-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.pad-graphics {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.exploded-pad {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    transform: rotateX(45deg) rotateZ(-25deg);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.pad-layer-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--primary-soft);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-elastic);
    cursor: pointer;
    transform: translateZ(0);
}

.pad-layer-item:hover {
    transform: translateZ(40px);
    background-color: var(--secondary);
    border-color: var(--accent);
}

.pad-layer-item.active {
    transform: translateZ(50px);
    background-color: var(--primary);
    color: var(--bg-cream);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(26, 60, 52, 0.15);
}

.layer-details-box {
    align-self: center;
}

.layer-details-content {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .science-split {
        grid-template-columns: 1fr;
    }

    .pad-graphics {
        height: 400px;
    }
}

/* Vaginal Microbiome Scale */
.ph-scale-section {
    background-color: var(--primary-soft);
    border-radius: var(--radius-lg);
    padding: 4rem;
    margin-top: 4rem;
}

.ph-bar {
    height: 30px;
    background: linear-gradient(to right, #ff4c4c 0%, #f7c94c 30%, #4caf50 45%, #4caf50 55%, #3f51b5 70%, #673ab7 100%);
    border-radius: var(--radius-full);
    position: relative;
    margin: 3rem 0;
}

.ph-marker {
    position: absolute;
    top: -10px;
    width: 6px;
    height: 50px;
    background-color: var(--text-dark);
    border-radius: var(--radius-full);
    transform: translateX(-50%);
}

.ph-marker-label {
    position: absolute;
    bottom: -35px;
    transform: translateX(-50%);
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
    white-space: nowrap;
}

.ph-zone {
    position: absolute;
    top: -45px;
    background: var(--bg-pure);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ph-zone.optimal {
    left: 48%;
    transform: translateX(-50%);
    border: 2px solid #4caf50;
    color: #4caf50;
}

.ph-numbers {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Store / Products Grid */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-container {
    position: relative;
    background-color: var(--primary-soft);
    border-radius: var(--radius-md);
    padding: 2rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent);
    color: var(--bg-cream);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.product-title {
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent-dark);
    margin-bottom: 1rem;
}

.product-features-list {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-feature-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

/* Interactive Wizard modal */
.wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 60, 52, 0.4);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.wizard-content {
    background-color: var(--bg-cream);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.wizard-header {
    background-color: var(--primary);
    color: var(--bg-cream);
    padding: 2rem;
    position: relative;
}

.wizard-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--bg-cream);
    font-size: 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
}

.wizard-body {
    padding: 2.5rem;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.wizard-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.wizard-option {
    border: 2px solid rgba(26, 60, 52, 0.1);
    background-color: var(--bg-pure);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.wizard-option:hover {
    border-color: var(--secondary-dark);
    background-color: var(--secondary-soft);
}

.wizard-option.selected {
    border-color: var(--accent);
    background-color: var(--secondary-soft);
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.wizard-progress {
    height: 4px;
    width: 100%;
    background-color: var(--secondary);
    position: absolute;
    bottom: 0;
    left: 0;
}

.wizard-progress-bar {
    height: 100%;
    background-color: var(--accent);
    width: 33%;
    transition: var(--transition-smooth);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Impact Corner - Calculator */
.calc-card {
    max-width: 700px;
    margin: 0 auto;
}

.calc-group {
    margin-bottom: 2.5rem;
}

.calc-label {
    display: block;
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--secondary-dark);
    outline: none;
    margin-bottom: 0.5rem;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.calc-slider::-webkit-slider-thumb:hover {
    background: var(--accent-dark);
    transform: scale(1.15);
}

.calc-val-display {
    text-align: right;
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 1.1rem;
}

.calc-stats-grid {
    border-top: 1px solid rgba(26, 60, 52, 0.08);
    padding-top: 2rem;
    margin-top: 2rem;
}

.calc-stat-card {
    text-align: center;
    background-color: var(--primary-soft);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.calc-stat-num {
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.calc-stat-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Decomposition Timeline Comparison */
.timeline-comparison {
    margin-top: 5rem;
}

.timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary);
    z-index: 1;
}

.timeline-node {
    position: relative;
    z-index: 2;
    background-color: var(--bg-pure);
    border: 3px solid var(--secondary-dark);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.timeline-node.active {
    border-color: var(--accent);
    background-color: var(--accent);
    color: var(--bg-cream);
}

.timeline-node-label {
    position: absolute;
    top: 45px;
    transform: translateX(-50%);
    left: 50%;
    white-space: nowrap;
    font-weight: bold;
    font-size: 0.85rem;
}

.timeline-content-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.timeline-content-pane.active {
    display: block;
}

/* Safe Space - Tab Navigation */
.safe-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid rgba(26, 60, 52, 0.08);
    padding-bottom: 1rem;
}

.safe-tab-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition-smooth);
}

.safe-tab-btn.active {
    color: var(--primary-dark);
}

.safe-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.safe-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.safe-tab-content.active {
    display: block;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-pure);
    border-radius: var(--radius-md);
    border: 1px solid rgba(26, 60, 52, 0.06);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-dark);
    user-select: none;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(26, 60, 52, 0.04);
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem 2rem;
    max-height: 200px;
    /* Safe bounds */
}

.faq-chevron {
    transition: var(--transition-smooth);
    font-size: 1.25rem;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

/* Slide-out Shopping Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--bg-cream);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    background-color: var(--primary);
    color: var(--bg-cream);
    padding: 1.5rem 2rem;
}

.cart-close-btn {
    background: none;
    border: none;
    color: var(--bg-cream);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item-row {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid rgba(26, 60, 52, 0.06);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.cart-item-details h5 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
}

.cart-item-remove {
    color: #c93b3b;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: bold;
    margin-top: 0.5rem;
}

.cart-footer {
    padding: 2rem;
    background-color: var(--bg-pure);
    border-top: 1px solid rgba(26, 60, 52, 0.06);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

/* Trust Elements / Doctor Voicing */
.doctor-profile-box {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.doctor-img-wrap {
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(26, 60, 52, 0.08);
}

@media (max-width: 768px) {
    .doctor-profile-box {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Footer styling */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 5rem 0 3rem 0;
    border-top: 4px solid var(--accent);
}

.footer h4 {
    color: var(--bg-cream);
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer p {
    color: var(--text-light);
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Droplet Success Animation on Cart Add */
.droplet-anim {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: dropFloat 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes dropFloat {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    100% {
        transform: scale(0.2) translateY(-100px);
        opacity: 0;
    }
}

/* Nav Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-pure);
    border: 1px solid rgba(26, 60, 52, 0.08);
    border-radius: var(--radius-sm);
    list-style: none;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(14, 45, 90, 0.08);
    z-index: 10;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.25s ease-out forwards;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li a.dropdown-item {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-smooth);
}

.dropdown-menu li a.dropdown-item:hover,
.dropdown-menu li a.dropdown-item.active {
    background: var(--primary-soft);
    color: var(--primary);
    padding-left: 1.5rem;
}

.caret {
    font-size: 0.65rem;
    vertical-align: middle;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .caret {
    transform: rotate(180deg);
}

/* Comparison Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison-table {
    min-width: 700px;
}

.comparison-table th {
    font-weight: 600;
}

.comparison-table td,
.comparison-table th {
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(26, 60, 52, 0.05);
}

.comparison-table tbody tr:nth-child(even) {
    background: rgba(26, 60, 52, 0.015);
}

.comparison-table tbody tr:hover {
    background: rgba(26, 60, 52, 0.03);
}

/* Donation Preset Active Tiers styling */
.donation-tier-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.donation-tier-card.active {
    border-color: var(--primary) !important;
    background-color: var(--primary-soft) !important;
    box-shadow: 0 4px 15px rgba(26, 60, 52, 0.05);
}

/* Testimonial Slider Styles */
.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: testimonialFade 0.4s ease-out;
}

@keyframes testimonialFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-dot {
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--primary) !important;
    transform: scale(1.3);
}

/* Mobile Dropdown Responsive Fixes */
@media (max-width: 768px) {
    .nav-dropdown .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 1rem;
        min-width: unset;
    }

    .caret {
        display: none;
    }
}

/* Professional Blog Content Formatting */
.blog-post-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.blog-post-body p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.blog-post-body h3 {
    font-size: 1.6rem;
    margin-top: 2.2rem;
    margin-bottom: 1.1rem;
    color: var(--primary-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.blog-post-body h4 {
    font-size: 1.3rem;
    margin-top: 1.8rem;
    margin-bottom: 0.9rem;
    color: var(--primary-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.blog-post-body ul,
.blog-post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.blog-post-body li {
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.blog-post-body strong {
    font-weight: 700;
    color: var(--primary-dark);
}

.blog-post-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.75rem 1.25rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
    background: rgba(212, 175, 55, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 600px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--primary-soft);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 45px rgba(26, 60, 52, 0.15);
    padding: 1.5rem;
    z-index: 1000;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Donation presets active state */
#donation-presets .btn-primary {
    border: 2px solid var(--primary);
}

#donation-presets .btn-accent {
    border: 2px solid rgba(0, 0, 0, 0.08);
}

/* Showcase Horizontal Cards Layout */
.showcase-card {
    display: flex;
    flex-direction: row;
    min-height: 280px;
    overflow: hidden;
    background-color: var(--bg-pure);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(14, 45, 90, 0.04);
    transition: var(--transition-smooth);
    border: 1px solid rgba(26, 60, 52, 0.06);
}
.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 45, 90, 0.08);
    border-color: var(--secondary-dark);
}
.showcase-card-img {
    width: 40%;
    background: var(--secondary-soft);
    position: relative;
    overflow: hidden;
}
.showcase-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.showcase-card-content {
    width: 60%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 768px) {
    .showcase-card {
        flex-direction: column;
        min-height: auto;
    }
    .showcase-card-img {
        width: 100%;
        height: 200px;
    }
    .showcase-card-content {
        width: 100%;
        padding: 2rem;
    }
}