/* Custom styles for Healthy Roots */

/* Color Palette Variables */
:root {
    /* Primary - Logo color */
    --sage-green: #7A9A82;

    /* Accent Colors */
    --soft-moss: #4A5D4E;      /* Primary accent for emphasis text */
    --olive-bronze: #5C5A3C;   /* Secondary accent */
    --warm-taupe: #8B7D6B;     /* Tertiary accent */

    /* Neutral Base */
    --warm-cream: #FBF7F4;     /* Primary background */
    --light-sand: #F0E6DC;     /* Secondary background */
    --charcoal: #3A3A3A;       /* Primary text */

    /* Legacy colors to phase out */
    --forest-old: #2d5016;
    --forest-hover-old: #4a7c2e;
}

/* Nature-inspired gradient backgrounds */
.gradient-forest {
    background: linear-gradient(135deg, #4A5D4E 0%, #7A9A82 50%, #C9DCC3 100%);
}

.gradient-ocean {
    background: linear-gradient(135deg, #5B8C9E 0%, #87CEEB 50%, #E0F2F7 100%);
}

.gradient-earth {
    background: linear-gradient(135deg, #8B7355 0%, #F4E8D0 50%, #F7F8F4 100%);
}

.gradient-tranquil {
    background: linear-gradient(180deg, #E0F2F7 0%, #C9DCC3 50%, #F4E8D0 100%);
}

/* Soft shadow effects for depth */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(74, 93, 78, 0.08), 0 2px 8px rgba(122, 154, 130, 0.06);
}

.shadow-soft-hover:hover {
    box-shadow: 0 8px 30px rgba(74, 93, 78, 0.12), 0 4px 12px rgba(122, 154, 130, 0.08);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography enhancements */
h1, h2, h3 {
    letter-spacing: -0.01em;
}

/* Improve body text readability */
body {
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility - only show on keyboard navigation */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #4A5D4E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Better focus styles for links and buttons */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4A5D4E;
    outline-offset: 4px;
    transition: outline-offset 0.2s ease;
}

/* Remove tap highlight on mobile */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Skip to content link (accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #4A5D4E;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Testimonial carousel styles */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    transition: transform 0.5s ease-in-out;
}

/* Button hover effects with nature-inspired animations */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    background: #4A5D4E;
    border: none;
    outline: none;
    box-shadow: 0 1px 3px rgba(74, 93, 78, 0.2);
    border-radius: 9999px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.btn-primary:hover {
    background: #5C5A3C;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(74, 93, 78, 0.25);
}

.btn-secondary {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: 2px solid #7A9A82;
    color: #4A5D4E;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #F0E6DC 0%, #FBF7F4 100%);
    border-color: #5C5A3C;
    transform: translateY(-2px);
}

/* Removed ripple effect to prevent rendering issues */

/* Card hover effects with organic movement */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #FFFFFF 0%, #faf8f5 100%);
    border: 1px solid rgba(168, 184, 164, 0.3);
}

.service-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 40px rgba(74, 93, 78, 0.08), 0 5px 15px rgba(122, 154, 130, 0.06);
    background: linear-gradient(135deg, #FFFFFF 0%, #F0E6DC 100%);
    border-color: rgba(122, 154, 130, 0.3);
}

/* Nature-inspired decorative elements */
.leaf-decoration::before {
    content: '🌿';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.3;
}

/* Breathing animation for CTAs */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.breathe-animation {
    animation: breathe 4s ease-in-out infinite;
}

/* Soft pulse for important elements */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.soft-pulse {
    animation: soft-pulse 3s ease-in-out infinite;
}

/* Loading animation for forms */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero Banner Styles */
.hero-banner {
    min-height: 400px;
    position: relative;
}

@media (min-width: 768px) {
    .hero-banner {
        min-height: 450px;
    }
}

/* Ensure text remains readable over the banner */
.hero-banner h1,
.hero-banner p,
.hero-banner a {
    position: relative;
    z-index: 10;
}

/* Enhanced hero text styling for better visibility */
.hero-banner h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 255, 255, 0.9),
        0 0 60px rgba(255, 255, 255, 0.6),
        0 0 80px rgba(255, 255, 255, 0.4);
}

.hero-banner p {
    font-weight: 500;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.15),
        0 0 25px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.5);
}


/* Utility classes for new color palette */
.text-accent {
    color: #4A5D4E;
}

.text-accent-secondary {
    color: #5C5A3C;
}

.text-accent-tertiary {
    color: #8B7D6B;
}

.text-sage {
    color: #7A9A82;
}

.bg-cream {
    background-color: #FBF7F4;
}

.bg-sand {
    background-color: #F0E6DC;
}

.text-charcoal {
    color: #3A3A3A;
}

/* Override Tailwind forest class */
.text-forest {
    color: #4A5D4E !important;
}

.bg-forest {
    background-color: #4A5D4E !important;
}

.hover\:text-forest:hover {
    color: #4A5D4E !important;
}

/* Social media icon styles */
.social-icon {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #C9DCC3 !important;
    transform: scale(1.15) translateY(-2px);
}

.social-icon:active {
    transform: scale(1.05);
}

/* Social media icons on light background (for contact page) */
.social-icon-light {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-icon-light:hover {
    color: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.2) translateY(-3px);
}

.social-icon-light:active {
    transform: scale(1.1);
}

/* Social media icons on content pages (about, etc) */
.social-icon-page {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-icon-page:hover {
    color: #7A9A82 !important;
    transform: scale(1.2) translateY(-3px);
}

.social-icon-page:active {
    transform: scale(1.1);
}

/* Print styles */
@media print {
    nav, footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
    }
}