/* ═══════════════════════════════════════════════════
   HIGH LAKES PLUMBING — Custom Styles
   Vibrant modern · Forest green + off-white
   Asymmetric magazine-style hero · Geometric accents
══════════════════════════════════════════════════ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background-color: #fcfcf8;
    color: #0a2214;
    overflow-x: hidden;
}

::selection {
    background: #2d7a46;
    color: white;
}

/* ── Hero decorative shapes ── */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    top: 10%;
    right: 5%;
    width: 320px;
    height: 320px;
    background: #aad4b5;
    border-radius: 50%;
    opacity: 0.35;
}

.shape-circle-2 {
    top: 45%;
    right: 38%;
    width: 120px;
    height: 120px;
    background: #74b88a;
    border-radius: 50%;
    opacity: 0.4;
}

.shape-circle-3 {
    bottom: 15%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: #d5eadb;
    border-radius: 50%;
    opacity: 0.5;
}

.shape-rect-1 {
    top: 20%;
    left: 35%;
    width: 80px;
    height: 80px;
    background: #2d7a46;
    border-radius: 16px;
    opacity: 0.12;
    transform: rotate(45deg);
}

/* ── Service cards ── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #aad4b5, #2d7a46);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ── Area cards ── */
.area-card {
    position: relative;
    z-index: 1;
}

/* ── Scroll reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .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 menu transition ── */
#mobile-menu.menu-open {
    opacity: 1;
    pointer-events: all;
}

/* ── Header scroll state ── */
#site-header.scrolled {
    background: rgba(252, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.1);
}

/* ── Form focus states ── */
input:focus,
select:focus,
textarea:focus {
    border-color: #166534 !important;
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
    outline: none;
}

/* ── Back to top button ── */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* ── Form validation styles ── */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #2d7a46;
}

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