/* ========================================
   Go Appraisals — Custom Styles
   Classic & Elegant Design System
   ======================================== */

/* --- Custom Properties --- */
:root {
    --color-teal-700: #0f766e;
    --color-teal-800: #115e59;
    --color-slate-900: #0f172a;
    --color-slate-850: #1e293b;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* --- Selection --- */
::selection {
    background-color: rgba(15, 118, 110, 0.2);
    color: var(--color-teal-800);
}

/* --- Section Label --- */
.section-label {
    letter-spacing: 0.2em;
}

/* --- Navbar --- */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* --- Mobile Menu --- */
#mobile-menu {
    z-index: 50;
}

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

.menu-line {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, width 0.4s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

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

#menu-toggle.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: translateY(-4px) rotate(-45deg);
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

/* --- Service Cards --- */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.5s ease,
                background-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

textarea {
    resize: vertical;
}

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

::-webkit-scrollbar-track {
    background: var(--color-slate-900);
}

::-webkit-scrollbar-thumb {
    background: var(--color-teal-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-teal-600);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
    }
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobile-menu,
    .service-card,
    .testimonial-card {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
