/* =============================================================
   Jeff Johnson Reno — stylesheet
   Design system → global styles → components → sections
   Mobile-first. All colors, spacing, and type as CSS custom
   properties in :root so a non-developer can tweak the palette.
   ============================================================= */

/* -------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------- */
:root {
  /* Palette */
  --c-bg:        #0A0A0A;   /* near-black canvas */
  --c-bg-elev:   #141416;   /* elevated surfaces (cards) */
  --c-fg:        #FFFFFF;
  --c-fg-muted:  #C7C7CC;   /* passes AA on --c-bg at 18px+ */
  --c-fg-dim:    #86868B;   /* only for very large / decorative text */
  --c-border:    #2A2A2E;
  --c-accent:    #22D3EE;   /* aqua — passes AA on --c-bg */
  --c-accent-strong: #67E8F9;
  --c-error:     #FCA5A5;
  --c-success:   #86EFAC;

  /* Type — base scales up on larger viewports (see media query below) */
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-base:   1.125rem;   /* 18px */
  --fs-lg:     1.25rem;    /* 20px */
  --fs-xl:     1.5rem;     /* 24px */
  --fs-2xl:    2rem;       /* 32px */
  --fs-3xl:    2.75rem;    /* 44px */
  --fs-4xl:    4rem;       /* 64px */
  --lh-body:   1.6;
  --lh-tight:  1.1;
  --measure:   65ch;       /* comfortable reading line length */

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  3rem;
  --sp-8:  4rem;
  --sp-9:  6rem;
  --sp-10: 8rem;

  /* Layout */
  --nav-h:      64px;
  --max-w:      1280px;
  --radius:     12px;
  --radius-sm:  8px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 200ms;
  --dur-med:  400ms;
  --dur-slow: 700ms;
}

@media (min-width: 768px) {
  :root {
    --fs-base: 1.1875rem;  /* 19px on tablet+ */
    --fs-3xl:  3.5rem;
    --fs-4xl:  5.5rem;
    --nav-h:   72px;
  }
}
@media (min-width: 1200px) {
  :root {
    --fs-4xl: 6.5rem;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  background: var(--c-bg);
  color: var(--c-fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;   /* belt-and-braces vs. horizontal scroll */
}

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

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-accent);
  color: #000;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

/* Global focus ring — aqua, visible on black */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Anchor sections sit under the sticky nav */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--sp-4));
}

/* Typography */
h1, h2, h3 {
  margin: 0 0 var(--sp-5);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: var(--fs-4xl); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); letter-spacing: normal; }
p  { margin: 0 0 var(--sp-4); max-width: var(--measure); }
a  { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-strong); }

/* Reusable content container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
@media (min-width: 768px)  { .container { padding: 0 var(--sp-6); } }
@media (min-width: 1200px) { .container { padding: 0 var(--sp-7); } }

/* -------------------------------------------------------------
   Buttons — 48px tap targets, aqua primary
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: var(--sp-3) var(--sp-6);
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-base);
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--c-accent);
  color: #001014;
}
.btn--primary:hover { background: var(--c-accent-strong); color: #001014; }

.btn--outline {
  background: transparent;
  color: var(--c-fg);
  /* Border passes WCAG 1.4.11 non-text contrast (~5:1 on --c-bg) */
  border-color: rgba(255,255,255,0.55);
}
.btn--outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* -------------------------------------------------------------
   Navigation — sticky, blurred, aqua wordmark
   ------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(10,10,10,0.72);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
          backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
}
.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.wordmark {
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  color: var(--c-accent);
  white-space: nowrap;
}
.wordmark:hover { color: var(--c-accent-strong); }

.nav-links {
  display: none;   /* mobile default */
  list-style: none;
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--c-fg);
  font-size: var(--fs-base);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--c-accent); }

/* Hamburger toggle (mobile). Base declaration MUST come before the
   media query below, otherwise the later source-order declaration
   overrides `display: none` at desktop widths and the toggle
   incorrectly appears alongside the desktop nav links. */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  color: var(--c-fg);
  cursor: pointer;
  padding: 0;
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Desktop breakpoint — show the inline nav, hide the hamburger */
@media (min-width: 768px) {
  .nav-links  { display: flex; }
  .nav-toggle { display: none; }
}

/* -------------------------------------------------------------
   Mobile menu — right-side drawer with "push" behaviour.
   The page (nav + main + footer) slides left; the drawer is
   revealed on the right. Tap the shifted sliver of page to
   dismiss, or use the X inside the drawer, or press Escape.
   ------------------------------------------------------------- */
:root { --drawer-w: 260px; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--drawer-w);
  background: var(--c-bg);
  border-left: 1px solid var(--c-border);
  /* Above nav (100) so the drawer visually sits on top when open */
  z-index: 110;
  padding: var(--sp-7) var(--sp-5) var(--sp-6);
  transform: translateX(100%);   /* parked off-screen right */
  transition: transform var(--dur-med) var(--ease-out);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  visibility: hidden;            /* keeps it out of the a11y tree when closed */
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  text-align: left;
}
.mobile-menu a {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--c-fg);
  padding: var(--sp-3) 0;
  min-height: 56px;
  line-height: 1.2;
}
.mobile-menu a:hover,
.mobile-menu a.is-active { color: var(--c-accent); }

/* Shift the page left when the drawer is open, revealing the drawer.
   Fixed elements (the nav) become positioned relative to <body> once
   body has a transform, so they slide with the page — intentional. */
body.menu-open {
  overflow: hidden;
}
body.menu-open .site-nav,
body.menu-open main,
body.menu-open .site-footer {
  transform: translateX(calc(-1 * var(--drawer-w)));
  transition: transform var(--dur-med) var(--ease-out);
}
.site-nav,
main,
.site-footer {
  transition: transform var(--dur-med) var(--ease-out);
  will-change: transform;
}

/* Transparent tap-catcher / dimmer over the visible shifted page.
   Sits above nav (100) but below drawer (110), so ANY tap in the
   shifted-page area lands on this overlay → bubbles to body → the
   document click handler in script.js closes the drawer. */
body.menu-open::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: var(--drawer-w);
  z-index: 105;
  background: rgba(0, 0, 0, 0.35);
  animation: fadeIn var(--dur-fast) var(--ease-out) forwards;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Above tablet width the drawer is hidden — full nav is visible */
@media (min-width: 768px) {
  .mobile-menu, body.menu-open::before { display: none; }
  body.menu-open .site-nav,
  body.menu-open main,
  body.menu-open .site-footer { transform: none; }
}

/* -------------------------------------------------------------
   Hero
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;   /* mobile browser bar-safe */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(10,10,10,0.55) 0%,
      rgba(10,10,10,0.35) 45%,
      rgba(10,10,10,0.90) 100%);
}
.hero__content {
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  max-width: 1000px;
}
.hero__eyebrow {
  display: inline-block;
  color: var(--c-accent);
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.hero h1 {
  margin-bottom: var(--sp-5);
}
.hero__sub {
  font-size: var(--fs-xl);
  color: var(--c-fg-muted);
  margin: 0 auto var(--sp-7);
  max-width: 40ch;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
}
@media (min-width: 768px) {
  .hero__sub { font-size: var(--fs-2xl); }
}

/* Proudly-made-in-Canada badge — small, tasteful, below the CTAs */
.hero__badge {
  display: block;
  width: 88px;
  height: auto;
  margin: var(--sp-6) auto 0;
  opacity: 0.95;
}
@media (min-width: 768px) {
  .hero__badge { width: 104px; margin-top: var(--sp-7); }
}

/* Fade the hero content in on load */
.hero__content > * {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp var(--dur-slow) var(--ease-out) forwards;
}
.hero__content > *:nth-child(1) { animation-delay: 100ms; }
.hero__content > *:nth-child(2) { animation-delay: 240ms; }
.hero__content > *:nth-child(3) { animation-delay: 380ms; }
.hero__content > *:nth-child(4) { animation-delay: 520ms; }
.hero__content > *:nth-child(5) { animation-delay: 660ms; }
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------
   Generic section rhythm
   ------------------------------------------------------------- */
.section {
  padding: var(--sp-9) 0;
}
@media (min-width: 768px)  { .section { padding: var(--sp-10) 0; } }

.section-eyebrow {
  color: var(--c-accent);
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.section-lead {
  font-size: var(--fs-lg);
  color: var(--c-fg-muted);
}

/* -------------------------------------------------------------
   About — two column on desktop, stacked on mobile
   ------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 5fr 6fr;
    gap: var(--sp-8);
  }
}
.about__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-elev);
}
.about__figure img {
  width: 100%;
  height: auto;
  display: block;
}
.about__body p {
  font-size: var(--fs-lg);
  color: var(--c-fg-muted);
}
.about__body p:first-of-type { color: var(--c-fg); }

/* -------------------------------------------------------------
   Gallery — CSS-columns masonry preserves each shot's shape
   -------------------------------------------------------------
   Mixed portrait/landscape/square set (23P / 8L / 4S) so a fixed
   aspect ratio would crop most images. `column-count` gives a
   Pinterest-style layout that respects each photo's real shape.
   ------------------------------------------------------------- */
/* Semantic <ul> — strip default list padding / bullets */
.gallery {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 1;
  column-gap: var(--sp-4);
}
@media (min-width: 640px)  { .gallery { column-count: 2; } }
@media (min-width: 1024px) { .gallery { column-count: 3; column-gap: var(--sp-5); } }
@media (min-width: 1400px) { .gallery { column-count: 4; } }

/* Each <li> is the column child — carries the break-avoid + gap */
.gallery-cell {
  display: block;
  margin: 0 0 var(--sp-4);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
@media (min-width: 1024px) { .gallery-cell { margin-bottom: var(--sp-5); } }

/* Hidden batch (revealed by "Show more") — now on the <li> wrapper */
.gallery-cell.is-hidden { display: none; }

/* The interactive button lives inside the <li> */
.gallery-item {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: var(--c-bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition:
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.gallery-item:hover img {
  transform: scale(1.02);
}

/* "Show 12 more" button — spans width below the grid */
.gallery-more {
  margin-top: var(--sp-6);
  display: flex;
  justify-content: center;
}
.gallery-more .btn { width: 100%; max-width: 560px; }

/* -------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0,0,0,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - var(--sp-9));
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-caption {
  position: absolute;
  bottom: var(--sp-5);
  left: var(--sp-5);
  right: var(--sp-5);
  color: var(--c-fg-muted);
  font-size: var(--fs-base);
  text-align: center;
  pointer-events: none;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  min-width: 56px;
  min-height: 56px;
  padding: var(--sp-3);
  background: rgba(255,255,255,0.08);
  color: var(--c-fg);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-out);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.18); }
.lightbox-close { top: var(--sp-5); right: var(--sp-5); }
.lightbox-prev  { left: var(--sp-4); top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: var(--sp-4); top: 50%; transform: translateY(-50%); }

/* -------------------------------------------------------------
   Contact section
   ------------------------------------------------------------- */
.contact__phone {
  display: inline-block;
  /* Sized to fit the ~340px mobile column and ~500px desktop side
     column without ever wrapping between "871-" and "0302". */
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-accent);
  margin: var(--sp-5) 0 var(--sp-4);
  line-height: 1.05;
  white-space: nowrap;
}
.contact__phone:hover { color: var(--c-accent-strong); }

.contact__reassure {
  font-size: var(--fs-xl);
  color: var(--c-fg);
  margin-bottom: var(--sp-7);
}
.contact__ig {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 48px;
  padding: var(--sp-3) 0;
  color: var(--c-fg);
  font-size: var(--fs-lg);
}
.contact__ig:hover { color: var(--c-accent); }
.contact__ig svg { width: 24px; height: 24px; flex-shrink: 0; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: start;
}
@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 5fr 6fr;
    gap: var(--sp-9);
  }
}

/* -------------------------------------------------------------
   Form
   ------------------------------------------------------------- */
.form {
  background: var(--c-bg-elev);
  padding: var(--sp-6);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}
@media (min-width: 768px) { .form { padding: var(--sp-7); } }

.field {
  margin-bottom: var(--sp-5);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .field-row .field { margin-bottom: 0; }
}

.form label {
  display: block;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-fg);
  margin-bottom: var(--sp-2);
}

.form input,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;    /* 17px — >16 so iOS doesn't zoom on focus */
  color: var(--c-fg);
  background: #000;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  min-height: 52px;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  -webkit-appearance: none;
}
.form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.35);
}
.form input.is-invalid,
.form textarea.is-invalid {
  border-color: var(--c-error);
}
.field-error {
  display: block;
  min-height: 1.25em;
  margin-top: var(--sp-2);
  font-size: 1rem;   /* 16px floor — nothing under 16 anywhere */
  color: var(--c-error);
}

/* Honeypot — invisible to humans, still filled by naive bots */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-actions {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.form-actions .btn { width: 100%; }
@media (min-width: 560px) {
  .form-actions .btn { width: auto; }
}

.form-status {
  margin-top: var(--sp-4);
  font-size: var(--fs-base);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  display: none;
}
.form-status:not(:empty) { display: block; }
.form-status--info    { background: rgba(34,211,238,0.10); color: var(--c-accent-strong); }
.form-status--success { background: rgba(134,239,172,0.10); color: var(--c-success); }
.form-status--error   { background: rgba(252,165,165,0.10); color: var(--c-error); }
.form-status a { color: inherit; text-decoration: underline; }

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: var(--sp-7) 0;
  color: var(--c-fg-muted);
  font-size: var(--fs-base);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}
.site-footer a { color: var(--c-fg); }
.site-footer a:hover { color: var(--c-accent); }
.footer__brand { color: var(--c-fg); font-weight: 600; }

/* -------------------------------------------------------------
   Scroll-reveal
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------
   Reduced motion — disable all decorative animation
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .gallery-item:hover { transform: none; }
  .gallery-item:hover img { transform: none; }
}
