/* ==========================================================
   FixLocks - Residential Handyman Services
   Grays & whites with green highlights. Mobile-first.
   ========================================================== */

:root {
    --green:        #2f9e44;
    --green-dark:   #237a34;
    --green-light:  #e6f4ea;

    --white:        #ffffff;
    --gray-50:      #f8f9fa;
    --gray-100:     #f1f3f5;
    --gray-200:     #e9ecef;
    --gray-300:     #dee2e6;
    --gray-500:     #868e96;
    --gray-600:     #5c636a;
    --gray-700:     #495057;
    --gray-800:     #343a40;
    --gray-900:     #212529;

    --error:        #c92a2a;
    --radius:       12px;
    --shadow:       0 2px 6px rgba(33, 37, 41, .06), 0 8px 24px rgba(33, 37, 41, .06);
    --shadow-lg:    0 4px 12px rgba(33, 37, 41, .08), 0 16px 40px rgba(33, 37, 41, .10);
    --max:          1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

h1, h2, h3 { color: var(--gray-900); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.125rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.accent { color: var(--green); }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: .75rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    font: inherit;
    font-weight: 600;
    color: var(--white);
    background: var(--green);
    border: 2px solid var(--green);
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .1s, box-shadow .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); box-shadow: 0 6px 16px rgba(47, 158, 68, .25); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(47, 158, 68, .35); outline-offset: 2px; }

.btn-outline { background: var(--white); color: var(--gray-800); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--white); color: var(--green); border-color: var(--green); box-shadow: none; }

.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--gray-200);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    position: relative;
}
.brand img { height: 48px; width: auto; }

.nav-toggle {
    display: inline-flex;
    padding: .5rem;
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-800);
    cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }

.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem 20px 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}
.site-nav.open { display: flex; }
.site-nav a { padding: .6rem 0; color: var(--gray-700); font-weight: 500; }
.site-nav a:hover { color: var(--green); }
.site-nav a.btn { color: var(--white); margin-top: .5rem; padding: .7rem 1rem; }

@media (min-width: 820px) {
    .nav-toggle { display: none; }
    .site-nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }
    .site-nav a { padding: 0; }
    .site-nav a.btn { margin-top: 0; padding: .55rem 1.1rem; }
}

/* ---------- Faded background photo (top half of the page) ---------- */
body { position: relative; }
main, .site-footer { position: relative; z-index: 1; }

.page-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1400px;            /* covers the hero and the services section */
    z-index: 0;
    pointer-events: none;
    background: url("https://fixlocks.net/assets/home-back2600px.jpg") center top / cover no-repeat;
    opacity: .35;              /* raise for a stronger photo, lower to fade it */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
}
@media (max-width: 899px) { .page-bg { height: 1100px; } }

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(circle at 85% 20%, rgba(47, 158, 68, .08), transparent 45%);
    padding: 56px 0 72px;
}
.hero-inner { display: grid; gap: 40px; align-items: center; }
.lead { font-size: 1.125rem; color: var(--gray-600); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    color: var(--gray-700);
    font-weight: 500;
}
.hero-points li { display: flex; align-items: center; gap: .4rem; }
.hero-points .icon { color: var(--green); }

.hero-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-lg);
}
.hero-card-icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--green-light);
    color: var(--green);
    margin-bottom: 1rem;
}
.hero-card-icon .icon { width: 28px; height: 28px; }
.hero-card p { color: var(--gray-600); }
.hero-card-list { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.25rem; }
.hero-card-list span {
    display: flex; align-items: center; gap: .5rem;
    padding: .6rem .75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--gray-700);
}
.hero-card-list .icon { color: var(--green); }

@media (min-width: 900px) {
    .hero { padding: 88px 0 100px; }
    .hero-inner { grid-template-columns: 1.3fr 1fr; gap: 64px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; background: transparent; }
.section-alt { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--gray-600); font-size: 1.075rem; }

@media (min-width: 900px) { .section { padding: 96px 0; } }

.grid { display: grid; gap: 20px; }

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.card-icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--green-light);
    color: var(--green);
    margin-bottom: 1rem;
}
.card-icon .icon { width: 24px; height: 24px; }

.service-card { transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.service-card p { color: var(--gray-600); margin: 0; font-size: .975rem; }

.services-grid { grid-template-columns: 1fr; }
@media (min-width: 560px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Why us ---------- */
.why-grid { grid-template-columns: 1fr; }
.why-item { text-align: center; padding: 12px; }
.why-item .card-icon { margin: 0 auto 1rem; }
.why-item p { color: var(--gray-600); margin: 0; }
@media (min-width: 560px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Steps ---------- */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 20px;
    counter-reset: step;
}
.steps li {
    position: relative;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 24px 24px;
}
.steps p { color: var(--gray-600); margin: 0; }
.step-num {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1rem;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Contact ---------- */
.contact-inner { display: grid; gap: 40px; align-items: start; }
.contact-intro p { color: var(--gray-600); font-size: 1.075rem; }
.contact-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; }
.contact-points li { display: flex; align-items: center; gap: .65rem; color: var(--gray-700); font-weight: 500; }
.contact-points .icon { color: var(--green); }

@media (min-width: 900px) {
    .contact-inner { grid-template-columns: 1fr 1.4fr; gap: 64px; }
    .contact-intro { position: sticky; top: 110px; }
}

.form-card { padding: 28px; }
@media (min-width: 600px) { .form-card { padding: 36px; } }

.form-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .925rem; color: var(--gray-800); margin-bottom: .4rem; }
.req { color: var(--green); }
.opt { color: var(--gray-500); font-weight: 400; }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .75rem .9rem;
    font: inherit;
    color: var(--gray-900);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c636a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    padding-right: 2.5rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(47, 158, 68, .18);
}

.has-error input,
.has-error select,
.has-error textarea { border-color: var(--error); }
.error { display: block; color: var(--error); font-size: .85rem; margin-top: .35rem; }

.captcha-field { overflow-x: auto; }

/* Honeypot (hidden from humans) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: .95rem;
}
.alert p { margin: .15rem 0 0; }
.alert-success { background: var(--green-light); border: 1px solid rgba(47, 158, 68, .35); color: var(--green-dark); }
.alert-success .icon { color: var(--green); width: 22px; height: 22px; margin-top: 1px; }
.alert-error { background: #fff5f5; border: 1px solid #ffc9c9; color: var(--error); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 40px 0;
    border-top: 4px solid var(--green);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}
.footer-logo {
    height: 44px;
    width: auto;
    background: var(--white);
    padding: 6px 12px;
    border-radius: 8px;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.footer-nav a { color: var(--gray-300); font-weight: 500; }
.footer-nav a:hover { color: #69db7c; }
.copyright { margin: 0; font-size: .875rem; color: var(--gray-500); }

@media (min-width: 820px) {
    .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
