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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #c4775b;
    color: #fff;
}

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #8a4a37 0%, #c4775b 40%, #d9bc8a 70%, #e9b4a3 100%);
}

/* ── Hero Pattern ── */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.5'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM10 30c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm60 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM30 10c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 60c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM10 70c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm60-40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Hero Animations ── */
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-sub {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-scroll {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1.2s;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Nav ── */
.nav-link {
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

.nav-brand {
    color: rgba(44, 38, 34, 0.85);
    transition: color 0.3s ease;
}

.nav-brand-sub {
    color: rgba(44, 38, 34, 0.6);
    transition: color 0.3s ease;
}

.nav-btn span {
    background: rgba(44, 38, 34, 0.85);
    transition: background 0.3s ease;
}

/* Scrolled nav state */
nav.scrolled .nav-brand {
    color: rgba(44, 38, 34, 0.9);
}

nav.scrolled .nav-brand-sub {
    color: rgba(44, 38, 34, 0.6);
}

nav.scrolled .nav-link {
    color: rgba(44, 38, 34, 0.75);
}

nav.scrolled .nav-link:hover {
    color: rgba(44, 38, 34, 1);
}

nav.scrolled .nav-btn span {
    background: rgba(44, 38, 34, 0.9);
}

/* ── Mobile Menu ── */
.mobile-link {
    transition: color 0.3s ease, opacity 0.3s ease;
}

.mobile-link:hover {
    color: #c4775b;
}

#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ── Service Cards ── */
.service-card {
    border-right: 1px solid #e5e0d8;
}

.service-card:last-child {
    border-right: none;
}

@media (max-width: 767px) {
    .service-card {
        border-right: none;
        border-bottom: 1px solid #e5e0d8;
    }
    .service-card:last-child {
        border-bottom: none;
    }
}

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

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* When JS is disabled, all reveals are visible by default via no-JS override */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* ── Select styling ── */
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='%23a8a29e' 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 0 center;
    padding-right: 2rem;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 1px solid #c4775b;
    outline-offset: 2px;
}

/* ── Smooth image loading ── */
img {
    display: block;
    max-width: 100%;
}
