/* ============================================
   Apex Hearing Center — Custom Styles
   ============================================ */

/* CSS Custom Properties */
:root {
    --color-plum-950: #4a0d30;
    --color-plum-900: #6b1a47;
    --color-plum-800: #831843;
    --color-plum-700: #9d174d;
    --color-plum-600: #be185d;
    --color-plum-500: #db2777;
    --color-plum-200: #fbcfe8;
    --color-plum-100: #fce7f3;
    --color-plum-50: #fdf2f8;
    --color-amber-500: #f59e0b;
    --color-amber-400: #fbbf24;
    --color-amber-100: #fef3c7;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Geometric Decorative Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.geo-circle-1 {
    top: 15%;
    right: 5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    animation: float-slow 20s ease-in-out infinite;
}

.geo-triangle-1 {
    top: 40%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(107, 26, 71, 0.05);
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-2 {
    bottom: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-square-1 {
    top: 60%;
    left: 8%;
    width: 80px;
    height: 80px;
    background: rgba(107, 26, 71, 0.04);
    transform: rotate(45deg);
    animation: float-slow 22s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Geometric pattern for hero */
.geo-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(219, 39, 119, 0.1) 0%, transparent 50%);
    background-size: 60px 60px, 80px 80px;
}

/* ============================================
   Navigation
   ============================================ */
.nav-header {
    transition: box-shadow 0.3s ease;
}

.nav-header.scrolled {
    box-shadow: 0 4px 20px rgba(74, 13, 48, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-amber-400);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link:active {
    transform: scale(0.98);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-amber-500) 0%, var(--color-amber-400) 100%);
    color: var(--color-plum-950);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, var(--color-amber-400) 0%, var(--color-amber-300) 100%);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .geo-shape {
        animation: none;
    }
}

/* ============================================
   Accessibility
   ============================================ */
:focus-visible {
    outline: 3px solid var(--color-amber-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-plum-950);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 100;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s ease;
}

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle-1,
    .geo-circle-2 {
        display: none;
    }
    
    .geo-triangle-1,
    .geo-square-1 {
        display: none;
    }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    ring: 2px solid var(--color-amber-400);
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .geo-shape,
    .scroll-reveal {
        display: none !important;
    }
    
    .nav-header {
        position: static;
    }
}
