/* =========================================================
   A M Contracts — modernised local rebuild
   Stack: vanilla CSS, mobile-first, CSS variables, no framework.
   ========================================================= */

:root {
    --green-500: #69af07;
    --green-600: #5d9a06;
    --green-700: #4f8205;

    --brown-700: #483b33;
    --brown-900: #2f261f;

    --ink-900: #171717;
    --ink-700: #2c2c2c;
    --ink-500: #5f5f5f;
    --ink-300: #9aa0a6;

    --paper:    #ffffff;
    --paper-2:  #f7f6f3;
    --paper-3:  #efece6;
    --line:     #e6e3dc;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, .12), 0 8px 10px -6px rgba(15, 23, 42, .08);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --container: 1200px;

    --t-fast: 150ms ease;
    --t-med:  300ms cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Montserrat', -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: clamp(15px, 1vw + 0.5rem, 17px);
    line-height: 1.65;
    color: var(--ink-700);
    background: var(--paper);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--green-700); }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; color: var(--brown-700); margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem); }
h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--paper); margin-bottom: .9rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--ink-300); }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; padding: 8px 16px;
    background: var(--ink-900); color: #fff; z-index: 9999;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--brown-900); color: #d7d2c8; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 8px 20px; flex-wrap: wrap; }
.topbar__contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar__link, .topbar__link a { color: #d7d2c8; display: inline-flex; gap: .4rem; align-items: center; }
.topbar__link a:hover { color: var(--green-500); }
.topbar__cta {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--green-500); color: #fff; padding: 6px 16px;
    border-radius: 999px; font-weight: 600; font-size: .8rem;
    transition: background var(--t-fast), transform var(--t-fast);
}
.topbar__cta:hover { background: var(--green-700); color: #fff; transform: translateY(-1px); }
.icon { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* ---------- Site header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--t-med);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { object-fit: contain; display: block; }
.brand--header .brand__logo {
    height: 100px;
    width: auto;
    max-width: min(320px, 72vw);
}
/* Footer logo: light panel so a white-background image doesn’t sit as a harsh block on charcoal */
.brand--footer {
    display: inline-block;
    margin-bottom: 16px;
    padding: 14px 20px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 0 1px rgba(105, 175, 7, 0.45),
        0 6px 24px rgba(0, 0, 0, 0.35);
    transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.brand--footer:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(105, 175, 7, 0.55),
        0 6px 24px rgba(0, 0, 0, 0.35);
}
.brand--footer .brand__logo {
    height: 120px;
    width: auto;
    max-width: 100%;
    vertical-align: middle;
}
.brand--footer:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 0 0 1px rgba(105, 175, 7, 0.65),
        0 8px 28px rgba(0, 0, 0, 0.4);
}

.primary-nav { display: none; }
.primary-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; align-items: center; }
.primary-nav a {
    color: var(--ink-900); font-weight: 500; font-size: .95rem;
    padding: 6px 2px; position: relative;
}
.primary-nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    background: var(--green-500); transform: scaleX(0); transform-origin: left;
    transition: transform var(--t-med);
}
.primary-nav a:hover, .primary-nav .is-active a { color: var(--green-600); }
.primary-nav a:hover::after, .primary-nav .is-active a::after { transform: scaleX(1); }

.nav-toggle {
    appearance: none; border: 0; background: transparent;
    width: 44px; height: 44px; display: inline-flex; flex-direction: column;
    justify-content: center; gap: 5px; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform var(--t-med), opacity var(--t-med); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .primary-nav { display: block; }
}
@media (max-width: 899.98px) {
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height var(--t-med);
    }
    .primary-nav[data-open="true"] { max-height: 60vh; }
    .primary-nav ul { flex-direction: column; gap: 0; padding: 12px 0; }
    .primary-nav li { border-top: 1px solid var(--line); }
    .primary-nav li:first-child { border-top: 0; }
    .primary-nav a { display: block; padding: 14px 24px; }
    .primary-nav a::after { display: none; }
}

/* ---------- Hero / slider ---------- */
.hero { position: relative; height: clamp(420px, 65vh, 720px); overflow: hidden; background: var(--brown-900); }
.hero__slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 800ms ease;
    background-size: cover; background-position: center;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(20, 16, 12, .65) 0%, rgba(20, 16, 12, .3) 50%, rgba(20, 16, 12, .15) 100%);
}
.hero__content {
    position: relative; z-index: 2; height: 100%; display: flex; align-items: center;
    color: #fff;
}
.hero__caption {
    max-width: 620px; padding: 28px 28px 32px;
    background: rgba(0, 0, 0, .35); backdrop-filter: blur(4px);
    border-left: 4px solid var(--green-500); border-radius: 0 var(--radius-md) var(--radius-md) 0;
    opacity: 0; transform: translateX(-20px); transition: opacity 600ms 200ms, transform 600ms 200ms;
}
.hero__slide.is-active .hero__caption { opacity: 1; transform: none; }
.hero__caption h1 { color: #fff; margin-bottom: .5rem; }
.hero__caption p { color: #f3f1ec; margin-bottom: 1.4rem; font-size: 1.05rem; }
.hero__nav {
    position: absolute; left: 0; right: 0; bottom: 24px; z-index: 3;
    display: flex; justify-content: center; gap: .5rem;
}
.hero__dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255, 255, 255, .45); border: 0; padding: 0; cursor: pointer;
    transition: background var(--t-fast), width var(--t-fast);
}
.hero__dot.is-active { background: var(--green-500); width: 28px; border-radius: 6px; }
.hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--t-fast);
}
.hero__arrow:hover { background: var(--green-500); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }
.hero__arrow svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem;
    border: 2px solid transparent; cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn--solid { background: var(--green-500); color: #fff; }
.btn--solid:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--brown-900); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--brown-900); }
.btn--solid-light { background: #fff; color: var(--green-700); }
.btn--solid-light:hover { background: var(--paper-3); color: var(--green-700); }

/* ---------- Section primitives ---------- */
.section { padding: clamp(48px, 4vw + 24px, 88px) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--brown-900); color: #e6e1d6; }
.section--dark h2 { color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section__head h2 { position: relative; display: inline-block; padding-bottom: 14px; }
.section__head h2::after {
    content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 56px; height: 3px; background: var(--green-500); border-radius: 2px;
}
.section__head p { color: var(--ink-500); margin: 0; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service-card {
    position: relative; overflow: hidden; border-radius: var(--radius-md);
    background: #1c1814; color: #fff; aspect-ratio: 4 / 3; box-shadow: var(--shadow-md);
    transition: transform var(--t-med), box-shadow var(--t-med);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__img {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transform: scale(1.05); transition: transform 600ms ease, filter 400ms ease;
}
.service-card:hover .service-card__img { transform: scale(1.12); }
.service-card__body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 22px;
    background: linear-gradient(180deg, rgba(20, 16, 12, 0) 0%, rgba(20, 16, 12, .85) 60%, rgba(20, 16, 12, .95) 100%);
}
.service-card h3 { color: #fff; margin-bottom: .35rem; }
.service-card p { color: #ddd; font-size: .95rem; margin: 0; }

/* ---------- Why Us ---------- */
.why-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.why-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 28px 24px; box-shadow: var(--shadow-sm);
    transition: border-color var(--t-fast), transform var(--t-fast);
}
.why-card:hover { border-color: var(--green-500); transform: translateY(-3px); }
.why-card__icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: rgba(105, 175, 7, .12); color: var(--green-600);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.why-card__icon svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.why-card p { color: var(--ink-500); margin: 0; font-size: .92rem; }

/* ---------- Testimonials ---------- */
.section--testimonials { background: var(--brown-900) url('../images/hero-landscaping.jpg') center/cover fixed; position: relative; }
.section--testimonials::before { content: ''; position: absolute; inset: 0; background: rgba(20, 16, 12, .82); }
.section--testimonials > * { position: relative; }
.section--testimonials .section__head h2 { color: #fff; }
.section--testimonials .section__head p { color: #cfcabf; }

.testimonials { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 980px; margin: 0 auto; }
.testimonial {
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-md); padding: 28px; color: #f1ede2;
    backdrop-filter: blur(2px);
}
.testimonial__quote { font-size: 1.02rem; font-style: italic; line-height: 1.7; }
.testimonial__quote::before { content: '"'; color: var(--green-500); font-size: 2.5rem; line-height: 0; vertical-align: -.4em; margin-right: .25rem; }
.testimonial__author { margin-top: 14px; font-weight: 600; color: #fff; }
.testimonial__role { font-size: .85rem; color: var(--green-500); }

/* ---------- About / Services pages ---------- */
.page-hero {
    position: relative; padding: clamp(80px, 8vw, 140px) 0 clamp(60px, 6vw, 100px);
    background: linear-gradient(120deg, rgba(20, 16, 12, .82), rgba(20, 16, 12, .55)), var(--brown-900);
    background-size: cover; background-position: center;
    color: #fff; text-align: center;
}
.page-hero h1 { color: #fff; margin: 0 0 .4rem; }
.page-hero p { color: #e0dccf; margin: 0; }
.page-hero[data-bg] { background-image: linear-gradient(120deg, rgba(20, 16, 12, .82), rgba(20, 16, 12, .55)); }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 1.1rem; font-size: 1.04rem; }
.prose .lead { font-size: 1.15rem; color: var(--brown-700); }

.services-list {
    display: grid; gap: 12px 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    list-style: none; padding: 0; margin: 0;
}
.services-list li {
    display: flex; align-items: center; gap: .65rem;
    background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green-500);
    border-radius: var(--radius-sm); padding: 12px 14px;
    font-weight: 500; color: var(--ink-700);
    transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.services-list li:hover { box-shadow: var(--shadow-sm); transform: translateX(2px); }
.services-list li::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--green-500); flex-shrink: 0;
}

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1.1fr 1fr; } }

.contact-info { background: var(--paper-2); border-radius: var(--radius-md); padding: 28px; }
.contact-info h3 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: .75rem; }
.icon-circle {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--green-500); color: #fff; font-weight: 700; font-size: .85rem;
}
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--brown-700); }
.field input, .field textarea {
    font: inherit; padding: 12px 14px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; color: var(--ink-700);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus {
    outline: 0; border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(105, 175, 7, .18);
}
.field textarea { min-height: 140px; resize: vertical; }
.recaptcha-notice {
    margin: -4px 0 0;
    color: var(--ink-500);
    font-size: .78rem;
    line-height: 1.5;
}
.grecaptcha-badge { visibility: hidden; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.alert--success { background: rgba(105, 175, 7, .12); color: var(--green-700); border: 1px solid rgba(105, 175, 7, .35); }
.alert--error   { background: #fdecea; color: #c0392b; border: 1px solid #e6b3ad; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--green-700), var(--green-500));
    color: #fff;
}
.cta-band__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 36px 20px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 .25rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .9); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #1d2126; color: #b8b4ac; padding-top: 56px; }
.site-footer__grid {
    display: grid; gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding-bottom: 40px;
}
.site-footer h5 { color: #fff; }
.site-footer a { color: #d6d3cb; }
.site-footer a:hover { color: var(--green-500); }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__base { border-top: 1px solid #33373b; }
.site-footer__base-inner {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 18px 20px; font-size: .85rem; color: #929292;
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--green-500); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity var(--t-med), transform var(--t-med), background var(--t-fast);
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--green-700); color: #fff; }
.back-to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
    html { scroll-behavior: auto; }
}
