/* JSM Windows & Doors — dark, sleek: black / silver / white */

:root {
  --bg: #0b0e11;            /* page ground, from the JSM logo */
  --bg-2: #10141a;          /* raised panel */
  --bg-3: #151b22;          /* higher panel / inputs */
  --line: rgba(255, 255, 255, .09);
  --heading: #f4f6f8;
  --text: #b9c0c7;
  --muted: #8d949b;
  --silver: #a9abad;        /* logo circle grey */
  --white: #ffffff;
  --metal: linear-gradient(115deg, #f2f4f6 0%, #b9bec3 45%, #e6e9eb 60%, #979ca1 100%);
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-display: 'Archivo', 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; font-family: var(--font-display); font-weight: 700; letter-spacing: -.3px; }
::selection { background: var(--silver); color: var(--bg); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.reviews-sub { margin: -18px 0 26px; color: var(--muted); font-size: 15px; }
.reviews-sub a { color: var(--silver); font-weight: 600; }
.reviews-sub a:hover { color: var(--white); }

/* page scrollbar, kept dark */
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-thumb { background: #2a3138; border-radius: 5px; }
body::-webkit-scrollbar-track { background: var(--bg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: all .25s ease; border: 1px solid transparent; font-family: var(--font);
  letter-spacing: .2px;
}
.btn-outline { color: var(--heading); border-color: rgba(255,255,255,.35); background: transparent; }
.btn-outline:hover { border-color: var(--white); background: var(--white); color: var(--bg); }
.btn-solid { background: var(--white); color: var(--bg); font-weight: 600; }
.btn-solid:hover { background: var(--silver); }
.btn-frost { background: rgba(255,255,255,.14); color: var(--white); backdrop-filter: blur(10px); border-color: rgba(255,255,255,.28); }
.btn-frost:hover { background: rgba(255,255,255,.3); }
.btn-silver { background: var(--metal); color: #14181c; font-weight: 600; border: 0; }
.btn-silver:hover { filter: brightness(1.08); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 14, 17, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: 3px; color: var(--white); }
.brand-sub { font-size: 10px; letter-spacing: 4.2px; color: var(--silver); font-weight: 500; margin-top: 4px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a:not(.btn) { color: var(--heading); text-decoration: none; font-weight: 500; font-size: 15px; position: relative; }
.main-nav > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px;
  background: var(--silver); transition: right .25s ease;
}
.main-nav > a:not(.btn):hover::after { right: 0; }
.main-nav .btn { padding: 11px 24px; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 34px; flex-direction: column; justify-content: space-between; padding: 6px 4px; cursor: pointer; }
.nav-toggle span { height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease; display: flex; align-items: flex-end;
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,7,9,.55), transparent 26%),
    linear-gradient(to top, rgba(5,7,9,.82), rgba(5,7,9,.08) 60%);
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 96px; width: 100%; }
.hero-copy h1 { color: var(--white); font-size: clamp(36px, 4.8vw, 62px); font-weight: 700; max-width: 780px; margin-bottom: 30px; }
.hero-copy h1 em {
  font-style: italic; font-weight: 800;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-dots { position: absolute; z-index: 3; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.hero-dots button { width: 26px; height: 3px; border-radius: 2px; border: 0; background: rgba(255,255,255,.28); cursor: pointer; padding: 0; transition: all .3s; }
.hero-dots button.is-active { background: var(--white); }
.reviews-badge {
  position: absolute; z-index: 3; left: 0; bottom: 0;
  background: rgba(11,14,17,.75); backdrop-filter: blur(12px); border: 1px solid var(--line); border-left: 0; border-bottom: 0;
  color: var(--white); text-decoration: none; padding: 14px 26px 16px 24px;
  border-radius: 0 var(--radius) 0 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px;
}
.reviews-badge .stars { color: #e8c766; letter-spacing: 2px; font-size: 14px; }

/* ---------- page hero (subpages) ---------- */
.page-hero { position: relative; height: 62vh; min-height: 460px; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,7,9,.55), transparent 26%),
    linear-gradient(to top, rgba(11,14,17,1), rgba(5,7,9,.1) 65%);
}
.page-hero .container { position: relative; z-index: 1; padding-bottom: 64px; width: 100%; }
.page-hero p.crumb { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--silver); margin-bottom: 12px; }
.page-hero h1 { color: var(--white); font-size: clamp(38px, 5vw, 64px); }

/* ---------- sections / splits ---------- */
.section { padding: 96px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-copy h2 { font-size: clamp(26px, 2.7vw, 36px); margin-bottom: 18px; }
.split-copy p { margin-bottom: 14px; }
.split-copy .btn { margin-top: 16px; }
.media-frame {
  border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .6s ease; }
.media-frame:hover img { transform: scale(1.03); }
.ticks { list-style: none; margin: 6px 0 10px; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 11px; }
.ticks li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--silver); font-weight: 700; }

/* ---------- stat bar ---------- */
.statbar-wrap { padding: 10px 0 46px; }
.statbar {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap;
  padding: 34px 28px; font-weight: 500; color: var(--heading); text-align: center;
}
.statbar span { position: relative; padding: 0 10px; }

/* ---------- grant band ---------- */
.grant-band {
  background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--white); padding: 92px 0; position: relative; overflow: hidden;
}
.grant-band::before {
  content: ''; position: absolute; top: -140px; right: -100px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(169,171,173,.14), transparent 65%);
}
.grant-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; position: relative; }
.grant-band h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 46px); max-width: 780px; margin-bottom: 16px; font-weight: 800; }
.grant-band h2 em { font-style: italic; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grant-band p { max-width: 640px; color: var(--text); font-style: italic; }

/* ---------- badges ---------- */
.badges-wrap { padding-top: 24px; }
.badges { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 32px; text-align: center; }
.badges h3 { font-size: 20px; margin-bottom: 36px; letter-spacing: .2px; }
.badge-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.badge-chip {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  width: 134px; padding: 24px 10px 20px; display: flex; flex-direction: column; gap: 4px;
  font-size: 12.5px; color: var(--muted); position: relative; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.badge-chip:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.25); }
.badge-chip::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.badge-chip strong { font-size: 21px; font-family: var(--font-display); }
.chip-energy::before { background: linear-gradient(90deg, #d63a2f, #f5a623, #2e9e44); }
.chip-energy strong { color: #57c46f; }
.chip-irish::before { background: #169b62; }
.chip-irish strong { color: #3fbd8a; }
.chip-pas::before { background: #4a6fd4; }
.chip-pas strong { color: #7c9bf0; }
.chip-guarantee::before { background: #c9971c; }
.chip-guarantee strong { color: #e0b54a; }
.chip-ce::before { background: #4a90d4; }
.chip-ce strong { color: #74b3ec; }

/* ---------- reviews ---------- */
#reviews h2 { margin-bottom: 46px; font-size: clamp(24px, 2.4vw, 32px); }
.reviews-track {
  display: flex; gap: 20px; overflow-x: auto; padding: 4px 24px 24px;
  scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.reviews-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reviews-track::-webkit-scrollbar { display: none; width: 0; height: 0; background: transparent; }
.review-card {
  flex: 0 0 260px; height: 260px; border-radius: 12px; background-size: cover; background-position: center;
  position: relative; scroll-snap-align: center; overflow: hidden; border: 1px solid var(--line);
}
.review-quote {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,9,12,.95) 30%, rgba(7,9,12,.45));
  padding: 20px 18px; font-size: 12.5px; line-height: 1.55; color: var(--heading);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.review-quote p { font-weight: 500; }
.review-quote footer { font-size: 11px; color: var(--muted); margin-top: 10px; }
.review-quote .stars { color: #e8c766; letter-spacing: 1px; margin-right: 6px; }

/* ---------- trust band ---------- */
.trust-band { background-size: cover; background-position: center; position: relative; padding: 140px 0; }
.trust-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(5,7,9,.82), rgba(5,7,9,.35)); }
.trust-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.trust-band h2 { color: var(--white); font-size: clamp(24px, 2.8vw, 36px); max-width: 640px; margin-bottom: 16px; }
.trust-band p { color: var(--text); max-width: 560px; }

/* ---------- blog ---------- */
.blog-heading { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 46px; }
.blog-heading em { font-style: italic; font-weight: 400; color: var(--silver); }
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-bottom: 46px; }
.blog-card { text-decoration: none; color: var(--text); }
.blog-card img {
  border-radius: 12px; aspect-ratio: 4 / 4.6; object-fit: cover; margin-bottom: 16px;
  border: 1px solid var(--line); transition: transform .3s ease, border-color .3s ease;
}
.blog-card:hover img { transform: translateY(-5px); border-color: rgba(255,255,255,.25); }
.blog-card time { font-size: 13px; font-style: italic; color: var(--muted); }
.blog-card h3 { font-size: 16.5px; margin: 8px 0 8px; font-weight: 600; }
.read-more { font-style: italic; font-weight: 600; font-size: 14px; color: var(--silver); }
.blog-card:hover .read-more { color: var(--white); }

/* ---------- product grid (subpages) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  min-height: 420px; display: flex; align-items: flex-end; text-decoration: none;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
}
.product-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,7,9,.92) 8%, rgba(5,7,9,.15) 55%);
  transition: background .3s ease;
}
.product-card:hover::after { background: linear-gradient(to top, rgba(5,7,9,.95) 14%, rgba(5,7,9,.3) 65%); }
.product-card > div { position: relative; z-index: 1; padding: 30px; }
.product-card h3 { color: var(--white); font-size: 24px; margin-bottom: 8px; }
.product-card p { color: var(--text); font-size: 14.5px; max-width: 460px; margin-bottom: 14px; }
.product-card .fake-link { color: var(--silver); font-style: italic; font-weight: 600; font-size: 14px; }
.product-card:hover .fake-link { color: var(--white); }
.product-card--wide { grid-column: 1 / -1; min-height: 360px; }

/* feature strip on subpages */
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* ---------- cta band ---------- */
.cta-band { background: var(--bg-2); border-top: 1px solid var(--line); padding: 92px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; margin-bottom: 12px; }
.cta-band h2 em { font-style: italic; font-weight: 400; color: var(--silver); }
.cta-band p { color: var(--muted); font-style: italic; }

/* ---------- footer ---------- */
.site-footer { background: #07090b; color: var(--text); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding: 76px 24px 56px; }
.footer-brand { display: flex; align-items: center; gap: 14px; align-self: start; }
.site-footer h4 { color: var(--white); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.site-footer p { font-size: 14.5px; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
}
.socials a:hover { background: var(--white); color: var(--bg); border-color: var(--white); }
.footer-bar { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-bar p { font-size: 13px; text-align: center; color: var(--muted); }

/* ---------- quote modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,4,6,.75); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; width: min(460px, calc(100vw - 40px)); max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: var(--white); }
.modal-panel h3 { font-size: 24px; margin-bottom: 8px; }
.modal-panel > p { font-size: 14.5px; margin-bottom: 20px; color: var(--muted); }
#request-quote .split-copy a { color: var(--white); text-decoration: none; }
#request-quote .split-copy a:hover { color: var(--silver); }
.form-panel {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow);
}
.quote-form label { display: block; font-size: 13.5px; font-weight: 500; color: var(--heading); margin-bottom: 14px; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; margin-top: 5px; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 8px; font-family: var(--font); font-size: 15px; color: var(--heading); background: var(--bg-3);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--silver); }
.quote-form .btn { width: 100%; margin-top: 6px; }
.form-status { font-size: 14px; margin-top: 12px; text-align: center; color: var(--heading); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  #doors .split-copy { order: 2; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none; position: absolute; top: 88px; left: 0; right: 0;
    background: rgba(11,14,17,.97); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 24px; gap: 18px;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .statbar { flex-direction: column; gap: 14px; }
  .hero-copy { padding-bottom: 116px; }
}
