/* ─── Custom base styles ───────────────────────────────────── */

/* Smooth image rendering */
img {
    -webkit-font-smoothing: antialiased;
}

/* Selection color */
::selection {
    background: color-mix(in srgb, #448a35 60%, transparent);
    color: #f5f0e8;
}

/* ─── Custom scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #8fbf80;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #448a35;
}

/* ─── Focus styles ─────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #448a35;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Subtle pattern for sections ──────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23173312' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Mobile menu transitions ──────────────────────────────── */
#mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ─── Nav active state ─────────────────────────────────────── */
#nav.scrolled #nav-bg {
    opacity: 1;
}

/* ─── Button hover lift ────────────────────────────────────── */
a[href="tel:+16057863603"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a[href="tel:+16057863603"]:hover {
    transform: translateY(-1px);
}

/* ─── Card image zoom container ────────────────────────────── */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ─── Input autofill override ──────────────────────────────── */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255,255,255,0.1) inset !important;
    -webkit-text-fill-color: #f5f0e8 !important;
}
