/* Northern Trail and Tree Service — a grounded local-service website */
:root {
  --ink: #1b2822;
  --forest: #234334;
  --forest-deep: #193428;
  --paper: #f8f8f4;
  --white: #ffffff;
  --sage: #eaf0e9;
  --line: #d7ded6;
  --muted: #58665c;
  --brass: #b79060;
  --body: 'DM Sans', Arial, sans-serif;
  --logo: 'Teko', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; }
.icon-arrow { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; }
.icon-arrow path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(100% - 80px, 1280px); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 12px 18px; background: var(--forest); color: #fff; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* First-paint logo curtain: the site is already rendered beneath it. */
.site-intro { display: none; }
html.intro-enabled .site-intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; background: #050606; color: #fff; animation: intro-failsafe 1ms linear 4s forwards; }
html.intro-enabled .site-intro.is-leaving { pointer-events: none; animation: intro-lift 780ms cubic-bezier(.76, 0, .24, 1) forwards; }
.site-intro-skip { position: absolute; top: clamp(20px, 4vh, 40px); right: clamp(20px, 4vw, 52px); z-index: 1; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; font: 700 11px var(--body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.site-intro-skip:hover { background: rgba(255,255,255,.12); }
.site-intro-skip:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; }
.site-intro-skip .icon-arrow { width: 16px; height: 16px; }
.site-intro-lockup { width: min(86vw, 500px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.site-intro-lockup img { width: 100%; height: auto; object-fit: contain; animation: mountain-reveal 760ms cubic-bezier(.22, 1, .36, 1) 80ms both; }
.site-intro-name { margin-top: 8px; font: 700 clamp(68px, 9vw, 116px)/.7 var(--logo); letter-spacing: .04em; white-space: nowrap; animation: wordmark-arrive 650ms ease-out 270ms both; }
.site-intro-sub { margin-top: 18px; font: 600 clamp(15px, 2.6vw, 24px)/1 var(--logo); letter-spacing: .14em; white-space: nowrap; animation: wordmark-arrive 550ms ease-out 560ms both; }
@keyframes intro-lift { to { transform: translateY(-101%); visibility: hidden; } }
@keyframes intro-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }

/* The black contact header blends with the original logo and compacts on scroll. */
.site-header { position: sticky; top: 0; z-index: 100; background: #050606; color: #fff; border-bottom: 1px solid #242b25; box-shadow: 0 6px 24px rgba(5, 12, 7, .18); transition: box-shadow .25s ease; }
.site-header.at-top { box-shadow: none; }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; transition: min-height .3s ease; }
.site-header.at-top .header-inner { min-height: 104px; }
.brand-lockup { width: 184px; min-height: 76px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5px 7px 6px; background: #050606; color: #fff; text-align: center; text-decoration: none; transition: width .3s ease, min-height .3s ease; }
.site-header.at-top .brand-lockup { width: 204px; min-height: 89px; }
.brand-lockup img { width: 100%; height: 38px; object-fit: contain; }
.site-header.at-top .brand-lockup img { height: 46px; }
.brand-main { font-family: var(--logo); font-weight: 700; font-size: 31px; line-height: .72; letter-spacing: .065em; white-space: nowrap; }
.brand-sub { font-family: var(--logo); font-weight: 600; font-size: 11px; line-height: 1; letter-spacing: .13em; padding-left: .13em; margin-top: 3px; white-space: nowrap; }
.header-right { display: flex; align-items: center; gap: clamp(24px, 4vw, 60px); }
.header-area { font-size: 10px; line-height: 1.55; font-weight: 700; letter-spacing: .15em; color: #aebbb0; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.header-actions a { font-size: 12px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.header-services { padding: 12px 0; color: #fff; border-bottom: 1px solid #77887b; }
.header-services:hover { color: #dcc7a9; border-color: #dcc7a9; }
.header-email { padding: 12px 0; color: #fff; border-bottom: 1px solid #77887b; }
.header-email:hover { color: #dcc7a9; border-color: #dcc7a9; }
.header-call { min-height: 48px; padding: 0 20px; background: #fff; color: #111914; display: inline-flex; align-items: center; gap: 18px; transition: background .2s ease; }
.header-call:hover { background: #e9eee8; }
.header-call .icon-arrow { width: 18px; height: 18px; }
.call-mobile { display: none; }

/* A lightweight, non-blocking logo intro: reveal the ridgeline, then the name. */
@keyframes mountain-reveal {
  from { clip-path: inset(0 50% 0 50%); opacity: 0; transform: translateY(6px); }
  to { clip-path: inset(0); opacity: 1; transform: translateY(0); }
}
@keyframes wordmark-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .brand-lockup img { animation: mountain-reveal 850ms cubic-bezier(.22, 1, .36, 1) both; }
  .brand-main { animation: wordmark-arrive 600ms ease-out 220ms both; }
  .brand-sub { animation: wordmark-arrive 500ms ease-out 530ms both; }
}

/* Photo-led hero: concise, local and call-first. */
.hero { background: var(--paper); padding: 68px 0 78px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); gap: clamp(44px, 6vw, 100px); align-items: center; }
.hero-text { padding: 10px 0; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 25px; font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .17em; text-transform: uppercase; color: #5b6d5f; }
.eyebrow-line { width: 30px; height: 2px; background: var(--brass); flex: none; }
.hero h1 { margin: 0; max-width: 660px; font-size: clamp(48px, 5vw, 72px); font-weight: 700; letter-spacing: -.052em; line-height: 1.09; }
.hero h1 span { color: var(--forest); }
.hero-intro { max-width: 565px; margin: 26px 0 27px; font-size: 17px; line-height: 1.7; color: #4d5c51; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.button { min-height: 56px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: .02em; transition: background .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: #fff; background: var(--forest); }
.button-dark:hover { background: #345e48; }
.button .icon-arrow { width: 20px; height: 20px; }
.inline-link { padding: 12px 0 7px; display: inline-flex; align-items: center; gap: 13px; border-bottom: 1px solid #6f8574; font-size: 13px; font-weight: 700; text-decoration: none; }
.inline-link:hover { color: var(--forest); border-color: var(--forest); }
.hero-small { margin: 17px 0 0; color: #758178; font-size: 12px; }
.hero-photo { position: relative; margin: 0 0 0 auto; width: min(100%, 520px); min-height: 570px; background: #d8e0d8 url('/assets/hero-climber-placeholder.webp') center top / cover no-repeat; }
.hero-photo::after { content: ''; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid #bdc8ba; z-index: -1; }
.hero-photo img { width: 100%; height: 570px; object-fit: cover; object-position: center top; }
.hero-photo figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 35px 22px 20px; background: linear-gradient(transparent, rgba(14, 29, 20, .77)); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.hero-photo figcaption strong { font-weight: 700; letter-spacing: .08em; }
.service-line { background: var(--forest-deep); color: #fff; }
.service-line-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 11px; font-weight: 700; letter-spacing: .19em; }
.service-line-inner span:first-child { color: #efdbc0; }
.service-line i { width: 3px; height: 3px; background: #d7c4aa; transform: rotate(45deg); }

/* The services are deliberately specific, without invented promises. */
.section-pad { padding: 98px 0; }
.services { background: var(--white); scroll-margin-top: 110px; }
.section-lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .65fr); align-items: end; gap: 80px; margin-bottom: 47px; }
.section-lead .eyebrow { margin-bottom: 19px; }
.section-number { color: var(--brass); font-size: 12px; letter-spacing: .04em; }
.section-lead h2, .contact h2 { margin: 0; max-width: 740px; font-size: clamp(39px, 4.2vw, 61px); line-height: 1.17; letter-spacing: -.048em; font-weight: 700; }
.section-lead > p { max-width: 360px; margin: 0 0 5px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #bfcabf; border-bottom: 1px solid #bfcabf; }
.service-card { min-height: 190px; padding: 25px 30px 29px 0; }
.service-card:first-child { padding: 25px 30px 29px 24px; border-left: 3px solid var(--brass); background: var(--forest-deep); color: #fff; }
.service-card + .service-card { border-left: 1px solid var(--line); padding-left: 30px; }
.service-card:nth-child(3), .service-card:nth-child(6) { border-left: 0; padding-left: 24px; }
.service-card:nth-child(n+3) { border-top: 1px solid var(--line); }
.card-number { color: #8b998b; font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.service-card h3 { margin: 25px 0 10px; font-size: 21px; letter-spacing: -.025em; }
.service-card p { max-width: 330px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.service-card:first-child .card-number { color: #dfc7a1; }
.service-card:first-child h3 { font-size: 27px; }
.service-card:first-child p { color: #d6e4d9; }
.service-card:nth-child(5) { grid-column: 1 / -1; min-height: 220px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 65px); align-items: center; padding: 28px 30px 28px 24px; background: var(--sage); border-left: 3px solid var(--brass); }
.service-card:nth-child(5) h3 { max-width: 380px; margin: 15px 0 0; font-size: clamp(25px, 2.7vw, 34px); line-height: 1.2; }
.emergency-copy p { max-width: 510px; color: #405448; font-size: 15px; line-height: 1.65; }
.emergency-copy a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 18px; padding: 10px 15px; background: var(--forest); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.emergency-copy a:hover { background: #345e48; }
.emergency-copy .icon-arrow { width: 17px; height: 17px; }
.services-note { margin: 29px 0 0; font-size: 13px; color: var(--muted); }
.services-note a { display: inline-flex; align-items: center; gap: 6px; margin-left: 5px; color: var(--forest); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--forest); padding-bottom: 3px; }
.services-note a:hover { color: #427052; }

/* Client-supplied work photos and one credited illustrative equipment image. */
.work { background: var(--sage); }
.work-lead { margin-bottom: 41px; }
.work-grid { display: grid; grid-template-columns: 1.22fr .89fr .89fr; gap: 16px; }
.work-photo { min-width: 0; margin: 0; }
.work-photo img { width: 100%; height: 385px; object-fit: cover; }
.work-photo-large img { object-position: 49% center; }
.work-photo:not(.work-photo-large) img { object-position: center 48%; }
.work-photo-requested:not(.work-photo-large) img { object-position: 58% 48%; }
.work-photo figcaption { display: flex; align-items: center; gap: 11px; padding: 17px 0 0; font-size: 13px; font-weight: 600; color: #394e3f; }
.work-photo figcaption span { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #788d7d; }
.photo-credit { margin: 21px 0 0; color: #657668; font-size: 11px; line-height: 1.5; }
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; }
.area-note { margin-top: 31px; padding-top: 28px; border-top: 1px solid #c7d3c5; display: flex; align-items: center; gap: 18px; }
.area-icon { width: 24px; height: 24px; color: var(--brass); }
.area-note p { flex: 1; margin: 0; font-size: 14px; line-height: 1.6; color: #506354; }
.area-note strong { color: var(--ink); }
.area-note a { display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--forest); padding-bottom: 5px; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.area-note a:hover { color: #427052; }

/* Direct contact is the close, not a lead form. */
.contact { background: var(--forest-deep); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(55px, 8vw, 125px); }
.contact .eyebrow { color: #c5d4c7; }
.contact .section-number { color: #d7ba8e; }
.contact h2 { max-width: 550px; }
.contact-grid > div:first-child > p:last-child { max-width: 475px; margin: 22px 0 0; color: #d0ddd2; font-size: 16px; line-height: 1.72; }
.contact-options { border-top: 1px solid #73917b; padding-top: 22px; }
.contact-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .15em; color: #b5cbb8; }
.contact-phone { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 10px; font-size: clamp(38px, 3.8vw, 57px); font-weight: 700; line-height: 1.1; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.contact-phone .icon-arrow { width: 28px; height: 28px; color: #d5c3a3; }
.contact-phone:hover, .contact-email:hover { color: #e1ccaa; }
.contact-divider { height: 1px; background: #56745e; margin: 25px 0 25px; }
.contact-email { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: clamp(15px, 1.5vw, 21px); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-email .icon-arrow { width: 20px; height: 20px; color: #d5c3a3; }
.contact-options > p { margin: 27px 0 0; font-size: 12px; color: #bdcebf; }
.site-footer { background: #101f18; color: #b9c9bb; }
.footer-inner { min-height: 155px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { width: 170px; padding: 7px 9px 9px; display: flex; flex-direction: column; align-items: center; background: #050606; color: #fff; text-decoration: none; }
.footer-brand img { width: 100%; height: 42px; object-fit: contain; }
.footer-brand > span { font-family: var(--logo); font-size: 27px; font-weight: 700; line-height: .73; letter-spacing: .06em; white-space: nowrap; }
.footer-brand small { display: block; margin-top: 4px; padding-left: .12em; font-size: 11px; font-weight: 600; text-align: center; letter-spacing: .12em; }
.footer-inner > div { display: flex; flex-direction: column; gap: 8px; font-size: 11px; }
.back-top { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-decoration: none; }
.back-top .icon-arrow { width: 12px; height: 12px; }
.back-top:hover { color: #fff; }
.mobile-contact-bar { display: none; }

@media (max-width: 1040px) {
  .header-area { display: none; }
  .hero-grid { gap: 42px; }
  .hero h1 { font-size: clamp(47px, 5.2vw, 62px); }
  .hero-photo, .hero-photo img { min-height: 510px; height: 510px; }
  .section-lead { gap: 48px; }
  .contact-grid { gap: 50px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 40px, 600px); }
  .site-intro-lockup { width: min(84vw, 440px); }
  .site-intro-name { font-size: clamp(58px, 16vw, 78px); }
  .site-intro-sub { margin-top: 14px; font-size: clamp(13px, 3.5vw, 20px); letter-spacing: .08em; }
  .site-intro-skip { top: 20px; right: 20px; }
  .header-inner, .site-header.at-top .header-inner { min-height: 76px; gap: 12px; }
  .brand-lockup, .site-header.at-top .brand-lockup { width: 145px; min-height: 67px; padding: 3px 5px 4px; }
  .brand-lockup img, .site-header.at-top .brand-lockup img { height: 34px; }
  .brand-main { font-size: 23px; line-height: .72; letter-spacing: .05em; }
  .brand-sub { font-size: 9.5px; letter-spacing: .08em; padding-left: .08em; margin-top: 2px; }
  .header-actions { gap: 11px; }
  .header-actions a { font-size: 11px; letter-spacing: 0; }
  .header-services { padding: 8px 0 5px; }
  .header-email { display: none; }
  .header-call { min-height: 40px; padding: 0 10px; gap: 7px; }
  .call-desktop { display: none; }
  .call-mobile { display: inline; }
  .header-call .icon-arrow { width: 16px; height: 16px; }
  .hero { padding: 34px 0 58px; }
  .hero-grid { display: block; }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero h1 { max-width: 600px; font-size: clamp(43px, 8.5vw, 62px); line-height: 1.1; }
  .hero-intro { font-size: 15px; margin: 16px 0 18px; }
  .hero-small { display: none; }
  .hero-photo { margin: 28px 0 0; min-height: 340px; height: 340px; }
  .hero-photo img { height: 340px; min-height: 340px; }
  .hero-photo::after { inset: 8px -8px -8px 8px; }
  .hero-photo figcaption { padding: 25px 16px 14px; font-size: 10px; }
  .services { scroll-margin-top: 84px; }
  .service-line-inner { min-height: 57px; font-size: 9px; letter-spacing: .08em; gap: 8px; }
  .section-pad { padding: 76px 0; }
  .section-lead { display: block; margin-bottom: 33px; }
  .section-lead h2, .contact h2 { font-size: clamp(36px, 8.5vw, 52px); }
  .section-lead > p { margin-top: 19px; max-width: 500px; }
  .service-grid { display: block; }
  .service-card { min-height: 156px; padding: 22px 0 21px; }
  .service-card:first-child { min-height: 180px; padding: 22px 20px; }
  .service-card + .service-card { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .service-card:nth-child(3), .service-card:nth-child(6) { padding-left: 0; }
  .service-card:nth-child(5) { display: block; min-height: 0; padding: 24px 20px; border-left: 3px solid var(--brass); }
  .service-card:nth-child(5) h3 { max-width: none; margin: 12px 0 14px; font-size: 26px; }
  .emergency-copy p { font-size: 14px; }
  .service-card h3 { margin: 19px 0 8px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .work-photo-large { grid-column: 1 / -1; }
  .work-photo-large img { height: 270px; }
  .work-photo:not(.work-photo-large) img { height: 210px; }
  .work-photo figcaption { font-size: 11px; padding-top: 10px; }
  .area-note { align-items: flex-start; display: grid; grid-template-columns: 24px 1fr; gap: 8px 12px; }
  .area-note a { grid-column: 2; justify-self: start; margin-top: 5px; }
  .contact-grid { display: block; }
  .contact-options { margin-top: 43px; }
  .contact-phone { font-size: clamp(40px, 9.8vw, 60px); }
  .contact-email { font-size: 18px; }
  .footer-inner { min-height: 180px; flex-wrap: wrap; padding: 28px 0; }
  .footer-inner > div { order: 3; width: 100%; }
  .mobile-contact-bar { display: flex; position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; min-height: 68px; gap: 8px; padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20, 40, 24, .1); }
  .mobile-contact-bar a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; text-decoration: none; }
  .mobile-bar-call { flex: 1; background: var(--forest); color: #fff; }
  .mobile-bar-email { min-width: 78px; padding: 0 12px; border: 1px solid #aebbae; color: var(--forest); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (max-width: 400px) {
  .container { width: calc(100% - 32px); }
  .brand-lockup, .site-header.at-top .brand-lockup { width: 130px; min-height: 62px; }
  .brand-lockup img, .site-header.at-top .brand-lockup img { height: 32px; }
  .brand-main { font-size: 21px; }
  .brand-sub { font-size: 9px; letter-spacing: .04em; padding-left: .04em; }
  .header-actions { gap: 8px; }
  .hero h1 { font-size: 43px; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; }
  .hero-actions { gap: 15px; }
  .button { min-height: 52px; padding: 0 16px; font-size: 12px; gap: 14px; }
  .inline-link { font-size: 12px; }
  .hero-photo, .hero-photo img { min-height: 300px; height: 300px; }
  .service-line-inner { font-size: 8px; gap: 5px; }
  .contact-phone { font-size: 39px; }
  .contact-email { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-intro { display: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
