/* ===== Custom Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #f3e0d5;
    color: #5a2d1f;
}

/* ===== Header & Navigation ===== */
#header {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#header.scrolled {
    background-color: rgba(254, 253, 251, 0.97);
    box-shadow: 0 1px 0 rgba(228, 228, 220, 0.5);
}

#header.scrolled .nav-link {
    color: #1a1a16;
}

#header.scrolled #logo-text {
    color: #1a1a16;
}

.nav-link {
    color: rgba(26, 26, 22, 0.7);
    transition: color 0.3s ease;
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    background-color: rgba(254, 253, 251, 0.98);
    backdrop-filter: blur(20px);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    background-color: #1a1a16;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
}

.menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-btn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
    opacity: 0;
}

#header.scrolled .menu-line {
    background-color: #1a1a16;
}

.mobile-nav-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ===== Hero Animations ===== */
.hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.9s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Scroll Indicator ===== */
.scroll-line {
    overflow: hidden;
}

.scroll-line-inner {
    transform: translateY(-100%);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ===== Section Styles ===== */
.section-eyebrow {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.section-eyebrow.visible,
.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Service Cards ===== */
.service-card {
    transition: background-color 0.4s ease;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2.5rem;
    right: 2.5rem;
    height: 2px;
    background-color: #B85C38;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

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

.service-card:hover {
    background-color: rgba(250, 243, 239, 0.5);
}

/* ===== About Section ===== */
.about-image {
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.02);
}

/* ===== Approach Steps ===== */
.approach-step {
    transition: background-color 0.3s ease;
}

.approach-step:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* ===== Form Styles ===== */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-bottom-color: #B85C38 !important;
}

.form-textarea {
    border-bottom: 1px solid #e4e4dc;
}

.form-textarea:focus {
    border-bottom-color: #B85C38;
}

.form-success {
    animation: fadeIn 0.5s ease;
}

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

/* ===== Divider Lines ===== */
.divider-line {
    transition: opacity 0.3s ease;
}

/* ===== Smooth Scroll Offset ===== */
section[id] {
    scroll-margin-top: 80px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-title::after {
        content: '';
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .about-accent {
        display: none;
    }
    
    .about-stat {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1.5rem;
    }
    
    .approach-step {
        border-right: none !important;
        border-bottom: 1px solid #e8d8b4 !important;
    }
    
    .approach-step:last-child {
        border-bottom: none !important;
    }
    
    .contact-form {
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    #header {
        padding: 0 1.5rem;
    }
    
    .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ===== Utility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== Print Styles ===== */
@media print {
    #header,
    .scroll-indicator,
    #mobile-menu {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
