/* Custom styles for Corrective Aesthetics */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2a1f1c;
    background-color: #fefdfb;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.2;
}

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

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

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

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

/* Decorative elements */
.serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

/* Magazine-style layout */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 1024px) {
    .editorial-grid {
        grid-template-columns: 55% 45%;
    }
}

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

@media (min-width: 1024px) {
    .hero-asymmetric {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* Line reveal animation */
.line-reveal {
    width: 0;
    transition: width 1s ease-out;
}

.line-reveal.active {
    width: 100%;
}

/* Fade in animation for below-fold sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

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

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(109, 31, 31, 0.15);
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

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

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

/* Button styles */
.btn-primary {
    background-color: #6e1f1f;
    color: #fefdfb;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #862525;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(109, 31, 31, 0.2);
}

.btn-outline {
    border: 2px solid #6e1f1f;
    color: #6e1f1f;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #6e1f1f;
    color: #fefdfb;
}

/* Form styles */
input, textarea, select {
    border: 1px solid #e5d5cf;
    background-color: #fefdfb;
    color: #2a1f1c;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #6e1f1f;
}

/* Decorative serif quotes */
.decorative-quote::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1;
    color: #f5c4b4;
    position: absolute;
    top: -20px;
    left: -10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-asymmetric {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-asymmetric > div:first-child {
        padding: 80px 20px 40px;
    }
    
    .hero-asymmetric > div:last-child {
        min-height: 50vh;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Reduced motion preference */
@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;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-asymmetric {
        min-height: auto;
    }
}
