/* Hartley Windscreens. Colours, fonts and spacing follow the original WordPress
   (Astra + Elementor) site so the new build looks the same. */

@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-var.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("/fonts/noto-sans-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("/fonts/noto-sans-italic-var.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --blue: #4054b2;
  --blue-dark: #33449a;
  --text: #4c4c4c;
  --text-soft: #4c5863;
  --heading: #222;
  --footer: #1a1a1a;
  --grey-band: #f4f4f4;
  --call-green: #23a455;
  --wrap: 1140px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Noto Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--heading); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 1000px; }
.center, .title-center { text-align: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; top: 8px; }
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Divider (the short blue bar under headings) ---------- */
.divider { width: 56px; height: 0; border: 0; border-top: 3px solid var(--blue); margin: 26px 0 30px; }
.divider.center { margin-left: auto; margin-right: auto; width: 68px; }
.divider.small { width: 48px; border-top-width: 2px; margin: 34px auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-family: var(--body);
  font-size: 17px; padding: 13px 38px; border: 2px solid var(--blue); border-radius: 2px; transition: background .2s; }
.btn:hover, .btn:focus-visible { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-lg { text-transform: uppercase; font-size: 17px; padding: 15px 38px; }
.btn-pill { border-radius: 30px; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; padding: 15px 32px; }
.btn-pill-send { border-radius: 30px; background: #1e73be; border-color: #1e73be; text-transform: uppercase; font-size: 16px; padding: 11px 36px; cursor: pointer; }
.btn-pill-send:hover { background: #185f9e; border-color: #185f9e; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Header (sits over the hero) ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 14px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1240px; }
.logo img { width: 295px; height: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.btn-call { border: 2px solid #fff; border-radius: 30px; padding: 8px 22px; white-space: nowrap; }
.btn-call:hover { background: rgba(255,255,255,.15); }
.menu-toggle { display: none; background: var(--blue); color: #fff; border: 0; border-radius: 2px; width: 44px; height: 44px;
  align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }
.menu-toggle .shut { display: none; }
.menu-toggle[aria-expanded="true"] .open { display: none; }
.menu-toggle[aria-expanded="true"] .shut { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; text-align: center; overflow: hidden; background: #111; isolation: isolate; }
.hero-bg, .hero-bg img, .band-bg, .band-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-bg.pos-right { object-position: right center; }
.hero-bg.pos-left { object-position: left top; }
.hero-bg.pos-bottom { object-position: center bottom; }
.hero-bg.pos-top { object-position: center top; }
.hero-overlay, .band-overlay { position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.4); }
.page-home .hero-overlay { background: rgba(0,0,0,.5); }
.page-contact .hero-overlay, .page-thanks .hero-overlay, .page-404 .hero-overlay { background: rgba(12,12,12,.6); }
.hero h1 { color: #fff; text-transform: uppercase; }
.hero-page { padding: 230px 0 190px; }
.hero-page h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 700; letter-spacing: 2px; margin: 0; }
.hero-home { padding: 270px 0 240px; }
.hero-home h1 { font-size: clamp(32px, 3.4vw, 40px); font-weight: 800; letter-spacing: 2px; max-width: 820px; margin: 0 auto 1.4em; }
.hero-sub { font-size: 20px; letter-spacing: .4px; margin-bottom: 2.4em; }

/* Preview sign-in (functions/_middleware.js gate) */
.hero-login { min-height: 100vh; display: grid; place-items: center; padding: 120px 0 60px; }
.login-form { background: #fff; color: var(--text); max-width: 420px; margin: 0 auto; padding: 36px 32px; border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); text-align: center; }
.login-form h1 { color: var(--heading); font-size: 24px; letter-spacing: 1.5px; margin-bottom: .8em; }
.login-form input[type="password"] { display: block; width: 100%; font: inherit; background: #fafafa; border: 1px solid #ddd;
  border-radius: 2px; padding: 11px 12px; margin: 20px 0; }
.login-form input[type="password"]:focus { outline: 2px solid var(--blue); outline-offset: -1px; background: #fff; }
.login-form .cf-turnstile { display: flex; justify-content: center; }
.login-form .btn { border: 0; cursor: pointer; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }

/* Home: features */
.features { padding-top: 24px; }
.features h2 { font-size: 34px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 60px; max-width: 920px; margin: 90px auto 0; }
.feature { display: flex; gap: 40px; align-items: center; }
.feature-icon { flex: none; width: 102px; height: 102px; border: 3px solid var(--blue); border-radius: 50%; color: var(--blue);
  display: grid; place-items: center; font-size: 33px; }
.feature h3 { font-size: 21px; font-weight: 700; text-transform: uppercase; color: var(--text); margin-bottom: .6em; }
.feature p { font-size: 17px; font-weight: 300; margin: 0; }
.feature-more { max-width: 920px; margin: 40px auto 0; text-align: right; }

/* Home: card logos */
.cards { background: var(--grey-band); display: flex; justify-content: center; align-items: center; gap: 40px; padding: 14px 16px; }
.card-logo { width: 160px; height: auto; }

/* Home: testimonial band */
.testimonial-band { position: relative; color: #fff; isolation: isolate; padding: 110px 0; }
.testimonial-band .band-overlay { background: rgba(0,0,0,.47); }
.band-inner { display: flex; justify-content: flex-end; }
.band-text { max-width: 480px; margin-right: 6%; }
.band-text h2 { color: #fff; font-size: clamp(36px, 5vw, 62px); letter-spacing: 1.5px; }
.testimonial-band blockquote { margin: 0 0 3em; }
.testimonial-band blockquote footer { font-style: italic; font-weight: 700; text-transform: uppercase; margin-top: 1.4em; }
.link-arrow { color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { color: rgba(255,255,255,.83); }

/* Home: call to action */
.cta { padding: 40px 0 30px; text-align: center; }
.cta h2 { font-size: clamp(30px, 3.5vw, 40px); letter-spacing: .5px; margin-bottom: .9em; }

/* About */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 90px; align-items: start; }
.about { padding-top: 40px; }
.about .lead { font-size: 20px; font-weight: 700; font-style: italic; color: var(--text-soft); margin: 0 0 2.2em; }
.about p { color: var(--text-soft); }
.about-photo { margin-top: 80px; box-shadow: 10px 10px 0 #eee; }
.h-small { font-size: 20px; letter-spacing: 3px; margin-top: 30px; padding-left: 10px; }
.about .h-small + .divider { margin-left: 14px; width: 66px; }
.we-provide { font-style: italic; }
.service-list { list-style: none; padding: 0; margin: 40px 0 40px; columns: 2; column-gap: 90px; }
.service-list li { display: flex; gap: 18px; align-items: center; font-weight: 700; color: var(--text-soft); padding: 4px 0; break-inside: avoid; }
.service-list li:nth-child(3n) { margin-bottom: 12px; }
.service-list .icon { color: var(--blue); font-size: 14px; }

/* Projects: testimonials */
.testimonials { padding-top: 40px; }
.testimonials h2 { font-size: 30px; letter-spacing: 0; margin-bottom: 1.2em; }
.testimonial { margin: 0; }
.testimonial p { font-size: 25px; font-style: italic; line-height: 2.05; color: var(--heading); margin: 0 0 .7em; }
.testimonial footer { color: var(--blue); font-size: 21px; text-transform: uppercase; letter-spacing: 1.3px; }
.gallery-section { padding-top: 10px; }
.gallery-section h2 { font-size: 30px; letter-spacing: 0; padding-left: 40px; }

/* Projects: carousel */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 40px) / 3); gap: 40px; overflow-x: auto;
  scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0; scrollbar-width: none; align-items: start; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track li { scroll-snap-align: start; }
.carousel-track a { display: block; }
.carousel-track img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: none; border: 0; color: #fff;
  font-size: 40px; padding: 8px; cursor: pointer; filter: drop-shadow(0 0 3px rgba(0,0,0,.6)); }
.carousel-btn.prev { left: 2px; }
.carousel-btn.next { right: 2px; }
.carousel-btn[disabled] { opacity: .3; cursor: default; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 50px 60px; }
.lb-btn { position: fixed; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; padding: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 8px; right: 8px; font-size: 28px; }

/* Contact */
.contact { padding: 120px 0; }
.contact-cols { gap: 50px 140px; grid-template-columns: 1.15fr 1fr; }
.contact h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: 2px; margin-bottom: 1.6em; }
.contact-info { padding-top: 56px; }
.contact-info h2 { margin-bottom: 1.8em; }
.contact-info h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; color: #000; margin: 0 0 .4em; }
.contact-info p { margin-bottom: 1.6em; }
.contact-info a { color: var(--text-soft); text-decoration: none; }
.contact-info a:hover { color: var(--blue); }
.contact-form input, .contact-form textarea { display: block; width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: #fafafa; border: 1px solid #eaeaea; border-radius: 2px; padding: 11px 12px; margin-bottom: 24px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; background: #fff; }
.cf-turnstile { margin-bottom: 20px; min-height: 65px; }
.form-status { margin-top: 16px; }
.form-status.ok { color: #1d7a3a; }
.form-status.err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #e6e6e6; text-align: center; padding: 44px 0 32px; font-size: 16px; }
.site-footer a { color: #e6e6e6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .small { font-size: 14px; color: #aaa; margin-top: 1em; }

/* Floating call button (phones and tablets only, like the old site) */
.float-call { display: none; position: fixed; right: 0; top: 30%; z-index: 30; background: var(--call-green); color: #fff;
  width: 50px; height: 56px; border-radius: 6px 0 0 6px; align-items: center; justify-content: center; font-size: 26px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { color: var(--heading); display: block; padding: 14px 20px; border-bottom: 1px solid #eee; }
  .nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--blue); text-decoration: none; }
  .btn-call { margin: 16px 20px; text-align: center; border-color: var(--blue); color: var(--blue); }
  .logo img { width: 210px; }
  .hero-home { padding: 160px 0 110px; }
  .hero-page { padding: 150px 0 100px; }
  .float-call { display: flex; }
  .testimonial-band { padding: 80px 0; }
  .band-inner { justify-content: center; }
  .band-text { margin: 0; text-align: center; max-width: 640px; }
  .band-text .divider { margin-left: auto; margin-right: auto; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .section { padding: 50px 0; }
  .hero-home { padding: 120px 0 70px; }
  .hero-page { padding: 120px 0 70px; }
  .hero-sub { font-size: 17px; line-height: 1.5; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 50px; gap: 60px; }
  .feature { flex-direction: column; text-align: center; gap: 26px; }
  .feature-icon { width: 92px; height: 92px; }
  .feature-more { text-align: center; }
  .cards { gap: 20px; }
  .card-logo { width: 110px; }
  .two-col, .contact-cols { grid-template-columns: 1fr; }
  .about-photo { margin-top: 10px; }
  .service-list { columns: 1; }
  .testimonial p { font-size: 19px; line-height: 1.8; }
  .gallery-section h2 { padding-left: 0; }
  .carousel-track { grid-auto-columns: 84%; gap: 16px; }
  .contact { padding: 60px 0; }
  .contact-info { padding-top: 0; }
  .lightbox img { padding: 50px 10px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
