/* ============================================================
   Harbor Laser Works — cut-steel industrial
   Palette: near-black blue / steel blue / rust orange / pale panel
   ============================================================ */

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/archivo-black.woff2") format("woff2");
}

:root {
  --ink:    #1a2530;   /* near-black blue  */
  --steel:  #3d5a6c;   /* steel blue       */
  --rust:   #b5502a;   /* rust orange      */
  --rust-deep: #a04620; /* darker rust — AA contrast on pale */
  --pale:   #eef2f4;   /* pale panel       */
  --white:  #ffffff;
  --ink-2:  #141d26;   /* a shade below ink, for footer/banding */
  --line:   #c9d4da;   /* hairline on pale */
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* grain texture, inline so there's no extra request */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap   { max-width: 66rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 42rem; }
.mid    { max-width: 52rem; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; text-transform: uppercase; }

h2 {
  font-size: clamp(1.6rem, 5.5vw, 2.6rem);
  letter-spacing: 0.01em;
  margin-bottom: 1.1rem;
}
h2.on-dark { color: var(--pale); }

h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  background: var(--rust);
  margin-top: 0.6rem;
}

p + p { margin-top: 0.9rem; }

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.9rem;
}
.kicker.dark { color: var(--steel); }

/* ---------- buttons ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.btn {
  display: inline-block;
  padding: 0.95rem 1.5rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-solid { background: var(--rust); color: var(--white); }
.btn-solid:hover, .btn-solid:focus-visible { background: #c85e35; }
.btn-ghost { border-color: var(--steel); color: var(--pale); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--rust); color: var(--white); }

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  background-image: var(--grain), linear-gradient(160deg, #22303d 0%, var(--ink) 55%, var(--ink-2) 100%);
  color: var(--pale);
  overflow: hidden;
  padding: clamp(4rem, 12vh, 7rem) 0;
}

.hero .kicker { color: #8fa9b8; }

.wordmark {
  font-size: clamp(3.2rem, 14vw, 7.5rem);
  letter-spacing: 0.01em;
  color: var(--white);
  text-shadow: 0 2px 0 rgba(0,0,0,0.25);
}

.hero-sub {
  margin-top: 1.2rem;
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  font-weight: 700;
  color: #a9c0cd;
  letter-spacing: 0.02em;
}

.hero-line {
  margin-top: 0.8rem;
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: var(--pale);
}

/* laser scanline: one sweep on load, then done */
.hero-scan {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust) 30%, #ff9a5f 50%, var(--rust) 70%, transparent);
  box-shadow: 0 0 18px 2px rgba(181, 80, 42, 0.55);
  opacity: 0;
  animation: scan 2.6s ease-in-out 0.4s 1 forwards;
  pointer-events: none;
}
@keyframes scan {
  0%   { transform: translateY(0);    opacity: 0; }
  12%  { opacity: 0.6; }
  82%  { opacity: 0.6; }
  100% { transform: translateY(80vh); opacity: 0; }
}

@media (min-width: 640px) { .br-sm { display: none; } }

/* ---------- panels ---------- */

.panel { padding: clamp(3rem, 9vw, 5rem) 0; }
.panel.pale  { background: var(--pale); }
.panel.white { background: var(--white); }
.panel.steel {
  background: var(--steel);
  background-image: var(--grain);
  color: var(--pale);
}
.panel.dark {
  background: var(--ink);
  background-image: var(--grain);
  color: var(--pale);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  color: var(--ink);
  padding: 1.4rem 1.3rem 1.5rem;
  border-top: 4px solid var(--rust);
}
.card h3 {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.55rem;
}
.card p { font-size: 0.95rem; color: #3a4a56; }

/* ---------- video ---------- */

.video-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .video-grid { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
  /* vertical (Shorts) tiles: three-up within the mid wrap */
  .video-grid:has(.vertical) { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
}
/* vertical tiles on phones: swipeable reel row */
@media (max-width: 759px) {
  .video-grid:has(.vertical) {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: -1.25rem;          /* bleed to screen edges */
    padding-inline: 1.25rem;
  }
  .video-grid:has(.vertical)::-webkit-scrollbar { display: none; }
  .video-grid:has(.vertical) .vid { flex: 0 0 62vw; scroll-snap-align: center; }
}

.vid {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  overflow: hidden;
}
.vid.vertical { aspect-ratio: 9 / 16; }
.vid img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* crops the letterbox off hqdefault thumbs */
  display: block;
  filter: saturate(0.85);
}
.vid iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vid-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: rgba(20, 29, 38, 0.25);
  border: 0;
  cursor: pointer;
  transition: background 0.15s;
}
.vid-play:hover, .vid-play:focus-visible { background: rgba(20, 29, 38, 0.05); }
.vid-play::before {
  content: "";
  width: 4.2rem;
  height: 4.2rem;
  background: var(--rust);
  clip-path: polygon(30% 22%, 30% 78%, 82% 50%);
  border-radius: 2px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
  transition: transform 0.15s;
}
.vid-play:hover::before { transform: scale(1.08); }

.vid-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pale);
  background: linear-gradient(transparent, rgba(20,29,38,0.9));
  pointer-events: none;
}

.vid-note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: #8fa9b8;
}

/* ---------- pricing ---------- */

.price-list { list-style: none; margin-top: 1.6rem; }
.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.price-list li:first-child { border-top: 2px solid var(--ink); }
.price-list strong { display: block; font-size: 1.05rem; }
.price-list span   { display: block; font-size: 0.85rem; color: #5a6b76; }
.price-list em {
  font-family: var(--display);
  font-style: normal;
  font-size: 1.15rem;
  white-space: nowrap;
  color: var(--rust-deep);
}

.footnote {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: #5a6b76;
  border-left: 3px solid var(--rust);
  padding-left: 0.9rem;
}

/* ---------- referral band ---------- */

.referral { border-top: 4px solid var(--rust); background: var(--ink-2); }
.referral .hl { color: #ff9a5f; }

/* ---------- about / footer ---------- */

.about p { font-size: 1.05rem; }

.footer {
  background: var(--ink-2);
  background-image: var(--grain);
  color: #8fa9b8;
  padding: 3rem 0 3.5rem;
  text-align: center;
}
.foot-phone {
  font-family: var(--display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  color: var(--white);
  text-decoration: none;
}
.foot-phone:hover { color: #ff9a5f; }
.foot-area  { margin-top: 0.8rem; font-size: 0.92rem; }
.foot-legal { margin-top: 1.4rem; font-size: 0.8rem; line-height: 1.7; }

/* ---------- mobile sticky call bar ---------- */

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  text-align: center;
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
  background: var(--rust);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 -4px 16px rgba(20,29,38,0.35);
  transform: translateY(110%);
  transition: transform 0.25s ease;
  z-index: 50;
}
@media (max-width: 700px) {
  .callbar { display: block; }
  .callbar.show { transform: translateY(0); }
  body.has-callbar .footer { padding-bottom: 6.5rem; }
}
