/* Alpine Drilling – shared styles */
:root {
  --snow: #f4f6f5;
  --paper: #ffffff;
  --schist: #2f3b40;
  --schist-deep: #222d32;
  --lake: #2a6f7f;
  --tussock: #c8a24e;
  --brand: #41b93c;      /* green from the logo, for lines and highlights */
  --hivis: #277a27;      /* deeper green for buttons and text-bearing accents (white text passes contrast) */
  --hivis-dark: #1d621d;
  --line: #d5dad9;
  --muted: #55646a;

  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 70rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--snow);
  color: var(--schist);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--lake); text-underline-offset: 0.18em; }
a:hover { color: var(--schist); }

:focus-visible {
  outline: 3px solid var(--hivis);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--schist);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  color: var(--schist-deep);
  border-bottom: 4px solid var(--brand);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.6rem;
}
.brand { display: inline-block; line-height: 0; }
.brand img { height: 3.4rem; width: auto; }

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.nav a {
  color: var(--schist-deep);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--brand); color: var(--schist-deep); }
.nav a[aria-current="page"] { border-bottom-color: var(--brand); }
@media (max-width: 40rem) {
  .brand img { height: 3rem; }
  .nav { gap: 0.1rem 0.85rem; }
  .nav a { font-size: 0.95rem; }
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
  color: var(--schist-deep);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.9rem, 7vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.7rem; line-height: 1.1; margin-bottom: 0.3em; }

p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--schist); max-width: 36rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--hivis);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  border: 2px solid var(--hivis);
}
.btn:hover { background: var(--hivis-dark); border-color: var(--hivis-dark); color: #fff; }
.btn.quiet {
  background: transparent;
  color: var(--schist);
  border-color: var(--schist);
}
.btn.quiet:hover { background: var(--schist); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Photos ---------- */
.photo { margin: 0; }
.photo img { width: 100%; border-radius: 3px; background: var(--line); }
.photo figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero .wrap {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3.5rem; }
}
.hero h1 { font-size: clamp(2.9rem, 7vw, 4.7rem); }
.hero .photo { max-width: 27rem; }

.direct {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  max-width: 30rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.direct div { display: flex; flex-direction: column; }
.direct .who { font-weight: 700; color: var(--schist-deep); }
.direct a { font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.band { background: var(--paper); border-block: 1px solid var(--line); }
.section.dark { background: var(--schist); color: #e9eeee; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a:not(.btn) { color: var(--tussock); }
.section.dark .photo figcaption { color: #c9d2d3; }

.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 4.75rem); margin-bottom: 0.3em; }

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 50rem) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3.5rem; }
  .split.photo-left { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .split.photo-left .photo { order: -1; }
  .split.wide-photo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.split .photo { width: 100%; }
.split.photo-left .photo { max-width: 24rem; }

.points { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .points.two { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
.points p { margin: 0; }

/* ---------- Services ---------- */
.svc { border-top: 3px solid var(--schist); }
.svc-item {
  display: grid;
  gap: 0.5rem 2.5rem;
  grid-template-columns: 1fr;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 46rem) { .svc-item { grid-template-columns: 0.8fr 1.2fr; } }
.svc-item h2 { font-size: 2.2rem; margin: 0; }
.svc-item p { margin: 0; }
.svc-item p + p { margin-top: 0.75em; }
.svc-item.main { border-left: 6px solid var(--hivis); padding-left: 1.25rem; }
.svc-item .photo { margin-top: 1.25rem; max-width: 22rem; }
.svc-item .photo img { max-height: 28rem; object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery { columns: 1; column-gap: 1.25rem; }
@media (min-width: 38rem) { .gallery { columns: 2; } }
@media (min-width: 62rem) {
  .gallery { columns: 3; }
  .gallery.four { columns: 4; }
}
.g-item { margin: 0 0 1.25rem; break-inside: avoid; }
.shot { display: block; border-radius: 3px; overflow: hidden; line-height: 0; cursor: zoom-in; }
.shot img { width: 100%; background: var(--line); }
.g-item figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.45rem; }
.gallery-group + .gallery-group { margin-top: 3rem; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  width: min(96vw, 52rem);
  max-width: none;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(18, 26, 29, 0.92); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 76vh; width: auto; margin-inline: auto; border-radius: 3px; }
.lightbox figcaption { margin-top: 0.6rem; color: #dfe6e7; font-size: 1.05rem; }
.lb-bar { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; }
.lb-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }

/* ---------- About / contact ---------- */
.facts { margin: 2rem 0 0; max-width: 38rem; border-top: 3px solid var(--schist); }
.facts div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-weight: 700; color: var(--schist-deep); }
.facts dd { margin: 0; }

.people { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .people { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.person { border-top: 3px solid var(--schist); padding-top: 1.1rem; }
.person h2 { font-size: 2.3rem; margin-bottom: 0.5rem; }
.person p { margin: 0 0 0.4rem; }
.person .tel { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.person .mail { font-size: 1.15rem; overflow-wrap: anywhere; }

.checklist { padding-left: 1.2rem; margin: 0 0 1em; }
.checklist li { margin-bottom: 0.35rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--schist-deep);
  color: #c9d2d3;
  font-size: 0.98rem;
  padding-block: 2rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.site-footer a { color: #fff; }
.site-footer p { margin: 0; max-width: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
