/* Cores2Drill — site styles */

:root {
  --bg: #0d0f0d;
  --bg-2: #141714;
  --panel: #1a1e1a;
  --line: #2a302a;
  --text: #f2f4f1;
  --muted: #a4ada3;
  --green: #4fc22f;
  --green-dark: #3a9a20;
  --radius: 14px;
  --wrap: 1140px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h3 { font-size: 1.55rem; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green); color: #000; padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 0; }

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

.eyebrow {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green); color: #071004;
  font-family: var(--head); font-weight: 700; font-size: 1.2rem;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  padding: 14px 24px; border-radius: 10px; border: 2px solid var(--green);
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: #63d641; border-color: #63d641; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: #4a534a; }
.btn--ghost:hover { background: transparent; border-color: var(--green); color: var(--green); }
.btn--sm { font-size: 1.05rem; padding: 9px 18px; }
.btn svg, .contact__item svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 13, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand {
  font-family: var(--head); font-weight: 800; font-size: 1.7rem;
  letter-spacing: 0.03em; text-decoration: none; color: var(--text); line-height: 1;
}
.brand span { color: var(--green); }

.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.98rem;
  transition: color .15s;
}
.nav__menu a:not(.btn):hover { color: var(--text); }

.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background:
    linear-gradient(118deg, transparent 0 46%, rgba(79, 194, 47, 0.13) 46% 58%, transparent 58% 66%, rgba(255, 255, 255, 0.04) 66% 74%, transparent 74%),
    radial-gradient(900px 500px at 85% 0%, rgba(79, 194, 47, 0.12), transparent 70%),
    var(--bg);
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 54ch; margin-bottom: 1.6em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; padding-bottom: 44px; }
.hero__photo {
  width: 100%; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(79, 194, 47, 0.07);
}
.hero__badge {
  position: absolute; right: -14px; bottom: 0;
  width: 34%; max-width: 170px; border-radius: 18px;
  border: 3px solid var(--bg); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(36px, 6vw, 64px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(20, 23, 20, 0.85);
}
.facts li { padding: 20px 22px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts strong {
  display: block; font-family: var(--head); font-weight: 800; font-size: 1.75rem;
  text-transform: uppercase; line-height: 1.1; color: var(--text);
}
.facts span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__intro { color: var(--muted); max-width: 60ch; font-size: 1.08rem; }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.card { display: flex; flex-direction: column; }
.card--featured { border-color: var(--green-dark); box-shadow: 0 0 0 1px var(--green-dark); }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--line); }
.card__body { padding: 24px 24px 28px; }
.more {
  display: inline-block; margin-top: 18px; color: var(--green); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid currentColor;
}
.more:hover { color: #63d641; }
.card__body p { color: var(--muted); }

.tag {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  background: var(--green); color: #071004; font-style: normal;
  font-size: 0.85rem; letter-spacing: 0.1em; padding: 3px 9px; border-radius: 6px;
}

.ticks li {
  position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line);
}
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- Saw feature ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature__text p { color: var(--muted); max-width: 56ch; }
.saw__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.saw__blade { width: clamp(140px, 22vw, 260px); color: var(--green); animation: spin 40s linear infinite; }
.saw__inner p { color: var(--muted); max-width: 60ch; }
.saw__inner .eyebrow { color: var(--green); }
.saw__inner .btn { margin-top: 0.6em; }
@keyframes spin { to { transform: rotate(360deg); } }

.ticks--open { margin: 1.4em 0 2em; }
.ticks--open li { color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.ticks--open li::before { top: 19px; }
.ticks--open strong { color: var(--text); font-weight: 600; }

/* ---------- Video clips ---------- */
.clip {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; display: block;
  background: #000; border-radius: var(--radius); border: 1px solid var(--line); cursor: pointer;
}
.feature > .clip { max-width: 360px; justify-self: center; }

.subhead { margin: 56px 0 0; font-size: 1.7rem; }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; max-width: 860px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.shot {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); cursor: zoom-in; display: block;
}
.shot img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.05); }

.lightbox {
  border: 0; padding: 0; background: transparent; color: var(--text);
  max-width: min(94vw, 1100px); max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox__caption { text-align: center; color: var(--muted); margin: 12px 0 0; font-size: 0.95rem; }
.lightbox__close {
  position: absolute; top: -14px; right: -6px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--green); color: #071004; font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about p { color: var(--muted); }
.small { font-size: 0.95rem; }
.about__photo { width: 100%; margin-top: 12px; border-radius: var(--radius); border: 1px solid var(--line); }

.steps { counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 20px 78px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 18px;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--green); color: var(--green);
  font-family: var(--head); font-weight: 800; font-size: 1.3rem;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 0.25em; }
.steps p { margin: 0; font-size: 0.98rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.contact__item {
  display: grid; gap: 4px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .15s, transform .15s;
}
.contact__item:hover { border-color: var(--green); transform: translateY(-2px); }
.contact__item svg { width: 28px; height: 28px; color: var(--green); margin-bottom: 10px; }
.contact__label {
  font-family: var(--head); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); font-size: 0.95rem;
}
.contact__value { font-family: var(--head); font-weight: 700; font-size: 1.6rem; line-height: 1.15; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 24px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer p { color: var(--muted); margin: 12px 0 0; font-size: 0.97rem; }
.footer__links { display: grid; gap: 8px; align-content: start; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--green); }
.footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: #6f786e; font-size: 0.88rem; }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner, .feature, .about { grid-template-columns: 1fr; }
  .saw__inner { grid-template-columns: 1fr; }
  .saw__blade { width: 120px; }
  .hero__media { max-width: 520px; }
  .hero__badge { right: 8px; }
  .services { grid-template-columns: 1fr; max-width: 560px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--text); }
  .nav__menu .btn { margin-top: 16px; }

  body { padding-bottom: 60px; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    border-top: 1px solid var(--line);
  }
  .callbar a {
    display: grid; place-items: center; height: 60px; text-decoration: none;
    font-family: var(--head); font-weight: 700; font-size: 1.25rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    background: var(--green); color: #071004;
  }
  .callbar a + a { background: var(--panel); color: var(--text); }

  .hero__cta .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .clips { gap: 8px; }
  .facts li { padding: 16px; }
  .facts strong { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .saw__blade { animation: none; }
  .btn, .contact__item { transition: none; }
}
