/* ============================================================
   PRIME PLATFORMS — shared styles
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* exact hex sampled from brand logos */
  --navy:        #001944;
  --navy-dark:   #001033;
  --navy-deep:   #001944;
  --yellow:      #FFD900;
  --yellow-dark: #e6c200;
  --cream:       #EBEDDF;
  --grey-ph:     #d6d6d6;
  --grey-ph-2:   #cfcfcf;
  --grey-card:   #8a8a8a;
  --text-body:   #3a3f4a;
  --line:        #e4e4e4;
  --white:       #ffffff;
  --max:         1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 140px; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: .92rem;
  border: none; border-radius: 3px; cursor: pointer;
  padding: 13px 30px; transition: .18s ease;
  white-space: nowrap;
}
.btn-navy   { background: var(--navy); color: #fff; }
.btn-navy:hover   { background: var(--navy-dark); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid #fff; padding: 9px 22px; font-size: .82rem; border-radius: 4px; }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 8px 18px; font-size: .78rem; }
.btn-arrow::after { content: "›"; font-size: 1.15em; line-height: 0; }

/* ---------- Header / nav (sticky) ---------- */
.topbar { background: var(--navy); position: sticky; top: 0; z-index: 200; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }

/* logo (real brand image) */
.logo { display: inline-flex; align-items: center; }
/* the PNG has transparent padding baked in — pull it left so the visible
   mark lines up with the nav links below */
.logo img { display: block; height: 52px; width: auto; margin-left: -10px; }
/* match the Enquiry Form button's rendered height exactly, rather than
   letting padding + line-height land close-but-not-quite */
.topbar .btn-outline-white { height: 52px; padding: 0 22px; box-sizing: border-box; }

.navbar { background: var(--yellow); position: sticky; top: 68px; z-index: 199; }
.navbar .container { display: flex; align-items: center; gap: 42px; height: 56px; }

@media (max-width: 520px){
  .logo img { height: 42px; margin-left: -8px; }
  .topbar .container { padding: 0 16px; }
  .topbar .btn-outline-white { padding: 8px 12px; font-size: .76rem; }
  .topbar .nav-toggle { margin-left: 4px; }
}
@media (max-width: 400px){ .logo img { height: 36px; margin-left: -7px; } }
@media (min-width: 901px){
  .logo img { height: 64px; margin-left: -12px; }
  .topbar .container { height: 80px; }
  .topbar .btn-outline-white { height: 40px; padding: 0 18px; font-size: .78rem; }
  .navbar { top: 80px; }
}

.navbar a {
  color: var(--navy); font-weight: 700; font-size: .95rem;
  letter-spacing: .2px; position: relative;
}
.navbar a:hover { opacity: .75; }

/* dropdown */
.navbar .nav-item { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav-drop-btn::after {
  content: ""; display: inline-block; margin-left: 7px; vertical-align: 2px;
  border-left: 4.5px solid transparent; border-right: 4.5px solid transparent;
  border-top: 5px solid currentColor;
}
.dropdown {
  position: absolute; top: 100%; left: -18px; min-width: 216px; z-index: 210;
  background: var(--navy); border-radius: 0 0 4px 4px; padding: 6px 0;
  box-shadow: 0 14px 28px rgba(0, 25, 68, .28);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown,
.nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.navbar .dropdown a { display: block; padding: 11px 18px; color: #fff; font-weight: 600; font-size: .88rem; }
.navbar .dropdown a:hover { opacity: 1; background: rgba(255, 255, 255, .09); color: var(--yellow); }

/* ---------- Section headings ---------- */
.section { padding: 66px 0; }
.h-center { text-align: center; }
h1,h2,h3,h4 { color: var(--navy); font-weight: 800; line-height: 1.12; }
.section-title { font-size: 2.15rem; margin-bottom: 10px; letter-spacing: -.3px; }
.section-sub { color: #6b7280; font-size: .95rem; max-width: 560px; margin: 0 auto; }

/* ---------- Image placeholder ---------- */
.ph {
  background: var(--grey-ph);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.ph svg { width: 46px; height: 46px; opacity: .55; }
.ph-photo { background: linear-gradient(135deg,#c8cdd6,#aeb6c4); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph img[data-parallax] { position: absolute; top: -15%; left: 0; width: 100%; height: 130%; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .ph img[data-parallax] { transform: none !important; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #cbd2e0; padding: 52px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 32px;
  padding-bottom: 40px;
}
.footer h5 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; font-size: .86rem; }
.footer li a:hover { color: #fff; }
.footer-logo { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.footer-logo .logo img { height: 108px; margin-left: 0; transform: translateX(8px); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-contact a { font-size: .88rem; font-weight: 600; color: #cbd2e0; }
.footer-contact a:hover { color: #fff; }
.footer-contact .k { font-weight: 400; color: #8592b3; margin-right: 3px; }
.footer-hours { font-size: .8rem; color: #8592b3; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0; display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: #9aa4bd;
}
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom .links a:hover { color: #fff; }
.footer-bottom .social { display: flex; gap: 10px; }
.footer-bottom .social a {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: background .15s ease;
}
.footer-bottom .social svg { width: 15px; height: 15px; fill: #dbe1ee; }
.footer-bottom .social a:hover { background: rgba(255,255,255,.18); }
.footer-bottom .social a:hover svg { fill: #fff; }

/* ---------- responsive base ---------- */
@media (max-width: 860px) {
  .navbar .container { gap: 22px; overflow-x: auto; }
  .section-title { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { align-items: flex-start; }
  .footer-logo .logo img { margin-left: 0; transform: translateX(-8px); }
  .footer-contact { align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 40px; padding-bottom: 36px; }
  .footer-logo { align-items: center; gap: 18px; }
  .footer-logo .logo img { height: 88px; transform: none; }
  .footer-contact { align-items: center; gap: 10px; }
  .footer h5 { margin-bottom: 14px; }
  .footer li { margin-bottom: 13px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom .links { justify-content: center; flex-wrap: wrap; row-gap: 10px; }
  .footer-bottom .social { justify-content: center; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Enhancements: a11y, mobile nav, real inputs, accordion
   ============================================================ */

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--yellow); color: var(--navy); font-weight: 700;
  padding: 10px 16px; border-radius: 4px; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
[tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 3px;
}
.topbar a:focus-visible, .navbar a:focus-visible { outline-color: #fff; }

/* Active nav link */
.navbar a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none; background: transparent; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 8px; margin-left: 12px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Real form controls (match the mocked look) */
.form-field input,
.form-field select {
  width: 100%; border: 1px solid #cfd4de; border-radius: 5px; padding: 11px 14px;
  font-family: inherit; font-size: .85rem; color: #4a5568; background: #fff;
  appearance: none; -webkit-appearance: none;
}
.form-field textarea {
  width: 100%; border: 1px solid #cfd4de; border-radius: 5px; padding: 12px 14px;
  font-family: inherit; font-size: .9rem; color: #3a3f4a; background: #fff;
  resize: vertical; min-height: 120px;
}
.form-field input::-webkit-datetime-edit,
.form-field input:placeholder-shown { color: #6b7280; }
.form-field .select-wrap { position: relative; }
.form-field .select-wrap::after {
  content: "⌄"; position: absolute; right: 14px; top: 50%; transform: translateY(-60%);
  color: #9aa0ab; pointer-events: none;
}
.form-field label { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.form-field .opt { font-weight: 400; color: #9aa0ab; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.wizard-panel > .form-field,
.contact-form > .form-field { margin-bottom: 20px; }
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; gap: 0; } }

/* Hire-type segmented toggle + start/end date-time grid (hire block, reused on enquiry form) */
.field-label { text-align: center; font-size: .82rem; color: var(--navy); font-weight: 700; margin-bottom: 10px; }
.toggle { display: flex; justify-content: center; gap: 0; margin-bottom: 8px; flex-wrap: wrap; }
.toggle button {
  font-family: inherit; font-size: .8rem; font-weight: 600; padding: 10px 22px;
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer;
}
.toggle button:first-child { border-radius: 4px 0 0 4px; }
.toggle button:last-child { border-radius: 0 4px 4px 0; }
.toggle button:not(:first-child) { border-left: none; }
.toggle button.active { background: var(--navy); color: #fff; }
.toggle button.disabled { color: #b3b8c2; border-color: #dcdfe6; cursor: not-allowed; }
.delivery-note { text-align: center; color: var(--yellow-dark); font-weight: 600; font-size: .8rem; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.wizard-panel > .form-grid { margin-bottom: 8px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Honeypot field: invisible to people, present for basic bots until the real backend validates server-side */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* Cloudflare Turnstile — the widget renders its own UI in an iframe, so this
   is just layout/spacing around it, not visual styling of the widget itself. */
.captcha-box { margin-bottom: 20px; }
.captcha-error { color: #c0392b; font-size: .82rem; margin: -12px 0 20px; }
.captcha-error[hidden] { display: none; }

/* ============================================================
   Step wizard — multi-step forms (site survey, enquiry)
   ============================================================ */
.wizard { max-width: 720px; margin: 0 auto; }

.wizard-steps { list-style: none; display: flex; justify-content: space-between; position: relative; margin-bottom: 40px; }
.wizard-steps::before { content: ""; position: absolute; top: 17px; left: 26px; right: 26px; height: 2px; background: var(--line); z-index: 0; }
.wizard-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; flex: 1; }
.wizard-steps .num {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .88rem;
  color: #9aa0ab; transition: .2s ease;
}
.wizard-steps .num svg { width: 15px; height: 15px; }
.wizard-steps .label { font-size: .78rem; font-weight: 600; color: #9aa0ab; text-align: center; transition: .2s ease; }
.wizard-steps li.active .num { border-color: var(--navy); background: var(--navy); color: #fff; }
.wizard-steps li.active .label { color: var(--navy); }
.wizard-steps li.done .num { border-color: var(--yellow); background: var(--yellow); color: var(--navy); }
.wizard-steps li.done .label { color: var(--navy); }

.wizard-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(26px, 4vw, 48px); box-shadow: 0 24px 60px rgba(0, 25, 68, .07);
}
.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: wizard-in .35s ease; }
@keyframes wizard-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wizard-kicker { color: var(--yellow-dark); font-size: .76rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.wizard-panel h2 { font-size: 1.5rem; margin-bottom: 8px; outline: none; }
.wizard-hint { color: #6b7280; font-size: .9rem; margin-bottom: 30px; max-width: 480px; }

.wizard-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.wizard-nav .btn { min-width: 130px; }

/* Review (final step) */
.wizard-review { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 22px; overflow: hidden; }
.wizard-review-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: .86rem; }
.wizard-review-row:nth-child(even) { background: #f7f8fa; }
.wizard-review-label { color: #6b7280; flex-shrink: 0; }
.wizard-review-value { color: var(--navy); font-weight: 600; text-align: right; word-break: break-word; }

/* Success state */
.wizard-success { text-align: center; padding: 20px 0 8px; }
.wizard-success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--cream);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.wizard-success-icon svg { width: 26px; height: 26px; stroke: var(--navy); }
.wizard-success h2 { margin-bottom: 10px; }
.wizard-success p { color: #6b7280; font-size: .92rem; max-width: 420px; margin: 0 auto 24px; }

@media (max-width: 640px) {
  .wizard-steps .label { display: none; }
  .wizard-steps::before { left: 17px; right: 17px; }
  .wizard-card { padding: 26px 20px; border-radius: 8px; }
  .wizard-nav .btn { min-width: 0; flex: 1; }
}

/* ============================================================
   Legal pages — Privacy Policy, Terms of Service, Cookie Policy
   ============================================================ */
.legal-section { padding: 60px 0 90px; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal-updated { color: #9aa0ab; font-size: .85rem; margin-bottom: 34px; }
.legal-toc { border: 1px solid var(--line); border-radius: 6px; padding: 22px 26px; margin-bottom: 40px; }
.legal-toc h2 { font-size: .95rem; margin-bottom: 12px; }
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.legal-toc a { font-size: .88rem; color: var(--navy); font-weight: 600; }
.legal-toc a:hover { text-decoration: underline; }
.legal-content h2 { font-size: 1.25rem; margin: 36px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: .94rem; color: #3a3f4a; line-height: 1.7; margin-bottom: 16px; }
.legal-content ul { margin: 0 0 16px 22px; }
.legal-content li { font-size: .94rem; color: #3a3f4a; line-height: 1.7; margin-bottom: 8px; }
.legal-content a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--navy-dark); }

/* Accordion collapse */
.acc-item .acc-body { transition: none; }
.acc-item.collapsed .acc-body { display: none; }
.acc-head .x::before { content: "✕"; }
.acc-item.collapsed .acc-head .x::before { content: "＋"; }
.acc-head .x { line-height: 1; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .navbar .container { display: none; }
  .navbar.open .container { display: flex; flex-direction: column; align-items: flex-start; height: auto; gap: 4px; padding: 14px 24px; overflow: visible; }
  .navbar.open .container a { padding: 8px 0; width: 100%; }
  /* dropdown renders inline on mobile, toggled by tap */
  .navbar .nav-item { width: 100%; flex-direction: column; align-items: flex-start; }
  .navbar .dropdown {
    display: none; position: static; min-width: 0; box-shadow: none;
    background: transparent; padding: 0 0 4px 18px;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .navbar .nav-item.open > .dropdown { display: block; }
  .navbar.open .dropdown a { color: var(--navy); font-size: .9rem; }
  .navbar .dropdown a:hover { background: transparent; color: var(--navy); opacity: .75; }
}
