/*
Theme Name: Jack Groundworks
Theme URI: https://lvimm.ca/
Author: ScopeX Media
Description: A single-page, image-led theme for Jack Groundworks Ltd.
Version: 1.0.3
Text Domain: jack-groundworks
*/

:root {
  --jg-orange: #E86338;
  --jg-navy: #202943;
  --jg-paper: #E4E7EE;
  --jg-deep: #091F36;
  --jg-speckle: #B86B56;
  --jg-muted: #8D91A1;
  --jg-line: rgba(228, 231, 238, .2);
  --jg-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --jg-max: 82rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--jg-paper);
  background: var(--jg-deep);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { z-index: 1000; top: .75rem; left: .75rem; width: auto; height: auto; overflow: visible; clip: auto; padding: .75rem 1rem; background: var(--jg-paper); color: var(--jg-deep); }
.jg-shell { width: min(100% - (var(--jg-gutter) * 2), var(--jg-max)); margin-inline: auto; }

.jg-site-header { position: absolute; z-index: 5; inset: 0 0 auto; padding: clamp(1rem, 2vw, 1.75rem) var(--jg-gutter); }
.jg-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.jg-brand { width: clamp(10rem, 18vw, 16rem); }
.jg-brand img { width: 100%; height: auto; }
.jg-header-links { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.6rem); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.jg-header-links a:not(.jg-header-call) { text-decoration: none; opacity: .78; }
.jg-header-call, .jg-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .75rem 1rem; border: 1px solid currentColor; text-decoration: none; font-size: .74rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.jg-header-call:hover, .jg-header-call:focus-visible { color: var(--jg-deep); background: var(--jg-paper); }

.jg-hero { position: relative; min-height: max(44rem, 100svh); overflow: hidden; isolation: isolate; background: var(--jg-orange); }
.jg-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(9,31,54,.24), transparent 58%), url("assets/images/484547024_672366185210368_4245781041647621558_n.jpg") center / cover; mix-blend-mode: multiply; opacity: .76; }
.jg-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(var(--jg-speckle) 1px, transparent 1px); background-size: 13px 13px; opacity: .45; mask-image: linear-gradient(112deg, #000 0 38%, transparent 67%); }
.jg-hero-layout { display: grid; min-height: max(44rem, 100svh); align-items: end; grid-template-columns: minmax(0, 1.08fr) minmax(17rem, .92fr); padding: 9rem var(--jg-gutter) clamp(2rem, 6vw, 5rem); }
.jg-hero-copy { max-width: 46rem; padding: clamp(1.35rem, 3vw, 3rem); color: var(--jg-paper); background: var(--jg-deep); box-shadow: 1rem 1rem 0 rgba(9,31,54,.28); }
.jg-kicker { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.jg-kicker::before { width: 2.35rem; height: 2px; background: var(--jg-orange); content: ""; }
.jg-hero h1, .jg-display { margin: 0; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; line-height: .88; }
.jg-hero h1 { max-width: 9ch; font-size: clamp(4.3rem, 10.5vw, 10.5rem); }
.jg-hero p:not(.jg-kicker) { max-width: 30rem; margin: 1.35rem 0 0; color: rgba(228,231,238,.84); font-size: clamp(.94rem, 1.35vw, 1.08rem); font-weight: 500; }
.jg-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.jg-cta--paper { color: var(--jg-deep); border-color: var(--jg-paper); background: var(--jg-paper); }
.jg-cta--paper:hover, .jg-cta--paper:focus-visible { background: var(--jg-orange); border-color: var(--jg-orange); }
.jg-cta--ghost:hover, .jg-cta--ghost:focus-visible { color: var(--jg-deep); background: var(--jg-paper); }
.jg-hero-stamp { align-self: end; justify-self: end; display: grid; width: min(100%, 17rem); aspect-ratio: 1; place-content: center; padding: 2rem; border: 1px solid rgba(9,31,54,.42); color: var(--jg-deep); text-align: center; transform: rotate(5deg); }
.jg-hero-stamp b { font-family: "Bebas Neue", Impact, sans-serif; font-size: clamp(3.2rem, 5vw, 5rem); font-weight: 700; line-height: .8; }
.jg-hero-stamp span { margin-top: .65rem; font-size: .62rem; font-weight: 800; letter-spacing: .13em; line-height: 1.45; text-transform: uppercase; }

.jg-intro { position: relative; overflow: hidden; padding: clamp(5rem, 11vw, 10rem) 0; background: var(--jg-paper); color: var(--jg-deep); }
.jg-intro::after { position: absolute; top: 2.5rem; right: 2vw; color: var(--jg-orange); content: "//"; font-family: "Bebas Neue", Impact, sans-serif; font-size: clamp(13rem, 30vw, 31rem); line-height: .7; opacity: .9; }
.jg-intro-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 9vw, 9rem); }
.jg-intro .jg-display { max-width: 7ch; font-size: clamp(3.8rem, 9vw, 8.5rem); }
.jg-intro-copy { align-self: end; max-width: 38rem; }
.jg-intro-copy p { margin: 0; font-size: clamp(1.1rem, 1.75vw, 1.4rem); font-weight: 500; line-height: 1.45; }
.jg-intro-copy p + p { margin-top: 1.25rem; color: #4a5265; font-size: .88rem; }

.jg-services { padding: clamp(4.5rem, 8vw, 8rem) 0; background: var(--jg-deep); }
.jg-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--jg-line); }
.jg-section-heading .jg-display { font-size: clamp(3.75rem, 8vw, 7.4rem); }
.jg-section-heading p { max-width: 21rem; margin: 0 0 .4rem; color: var(--jg-muted); font-size: .76rem; font-weight: 600; letter-spacing: .1em; line-height: 1.55; text-align: right; text-transform: uppercase; }
.jg-service-list { margin: 0; padding: 0; list-style: none; }
.jg-service-list li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 6.3rem; border-bottom: 1px solid var(--jg-line); }
.jg-service-number { color: var(--jg-orange); font-family: "Bebas Neue", Impact, sans-serif; font-size: 2rem; }
.jg-service-name { font-family: "Bebas Neue", Impact, sans-serif; font-size: clamp(2rem, 4.4vw, 4.4rem); letter-spacing: .035em; line-height: 1; text-transform: uppercase; }
.jg-service-mark { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--jg-orange); box-shadow: 0 0 0 4px rgba(232,99,56,.15); }

.jg-work { padding: clamp(4.5rem, 9vw, 9rem) 0; background: var(--jg-navy); }
.jg-work-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.jg-work-header .jg-display { font-size: clamp(4rem, 10vw, 9.5rem); }
.jg-work-header p { max-width: 23rem; margin: 0 0 .4rem; color: var(--jg-muted); font-size: .82rem; line-height: 1.6; }
.jg-work-grid { display: grid; grid-template-columns: 1.35fr .65fr .8fr; grid-template-rows: minmax(16rem, 29rem) minmax(13rem, 22rem); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.jg-work-tile { position: relative; min-height: 0; overflow: hidden; background: var(--jg-deep); }
.jg-work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.jg-work-tile:hover img { transform: scale(1.04); }
.jg-work-tile::after { position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(9,31,54,.86)); content: ""; pointer-events: none; }
.jg-work-tile figcaption { position: absolute; z-index: 1; right: 1rem; bottom: 1rem; left: 1rem; font-size: .64rem; font-weight: 800; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.jg-work-tile--main { grid-row: span 2; }
.jg-work-tile--wide { grid-column: span 2; }

.jg-contact { position: relative; overflow: hidden; padding: clamp(5rem, 11vw, 10rem) 0; background: var(--jg-orange); color: var(--jg-deep); }
.jg-contact::before { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(32,41,67,.16) 1px, transparent 1px), linear-gradient(rgba(32,41,67,.16) 1px, transparent 1px); background-size: 2.1rem 2.1rem; content: ""; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.jg-contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(20rem, 1.15fr); align-items: start; gap: clamp(2.5rem, 7vw, 7rem); }
.jg-contact .jg-display { max-width: 9ch; font-size: clamp(4.7rem, 12vw, 11rem); }
.jg-contact-copy { max-width: 22rem; margin-top: 1.35rem; font-weight: 600; }
.jg-phone { display: inline-block; margin-top: clamp(2rem, 4vw, 3rem); color: var(--jg-deep); font-family: "Bebas Neue", Impact, sans-serif; font-size: clamp(3.2rem, 7.5vw, 7rem); letter-spacing: .035em; line-height: .9; text-decoration: none; }
.jg-phone:hover, .jg-phone:focus-visible { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.jg-contact-email { display: inline-block; margin-top: 1rem; color: var(--jg-deep); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.jg-contact-email:hover, .jg-contact-email:focus-visible { color: var(--jg-paper); }
.jg-contact-form-wrap { padding: clamp(1.3rem, 3vw, 2.5rem); color: var(--jg-paper); background: var(--jg-deep); box-shadow: .85rem .85rem 0 rgba(9,31,54,.2); }
.jg-form-title { margin: 0; font-family: "Bebas Neue", Impact, sans-serif; font-size: clamp(2.6rem, 4vw, 4.3rem); font-weight: 700; letter-spacing: .035em; line-height: .9; text-transform: uppercase; }
.jg-form-intro { max-width: 31rem; margin: .7rem 0 1.5rem; color: var(--jg-muted); font-size: .92rem; font-weight: 600; line-height: 1.5; }
.jg-contact-form { margin: 0; }
.jg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.jg-form-field { display: grid; gap: .45rem; margin: 0; }
.jg-form-field--wide { grid-column: 1 / -1; }
.jg-contact-form label { color: var(--jg-paper); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.jg-contact-form input, .jg-contact-form select, .jg-contact-form textarea { width: 100%; min-height: 3rem; padding: .75rem .8rem; border: 1px solid rgba(228,231,238,.55); border-radius: 0; color: var(--jg-deep); background: var(--jg-paper); font: inherit; font-size: 1rem; line-height: 1.45; }
.jg-contact-form textarea { min-height: 9rem; resize: vertical; }
.jg-contact-form input:focus, .jg-contact-form select:focus, .jg-contact-form textarea:focus { outline: 3px solid var(--jg-orange); outline-offset: 2px; }
.jg-form-submit { min-height: 3.2rem; margin-top: 1.25rem; padding: .75rem 1.1rem; border: 1px solid var(--jg-paper); color: var(--jg-deep); background: var(--jg-paper); font: inherit; font-size: .74rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; cursor: pointer; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.jg-form-submit:hover, .jg-form-submit:focus-visible { color: var(--jg-paper); background: var(--jg-orange); transform: translateY(-2px); }
.jg-form-notice { margin: 0 0 1rem; padding: .8rem; border: 1px solid var(--jg-orange); color: var(--jg-paper); font-size: .88rem; font-weight: 600; line-height: 1.45; }
.jg-form-notice--error { border-color: var(--jg-paper); }
.jg-form-trap { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.jg-footer { padding: clamp(3rem, 6vw, 5.5rem) 0 1.4rem; background: var(--jg-deep); }
.jg-footer-main { display: grid; grid-template-columns: minmax(11rem, 18rem) minmax(0, 1fr) auto; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.jg-footer-brand { display: block; width: min(100%, 18rem); }
.jg-footer-brand img { display: block; width: 100%; height: auto; }
.jg-footer-message p { max-width: 24rem; margin: 0; color: var(--jg-paper); font-family: "Bebas Neue", Impact, sans-serif; font-size: clamp(2rem, 3vw, 3.2rem); letter-spacing: .035em; line-height: .95; text-transform: uppercase; }
.jg-footer-message nav { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 1.25rem; }
.jg-footer a { color: var(--jg-paper); text-decoration: none; }
.jg-footer-message nav a { color: var(--jg-muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.jg-footer-message nav a:hover, .jg-footer-message nav a:focus-visible { color: var(--jg-orange); }
.jg-footer-contact { display: grid; gap: 1rem; min-width: 14rem; }
.jg-footer-call { display: grid; gap: .25rem; min-width: 11rem; padding: .85rem 0; border-top: 1px solid var(--jg-orange); border-bottom: 1px solid var(--jg-orange); color: var(--jg-paper); font-family: "Bebas Neue", Impact, sans-serif; font-size: clamp(2rem, 3.2vw, 3.4rem); letter-spacing: .035em; line-height: .9; text-align: right; }
.jg-footer-call span { color: var(--jg-muted); font-family: "Montserrat", sans-serif; font-size: .62rem; font-weight: 800; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; }
.jg-footer-email { display: grid; gap: .3rem; color: var(--jg-paper); font-size: .76rem; font-weight: 800; letter-spacing: .04em; line-height: 1.4; text-align: right; text-decoration: underline; text-decoration-color: var(--jg-orange); text-underline-offset: .3em; }
.jg-footer-email span { color: var(--jg-muted); font-size: .62rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.jg-footer-email:hover, .jg-footer-email:focus-visible { color: var(--jg-orange); }
.jg-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-top: 1rem; border-top: 1px solid rgba(228,231,238,.2); color: var(--jg-muted); font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

/* Desktop composition: one compact call-to-action plate, then the site work. */
@media (min-width: 761px) {
  .jg-hero-layout { grid-template-columns: minmax(0, 42rem) minmax(14rem, 1fr); align-items: center; padding: 8.75rem var(--jg-gutter) 5.25rem; }
  .jg-hero-copy { width: min(100%, 42rem); max-width: none; padding: clamp(1.75rem, 2.6vw, 2.75rem); }
  .jg-hero h1 { max-width: 11.5ch; font-size: clamp(5.25rem, 7.35vw, 6.9rem); }
  .jg-hero p:not(.jg-kicker) { max-width: 25rem; }
  .jg-hero-stamp { align-self: center; width: min(100%, 14.5rem); padding: 1.5rem; transform: rotate(4deg); }
  .jg-hero-stamp b { font-size: clamp(3.2rem, 4vw, 4.25rem); }
  .jg-intro, .jg-contact { padding: clamp(5.5rem, 7vw, 7.5rem) 0; }
  .jg-intro-grid { gap: clamp(2rem, 6vw, 6rem); }
  .jg-intro .jg-display { font-size: clamp(3.8rem, 7vw, 6.9rem); }
  .jg-work-grid { grid-template-columns: 1.15fr .85fr .85fr; grid-template-rows: minmax(18rem, 27rem) minmax(14rem, 20rem); }
  .jg-contact .jg-display { font-size: clamp(5rem, 7.5vw, 7rem); }
}

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .jg-hero::before { transform-origin: right center; animation: jg-sitework-aperture .72s cubic-bezier(.16, 1, .3, 1) .08s both; }
  .jg-hero-copy { animation: jg-setting-out .64s cubic-bezier(.16, 1, .3, 1) both; }
  .jg-hero h1, .jg-hero p:not(.jg-kicker), .jg-hero-actions { animation: jg-copy-settle .52s cubic-bezier(.16, 1, .3, 1) .18s both; }
  .jg-hero-stamp { animation: jg-stamp-settle .62s cubic-bezier(.16, 1, .3, 1) .28s both; }
  .jg-service-list li { position: relative; overflow: hidden; transition: color .28s ease, background-color .28s ease; }
  .jg-service-list li::before { position: absolute; inset: auto 0 0; height: 2px; background: var(--jg-orange); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .32s cubic-bezier(.16, 1, .3, 1); }
  .jg-service-list li:hover { background: rgba(228,231,238,.04); }
  .jg-service-list li:hover::before { transform: scaleX(1); }
  .jg-service-mark { transition: transform .28s cubic-bezier(.16, 1, .3, 1), box-shadow .28s ease; }
  .jg-service-list li:hover .jg-service-mark { box-shadow: 0 0 0 7px rgba(232,99,56,.16); transform: scale(1.18); }
  .jg-work-tile figcaption { transition: transform .32s cubic-bezier(.16, 1, .3, 1); }
  .jg-work-tile:hover figcaption { transform: translateY(-.35rem); }
}

@keyframes jg-sitework-aperture {
  from { clip-path: inset(0 0 0 100%); transform: scale(1.06); }
  to { clip-path: inset(0); transform: scale(1); }
}
@keyframes jg-setting-out {
  from { clip-path: inset(0 100% 0 0); transform: translateX(-1.5rem); }
  to { clip-path: inset(0); transform: translateX(0); }
}
@keyframes jg-copy-settle {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes jg-stamp-settle {
  from { opacity: 0; transform: translateX(1.25rem) rotate(8deg); }
  to { opacity: 1; transform: translateX(0) rotate(4deg); }
}

@media (max-width: 760px) {
  .jg-site-header { padding-top: .85rem; }
  .jg-header-links a:not(.jg-header-call) { display: none; }
  .jg-header-call { min-height: 2.45rem; padding: .55rem .7rem; font-size: .61rem; }
  .jg-hero { min-height: 43rem; }
  .jg-hero-layout { min-height: 43rem; grid-template-columns: 1fr; padding-inline: var(--jg-gutter); }
  .jg-hero::before { background-position: 58% center; opacity: .68; }
  .jg-hero-copy { padding: 1.35rem; box-shadow: .65rem .65rem 0 rgba(9,31,54,.25); }
  .jg-hero-stamp { display: none; }
  .jg-intro-grid, .jg-contact-grid { grid-template-columns: 1fr; }
  .jg-intro::after { top: 1rem; font-size: 16rem; }
  .jg-section-heading { align-items: start; flex-direction: column; }
  .jg-section-heading p { text-align: left; }
  .jg-service-list li { grid-template-columns: 2.4rem minmax(0, 1fr) 1.15rem; min-height: 5.2rem; gap: .4rem; }
  .jg-work-header { align-items: start; flex-direction: column; }
  .jg-work-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 18rem 14rem 14rem; }
  .jg-work-tile--main { grid-column: span 2; grid-row: span 1; }
  .jg-work-tile--wide { grid-column: span 2; }
  .jg-contact-form-wrap { padding: 1.25rem; box-shadow: .55rem .55rem 0 rgba(9,31,54,.2); }
  .jg-form-grid { grid-template-columns: 1fr; }
  .jg-form-field--wide { grid-column: auto; }
  .jg-contact-form input, .jg-contact-form select { min-height: 3rem; }
  .jg-footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .jg-footer-brand { width: min(15rem, 70vw); }
  .jg-footer-message p { max-width: 16rem; }
  .jg-footer-contact { width: 100%; max-width: 18rem; }
  .jg-footer-call, .jg-footer-email { width: 100%; text-align: left; }
  .jg-footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
