/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Custom Properties ────────────────────────────── */
:root {
    --terracotta: #c07050;
    --terracotta-dark: #a85e42;
    --sand: #e2a656;
    --cream: #fefefb;
    --warm: #4a3728;
    --warm-light: #6b5240;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Eyebrow ──────────────────────────────────────── */
.eyebrow {
    display: block;
}

/* ── Buttons ──────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--terracotta);
    color: #fff;
    border: 2px solid var(--terracotta);
    border-radius: 9999px;
    transition: all 0.3s var(--ease-out);
}
.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 112, 80, 0.3);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 9999px;
    transition: all 0.3s var(--ease-out);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}
.btn-cta-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--terracotta);
    border: 2px solid #fff;
    border-radius: 9999px;
    transition: all 0.3s var(--ease-out);
}
.btn-cta-light:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}
.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 9999px;
    transition: all 0.3s var(--ease-out);
}
.btn-cta-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ── Input Fields ─────────────────────────────────── */
.input-field {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #e8ddd4;
    border-radius: 0.75rem;
    background: #fefdf9;
    color: var(--warm);
    font-size: 0.95rem;
    transition: all 0.25s ease;
    outline: none;
}
.input-field::placeholder { color: #b8a496; }
.input-field:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(192, 112, 80, 0.1);
    background: #fff;
}
.input-field:hover:not(:focus) {
    border-color: #d4b8a8;
}

/* ── Navbar ───────────────────────────────────────── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
    background: rgba(254, 254, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(74, 55, 40, 0.06);
}
#navbar.scrolled .nav-link { color: var(--warm-light) !important; }
#navbar.scrolled .nav-link:hover { color: var(--terracotta) !important; }

/* ── Hero ─────────────────────────────────────────── */
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(58, 42, 30, 0.72) 0%,
        rgba(74, 55, 40, 0.55) 50%,
        rgba(140, 77, 55, 0.45) 100%
    );
}
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}
.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}
.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}
.scroll-indicator span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ── Cards ────────────────────────────────────────── */
.card-service {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    border: 1px solid rgba(192, 112, 80, 0.08);
    transition: all 0.4s var(--ease-out);
}
.card-service:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(74, 55, 40, 0.1);
    border-color: rgba(192, 112, 80, 0.15);
}

/* ── Testimonial Cards ────────────────────────────── */
.testimonial-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(192, 112, 80, 0.08);
    transition: all 0.4s var(--ease-out);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(74, 55, 40, 0.08);
}

/* ── Area Cards ───────────────────────────────────── */
.area-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 0.75rem;
    border: 1px solid rgba(192, 112, 80, 0.08);
    transition: all 0.4s var(--ease-out);
}
.area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(74, 55, 40, 0.08);
}

/* ── Scroll Reveal ────────────────────────────────── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow, .hero-title, .hero-subtitle, .hero-ctas {
        opacity: 1;
        animation: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    html { scroll-behavior: auto; }
    .scroll-indicator { animation: none; }
    .card-service-img img, .area-card-img img {
        transition: none;
    }
}

/* ── Mobile ───────────────────────────────────────── */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(192, 112, 80, 0.08);
    transition: color 0.2s ease;
}
.mobile-nav-link:hover { color: var(--terracotta); }

/* ── Selection ────────────────────────────────────── */
::selection {
    background: rgba(192, 112, 80, 0.2);
    color: var(--warm);
}
