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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Navigation ===== */
.nav-fixed {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 216, 154, 0.3);
}

.nav-fixed.scrolled {
    background: rgba(254, 253, 248, 0.97);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-fixed .h-18 {
    height: 4.5rem;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #fefdf8 0%, #fdf8e8 40%, #fce4db 100%);
    position: relative;
}

.hero-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.shape-circle-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(217, 79, 46, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -80px;
    right: -100px;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(217, 79, 46, 0.06);
    border-radius: 24px;
    bottom: 15%;
    left: 5%;
    transform: rotate(25deg);
}

.shape-circle-2 {
    width: 80px;
    height: 80px;
    background: rgba(228, 163, 74, 0.12);
    border-radius: 50%;
    top: 25%;
    left: 8%;
}

.shape-tri {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(217, 79, 46, 0.05);
    top: 40%;
    right: 3%;
    transform: rotate(-15deg);
}

.shape-dots {
    background-image: radial-gradient(rgba(217, 79, 46, 0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 48%;
    border-radius: 50%;
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ===== Buttons ===== */
.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    background: #d94f2e;
    color: #fefdf8;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(217, 79, 46, 0.3);
}

.cta-btn-primary:hover {
    background: #c23d1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 79, 46, 0.4);
    color: #fefdf8;
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #1f2937;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    border: 1.5px solid #f5d89a;
    transition: all 0.25s ease;
}

.cta-btn-secondary:hover {
    border-color: #d94f2e;
    color: #d94f2e;
    transform: translateY(-2px);
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d94f2e, #e4a34a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

/* ===== Process Cards ===== */
.process-card {
    position: relative;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(217, 79, 46, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* ===== Contact Form ===== */
.contact-form {
    position: relative;
}

.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    animation: slideDown 0.25s ease;
}

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

.mobile-link {
    display: block;
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 767px) {
    .hero-section {
        padding-top: 5rem;
    }

    .hero-shape {
        display: none;
    }

    .floating-card {
        display: none;
    }

    .shape-dots {
        display: none;
    }
}

/* ===== Accessibility ===== */
@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;
    }
}

:focus-visible {
    outline: 2px solid #d94f2e;
    outline-offset: 2px;
}

/* ===== Selection ===== */
::selection {
    background: rgba(217, 79, 46, 0.15);
    color: #6b2619;
}
