/* ============================================================
   Inscope Plumbing Group — Website Prototype
   Shared stylesheet for all pages.
   Brand colours are defined once below — match these to the
   real Inscope logo before going live.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&display=swap');

:root {
  --navy:        #1E3E58;   /* Inscope navy — headings / dark sections */
  --navy-deep:   #15304a;
  --accent:      #3FA1D6;   /* Inscope sky blue — buttons, highlights */
  --accent-dark: #2A86BD;
  --red:         #E4141A;   /* reserved — not currently used */
  --red-dark:    #BE1016;
  --ink:         #1c2b36;   /* body text */
  --muted:       #5b6b78;   /* secondary text */
  --line:        #e4e9ee;   /* borders */
  --bg:          #ffffff;
  --bg-soft:     #f4f7f9;   /* alt section background */
  --bg-tint:     #eef5f8;   /* faint accent wash */
  --white:       #ffffff;
  --radius:      14px;
  --shadow:      0 10px 30px rgba(11, 42, 69, 0.10);
  --shadow-sm:   0 4px 14px rgba(11, 42, 69, 0.08);
  --maxw:        1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Sora', var(--font);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy); color: #cfe0ec; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--accent); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section--navy .lead { color: #b9cfdf; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-deep); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(11, 42, 69, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 12px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.nav-links a:hover { color: var(--accent-dark); background: var(--bg-tint); text-decoration: none; }
.nav-links a.active { color: var(--accent); background: var(--bg-tint); border-color: var(--accent); }
.nav-links .nav-cta {
  margin-left: 8px;
  background: var(--accent);
  color: #fff !important;
}
.nav-links .nav-cta:hover { background: var(--accent-dark); }

/* Dropdown ("About Us") */
.has-dropdown { position: relative; }
.drop-parent { display: inline-flex; align-items: center; gap: 6px; }
.drop-parent::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); opacity: .6;
}
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: 11px 14px; border-radius: 9px; white-space: nowrap; }
.dropdown a:hover { background: var(--bg-tint); color: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; display: block; position: relative;
  width: 24px; height: 2px; background: var(--navy); margin: 0 auto;
  transition: .25s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    gap: 2px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; font-size: 1.05rem; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
  /* dropdown becomes an inline, indented list on mobile */
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 0 14px; margin: 0; min-width: 0;
  }
  .drop-parent::after { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    linear-gradient(120deg, rgba(7,32,58,.92), rgba(11,42,69,.78)),
    radial-gradient(1200px 500px at 80% -10%, rgba(31,162,196,.45), transparent 60%);
  color: #fff;
  padding: 96px 0;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: #cfe0ec; font-size: 1.2rem; max-width: 56ch; margin-bottom: 28px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-mini {
  display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap;
}
.hero-mini div { color: #cfe0ec; font-size: .95rem; }
.hero-mini strong { display: block; color: #fff; font-size: 1.6rem; font-weight: 800; }

/* ============================================================
   GRIDS / CARDS
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--bg-tint); color: var(--accent-dark);
  display: grid; place-items: center; margin-bottom: 16px;
  font-size: 1.5rem;
}
.ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Split (text + media) */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: -1; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
}
.split-media {
  border-radius: var(--radius);
  min-height: 320px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.placeholder-img {
  border-radius: var(--radius);
  min-height: 240px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--navy), var(--accent));
  display: grid; place-items: center;
  color: rgba(255,255,255,.85); font-weight: 600; font-size: .85rem;
  text-align: center; padding: 16px;
}

/* Stats band */
.stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2,1fr); } }
.stats .num { font-size: 2.6rem; font-weight: 800; color: #fff; }
.stats .lbl { color: #b9cfdf; font-size: .95rem; }

/* Checklist */
.check { list-style: none; padding: 0; margin: 0; }
.check li {
  position: relative; padding: 8px 0 8px 34px; color: var(--ink);
}
.check li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}

/* Project cards */
.project { padding: 0; overflow: hidden; }
.project .thumb {
  min-height: 210px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--navy), var(--accent));
  display: grid; place-items: center; color: rgba(255,255,255,.85);
  font-weight: 600; font-size: .85rem; text-align: center; padding: 14px;
}
.project .body { padding: 22px 24px 26px; }
.project .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg-tint); color: var(--accent-dark);
  padding: 4px 10px; border-radius: 999px;
}
.project h3 { margin-bottom: 4px; }
.project .loc { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.project .body p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Logos strip */
.logos { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; align-items: center; }
@media (max-width: 700px){ .logos { grid-template-columns: repeat(2,1fr); } }
.logo-box {
  height: 96px; border: 1px solid var(--line); border-radius: 12px;
  display: grid; place-items: center; color: var(--muted);
  font-size: .8rem; background: #fff; padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.logo-box img { max-height: 100%; max-width: 100%; object-fit: contain; display: block; }

/* Testimonials */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.quote p { font-size: 1.05rem; color: var(--ink); font-style: italic; }
.quote .who { font-style: normal; font-weight: 700; color: var(--navy); margin-top: 10px; }
.quote .who span { display:block; font-weight: 500; color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta {
  background: linear-gradient(120deg, var(--navy-deep), var(--accent-dark));
  color: #fff; border-radius: 0;
}
.cta .container { text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #d3e6f0; max-width: 54ch; margin: 0 auto 26px; }
.cta .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Note banner (prototype only) */
.proto-note {
  background: #fff8e1; border-bottom: 1px solid #f0e2b0; color: #7a5d00;
  font-size: .85rem; text-align: center; padding: 8px 16px;
}
.proto-note b { color: #5a4500; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep); color: #9fb6c7; padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
}
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-wordmark { color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; display: inline-block; margin-bottom: 14px; }
.footer-wordmark small { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; margin-top: 2px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #b9cfdf; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .85rem; color: #8aa3b6;
}

/* ============================================================
   HOMEPAGE
   ============================================================ */
/* Image hero (navy overlay over a project photo) */
.hero--home {
  background:
    linear-gradient(115deg, rgba(21,48,74,.94) 0%, rgba(21,48,74,.78) 45%, rgba(30,62,88,.55) 100%),
    var(--hero-img, linear-gradient(135deg, var(--navy), var(--accent)));
  background-size: cover;
  background-position: center;
  padding: 120px 0;
}

/* Feature strip under hero */
.feature-strip { background: var(--navy-deep); }
.feature-strip .container {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
}
@media (max-width: 760px){ .feature-strip .container { grid-template-columns: 1fr; } }
.feature-strip .feat {
  padding: 26px 28px; color: #cfe0ec; display: flex; gap: 14px; align-items: flex-start;
  border-right: 1px solid rgba(255,255,255,.08);
}
.feature-strip .feat:last-child { border-right: 0; }
.feature-strip .feat .fi { color: var(--accent); line-height: 1; display: flex; }
.feature-strip .feat .fi svg { width: 30px; height: 30px; }
.feature-strip .feat strong { color: #fff; display: block; font-size: 1rem; margin-bottom: 2px; }
.feature-strip .feat span { font-size: .9rem; }

/* Auto-scrolling logo wall (marquee) */
.marquee { overflow: hidden; position: relative; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .logo-box { height: 84px; width: 210px; flex: 0 0 auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track { animation: none; } }

/* Team / key staff */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
@media (max-width: 920px){ .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: 0 6px 22px rgba(11,42,69,.07);
  transition: transform .22s ease, box-shadow .22s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 20px 46px rgba(11,42,69,.15); }
.team-photo {
  position: relative;
  aspect-ratio: 4 / 5; background-size: cover; background-position: center top;
  background-color: var(--bg-tint); display: grid; place-items: center;
  color: var(--muted); text-align: center; padding: 16px;
}
.team-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11,42,69,.24), transparent 42%);
}
.team-photo svg { width: 54px; height: 54px; opacity: .5; }
.team-photo .cap { font-size: .76rem; margin-top: 10px; line-height: 1.35; }
.team-card .t-body { padding: 22px 24px 26px; }
.team-card h3 { margin-bottom: 5px; font-size: 1.2rem; }
.team-card .role {
  position: relative; color: var(--accent-dark); font-weight: 700; font-size: .8rem;
  letter-spacing: .05em; text-transform: uppercase;
  padding-bottom: 14px; margin-bottom: 14px;
}
.team-card .role::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 38px; height: 2px; background: var(--accent); border-radius: 2px;
}
.team-card p { color: var(--muted); font-size: .93rem; margin: 0; line-height: 1.62; }

/* Brand product cards */
.brand-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width: 900px){ .brand-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .brand-grid { grid-template-columns: 1fr; } }
.brand-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.brand-prod {
  aspect-ratio: 4 / 3; background-color: var(--bg-tint);
  background-size: cover; background-position: center;
  display: grid; place-items: center; color: var(--muted);
  text-align: center; padding: 14px; font-size: .78rem; line-height: 1.4;
}
.brand-prod svg { width: 40px; height: 40px; opacity: .45; }
.brand-logo-row {
  height: 78px; display: grid; place-items: center;
  padding: 16px 20px; border-top: 1px solid var(--line);
}
.brand-logo-row img { max-height: 100%; max-width: 72%; object-fit: contain; }

/* On-site work gallery */
.work-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 820px){ .work-gallery { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .work-gallery { grid-template-columns: 1fr; } }
.work-item {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); background: var(--bg-tint);
}
.work-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.work-item:hover img { transform: scale(1.06); }
.work-item .wcap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(4,25,60,.85));
  color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .01em;
}

/* ============================================================
   POLISH — header shrink, greyscale logos, scroll reveal
   ============================================================ */
/* Header slims + stronger shadow once scrolled */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 22px rgba(4,25,60,.12); }
.site-header.scrolled .nav { height: 64px; }
.brand-logo { transition: height .25s ease; }
.site-header.scrolled .brand-logo { height: 38px; }

/* Logos shown in full colour */

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; gap: 34px; } }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 7px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; box-sizing: border-box;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,144,216,.15);
}
.contact-form .btn { width: 100%; text-align: center; margin-top: 4px; cursor: pointer; }
.contact-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.contact-details {
  background: var(--navy); color: #cfe0ec; border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow);
}
.contact-details h3 { color: #fff; margin-bottom: 20px; }
.contact-details .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-details .row svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.contact-details .row a { color: #fff; }
.contact-details .row .lbl { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }

/* PDF frame (Capability Statement) */
.pdf-frame {
  max-width: 900px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.pdf-frame iframe { width: 100%; height: 80vh; min-height: 560px; border: 0; display: block; }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

