/* Custom Styles for Hanging on by a Thread */

/* Color Palette */
:root {
    --terracotta: #C0603A;
    --terracotta-light: #D4845E;
    --terracotta-dark: #A04E2E;
    --sand: #E8D5C4;
    --sand-light: #F5EDE4;
    --sand-dark: #C4A882;
    --stone-50: #FAFAF9;
    --stone-100: #F5F5F4;
    --stone-200: #E7E5E4;
    --stone-300: #D6D3D1;
    --stone-400: #A8A29E;
    --stone-500: #78716C;
    --stone-600: #57534E;
    --stone-700: #44403C;
    --stone-800: #292524;
    --stone-900: #1C1917;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.font-serif {
    font-family: 'Lora', serif;
}

/* Navigation */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(28, 25, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-scrolled .nav-logo-path {
    stroke: white;
}

.navbar-scrolled .nav-logo-fill {
    fill: white;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: var(--terracotta);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--terracotta);
}

.btn-primary:hover {
    background-color: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(192, 96, 58, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    background-color: white;
    color: var(--terracotta);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-white:hover {
    background-color: var(--sand-light);
    border-color: var(--sand-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Cards */
.card-service {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

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

.card-testimonial {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card-testimonial:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

/* Form Inputs */
.input-field {
    font-family: 'Montserrat', sans-serif;
}

.input-field:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.1);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--terracotta);
    border-radius: 5px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .btn-large {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

/* Reduced Motion */
@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
