/* Custom styles for Hair by Beth Tramontano */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* Navigation */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #1e293b !important;
}

.nav-scrolled .logo-text {
    color: #0f766e !important;
}

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

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

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(4, 47, 46, 0.75), rgba(4, 47, 46, 0.85)), url('https://images.pexels.com/photos/7195805/pexels-photo-7195805.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f766e, #115e59);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Services Cards */
.service-card {
    transition: all 0.4s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-bottom-color: #0d9488;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

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

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item img {
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Testimonial */
.testimonial-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-left: 4px solid #0d9488;
}

/* CTA Section */
.cta-section {
    background-image: linear-gradient(rgba(4, 47, 46, 0.9), rgba(4, 47, 46, 0.95)), url('https://images.pexels.com/photos/8834042/pexels-photo-8834042.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=800');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Contact Form */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.form-input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    outline: none;
}

/* Footer */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0d9488;
}

/* Decorative Elements */
.decorative-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #2dd4bf);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Hamburger Menu */
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: currentColor;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Map Container */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(13, 148, 136, 0.1);
    color: #0f766e;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
    
    .cta-section {
        background-attachment: scroll;
    }
}
