/* Hunter Specialty Contracting — POC. Zero JS, zero build. */

:root {
  --fg: #1a1a1a;
  --fg-muted: #555;
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --border: #e5e3de;
  --accent: #2c5530;       /* forest green — grounds the outdoor/site work identity */
  --accent-hover: #1f3d22;
  --max: 1100px;
  --gap: 1.5rem;
}

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

html, body { margin: 0; padding: 0; }

/* Full-viewport bg so the mobile browser-chrome collapse doesn't reveal a
   dark strip below the last section. `100dvh` follows the dynamic viewport
   as the URL bar hides/shows on scroll; the `background-color` on html is
   the belt-and-braces version for browsers that don't handle 100dvh. */
html { background-color: var(--bg); }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  min-height: 100dvh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* --- Header --- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--fg);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--fg); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span.short { display: none; }

.nav { display: flex; gap: 1.5rem; }
.nav a {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: .95rem;
  padding: .25rem 0;
}
.nav a.active { color: var(--fg); border-bottom: 2px solid var(--accent); }

/* --- Hero --- */

.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #333 center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
}
.hero .wrap { position: relative; padding: 5rem 1.25rem; }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 640px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 0 1.75rem;
  color: rgba(255,255,255,.9);
}

.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: none;
  transition: background .15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn.ghost:hover { background: var(--bg-alt); color: var(--fg); }

/* --- Section: intro / about --- */

.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }

.section h2 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  letter-spacing: -.01em;
}
.section h2.center { text-align: center; }
.section .lead {
  max-width: 720px;
  font-size: 1.1rem;
  color: var(--fg-muted);
}
.section .lead.center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- Category tiles --- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 2.5rem;
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  background: #333;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.tile:hover img { transform: scale(1.04); }
.tile:hover { text-decoration: none; color: #fff; }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%);
}
.tile .label {
  position: absolute;
  left: 1.25rem; bottom: 1rem; right: 1.25rem;
  z-index: 1;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.tile .label small {
  display: block;
  font-size: .85rem;
  font-weight: 400;
  opacity: .85;
  margin-top: .2rem;
}

/* --- Gallery grid --- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

/* --- Contact card --- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.contact-card h3 {
  margin: 0 0 .5rem;
  font-size: 1rem;
  color: var(--fg-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.contact-card .value {
  font-size: 1.15rem;
  font-weight: 500;
  word-break: break-word;
}
.contact-card a { color: var(--fg); }

/* --- Footer --- */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: .9rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Mobile --- */

@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; }
  .hero .wrap { padding: 3.5rem 1.25rem; }
  .nav { gap: 1rem; }
  .brand span.long { display: none; }
  .brand span.short { display: inline; }
  .section { padding: 3rem 0; }
}
