/* ============================================================
   JN ROOFING — Component / section styles
   ============================================================ */

/* ---------------- HERO ---------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15,19,23,.92) 0%, rgba(15,19,23,.5) 42%, rgba(15,19,23,.28) 70%, rgba(15,19,23,.45) 100%);
}
.hero .container { position: relative; z-index: 1; padding-bottom: 86px; padding-top: 140px; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22); padding: 9px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(244,206,58,.4); }
.hero h1 {
  color: #fff; font-weight: 900;
  font-size: clamp(2.9rem, 1.4rem + 7vw, 6.5rem);
  letter-spacing: -.03em; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  margin-top: 24px; max-width: 50ch; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  color: rgba(255,255,255,.86); line-height: 1.55;
}
.hero-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; right: 28px; bottom: 40px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--display); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.65);
}
.hero-scroll .line { width: 1px; height: 46px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero-scroll .line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { top: -50%; } 100% { top: 100%; } }
@media (max-width: 620px) { .hero-scroll { display: none; } }

/* ---------------- TRUST STRIP ---------------- */
.trust {
  background: var(--white); border-bottom: 1px solid var(--line);
  position: relative; z-index: 2;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex; align-items: center; gap: 16px; padding: 30px 26px;
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: none; }
.trust-ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--ink); color: var(--accent);
}
.trust-ico svg { width: 24px; height: 24px; }
.trust-item .t-title { display: block; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.15; }
.trust-item .t-sub { display: block; font-size: .86rem; color: var(--slate-500); margin-top: 4px; }
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: none; }
  .trust-item { border-top: 1px solid var(--line); }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-top: none; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: none; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: none; }
}

/* ---------------- SERVICES ---------------- */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 30px; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent);
  transition: width .4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-ico {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent); margin-bottom: 24px;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.service-card:hover .service-ico { background: var(--accent); color: var(--accent-ink); }
.service-ico svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.34rem; font-weight: 800; margin-bottom: 12px; }
.service-card p { color: var(--slate-500); font-size: 1rem; line-height: 1.55; flex: 1; }
.service-num { font-family: var(--display); font-weight: 800; font-size: .8rem; color: var(--slate-300); letter-spacing: .1em; margin-bottom: 18px; }
@media (max-width: 1040px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------------- GALLERY ---------------- */
.gallery {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  grid-auto-flow: dense;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; background: var(--slate-800);
  grid-column: span 2; aspect-ratio: 4/3;
}
.gallery-item.wide { grid-column: span 3; }
.gallery-item.tall { grid-column: span 3; aspect-ratio: 16/10; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,19,23,.86) 0%, rgba(15,19,23,.1) 48%, rgba(15,19,23,0) 70%);
  opacity: .85; transition: opacity .4s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px;
  color: #fff; transform: translateY(8px); opacity: .96; transition: transform .4s var(--ease);
}
.gallery-item:hover .gallery-cap { transform: none; }
.gallery-cap .tag {
  font-family: var(--display); font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: 5px 10px; border-radius: 999px; display: inline-block; margin-bottom: 12px;
}
.gallery-cap p { font-family: var(--display); font-weight: 600; font-size: 1.04rem; line-height: 1.32; max-width: 34ch; }
.gallery-zoom {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); color: #fff;
  opacity: 0; transform: scale(.8); transition: opacity .35s var(--ease), transform .35s var(--ease), background .2s;
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: none; }
.gallery-zoom svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item, .gallery-item.wide, .gallery-item.tall { grid-column: span 1; aspect-ratio: 4/3; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(12,15,19,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  padding: 24px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner { max-width: 1000px; width: 100%; text-align: center; }
.lightbox img {
  max-width: 100%; max-height: 76vh; margin: 0 auto; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.96); transition: transform .35s var(--ease);
}
.lightbox.open img { transform: none; }
.lightbox-cap { color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-top: 22px; }
.lightbox-count { color: var(--slate-400); font-size: .9rem; margin-top: 8px; letter-spacing: .1em; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close {
  position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .2s, transform .3s;
}
.lb-close:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }
.lb-close svg { width: 22px; height: 22px; }
@media (max-width: 620px) { .lb-prev { left: 10px; } .lb-next { right: 10px; } .lb-btn { width: 46px; height: 46px; } }

/* ---------------- WHY CHOOSE US ---------------- */
.why-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-media { position: relative; }
.why-media .frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5;
}
.why-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.why-badge {
  position: absolute; bottom: -28px; left: -28px; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; line-height: 1;
}
.why-badge .big { font-family: var(--display); font-weight: 900; font-size: 2.6rem; letter-spacing: -.03em; }
.why-badge .lbl { font-size: .82rem; margin-top: 8px; opacity: .9; max-width: 14ch; line-height: 1.3; }
.why-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.why-list li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.why-list li:last-child { border-bottom: none; }
.why-list .n {
  font-family: var(--display); font-weight: 800; font-size: .95rem; color: var(--accent);
  flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--ink);
  display: grid; place-items: center;
}
.why-list h3 { font-size: 1.22rem; font-weight: 800; margin-bottom: 6px; }
.why-list p { color: var(--slate-500); font-size: 1rem; }
@media (max-width: 900px) {
  .why-wrap { grid-template-columns: 1fr; gap: 64px; }
  .why-media { max-width: 460px; }
  .why-badge { left: auto; right: -10px; }
}

/* ---------------- CTA BAND ---------------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .14;
  background-image: url("images/barn-conversion-slate.jpg"); background-size: cover; background-position: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(244,206,58,.5), transparent 70%); z-index: 0;
}
.cta-inner {
  position: relative; z-index: 1; padding: 92px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); font-weight: 900; max-width: 16ch; }
.cta-inner p { color: var(--slate-300); margin-top: 16px; font-size: 1.16rem; }
.cta-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cta-phone {
  display: inline-flex; align-items: center; gap: 14px; color: #fff;
}
.cta-phone .ico { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; }
.cta-phone .ico svg { width: 26px; height: 26px; color: var(--accent); }
.cta-phone .lbl { display: block; font-size: .8rem; color: var(--slate-400); text-transform: uppercase; letter-spacing: .14em; font-family: var(--display); font-weight: 600; }
.cta-phone .num { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.1; margin-top: 2px; }
.cta-phone .num:hover { color: var(--accent); }

/* ---------------- PAGE HEADER (about / contact) ---------------- */
.page-head {
  position: relative; padding: calc(var(--nav-h) + 84px) 0 84px; color: #fff; overflow: hidden;
  background: var(--ink);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .22;
  background-size: cover; background-position: center;
}
.page-head.ph-about::before { background-image: url("images/extension-velux.jpg"); }
.page-head.ph-contact::before { background-image: url("images/dormer-vertical-slate.jpg"); }
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to right, rgba(20,25,31,.9), rgba(20,25,31,.55));
}
.page-head .container { position: relative; z-index: 1; }
.breadcrumb { font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 20px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--accent); }
.page-head h1 { color: #fff; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.5rem); font-weight: 900; }
.page-head p { color: var(--slate-300); font-size: 1.2rem; margin-top: 20px; max-width: 54ch; }

/* ---------------- ABOUT ---------------- */
.about-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); font-weight: 800; margin-bottom: 24px; }
.about-copy p { color: var(--slate-600); font-size: 1.12rem; margin-bottom: 20px; line-height: 1.7; }
.about-copy p strong { color: var(--ink); }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media .a1 { grid-row: span 2; aspect-ratio: 3/5; }
.about-media .a2 { aspect-ratio: 1/1; }
.about-media .a3 { aspect-ratio: 1/1; }
@media (max-width: 900px) {
  .about-wrap { grid-template-columns: 1fr; gap: 48px; }
}
.stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; margin-top: 8px;
}
.stat { padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat .big { font-family: var(--display); font-weight: 900; font-size: 2.8rem; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.stat .big b { color: inherit; background: linear-gradient(transparent 62%, var(--accent) 0); padding: 0 .04em; }
.stat .lbl { color: var(--slate-500); margin-top: 12px; font-size: .98rem; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } }

.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.value-card .v-ico { width: 52px; height: 52px; border-radius: 13px; background: var(--ink); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.value-card .v-ico svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.24rem; font-weight: 800; margin-bottom: 10px; }
.value-card p { color: var(--slate-500); font-size: 1rem; }
@media (max-width: 820px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------------- CONTACT ---------------- */
.contact-wrap { display: grid; grid-template-columns: 1fr .85fr; gap: 56px; align-items: start; }
@media (max-width: 920px) { .contact-wrap { grid-template-columns: 1fr; gap: 40px; } }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 44px; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.form-card .form-sub { color: var(--slate-500); margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field label { font-family: var(--display); font-weight: 700; font-size: .86rem; color: var(--ink); margin-bottom: 9px; }
.field label .req { color: var(--error); }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 15px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-dark); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); background: var(--error-soft); }
.field .err { color: var(--error); font-size: .82rem; margin-top: 6px; font-weight: 600; display: none; }
.field.invalid .err { display: block; }
.form-card .btn { width: 100%; margin-top: 8px; padding: 18px; font-size: 1.06rem; }
.form-card .btn[disabled] { cursor: wait; opacity: .75; transform: none; }
.form-honeypot { display: none; }
.form-error { display: none; text-align: center; color: var(--error); font-size: .9rem; font-weight: 700; margin-top: 14px; }
.form-error.show { display: block; }
.form-note { text-align: center; color: var(--slate-400); font-size: .86rem; margin-top: 18px; }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .ico { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 22px; }
.form-success .ico svg { width: 38px; height: 38px; }
.form-success h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.form-success p { color: var(--slate-500); }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 38px; position: relative; overflow: hidden;
}
.info-card::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(244,206,58,.4), transparent 70%); }
.info-card h3 { color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; position: relative; }
.info-card .lead { color: var(--slate-300); margin-bottom: 28px; position: relative; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); position: relative; }
.info-item:first-of-type { border-top: none; }
.info-item .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; }
.info-item .ico svg { width: 22px; height: 22px; color: var(--accent); }
.info-item .lbl { display: block; font-size: .76rem; color: var(--slate-400); text-transform: uppercase; letter-spacing: .12em; font-family: var(--display); font-weight: 600; }
.info-item .val { display: block; font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: #fff; margin-top: 3px; word-break: break-word; }
.info-item a.val:hover { color: var(--accent); }
.info-socials { display: flex; gap: 12px; margin-top: 26px; position: relative; }
.info-card .social-btn { background: rgba(255,255,255,.08); }

.hours-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 38px; }
.hours-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hours-card h3 svg { width: 20px; height: 20px; color: var(--ink); }
.hours-row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 1rem; }
.hours-row:first-of-type { border-top: none; }
.hours-row .day { color: var(--slate-600); font-weight: 500; }
.hours-row .time { font-family: var(--display); font-weight: 700; color: var(--ink); }
.hours-row .closed { color: var(--slate-400); }
