/* ============================================
   C and L Salon — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric Background Shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.geo-circle-1 {
    top: 15%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: rgba(198, 93, 62, 0.06);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    top: 60%;
    right: 8%;
    width: 140px;
    height: 140px;
    background: rgba(232, 184, 74, 0.08);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    bottom: 20%;
    left: 15%;
    width: 80px;
    height: 80px;
    background: rgba(198, 93, 62, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.geo-rect-1 {
    top: 40%;
    right: 2%;
    width: 60px;
    height: 60px;
    background: rgba(232, 184, 74, 0.07);
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.geo-rect-2 {
    top: 80%;
    left: 5%;
    width: 40px;
    height: 40px;
    background: rgba(198, 93, 62, 0.06);
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite reverse;
}

.geo-triangle {
    top: 30%;
    right: 25%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(232, 184, 74, 0.06);
    animation: float 7s ease-in-out infinite;
}

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

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Clip Paths */
.clip-diagonal-right {
    clip-path: polygon(30% 0%, 100% 0, 100% 100%, 0% 100%);
}

.clip-diagonal-left {
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
}

/* Navbar */
#navbar {
    background: rgba(250, 248, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C65D3E;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
#mobileMenu.hidden {
    display: none;
}

#mobileMenu:not([hidden]) {
    display: flex;
}

.mobile-link {
    position: relative;
}

/* Hamburger */
#menuBtn {
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

#menuIcon, #menuIcon2, #menuIcon3 {
    display: block;
}

#menuBtn[aria-expanded="true"] #menuIcon {
    transform: translateY(6px) rotate(45deg);
}

#menuBtn[aria-expanded="true"] #menuIcon2 {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn[aria-expanded="true"] #menuIcon3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C65D3E, #e8b84a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Gallery */
.gallery-item {
    cursor: pointer;
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
}

/* Contact Form */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(198, 93, 62, 0.15);
}

/* Scroll Reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible */
:focus-visible {
    outline: 3px solid #C65D3E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: rgba(198, 93, 62, 0.2);
    color: #5a291c;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d9c8b0;
    border-radius: 4px;
}

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