/* ==========================================================================
   Jerry Still Installations Ltd — site styles
   Brand: white background, orange headings, navy blue (sampled from the logo)
   ========================================================================== */

:root {
  --navy: #003e7e;
  --navy-dark: #002b57;
  --navy-tint: #eef3f9;
  --orange: #f4911e;
  --orange-head: #d97400;   /* readable orange for headings on white */
  --orange-dark: #b85f00;
  --ink: #1c2430;
  --muted: #5b6875;
  --line: #e2e7ee;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(0, 40, 90, .08);
  --wrap: 1140px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }
a:hover { color: var(--orange-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- headings */
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); color: var(--orange-head); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); color: var(--orange-head); }
h3 { font-size: 1.2rem; color: var(--navy); }
h4 { font-size: 1.02rem; color: var(--navy); margin: 0 0 .4em; }
p { margin: 0 0 1.05em; }

.lede { font-size: 1.12rem; color: var(--muted); }

/* ------------------------------------------------------------------ header */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: .92rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  align-items: center; justify-content: flex-end;
  min-height: 42px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--orange); }
.topbar .tb-tel { font-size: 1.02rem; }
.topbar .tb-tel strong { color: var(--orange); }

.masthead { border-bottom: 1px solid var(--line); background: #fff; }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 16px; padding-bottom: 16px;
}
.brand img { width: 240px; max-width: 58vw; }
.accreds { display: flex; align-items: center; gap: 18px; }
.accreds img { height: 42px; width: auto; }
.accreds .a-guarantee { height: 58px; }

/* --------------------------------------------------------------- main nav */
.nav { background: var(--navy-dark); position: sticky; top: 0; z-index: 40; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
}
.nav a {
  display: block; padding: 14px 16px;
  color: #fff; text-decoration: none;
  font-weight: 600; font-size: .97rem; letter-spacing: .01em;
  border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,.09); color: #fff; }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff;
  font: inherit; font-weight: 700; padding: 13px 4px; cursor: pointer;
  align-items: center; gap: 9px;
}
.nav-toggle .bars { display: block; width: 22px; height: 2px; background: #fff; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff;
}
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }

@media (max-width: 880px) {
  .nav .wrap { flex-direction: column; align-items: stretch; padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav ul { display: none; flex-direction: column; padding-bottom: 8px; }
  .nav ul.open { display: flex; }
  .nav a { padding: 12px 2px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a[aria-current="page"] { color: var(--orange); border-bottom-color: rgba(255,255,255,.12); }
  .accreds { display: none; }
}

/* -------------------------------------------------------------------- hero */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero img.hero-bg {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  opacity: .38;
}
.hero .wrap { position: relative; padding-top: 68px; padding-bottom: 68px; }
.hero-inner { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero h1 .hl { color: var(--orange); }
.hero p { color: #eaf1f9; font-size: 1.12rem; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.hero .btns { margin-top: 22px; }

.page-hero { background: var(--navy); position: relative; overflow: hidden; }
.page-hero img.hero-bg { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .32; }
.page-hero .wrap { position: relative; padding-top: 46px; padding-bottom: 46px; }
.page-hero h1 { color: #fff; margin: 0; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.page-hero p { color: #e6eef7; margin: .5em 0 0; max-width: 720px; text-shadow: 0 1px 10px rgba(0,0,0,.45); }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 26px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  font-size: 1rem; line-height: 1.2; font-family: inherit;
}
.btn-primary { background: var(--orange); color: #33230a; border-color: var(--orange); }
.btn-primary:hover { background: #ffa437; color: #33230a; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------- sections */
.section { padding: 58px 0; }
.section-tint { background: var(--navy-tint); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ------------------------------------------------------------------- cards */
.cards { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { color: var(--orange-head); font-size: 1.3rem; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* --------------------------------------------------------------- prose bits */
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose img.float {
  float: right; margin: 6px 0 14px 22px; border-radius: 8px;
  border: 1px solid var(--line); max-width: 42%;
}
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
@media (max-width: 620px) {
  .prose img.float { float: none; margin: 0 0 16px; max-width: 100%; }
}

.split { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.35fr .85fr; } }

/* ------------------------------------------------------------------- panel */
.panel {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
}
.panel h3 { margin-top: 0; }
.panel + .panel { margin-top: 20px; }

/* ------------------------------------------------------------- style grid */
.styles { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.style {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.style h3 { color: var(--orange-head); margin-top: 0; font-size: 1.15rem; }
.style p { margin: 0; color: var(--muted); font-size: .97rem; }

/* -------------------------------------------------------------- gutter grid */
.gutters { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.gutter {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 18px; text-align: center; box-shadow: var(--shadow);
}
.gutter img { width: 108px; height: 108px; object-fit: cover; border-radius: 8px; margin: 0 auto 12px; }
.gutter h3 { font-size: 1.05rem; margin-bottom: .3em; }
.gutter .flow { color: var(--orange-dark); font-weight: 700; font-size: .92rem; margin: 0; }

/* ------------------------------------------------------------- trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: #fff; }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 44px; }
.trust img { height: 52px; width: auto; }
.trust .est { font-weight: 700; color: var(--navy); font-size: 1.05rem; }

/* ---------------------------------------------------------------- CTA band */
.cta { background: var(--navy); color: #fff; padding: 46px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cta h2 { color: #fff; margin: 0 0 .25em; }
.cta p { color: #d7e4f2; margin: 0; }
.cta .tel { color: var(--orange); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* -------------------------------------------------------------------- form */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.field .req { color: var(--orange-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem;
  color: var(--ink); background: #fff;
  border: 1px solid #c3cdd9; border-radius: 8px;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(0, 62, 126, .25); outline-offset: 1px; border-color: var(--navy);
}
.field.err input, .field.err select, .field.err textarea { border-color: #c0392b; background: #fff7f6; }
.field-row { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0 0 18px; }
.form-msg { border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; display: none; }
.form-msg.show { display: block; }
.form-msg.good { background: #eaf7ee; border: 1px solid #b6dfc2; color: #1c6b34; }
.form-msg.bad { background: #fdeeec; border: 1px solid #f2c2bb; color: #a3271a; }
button[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------- contact aside */
.contact-details { list-style: none; margin: 0; padding: 0; }
.contact-details li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-details li:last-child { border-bottom: 0; }
.contact-details .lbl {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.contact-details a { font-weight: 700; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--navy-dark); color: #c9d8e8; padding: 44px 0 26px; font-size: .95rem; }
.footer h4 { color: var(--orange); font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.footer a { color: #e7eff8; text-decoration: none; }
.footer a:hover { color: var(--orange); text-decoration: underline; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 7px; }
.footer .legal {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  color: #93a9c1; font-size: .87rem;
}
.footer .fb { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.footer .fb img { width: 26px; height: 26px; }

/* ------------------------------------------------------------ misc helpers */
.skip {
  position: absolute; left: -9999px; background: var(--orange); color: #33230a;
  padding: 10px 16px; font-weight: 700; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
