/* STK Environmental — site styles */

:root {
  --deep: #2F3A45;
  --deep-darker: #232B33;
  --slate: #4B5B6C;
  --ochre: #85744A;
  --ochre-dark: #6B5D3A;
  --sand: #E8DCB5;
  --sand-light: #F6F2E6;
  --white: #FFFFFF;
  --line: #E4E7EA;
  --input-border: #7C8794;
  --display: 'Red Hat Display', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --radius-lg: 6px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--deep);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ochre); }
a:hover { color: var(--deep); }
input, select, textarea, button { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}
.on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: var(--sand); }

[id] { scroll-margin-top: 16px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sand); color: var(--deep); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Shared type */
.eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ochre);
}
.on-dark .eyebrow { color: var(--sand); font-weight: 500; }
.h2 {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.015em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer; border: 0;
}
.btn-sand { background: var(--sand); color: var(--deep); }
.btn-sand:hover { background: var(--white); color: var(--deep); }
.btn-outline { border: 1px solid rgba(255,255,255,.5); color: var(--white); font-weight: 500; }
.btn-outline:hover { border-color: var(--sand); color: var(--sand); }
.btn-deep { background: var(--deep); color: var(--white); }
.btn-deep:hover { background: var(--slate); color: var(--white); }
.btn-ochre { background: var(--ochre); color: var(--white); }
.btn-ochre:hover { background: var(--ochre-dark); color: var(--white); }
.btn svg { flex: none; }

/* Utility bar */
.utility { background: var(--deep); color: rgba(255,255,255,.82); font-size: 13px; }
.utility .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.utility a { color: inherit; }
.utility a.email { color: var(--sand); }

/* Header */
.site-header { background: var(--deep); border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.logo { display: block; line-height: 0; }
.logo img { width: 104px; height: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; font-size: 15px; font-weight: 500; }
.main-nav .nav-link { color: var(--white); text-decoration: none; }
.main-nav .nav-link:hover { color: var(--sand); }
.main-nav .btn { min-height: 46px; padding: 0 20px; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(255,255,255,.45); border-radius: var(--radius); background: transparent; color: var(--white); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { padding: 0 16px 12px; border-top: 1px solid rgba(255,255,255,.12); }
.mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--white); text-decoration: none; font-size: 17px; font-weight: 500; }
.mobile-menu a:last-child { border-bottom: 0; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; background: var(--deep); color: var(--white); }
.hero-copy { flex: 1 1 520px; padding: clamp(48px, 7vw, 104px) clamp(16px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.hero-copy .eyebrow { margin-bottom: 24px; letter-spacing: .26em; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(38px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -.02em; }
.hero-lede { margin: 28px 0 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-media { flex: 1 1 560px; min-height: 560px; position: relative; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Screening check */
.screening { position: relative; margin-top: -48px; background: var(--deep); color: var(--white); border: 1px solid rgba(232,220,181,.35); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; gap: 24px 40px; }
.screening-pickers { flex: 999 1 560px; display: flex; flex-direction: column; gap: 20px; }
.screening-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.screening-head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 21px; }
.screening-head span { font-size: 13px; color: rgba(255,255,255,.85); }
.picker-label { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--white); background: var(--white); color: var(--deep); font-weight: 500; font-size: 15px; cursor: pointer; }
.pill:hover { border-color: var(--sand); }
.pill[aria-pressed="true"] { background: var(--sand); border-color: var(--sand); }
.screening-result { flex: 1 1 300px; border-radius: var(--radius); background: var(--sand); color: var(--deep); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 20px; }
.screening-result .summary { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ochre-dark); }
.screening-result .advice { margin: 8px 0 0; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.35; }
.screening-result .btn { min-height: 48px; padding: 0 22px; }

/* Services */
.services { padding-top: 104px; padding-bottom: 40px; }
.services .h2 { max-width: 720px; }
.service { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; margin-top: 72px; }
.service:first-of-type { margin-top: 64px; }
.service.reverse { flex-wrap: wrap-reverse; }
.service-media { flex: 1 1 420px; min-width: 0; width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius-lg); }
.service-media.pos-top { object-position: 50% 32%; }
.service-body { flex: 1 1 420px; }
.service-body h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.15; }
.service-body p { margin: 16px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--slate); }
.dash-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.dash-list li { display: flex; gap: 10px; }
.dash-list li::before { content: "—"; color: var(--ochre); }
.text-link { display: inline-block; margin-top: 24px; font-weight: 600; }

/* Why */
.why { background: var(--sand-light); margin-top: 64px; }
.why .wrap { padding-top: 96px; padding-bottom: 96px; }
.why .h2 { max-width: 760px; }
.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; }
.card .mark { margin: 0; font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--ochre); line-height: 1; }
.card h3 { margin: 18px 0 0; font-family: var(--display); font-weight: 600; font-size: 21px; }
.card p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--slate); }

/* Sectors */
.sectors { padding-top: 104px; padding-bottom: 104px; }
.sectors-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 40px; }
.sectors-head > div { flex: 1 1 520px; }
.sectors-head .h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; }
.sectors-head p { flex: 1 1 320px; max-width: 440px; margin: 0; font-size: 16px; line-height: 1.65; color: var(--slate); }
.feature { background: var(--deep); color: var(--white); border-radius: var(--radius-lg); overflow: hidden; }
.feature-media { display: flex; flex-wrap: wrap; gap: 2px; background: var(--deep); }
.feature-media img { min-width: 0; width: 100%; height: 340px; object-fit: cover; }
.feature-media img:first-child { flex: 2 1 360px; }
.feature-media img:not(:first-child) { flex: 1 1 240px; }
.feature-body { padding: 24px clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.feature-body h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 24px; }
.feature-body p { margin: 6px 0 0; font-size: 15px; color: rgba(255,255,255,.8); }
.feature-body .btn { min-height: 46px; padding: 0 20px; }
.tiles { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tile { margin: 0; }
.tile img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius-lg); }
.tile figcaption { padding-top: 14px; }
.tile strong { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; }
.tile span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--slate); }
.tile-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 240px; padding: 28px; border-radius: var(--radius-lg); background: var(--sand); color: var(--deep); text-decoration: none; }
.tile-cta:hover { background: #E1D3A6; color: var(--deep); }
.tile-cta .kicker { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ochre-dark); }
.tile-cta .big { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.tile-cta .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }

/* About */
.about { border-top: 1px solid var(--line); }
.about .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 24px 64px; }
.about h2 { flex: 1 1 300px; margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 36px); line-height: 1.12; }
.about-body { flex: 999 1 560px; max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--slate); }
.about-body p { margin: 0; }
.about-body p + p { margin-top: 18px; }

/* Contact */
.contact { position: relative; background: var(--deep); color: var(--white); overflow: hidden; }
.contact .contour { position: absolute; width: 640px; height: 640px; left: -220px; bottom: -260px; opacity: .35; pointer-events: none; }
.contact .wrap { position: relative; padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 48px 72px; }
.contact-intro { flex: 1 1 360px; }
.contact-intro .h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.04; letter-spacing: -.02em; }
.contact-intro > p { margin: 22px 0 0; font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.8); }
.contact-details { margin: 36px 0 0; display: grid; gap: 14px; font-size: 16px; }
.contact-details p { margin: 0; }
.contact-details span { color: var(--sand); font-weight: 600; margin-right: 8px; }
.contact-details a { color: var(--white); }
.contact-details a:hover { color: var(--sand); }

.enquiry-form { flex: 1 1 520px; background: var(--white); color: var(--deep); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-content: start; }
.enquiry-form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 14px; border: 1px solid var(--input-border); border-radius: var(--radius); color: var(--deep); background: var(--white); width: 100%; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--deep); }
.screening-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--sand-light); font-size: 14px; }
.screening-chip strong { font-weight: 600; }
.hp { display: none; }
.form-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--slate); }
.form-note a { color: var(--deep); }
.enquiry-form .btn { width: 100%; min-height: 54px; font-size: 16px; }
.enquiry-form .btn[disabled] { opacity: .7; cursor: progress; }
.form-status { margin: 0; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.success { background: #E5F0E8; color: #1E4D2B; }
.form-status.error { background: #F7E4E1; color: #7A2318; }

/* Footer */
.site-footer { background: var(--deep-darker); color: rgba(255,255,255,.72); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer img { width: 88px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer-nav a { color: rgba(255,255,255,.85); }
.footer-nav a:hover { color: var(--sand); }
.site-footer p { margin: 0; font-size: 13px; }

/* Simple content pages (privacy, thank you, 404) */
.page { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.page h1 { margin: 0 0 24px; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; letter-spacing: -.015em; }
.page h2 { margin: 40px 0 10px; font-family: var(--display); font-weight: 600; font-size: 22px; }
.page p, .page li { font-size: 16.5px; line-height: 1.7; color: var(--slate); }
.page ul { padding-left: 20px; }
.page .btn { margin-top: 16px; }

/* Phones */
@media (max-width: 640px) {
  .main-nav { gap: 10px; }
  .main-nav .nav-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-media { min-height: 260px; }
  .services, .sectors, .why .wrap, .about .wrap, .contact .wrap { padding-top: 56px; padding-bottom: 56px; }
  .service { margin-top: 48px; }
  .service:first-of-type { margin-top: 36px; }
  .service-media { height: 260px; }
  .feature-media img { height: 240px; }
  .feature-media img:not(:first-child) { display: none; }
}
@media (min-width: 641px) {
  .mobile-menu { display: none !important; }
}
