/* 
 * Marcelo Cardenas Coaching - Premium UI Stylesheet
 * Custom refinements for high-performance aesthetic.
 */

:root {
    --accent: #E63946;
    --primary: #1A1A1A;
}

/* Premium Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    color: var(--primary);
}

.font-display {
    font-family: 'Outfit', sans-serif;
}

/* Subtle Glassmorphism for Nav */
.nav-glass {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Accordion Logic */
.faq-item.faq-open .faq-content {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1.5rem;
}

.faq-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.faq-open .faq-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

/* Custom Underline Animation */
.underline-accent {
    position: relative;
    display: inline-block;
}

.underline-accent::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transform-origin: bottom right;
    transition: transform 0.4s ease-out;
}

.underline-accent:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hero Section Refinements */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

header h1 {
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Smooth Scrolling Anchor Offset */
:target {
    scroll-margin-top: 100px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C52D32;
}

/* Form Focus State */
input:focus, select:focus, textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

/* Instagram Carousel Simulation Hover */
.aspect-square:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}
