/* Custom Properties */
:root {
    --terracotta: #C2704E;
    --terracotta-light: #D4896A;
    --terracotta-dark: #A85A3A;
    --sand: #E8D5C4;
    --sand-light: #F5EDE5;
    --sand-dark: #D4BCA8;
    --stone-50: #FAFAF9;
    --stone-100: #F5F5F4;
    --stone-200: #E7E5E4;
    --stone-600: #57534E;
    --stone-800: #292524;
    --stone-900: #1C1917;
}

/* Tailwind Config */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
    .btn-primary {
        @apply bg-terracotta text-white rounded-xl hover:bg-terracotta-dark transition-all duration-200 shadow-md hover:shadow-lg;
    }
    
    .btn-secondary {
        @apply bg-transparent text-white rounded-xl hover:bg-white/10 transition-all duration-200 border-2 border-white;
    }
}

/* Custom Styles */
body {
    font-family: 'Inter', sans-serif;
}

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

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

/* Header Scroll Effect */
.header-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-scrolled .nav-link {
    color: #57534E !important;
}

.header-scrolled .logo-text {
    color: #1C1917 !important;
}

/* Hero Animations */
.hero-title {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-trust {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

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

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

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 8s ease-in-out infinite;
}

.animate-pulse-delay {
    animation-delay: 1s;
}

/* Section Styles */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    background: linear-gradient(135deg, rgba(194, 112, 78, 0.1), rgba(232, 213, 196, 0.3));
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(194, 112, 78, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--stone-900);
    line-height: 1.2;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--stone-600);
    line-height: 1.7;
}

/* 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, var(--terracotta), var(--sand));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

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

/* Process Steps */
.process-step {
    position: relative;
}

.process-step:hover .w-16 {
    transform: scale(1.1) rotate(5deg);
}

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

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

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Mobile Menu */
.mobile-menu {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.mobile-link {
    position: relative;
}

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

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

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

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

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--terracotta) !important;
}

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

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--sand-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--terracotta);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}
