/* =========================================================
   J. WORKS LLC — Contractor Website
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --black: #111;
  --charcoal: #202020;

  --white: #fff;
  --off-white: #f7f7f5;

  --text: #222;
  --muted: #6f6f6a;
  --border: #deded9;

  --orange: #e8752d;
  --orange-dark: #c95b18;

  --font-head: 'Oswald', Arial, sans-serif;
  --font-body: 'Barlow', Arial, sans-serif;

  --header-height: 82px;
  --container: 1240px;
  --section-space: 120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}


/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 18px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.05;
}

p {
  margin-top: 0;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

/* Shared vertical rhythm for page sections */
.intro,
.services,
.gallery,
.about,
.contact {
  padding-block: var(--section-space);
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 13px 25px;
  border-radius: 3px;
  font: 600 17px var(--font-head);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s,
              border-color .25s, box-shadow .25s;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--lg   { min-height: 60px; padding-inline: 30px; }
.btn--full { width: 100%; }

.btn--primary {
  color: #fff;
  background: var(--orange);
}

.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(232, 117, 45, .25);
}

.btn--light {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .7);
}

.btn--light:hover {
  color: var(--black);
  background: #fff;
  border-color: #fff;
  transform: translateY(-3px);
}


/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transition: height .3s var(--ease), box-shadow .3s;
}

.header.is-scrolled {
  height: 72px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: 100%;
}

/* Brand: logo + wordmark lockup */
.header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__brand img {
  width: auto;
  height: 54px;
  object-fit: contain;
  transition: height .3s var(--ease);
}

.header.is-scrolled .header__brand img {
  height: 48px;
}

/* Wordmark: "J. WORKS" over "LLC ———" — rule stretches to the name's width */
.header__brand-text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
  color: var(--black);
  line-height: 1;
}

.header__brand-name {
  font: 700 26px/1 var(--font-head);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header__brand-llc {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--orange);
  font: 600 12px/1 var(--font-head);
  letter-spacing: .38em;
}

.header__brand-llc::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--orange);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  padding: 8px 0;
  color: #303030;
  font: 500 16px var(--font-head);
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .2s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.nav__link:hover {
  color: var(--orange);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

/* Header phone */
.header__phone {
  display: flex;
  flex-direction: column;
  padding-left: 25px;
  border-left: 1px solid var(--border);
  color: var(--black);
  font: 600 18px/1.05 var(--font-head);
  white-space: nowrap;
}

.header__phone span {
  margin-bottom: 5px;
  color: var(--muted);
  font: 600 12px var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.header__phone:hover {
  color: var(--orange);
}

/* Mobile menu button */
.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 2px;
  background: var(--black);
  transition: transform .3s, opacity .2s;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 780px;
  overflow: hidden;
  background: var(--charcoal);
}

.hero__image {
  position: absolute;
  inset: 0;
  background: var(--hero-image) center / cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10, 10, 10, .93) 0%,
    rgba(10, 10, 10, .82) 40%,
    rgba(10, 10, 10, .42) 72%,
    rgba(10, 10, 10, .25) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 82px;
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  margin-right: 12px;
  background: var(--orange);
}

.hero__title {
  color: #fff;
  font-size: clamp(58px, 7.4vw, 104px);
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.hero__title span,
.intro__content h2 span,
.section-title span,
.contact__content h2 span {
  color: var(--orange);
}

.hero__lead {
  max-width: 650px;
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, .78);
  font-size: 20px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.hero__trust div {
  display: flex;
  flex-direction: column;
}

.hero__trust strong {
  color: #fff;
  font: 19px var(--font-head);
  text-transform: uppercase;
}

.hero__trust span {
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
}


/* ---------- Intro ---------- */
.intro {
  background: var(--off-white);
}

.intro__grid {
  display: grid;
  grid-template-columns: .7fr 1.5fr;
  gap: 80px;
}

.intro__label {
  color: var(--muted);
  font: 600 18px var(--font-head);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intro__label span {
  display: block;
  margin-bottom: 15px;
  color: var(--orange);
  font-size: 48px;
  line-height: 1;
}

.intro__small {
  margin-bottom: 16px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
}

.intro__content h2 {
  max-width: 850px;
  margin-bottom: 24px;
  color: var(--black);
  font-size: clamp(42px, 5vw, 68px);
  text-transform: uppercase;
}

.intro__content > p:not(.intro__small) {
  max-width: 720px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 19px;
}

/* Arrow links (shared by intro + service cards) */
.text-link,
.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--black);
  font: 600 17px var(--font-head);
  text-transform: uppercase;
}

.text-link    { gap: 10px; }
.service-link { gap: 8px; font-size: 15px; letter-spacing: .05em; }

.text-link svg,
.service-link svg {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  transition: transform .25s;
}

.text-link svg    { width: 20px; height: 20px; }
.service-link svg { width: 17px; height: 17px; }

.text-link:hover,
.service-link:hover {
  color: var(--orange);
}

.text-link:hover svg    { transform: translateX(5px); }
.service-link:hover svg { transform: translateX(4px); }


/* ---------- Section headings ---------- */
.section-head {
  max-width: 800px;
  margin-bottom: 55px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 17px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-kicker::before,
.section-head--center .section-kicker::after {
  content: "";
  width: 25px;
  height: 2px;
  background: var(--orange);
}

.section-kicker::before { margin-right: 10px; }
.section-head--center .section-kicker::after { margin-left: 10px; }

.section-title {
  color: var(--black);
  font-size: clamp(42px, 5vw, 66px);
  text-transform: uppercase;
}

.section-sub {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
}


/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: #d3d3cf;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .12);
}

.service-card__image {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #ddd;
}

.service-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .18), transparent 50%);
}

.service-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.service-card:hover .service-card__image img {
  transform: scale(1.06);
}

.service-card__body {
  position: relative;
  padding: 27px 27px 30px;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: -32px;
  color: var(--orange);
  background: #fff;
  border: 1px solid var(--border);
  transform: translateY(-52px);
}

.service-card__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--black);
  font-size: 25px;
  text-transform: uppercase;
}

.service-card p {
  min-height: 76px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}


/* ---------- Mid-page call to action ---------- */
.mid-cta {
  background: var(--orange);
}

.mid-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 270px;
}

.mid-cta__content span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mid-cta h2 {
  color: #fff;
  font-size: clamp(40px, 5vw, 65px);
  text-transform: uppercase;
}

.mid-cta p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .8);
}

.mid-cta .btn {
  background: var(--black);
}

.mid-cta .btn:hover {
  color: var(--black);
  background: #fff;
}


/* ---------- Gallery ---------- */
.gallery {
  background: var(--off-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.gallery-item--large {
  grid-row: span 2;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, .08) 65%);
  opacity: .75;
  transition: opacity .3s;
}

.gallery-item:hover img    { transform: scale(1.06); }
.gallery-item:hover::after { opacity: .9; }

.gallery-item__caption {
  position: absolute;
  inset: auto 25px 22px;
  z-index: 2;
  color: #fff;
}

.gallery-item__caption span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gallery-item__caption strong {
  font: 24px var(--font-head);
  text-transform: uppercase;
}


/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 90px;
}

.about__image {
  position: relative;
  padding: 0 35px 35px 0;
}

.about__image::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72%;
  height: 72%;
  background: var(--orange);
}

.about__image img {
  position: relative;
  z-index: 1;
  height: 560px;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 35px;
  width: 210px;
  padding: 22px;
  color: #fff;
  background: var(--black);
}

.about__badge strong {
  display: block;
  font: 30px var(--font-head);
  text-transform: uppercase;
}

.about__badge span {
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
}

.about__content > p {
  max-width: 620px;
  margin: 20px 0 35px;
  color: var(--muted);
}

.about__points {
  border-top: 1px solid var(--border);
}

.about__points > div {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 15px;
  padding: 19px 0;
  border-bottom: 1px solid var(--border);
}

.about__points strong {
  color: var(--orange);
  font: 19px var(--font-head);
}

.about__points h3 {
  margin-bottom: 3px;
  color: var(--black);
  font-size: 21px;
  text-transform: uppercase;
}

.about__points p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}


/* ---------- Contact ---------- */
.contact {
  background: var(--charcoal);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.contact__content h2 {
  color: #fff;
  font-size: clamp(45px, 5vw, 70px);
  text-transform: uppercase;
}

.contact__content > p {
  max-width: 570px;
  margin: 22px 0 35px;
  color: rgba(255, 255, 255, .65);
}

.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #fff;
}

.contact__phone svg {
  width: 52px;
  height: 52px;
  padding: 13px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  border: 1px solid rgba(232, 117, 45, .5);
}

.contact__phone small {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact__phone span {
  font: 30px var(--font-head);
}

.contact__phone:hover span {
  color: var(--orange);
}

.contact__discount {
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
}

/* Contact card + form */
.contact__card {
  padding: 38px;
  background: #fff;
}

.contact__card-head {
  margin-bottom: 28px;
}

.contact__card-head span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
}

.contact__card-head h3 {
  margin-top: 7px;
  color: var(--black);
  font-size: 32px;
  text-transform: uppercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #444;
  font-size: 13px;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--black);
  font-size: 16px;
  background: var(--off-white);
  border: 1px solid #d8d8d3;
  border-radius: 2px;
  outline: none;
  transition: border-color .2s, background .2s;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: var(--orange);
}


/* ---------- Footer ---------- */
.footer {
  color: #fff;
  background: var(--black);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr;
  gap: 70px;
  padding-block: 75px 65px;
}

.footer__brand img {
  width: auto;
  max-width: 220px;
  height: 65px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: invert(1); /* shows a black logo as white on the dark footer */
}

.footer__brand p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 15px;
}

.footer h3 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 19px;
  text-transform: uppercase;
}

.footer__links,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a,
.footer__contact span {
  color: rgba(255, 255, 255, .55);
  font-size: 15px;
  transition: color .2s;
}

.footer__contact a {
  color: #fff;
  font: 22px var(--font-head);
  transition: color .2s;
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--orange);
}

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .4);
  font-size: 13px;
}


/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s, transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
  .nav { gap: 20px; }
  .header__phone { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid,
  .contact__grid { gap: 50px; }
}

@media (max-width: 850px) {
  :root { --header-height: 72px; }

  .container { width: min(var(--container), calc(100% - 40px)); }
  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 45px 30px;
    background: #fff;
    border-top: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s, visibility .25s, transform .25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__link { font-size: 26px; }

  .hero { min-height: 720px; }

  .hero__overlay {
    background: linear-gradient(90deg, rgba(10, 10, 10, .9), rgba(10, 10, 10, .62));
  }

  .intro__grid,
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .intro__grid { gap: 30px; }

  .about__image { max-width: 700px; }
  .contact__content { max-width: 700px; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 250px 250px;
  }

  .gallery-item--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .mid-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 60px;
  }

  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --section-space: 85px; }

  .container { width: min(var(--container), calc(100% - 30px)); }

  .header__brand { gap: 12px; }
  .header__brand img { height: 46px; }
  .header.is-scrolled .header__brand img { height: 42px; }

  .header__brand-text { padding-left: 12px; }
  .header__brand-name { font-size: 20px; }
  .header__brand-llc  { font-size: 10px; }

  .hero { min-height: 700px; }
  .hero__inner { padding-top: 80px; }
  .hero__title { font-size: 54px; }
  .hero__lead { font-size: 17px; }

  .hero__trust { gap: 18px; margin-top: 35px; }
  .hero__trust div { min-width: 130px; }

  .service-grid { grid-template-columns: 1fr; }
  .service-card__image { height: 220px; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 260px);
  }

  .gallery-item--large { grid-column: auto; }

  .about__image img { height: 420px; }
  .about__badge { bottom: 20px; }

  .form-row { grid-template-columns: 1fr; }
  .contact__card { padding: 25px; }
  .contact__phone span { font-size: 24px; }

  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom .container { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}