/* Oxypas Scarpe - Custom Styles */

/* ===== FONTS ===== */
body {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== COLOR PALETTE ===== */
/* Primary: Medical Teal/Sage */
.bg-sage {
    background-color: #4a9b8c;
}
.bg-sage-dark {
    background-color: #3a7d70;
}
.bg-sage-light {
    background-color: #d0e8e4;
}
.text-sage {
    color: #4a9b8c;
}
.text-sage-dark {
    color: #3a7d70;
}
.text-sage-light {
    color: #7ec8b8;
}
.border-sage {
    border-color: #4a9b8c;
}

/* Secondary: Cream / Off-white */
.bg-cream {
    background-color: #fafafa;
}
.bg-cream-dark {
    background-color: #f5f5f5;
}
.text-cream {
    color: #fafafa;
}

/* Accent: Charcoal */
.bg-charcoal {
    background-color: #2c3e50;
}
.text-charcoal {
    color: #2c3e50;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.animate-fade-up-delay {
    animation: fadeUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ===== HEADER STYLES ===== */
#header {
    background-color: rgba(44, 62, 80, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

#header.scrolled {
    background-color: rgba(44, 62, 80, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ===== MOBILE MENU TRANSITIONS ===== */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.open {
    display: block;
}

/* ===== CARD HOVER EFFECTS ===== */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
}

/* ===== CATEGORY CARD OVERLAY ===== */
.category-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

/* ===== HERO OVERLAY ===== */
.hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

/* ===== SHADOW STYLES ===== */
.shadow-soft {
    box-shadow: 0 2px 8px -2px rgb(0 0 0 / 0.08), 0 4px 16px -4px rgb(0 0 0 / 0.06);
}

/* ===== STAT NUMBER STYLING ===== */
.stat-number {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

/* ===== ASPECT RATIOS ===== */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fafafa;
}

::-webkit-scrollbar-thumb {
    background: #b8c5c2;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8fa5a0;
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #4a9b8c;
    outline-offset: 2px;
}

/* ===== FORM INPUT STYLES ===== */
input::placeholder {
    color: #a8a29e;
}

input:focus {
    outline: none;
}

/* ===== TESTIMONIAL CAROUSEL (MOBILE) ===== */
#testimonial-carousel {
    position: relative;
}

#testimonial-track {
    display: flex;
    transition: transform 0.3s ease;
}

#testimonial-track > div {
    flex: 0 0 100%;
    padding: 0 1rem;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #d6d3d1;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.testimonial-dot.active {
    background-color: #4a9b8c;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats .w-px {
        width: 100%;
        height: 1px;
    }
}

/* ===== GRADIENT BACKGROUNDS ===== */
.bg-gradient-warm {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background-color: #4a9b8c;
    color: white;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

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

.btn-secondary {
    background-color: transparent;
    color: #2c3e50;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    border: 1px solid #d6d3d1;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #a8a29e;
    background-color: #f5f5f5;
}

/* ===== PRINT STYLES ===== */
@media print {
    header,
    footer,
    #mobile-menu,
    button,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== SELECTION STYLES ===== */
::selection {
    background-color: #4a9b8c;
    color: white;
}

::-moz-selection {
    background-color: #4a9b8c;
    color: white;
}

/* ===== TYPOGRAPHY ENHANCEMENTS ===== */
strong {
    font-weight: 600;
}

/* ===== IMAGE EFFECTS ===== */
.image-shine {
    position: relative;
    overflow: hidden;
}

.image-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.image-shine:hover::after {
    left: 100%;
}

/* ===== AMBER COLOR FOR STARS ===== */
.text-amber-400 {
    color: #fbbf24;
}
