/* ===== CUSTOM PROPERTIES ===== */
:root {
    --terra-500: #d14f28;
    --terra-600: #b83d1e;
    --sand-400: #ecba6a;
    --sand-500: #e0a04a;
    --bark: #3D2117;
    --cream: #FDF8F0;
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(244, 212, 154, 0.3);
    transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    box-shadow: 0 4px 24px rgba(61, 33, 23, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terra-500);
    border-radius: 1px;
    transition: width 0.25s ease;
}

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

/* Mobile nav toggle */
.bar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    width: 1.25rem;
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background: linear-gradient(160deg, #FDF8F0 0%, #FBE2D6 50%, #F5C4B0 100%);
    min-height: 100vh;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
}

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

.shape-circle-2 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(224, 160, 74, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
}

.shape-circle-3 {
    width: 140px;
    height: 140px;
    background: rgba(209, 79, 40, 0.08);
    border-radius: 50%;
    top: 30%;
    left: 15%;
}

.shape-diamond {
    width: 80px;
    height: 80px;
    background: rgba(224, 160, 74, 0.2);
    border: 2px solid rgba(224, 160, 74, 0.35);
    transform: rotate(45deg);
    top: 20%;
    right: 15%;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(209, 79, 40, 0.1);
    bottom: 25%;
    right: 25%;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--terra-500);
    color: #ffffff;
    font-weight: 600;
    border-radius: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--terra-600);
    color: #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--bark);
    font-weight: 600;
    border: 2px solid rgba(61, 33, 23, 0.2);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    color: var(--bark);
    border-color: var(--terra-500);
}

/* ===== BADGE LABEL ===== */
.badge-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terra-600);
    background: rgba(209, 79, 40, 0.08);
    border: 1px solid rgba(209, 79, 40, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
}

.service-card-shape {
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    opacity: 0;
    background: linear-gradient(135deg, rgba(209, 79, 40, 0.03) 0%, rgba(224, 160, 74, 0.05) 100%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover .service-card-shape {
    opacity: 1;
}

/* ===== INPUT FIELDS ===== */
.input-field {
    border: 1.5px solid rgba(244, 212, 154, 0.5);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--bark);
    background: var(--cream);
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.input-field::placeholder {
    color: rgba(61, 33, 23, 0.35);
}

.input-field:focus {
    border-color: var(--terra-500);
    box-shadow: 0 0 0 3px rgba(209, 79, 40, 0.1);
    background: #ffffff;
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    animation: fadeInUp 0.4s ease;
}

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

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.25rem !important;
    }

    .hero-shapes .shape-circle-1 {
        width: 240px;
        height: 240px;
    }

    .shape-diamond,
    .shape-triangle {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero h1 {
        font-size: 3.5rem !important;
    }
}

/* ===== FOCUS VISIBLE ===== */
*:focus-visible {
    outline: 2px solid var(--terra-500);
    outline-offset: 2px;
    border-radius: 4px;
}
