/* Custom styles for Beauty by Marci Martinez */

:root {
    --terracotta: #d4522d;
    --terracotta-dark: #b83d20;
    --sand: #f4e0a8;
    --sand-light: #faf0d0;
    --cream: #fdf8f0;
    --warmblack: #1a1410;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base typography */
body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: var(--cream);
    color: var(--warmblack);
    line-height: 1.6;
}

/* Geometric decorations */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
}

.geo-square {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Hero section */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 1023px) {
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

/* Buttons */
.btn-primary {
    background: var(--terracotta);
    color: white;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 82, 45, 0.3);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--terracotta);
    border: 2px solid var(--terracotta);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--terracotta);
    color: white;
}

/* Service cards */
.service-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--terracotta);
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 20, 16, 0.1);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Mobile menu links */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

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

/* Form inputs */
.form-input {
    background: white;
    border: 2px solid #e8ddd0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(212, 82, 45, 0.1);
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(253, 248, 240, 0.95);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(26, 20, 16, 0.08);
}

/* Testimonial cards */
.testimonial-card {
    background: white;
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 80px;
    color: var(--terracotta);
    opacity: 0.15;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    pointer-events: none;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
}

/* Image hover effects */
.img-zoom {
    transition: transform 0.5s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* Decorative line */
.deco-line {
    width: 60px;
    height: 4px;
    background: var(--terracotta);
    border-radius: 2px;
}

/* Floating card animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Selection color */
::selection {
    background: var(--terracotta);
    color: white;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .img-zoom {
        transition: none;
    }

    .img-zoom:hover {
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#mobileMenuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}
