/* Global Variables */
:root {
    --primary: #FFF5E1;
    /* Cream/Warm White background */
    --secondary: #FFDAB9;
    /* Peach */
    --accent: #E6E6FA;
    /* Lavender */
    --highlight: #98FF98;
    /* Mint */
    --text-color: #2D3748;
    /* Slate 800 - Softer than black */
    --cta-color: #FFB7B2;
    /* Darker Peach for buttons */
    --nav-hover: #fae1dd;
    /* Lighter Peach for hover */
}

/* Logo Text - Fixed height to prevent layout shift during font load */
/* Logo Container - Fixed width to prevent menu shift */
.logo-container {
    width: 300px;
    min-width: 300px;
}

/* Logo Text - Hidden until font loads to prevent flash */
.logo-text {
    font-family: 'Qwitcher Grypen', cursive, 'Brush Script MT', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 4px;
    line-height: 1;
    display: inline-block;
    max-height: 50px;
    overflow: hidden;
    color: black;
    opacity: 0;
    /* Hide initially */
    transition: opacity 0.5s ease-in;
}

/* Class to reveal text once font is loaded */
.fonts-loaded .logo-text {
    opacity: 1;
}

/* General Styles */
body {
    background-color: var(--primary);
    font-family: 'Arial', sans-serif;
    /* Update to a more elegant font if available */
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    /* Improved readability */
}

p {
    margin-bottom: 1.5rem;
    /* Better spacing between paragraphs */
}

/* Text Shadow for better contrast on images */
.text-shadow-md {
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.text-shadow-lg {
    text-shadow: 0 10px 15px rgba(0, 0, 0, 0.9);
}

/* Navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 60px;
    /* Reduced height */
    /* Prevent layout shift */
}

.nav-item:hover {
    background-color: var(--nav-hover);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    /* White background for dropdowns */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    white-space: nowrap;
    padding: 10px 0;
    width: 200px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: var(--nav-hover);
}

/* Hero Section */
.hero-section {
    width: 100%;
    min-height: 300px;
    /* Reduced height for better visibility of content */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    /* Reduced padding */
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    /* 18px */
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 0.35rem 1.25rem;
    font-size: 0.875rem;
    /* 14px */
}

/* Primary Button (Peach/Main CTA) */
/* Used for: Book a Session, Donate Now (Main) */
.btn-primary {
    background-color: var(--cta-color);
    /* #FFB7B2 */
    color: #1a202c;
    /* Dark text for contrast */
    border: 2px solid transparent;
}

.btn-primary:hover {
    background-color: #ff9e99;
}

/* Secondary Button (White/Ghost) */
/* Used for: Learn More, How We Heal */
.btn-secondary {
    background-color: #ffffff;
    color: #1a202c;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}

/* Outline Button (Transparent with colored border) */
/* Used for: Secondary actions on colored backgrounds */
.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Tertiary/Text Link Button */
/* Used for: "Donate to Help Others" links */
.btn-tertiary {
    background-color: transparent;
    color: #ffffff;
    padding: 0;
    box-shadow: none;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    text-decoration-style: dotted !important;
}

.btn-tertiary:hover {
    transform: none;
    box-shadow: none;
    color: var(--secondary);
}

/* Brand Buttons */
.btn-venmo {
    background-color: #3d95ce;
    /* Venmo Blue */
    color: #ffffff;
}

.btn-venmo:hover {
    background-color: #2b7cb3;
}

.btn-zelle {
    background-color: #6d28d9;
    /* Zelle Purple-ish */
    color: #ffffff;
}

.btn-zelle:hover {
    background-color: #5b21b6;
}

/* Existing class for backward compatibility during refactor */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--cta-color);
    color: #1a202c;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    background-color: #ff9e99;
}

/* Menu Container: Visibility and Scroll Behavior */
.menu-container {
    display: none;
    /* Hidden by default on mobile */
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    /* Allow horizontal scrolling */
    scrollbar-width: none;
    /* Hide scrollbar for modern browsers */
}

@media (min-width: 768px) {
    .menu-container {
        display: flex;
        /* Show on desktop */
    }
}

.menu-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for WebKit browsers */
}

.menu-container a {
    white-space: nowrap;
    /* Prevent menu items from wrapping */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .cta-button {
        display: none;
        /* Hide CTA button first */
    }
}

@media (max-width: 768px) {
    /* .logo-container {
display: none; 
} Remove invalid hiding of logo */
}

@media (max-width: 640px) {
    .menu-container {
        justify-content: flex-start;
        /* Align menu items to the left */
    }
}

/* Fade effects */
.fade-in-content {
    opacity: 0;
    animation: fadeInContent 1s ease-in-out forwards;
}

@keyframes fadeInContent {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fade-out-content {
    animation: fadeOutContent 0.8s ease-in-out forwards;
}

@keyframes fadeOutContent {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Container to center the image */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image styling */
.centered-image {
    height: 350px;
    max-width: 100%;
    object-fit: contain;
    /* Keeps aspect ratio */
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 64px;
    /* Height of the navbar */
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
    padding: 15px 20px;
    border-bottom: 1px solid var(--accent);
    display: block;
    /* Ensure full width clickable */
    color: #333;
    text-decoration: none;
}

.mobile-menu a:hover {
    background-color: var(--nav-hover);
}

/* Dropdown for Mobile */
.mobile-dropdown {
    display: none;
    flex-direction: column;
    background-color: #f9f9f9;
}

.mobile-dropdown a {
    padding-left: 40px;
}

/* Show mobile menu when active */
.mobile-menu.active {
    display: flex;
}

/* Show mobile dropdown when active */
.mobile-dropdown.active {
    display: flex;
}

/* Add styles for peach heart outlines */
.heart-outline {
    color: var(--secondary);
    /* Use SVG or font icon for actual heart shape */
}

/* Watercolor motifs can be added as background images to specific sections */