/* ---------- VARIABLES ----------
   Custom properties let you change the whole colour scheme in one place. */
:root {
  --bg: #0b0b0c;          /* near-black page background */
  --bg-alt: #131316;      /* slightly lighter for alternating sections */
  --text: #f2f2f2;
  --muted: #a3a8ae;       /* silver-grey for secondary text */
  --orange: #ff6a13;      /* main accent */
  --line: #26262b;        /* thin borders */
  --radius: 14px;
}

/* ---------- RESET ----------
   Browsers add their own spacing. This makes sizing predictable. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }   /* smooth scrolling; padding stops the sticky header covering section titles */

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #111; }

/* A clear orange ring when moving around the page with the Tab key (not shown on mouse clicks). */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* "Skip to content" link: parked off-screen until a keyboard user tabs to it. */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 8px; background: var(--orange); color: #111; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Keeps content from stretching edge to edge on very wide screens:
   the side padding is 6vw, or whatever centres a 1200px column, whichever is bigger. */
.hero, .section { padding-inline: max(6vw, calc((100% - 1200px) / 2)); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;      /* stays visible while scrolling */
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 3vw, 48px);       /* full width: logo hugs the left edge, menu the right */
  background: rgba(11, 11, 12, 0.85);
  -webkit-backdrop-filter: blur(10px);         /* older Safari / iOS */
  backdrop-filter: blur(10px);                 /* frosted-glass effect */
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; }
/* Set the height only; width: auto keeps each image's proportions. */
.logo-emblem { height: 40px; width: auto; }
.logo-wordmark { height: 22px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--muted); transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--text); }
.menu-toggle { display: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 2px solid var(--orange);
  background: var(--orange); color: #111; font-weight: 700;
  padding: 12px 26px; border-radius: 999px; font-size: 1rem;
  transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: #ff8540; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--muted); }
.btn-ghost:hover { background: #1c1c20; }
.btn-small { padding: 8px 18px; font-size: .9rem; }

/* ---------- HERO ---------- */
.hero {
  min-height: 88vh; min-height: 88svh;   /* svh ignores phone address bars that slide in and out; older browsers use the vh line */
  display: flex; flex-direction: column; justify-content: center;
  /* Two layered gradients: an orange glow in the corner over a dark base. */
  background:
    radial-gradient(circle at 85% 20%, rgba(255,106,19,.22), transparent 45%),
    var(--bg);
}
.eyebrow { color: var(--orange); text-transform: uppercase; letter-spacing: .25em; font-size: .85rem; font-weight: 700; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 20px; max-width: 12ch; }
/* clamp(min, preferred, max) lets text scale smoothly with screen width. */
.accent { color: var(--orange); }
.lead { max-width: 52ch; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- SECTIONS ---------- */
.section { padding-block: 90px; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 10px; }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 36px; }

/* ---------- CARD GRID ----------
   auto-fit with minmax makes the columns wrap automatically on small screens. */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { margin: 0; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: transform .2s, border-color .2s; }
/* Lift on hover only on devices with a real mouse, so cards don't get stuck "lifted" after a tap on phones. */
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); border-color: var(--orange); }
}
.card h3 { margin: 16px 0 6px; }
.card p { color: var(--muted); }

/* A single photo in the gallery. Every card uses the same tall 4 / 5 frame (bat photos are portrait) so the tiles line up.
   object-fit: cover fills the frame and trims any overflow instead of squashing the photo.
   object-position picks which part stays in view (centre, a bit above the middle, to keep the stickers). */
.work-photo {
  display: block; width: 100%; height: auto;   /* height: auto lets aspect-ratio set the height, not the HTML height attribute */
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%;
  border-radius: 10px; background: #1a1a1e;
}

/* Before-and-after set: photos in a 2x2 grid that fills the same 4 / 5 frame as the other tiles.
   Each photo is cropped to fit its cell (object-fit: cover), and a small label sits in the corner. */
.before-after {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px;
  aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #1a1a1e;
}
.ba-pair { grid-template-rows: 1fr; }   /* just one row: a single before and after, each a tall half of the frame */
.ba-tall { grid-column: 2; grid-row: 1 / span 2; }   /* one photo filling the whole right-hand column */
.ba-cell { position: relative; min-height: 0; }   /* min-height: 0 stops tall photos stretching the row */
.ba-cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-label {
  position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(0,0,0,.7); color: var(--text);
}
.ba-after { background: var(--orange); color: #000; }   /* orange tag makes the "after" side stand out */

.story { max-width: 62ch; font-size: 1.15rem; color: var(--muted); }

/* ---------- PRICE TABLE ----------
   border-collapse: collapse merges the cell borders into single lines. */
.price-table { width: 100%; max-width: 680px; border-collapse: collapse; }
.price-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--orange); padding: 0 0 10px; border-bottom: 2px solid var(--orange); }
.price-table th:last-child, .price-table td:last-child { text-align: right; white-space: nowrap; }
.price-table td { padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-table td:last-child { font-weight: 700; padding-left: 16px; }   /* gap so long service names don't touch the price */
.price-table tbody tr:hover { background: rgba(255,106,19,.06); }   /* row highlight on hover */

/* .sr-only hides text visually but keeps it for screen readers (used for the table caption). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- FOOTER ---------- */
.site-footer { text-align: center; padding: 36px 6vw; color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem; }

/* ---------- MOBILE ----------
   Everything inside this block only applies on screens 760px wide or narrower. */
@media (max-width: 760px) {
  .menu-toggle { display: block; background: none; border: 1px solid var(--line); color: var(--text); padding: 8px 14px; border-radius: 8px; cursor: pointer; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px clamp(16px, 3vw, 48px); background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }   /* script.js adds the "open" class */
  .section { padding-block: 64px; }
}

/* People who turn on "reduce motion" in their phone or computer settings get no sliding or lifting. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
}