/* ==========================================================================
   Hawk Landscapes — design system + site styles
   Deep forest green, charcoal, warm stone, earthy accent.
   ========================================================================== */

:root {
  --background: #f7f5ef;
  --foreground: #23292a;
  --card: #ffffff;
  --primary: #2b5340;
  --primary-deep: #1c3a2c;
  --primary-foreground: #f8f7f1;
  --accent: #b98a55;
  --muted-foreground: #5f6b64;
  --charcoal: #21252410;
  --charcoal-solid: #212524;
  --charcoal-foreground: #f3f2ec;
  --stone: #ece8de;
  --border: #ded9cd;
  --destructive: #b3392c;
  --radius: 6px;
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --shadow-card: 0 1px 2px rgba(24, 40, 32, .05), 0 12px 32px -16px rgba(24, 40, 32, .18);
  --shadow-lift: 0 2px 4px rgba(24, 40, 32, .07), 0 28px 56px -24px rgba(24, 40, 32, .28);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.125rem; }

p { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--primary); color: var(--primary-foreground); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--primary); color: var(--primary-foreground);
  padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 1024px) { .container { padding-inline: 2.5rem; } }

.section { padding: 4.5rem 0; }
@media (min-width: 768px) { .section { padding: 6.5rem 0; } }

.tone-stone { background: var(--stone); }
.tone-card { background: var(--card); }

.surface-dark {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(59, 105, 82, .55), transparent 60%),
    var(--charcoal-solid);
  color: var(--charcoal-foreground);
}
.surface-dark h1, .surface-dark h2, .surface-dark h3 { color: var(--charcoal-foreground); }
.surface-dark p { color: rgba(243, 242, 236, .72); }

.grid { display: grid; gap: 1.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.mt-lg { margin-top: 3rem; }
.mt-xl { margin-top: 3.5rem; }

@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split-form { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .split-form { grid-template-columns: .85fr 1.15fr; } }

.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}

.section-heading { max-width: 46rem; }
.section-heading.is-center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-top: .75rem; }
.section-intro { margin-top: 1.25rem; color: var(--muted-foreground); }
.surface-dark .section-intro { color: rgba(243, 242, 236, .72); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-card);
}
.card h3 { margin-top: 1rem; }
.card p { margin-top: .75rem; font-size: .9rem; color: var(--muted-foreground); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.875rem; padding: 0 1.25rem; border: 1px solid transparent;
  border-radius: var(--radius); font-family: var(--font-sans); font-size: .875rem;
  font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 2.5rem; padding: 0 1rem; }
.btn-lg { height: 3.25rem; padding: 0 1.6rem; font-size: .95rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--primary-foreground); }
.btn-ghost { color: var(--foreground); background: transparent; }
.btn-ghost:hover { color: var(--primary); }
.btn-on-dark {
  border-color: rgba(243, 242, 236, .4); color: var(--charcoal-foreground); background: transparent;
}
.btn-on-dark:hover { background: rgba(243, 242, 236, .12); }

.btn-row { display: flex; flex-direction: column; gap: .75rem; margin-top: 2.25rem; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }

.ico { width: 1rem; height: 1rem; fill: currentColor; }
.ico-lg { width: 1.75rem; height: 1.75rem; color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--background); border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  border-color: var(--border);
  background: rgba(247, 245, 239, .92);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 5rem; }

.logo { display: inline-flex; align-items: center; gap: .625rem; color: var(--primary); }
.logo-text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -.02em; color: var(--foreground); text-transform: none;
}
.logo-text span { color: var(--primary); font-weight: 600; margin-left: .28rem; }
.logo-footer { color: var(--accent); }
.logo-footer .logo-text { color: var(--charcoal-foreground); }
.logo-footer .logo-text span { color: var(--accent); }

.nav-desktop { display: none; align-items: center; gap: 1.75rem; }
.nav-desktop a { font-size: .875rem; font-weight: 600; color: rgba(35, 41, 42, .78); transition: color .2s ease; }
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--primary); }
.header-actions { display: none; align-items: center; gap: .75rem; }
@media (min-width: 1024px) { .nav-desktop, .header-actions { display: flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: transparent; color: var(--foreground); cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav { border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav nav { display: flex; flex-direction: column; padding: .5rem 1.25rem 1.25rem; }
.mobile-nav a {
  padding: 1rem 0; font-size: 1rem; font-weight: 700;
  border-bottom: 1px solid rgba(222, 217, 205, .7);
}
.mobile-nav a.is-active { color: var(--primary); }
.mobile-nav-cta { margin-top: 1.25rem; border-bottom: 0; color: var(--primary-foreground); }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 88vh; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(21, 33, 27, .93) 0%, rgba(21, 33, 27, .6) 42%, rgba(21, 33, 27, .2) 100%);
}
.hero-content { padding: 8rem 0 4rem; max-width: 48rem; color: var(--charcoal-foreground); }
@media (min-width: 768px) { .hero-content { padding-bottom: 6rem; } }
.hero-content h1 { margin-top: 1.25rem; }
.hero-lede { margin-top: 1.5rem; max-width: 38rem; color: rgba(243, 242, 236, .87); font-size: 1.0625rem; }
.hero-trust {
  margin-top: 2.5rem; font-size: .75rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(243, 242, 236, .72);
}
.fade-up { animation: fadeUp .9s var(--ease) both; }
.fade-up-2 { animation: fadeUp .9s .12s var(--ease) both; }
.fade-up-3 { animation: fadeUp .9s .24s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.page-hero { padding: 5.5rem 0 4.5rem; }
@media (min-width: 768px) { .page-hero { padding: 7.5rem 0 6rem; } }
.page-hero h1 { margin-top: 1rem; max-width: 52rem; }
.page-hero-intro { margin-top: 1.5rem; max-width: 44rem; }

/* ---------- services ---------- */
.service-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); transition: box-shadow .35s ease, transform .35s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.service-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover img { transform: scale(1.04); }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { font-size: 1.0625rem; }
.service-card-body p { margin-top: .625rem; font-size: .875rem; color: var(--muted-foreground); }

.inline-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
  margin-top: 3.5rem; padding: 2rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.inline-cta p { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
@media (min-width: 640px) { .inline-cta { flex-direction: row; align-items: center; justify-content: space-between; } }

.trust-list { display: grid; gap: .75rem; margin-top: 2rem; }
@media (min-width: 640px) { .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust-list li { display: flex; gap: .75rem; font-size: .875rem; font-weight: 700; }
.trust-list svg { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; fill: var(--primary); }

.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow-lift); width: 100%; object-fit: cover; }

.why-card {
  padding: 1.75rem; border: 1px solid rgba(243, 242, 236, .14);
  background: rgba(243, 242, 236, .04); border-radius: var(--radius);
  transition: border-color .3s ease;
}
.why-card:hover { border-color: rgba(185, 138, 85, .45); }
.why-card h3 { margin-top: 1.25rem; }
.why-card p { margin-top: .75rem; font-size: .875rem; }

.process-list { counter-reset: step; }
.step-number { font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; color: rgba(43, 83, 64, .28); }

.testimonial { display: flex; flex-direction: column; height: 100%; background: var(--background); }
.stars { display: flex; gap: .25rem; color: var(--accent); }
.testimonial blockquote {
  margin: 1.25rem 0 0; flex: 1; font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600; line-height: 1.4;
}
.testimonial figcaption { margin-top: 1.5rem; font-size: .875rem; color: var(--muted-foreground); }
.testimonial figcaption span { font-weight: 700; color: var(--foreground); }

.area-card { display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s ease; }
.area-card svg { width: 1.25rem; height: 1.25rem; fill: var(--primary); }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.area-card:hover h3 { color: var(--primary); }
.area-card h3 { font-size: 1rem; }

/* ---------- before / after ---------- */
.ba {
  position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  user-select: none; touch-action: none; cursor: ew-resize;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-clip { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 50% 0 0); }
.ba-tag {
  position: absolute; top: 1rem; padding: .25rem .75rem; border-radius: 3px;
  font-size: .6875rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--charcoal-foreground); pointer-events: none;
}
.ba-tag-before { left: 1rem; background: rgba(33, 37, 36, .8); }
.ba-tag-after { right: 1rem; background: rgba(43, 83, 64, .9); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(247, 245, 239, .92); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--background); color: var(--primary); box-shadow: var(--shadow-lift);
}
.ba-range { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 3rem; opacity: 0; cursor: ew-resize; }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  height: 2.75rem; padding: 0 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card); color: rgba(35, 41, 42, .78);
  font-family: var(--font-sans); font-size: .875rem; font-weight: 700; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.filter:hover { color: var(--primary); border-color: rgba(43, 83, 64, .4); }
.filter.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

.masonry { columns: 1; column-gap: 1rem; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry-item {
  position: relative; display: block; width: 100%; margin-bottom: 1rem; padding: 0;
  overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-card); cursor: zoom-in;
  break-inside: avoid;
}
.masonry-item:hover { box-shadow: var(--shadow-lift); }
.masonry-item img { width: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.masonry-item:hover img { transform: scale(1.03); }
.masonry-caption {
  position: absolute; inset-inline: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 2.5rem 1rem 1rem; font-size: .75rem; font-weight: 700; text-align: left;
  color: var(--charcoal-foreground);
  background: linear-gradient(to top, rgba(33, 37, 36, .88), transparent);
}
.masonry-caption .muted { color: rgba(243, 242, 236, .72); font-weight: 600; }
.masonry-item[hidden] { display: none; }

.lightbox[hidden], .mobile-nav[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center;
  justify-content: center; padding: 1rem; background: rgba(24, 27, 26, .95);
}
.lightbox figure { margin: 0; width: 100%; max-width: 64rem; }
.lightbox img { max-height: 78vh; width: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 1rem; text-align: center; font-size: .875rem; color: rgba(243, 242, 236, .78); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border: 1px solid rgba(243, 242, 236, .28);
  border-radius: var(--radius); background: transparent; color: var(--charcoal-foreground); cursor: pointer;
}

/* ---------- forms ---------- */
.quote-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .quote-card { padding: 2.25rem; } }
.quote-title { font-size: 1.375rem; }
.quote-sub { margin-top: .5rem; font-size: .8125rem; color: var(--muted-foreground); }
.quote-card form { margin-top: 1.75rem; display: grid; gap: 1.25rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .4rem; margin: 0; }
.field label { font-size: .8125rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .875rem; font: inherit; font-size: .9375rem;
  color: var(--foreground); background: var(--background);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43, 83, 64, .16);
}
.field-hint { font-size: .75rem; color: var(--muted-foreground); }
.field-check { display: flex; align-items: flex-start; gap: .625rem; }
.field-check input { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; margin-top: .15rem; }
.field-check label { font-size: .8125rem; font-weight: 500; color: var(--muted-foreground); }

.form-alert {
  margin-top: 1.25rem; padding: 1rem; border-radius: var(--radius);
  border: 1px solid rgba(179, 57, 44, .35); background: rgba(179, 57, 44, .07);
  font-size: .875rem; color: var(--destructive);
}
.form-alert p { font-weight: 700; }
.form-alert ul { margin-top: .5rem; list-style: disc; padding-left: 1.25rem; }

.quote-success { padding: 1rem 0; }
.quote-success h3 { font-size: 1.25rem; color: var(--primary); }
.quote-success p { margin-top: .75rem; font-size: .9375rem; color: var(--muted-foreground); }

.contact-list { margin-top: 1.75rem; display: grid; gap: 1.5rem; font-size: .875rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list svg { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; fill: var(--primary); margin-top: .15rem; }
.contact-list strong { display: block; }
.contact-list span.muted, .contact-list a { color: var(--muted-foreground); }
.contact-list a:hover { color: var(--primary); }

/* ---------- prose (legal + local pages) ---------- */
.prose { max-width: 48rem; display: grid; gap: 2.5rem; }
.prose h2 { font-size: 1.25rem; }
.prose p, .prose li { margin-top: .75rem; font-size: .9375rem; color: var(--muted-foreground); line-height: 1.7; }
.prose ul { list-style: disc; padding-left: 1.25rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: 4rem 0; }
.cta-band-inner { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.cta-band-inner > div:first-child { max-width: 40rem; }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.cta-band p { margin-top: .75rem; }
@media (min-width: 1024px) { .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- footer ---------- */
.site-footer { padding: 4.5rem 0 6rem; background: var(--charcoal-solid); color: var(--charcoal-foreground); }
@media (min-width: 1024px) { .site-footer { padding-bottom: 3rem; } }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-copy { margin-top: 1.25rem; font-size: .875rem; color: rgba(243, 242, 236, .68); max-width: 24rem; }
.footer-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.footer-heading { font-family: var(--font-display); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.footer-list { margin-top: 1.25rem; display: grid; gap: .75rem; font-size: .875rem; color: rgba(243, 242, 236, .68); }
.footer-list a:hover { color: var(--charcoal-foreground); }
.footer-areas { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.5rem; font-size: .75rem; color: rgba(243, 242, 236, .55); }
.footer-areas a:hover { color: var(--charcoal-foreground); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(243, 242, 236, .16);
  display: flex; flex-direction: column; gap: .5rem;
  font-size: .75rem; color: rgba(243, 242, 236, .55);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- sticky mobile action bar ---------- */
.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .75rem; background: rgba(247, 245, 239, .95);
  border-top: 1px solid var(--border); backdrop-filter: blur(8px);
}
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .fade-up, .fade-up-2, .fade-up-3 { opacity: 1 !important; transform: none !important; transition: none; animation: none; }
  .btn:hover, .service-card:hover, .area-card:hover { transform: none; }
}
