/* ============================================
   Salon 535 — Custom Styles
   Vibrant Modern · Terracotta + Sand
   ============================================ */

/* --- Custom Properties --- */
:root {
    --terracotta-500: #d4522b;
    --terracotta-600: #c13e1f;
    --sand-400: #eebe55;
    --sand-500: #e5a333;
    --cream: #FDF8F0;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    position: relative;
}

/* --- Geometric Background Shapes --- */
.geo-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.04;
}

.shape-circle-1 {
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--terracotta-500);
}

.shape-circle-2 {
    bottom: 20%;
    left: 3%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--sand-500);
}

.shape-square-1 {
    top: 50%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: var(--terracotta-500);
    transform: rotate(45deg);
}

.shape-triangle-1 {
    top: 70%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid var(--sand-500);
}

.shape-circle-3 {
    top: 30%;
    left: 15%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--terracotta-500);
}

/* --- Navigation --- */
.nav {
    background: transparent;
    transition: background 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.nav.scrolled {
    background: rgba(160, 49, 27, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-logo-text {
    color: rgba(253, 248, 240, 0.9);
    transition: color 0.3s;
}

.nav.scrolled .nav-logo-text {
    color: #FDF8F0;
}

.nav-link {
    position: relative;
}

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

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

.btn-primary-nav {
    background: var(--sand-400);
    color: #6b281b;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 9999px;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    transition: all 0.3s var(--transition-smooth);
}

.btn-primary-nav:hover {
    background: var(--sand-300);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 190, 85, 0.3);
}

/* Mobile Menu */
.mobile-menu {
    transition: opacity 0.4s var(--transition-smooth), transform 0.4s var(--transition-smooth);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

.mobile-link {
    font-family: 'Playfair Display', serif;
}

/* --- Hero --- */
.hero {
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-img {
    transition: transform 8s ease-out;
}

.hero.loaded .hero-img {
    transform: scale(1);
}

.hero-overlay {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-geo {
    transition: transform 0.5s var(--transition-smooth);
}

.hero:hover .hero-geo {
    transform: rotate(5deg) scale(1.05);
}

.hero-badge {
    animation: fadeInDown 0.8s var(--transition-smooth) 0.2s both;
}

.hero-title {
    animation: fadeInUp 0.8s var(--transition-smooth) 0.4s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s var(--transition-smooth) 0.6s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s var(--transition-smooth) 0.8s both;
}

.hero-scroll {
    animation: fadeInUp 0.8s var(--transition-smooth) 1s both;
}

/* Hero Buttons */
.btn-primary {
    background: var(--sand-400);
    color: #6b281b;
    border: none;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s var(--transition-smooth);
}

.btn-primary:hover {
    background: var(--sand-300);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(238, 190, 85, 0.35);
}

.btn-secondary-nav {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s var(--transition-smooth);
}

/* Scroll Line */
.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* --- Section Common --- */
.section-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Playfair Display', serif;
}

.section-desc {
    line-height: 1.7;
}

/* --- Services --- */
.services {
    background: var(--cream);
    position: relative;
}

.services-grid {
    position: relative;
    z-index: 1;
}

.service-card {
    position: relative;
    z-index: 1;
}

.service-icon {
    position: relative;
    z-index: 1;
}

/* --- About --- */
.about {
    background: white;
    position: relative;
}

.about-floating-card {
    animation: float 4s ease-in-out infinite;
}

/* --- Gallery --- */
.gallery {
    background: white;
}

.gallery-item {
    cursor: pointer;
}

.gallery-overlay {
    transition: opacity 0.3s ease;
}

/* --- Testimonials --- */
.testimonials {
    position: relative;
}

.testimonial-card {
    transition: all 0.3s var(--transition-smooth);
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
}

/* --- Contact --- */
.contact {
    background: var(--cream);
}

.form-input {
    transition: all 0.3s var(--transition-smooth);
}

.form-input:focus {
    box-shadow: 0 0 0 4px rgba(212, 82, 43, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* --- Footer --- */
.footer {
    position: relative;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

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

@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

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

/* --- Back to Top --- */
.back-to-top {
    transition: opacity 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 1.375rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title .italic {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .about-floating-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .geo-shapes .shape {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 4rem;
    }
}

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