/* =========================================================
   EXTREME TREE (Bold template) -- Design Tokens
   ========================================================= */
:root {
    /* Color */
    --black: #0a0a0a;
    --black-soft: #171717;
    --white: #ffffff;
    --off-white: #f7f6f4;
    --orange: #ff5400;          /* saturated -- used on dark backgrounds, buttons, large type */
    --orange-hover: #ff7433;
    --orange-text: #c23800;     /* darker -- used for orange text/icons on white (contrast-safe) */
    --gray-900: #1a1a1a;
    --gray-600: #555555;
    --gray-400: #8a8a8a;
    --gray-200: #e4e2df;
    --gray-100: #f0efec;

    /* Type */
    --font-head: 'Anton', sans-serif;
    --font-body: 'Barlow', sans-serif;
    --font-tag: 'Permanent Marker', cursive;

    /* Radius -- kept tight/square on purpose, "Bold" is not a soft template */
    --radius-sm: 2px;
    --radius-md: 4px;

    /* Layout */
    --nav-height: 4.75rem;
    --max-width: 75rem;
    --edge: clamp(1.25rem, 4vw, 3rem);
}

/* =========================================================
   Reduced Motion -- respected before anything else
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--edge);
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    margin-bottom: 0.75rem;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-text);
    margin-bottom: 0.5rem;
}

.section-sub {
    color: var(--gray-600);
    font-size: 1.05rem;
    max-width: 42rem;
}

.section-header {
    margin-bottom: 2.5rem;
}

section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }

/* Visually-hidden but accessible */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--orange);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    z-index: 200;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Focus visibility -- never remove without replacing */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    border: 3px solid transparent;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--orange);
    color: var(--white);
}
.btn-primary:hover { background: var(--orange-hover); }

.btn-dark {
    background: var(--black);
    color: var(--white);
}
.btn-dark:hover { background: var(--gray-900); }

.btn-outline {
    background: transparent;
    border-color: currentColor;
}
.btn-outline:hover { background: rgba(0,0,0,0.06); }

.btn-outline-light {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* =========================================================
   Logo (built, not an image -- see build note)
   ========================================================= */
.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    line-height: 1;
    white-space: nowrap;
}
.logo-extreme {
    font-family: var(--font-tag);
    font-size: 1.55rem;
    color: var(--orange);
    transform: rotate(-3deg);
    display: inline-block;
}
.logo-tree {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--white);
    letter-spacing: 0.02em;
}
.logo-icon {
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 0.15rem;
    flex-shrink: 0;
}


/* =========================================================
   Nav
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--black);
    border-bottom: 3px solid var(--orange);
}
.nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.nav-links {
    display: flex;
    gap: 2.25rem;
    align-items: center;
}
.nav-links a {
    color: var(--white);
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { border-color: var(--orange); color: var(--orange); }

.nav-call {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--orange);
    font-family: var(--font-head);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.nav-call svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.nav-call:hover { color: var(--orange-hover); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.4rem;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--black);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 99;
    padding: 2rem var(--edge);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.5rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gray-900);
    padding-bottom: 1rem;
}
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav .nav-call { font-size: 1.5rem; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    height: min(52rem, 92vh);
    min-height: 26rem;
    overflow: hidden;
    background: var(--black);
}
.hero-slides {
    position: absolute;
    inset: 0;
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero-slide {
    position: relative;
    width: 25%;
    height: 100%;
    flex-shrink: 0;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.65) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--edge);
    color: var(--white);
}
.hero-content .section-eyebrow { color: var(--orange); }
.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.hero-content h1 .accent { color: var(--orange); }
.hero-content p {
    margin-top: 1rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    max-width: 38rem;
}
.hero-actions {
    margin-top: 2.25rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.hero-dots {
    display: flex;
    gap: 0.6rem;
}
.hero-playpause {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    transition: color 0.15s ease;
}
.hero-playpause:hover { color: var(--white); }
.hero-playpause svg { width: 1.1rem; height: 1.1rem; }
.hero-playpause .icon-play { display: none; }
.hero-playpause.is-paused .icon-pause { display: none; }
.hero-playpause.is-paused .icon-play { display: block; }
.hero-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid transparent;
    transition: background-color 0.2s ease;
}
.hero-dot[aria-current="true"] {
    background: var(--orange);
}

/* =========================================================
   Confidence Strip
   ========================================================= */
.confidence-strip {
    background: var(--orange);
    padding: 1.5rem 0;
    overflow: hidden;
}
.confidence-marquee {
    display: flex;
    width: max-content;
    animation: confidence-scroll 24s linear infinite;
}
.confidence-marquee:hover,
.confidence-marquee:focus-within {
    animation-play-state: paused;
}
@keyframes confidence-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1 * var(--track-width, 50%))); }
}
.confidence-track {
    display: flex;
    flex-shrink: 0;
    gap: 3rem;
    padding: 0 1.5rem;
}
.confidence-track li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.confidence-track svg { width: 1.4rem; height: 1.4rem; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
    .confidence-marquee { animation: none; }
}

/* =========================================================
   Services
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
    gap: 1.75rem;
}
.service-card {
    background: var(--black);
    color: var(--white);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-md);
    border-top: 5px solid var(--orange);
    transition: transform 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card .icon {
    width: 2.75rem;
    height: 2.75rem;
    color: var(--orange);
    margin-bottom: 1.25rem;
}
.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
}
.service-card p { color: var(--gray-400); font-size: 0.98rem; }

/* =========================================================
   Stats Strip
   ========================================================= */
.stats-strip {
    background: var(--black);
    color: var(--white);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-number {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--orange);
    line-height: 1;
}
.stat-label {
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    color: var(--gray-400);
}

/* =========================================================
   Gallery
   ========================================================= */
.gallery-grid {
    columns: 4 14rem;
    column-gap: 1rem;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials-section { background: var(--off-white); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.75rem;
}
.testimonial-card {
    background: var(--white);
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
}
.testimonial-quote-mark {
    font-family: var(--font-head);
    font-size: 4rem;
    color: var(--orange);
    line-height: 1;
    display: block;
    margin-bottom: -1rem;
}
.testimonial-card p {
    font-size: 1.05rem;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}
.testimonial-stars {
    color: var(--orange-text);
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}
.testimonial-name {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.95rem;
}
.testimonial-loc {
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* =========================================================
   Service Area (map + radius)
   ========================================================= */
.service-area-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.service-area-copy .btn { margin-top: 1.5rem; }
.area-list {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
}
.area-list li {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--gray-600);
}
.area-list li::before { content: "— "; color: var(--orange-text); }

.map-graphic {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
    border: 3px solid var(--black);
}
.map-graphic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.map-radius-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--orange);
}

/* =========================================================
   Big CTA
   ========================================================= */
.big-cta {
    background: var(--orange);
    color: var(--white);
    text-align: center;
}
.big-cta h2 { margin-bottom: 0.5rem; }
.big-cta p { max-width: 34rem; margin: 0 auto 2rem; font-size: 1.15rem; }
.big-cta .section-eyebrow { color: var(--black); }

/* =========================================================
   Contact / Form section
   ========================================================= */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.contact-image { position: relative; min-height: 22rem; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; }
.contact-image-caption {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
    padding: 2rem 1.75rem 1.5rem;
}
.contact-image-caption p {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1.4rem;
    line-height: 1.15;
}
.contact-image-caption .accent { color: var(--orange); }

.contact-form-wrap { padding: 3rem clamp(1.5rem, 4vw, 3rem); }
.contact-form-wrap h2 { color: var(--white); }
.contact-form-wrap .section-sub { color: var(--gray-400); margin-bottom: 1.75rem; }

.form-required-note {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 1.25rem;
}
.required-mark {
    color: var(--orange);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    color: var(--gray-400);
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--gray-900);
    border: 2px solid transparent;
    color: var(--white);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.15s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-600); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--orange); outline: none; }
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] { border-color: #ff8a8a; }
.form-error {
    display: block;
    color: #ff8a8a;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}
.form-submit { width: 100%; margin-top: 0.5rem; }

/* Honeypot -- hidden accessibly, off-screen rather than display:none */
.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    background: var(--black);
    border-top: 3px solid var(--orange);
    padding: 2.5rem 0 2rem;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.footer .logo-tree { color: var(--white); }
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    transition: background-color 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { background: var(--orange); color: var(--white); }
.footer-social svg { width: 1.1rem; height: 1.1rem; }

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--gray-400);
}
.footer-legal a:hover { color: var(--orange); }

.footer-bottom {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-900);
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-400);
}
.footer-bottom a { color: var(--gray-400); font-weight: 600; }
.footer-bottom a:hover { color: var(--orange); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

.reveal-side {
    opacity: 0;
    transform: translateX(-2.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-side.reveal-visible { opacity: 1; transform: translateX(0); }
.reveal-side:nth-child(even) { transform: translateX(2.5rem); }
.reveal-side:nth-child(even).reveal-visible { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-side { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 61.9375rem) {
    .service-area-section,
    .contact-section { grid-template-columns: 1fr; }
    .contact-image { min-height: 16rem; }
}

@media (max-width: 47.9375rem) {
    .nav-links, .nav-call.desktop-only { display: none; }
    .hamburger { display: flex; }
    .gallery-grid { columns: 2 12rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 30rem) {
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .gallery-grid { columns: 1; }
}
