/* Grid Technical Solutions US — light industrial theme (match CA layout) */

:root {
  --brand: #009035;
  --brand-dark: #007a2c;
  --brand-soft: rgba(0, 144, 53, 0.12);
  --teal: #00323b;
  --teal-mid: #004450;
  --text: #1d1d1d;
  --text-muted: #4a4a4a;
  --text-dim: #6b6b6b;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --border: #e6e6e6;
  --border-strong: #d0d0d0;
  --focus: #009035;
  --radius: 4px;
  --max: 1120px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Anton, "Arial Narrow", Impact, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--brand-dark); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Region banner —— */
.region-banner {
  display: none;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 0.9375rem;
}
.region-banner.is-visible { display: block; }
.region-banner .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.region-banner p { margin: 0; color: var(--text-muted); flex: 1 1 12rem; }
.region-banner .banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.region-banner label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-dim);
  font-size: 0.875rem;
  cursor: pointer;
}

/* —— Header (white, black logo/nav) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.65rem 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
}
.logo img {
  display: block;
  height: 56px;
  width: auto;
}
.logo:hover { color: var(--brand); }
.logo-text {
  display: block;
  max-width: 9.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  line-height: 1.25;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
}
.site-nav > a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0;
}
.site-nav > a:hover,
.site-nav > a[aria-current="page"] { color: var(--brand); }

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--text);
  color: var(--text) !important;
  text-decoration: none !important;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.header-phone:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white) !important;
}

.region-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
  margin-left: 0.15rem;
}
.region-switcher a,
.region-switcher button {
  background: none;
  border: none;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  text-decoration: none;
  border-radius: 4px;
}
.region-switcher a:hover { color: var(--brand); }
.region-switcher [aria-current="true"] {
  color: var(--brand);
  font-weight: 600;
}
.region-switcher .sep { color: var(--border-strong); pointer-events: none; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0.75rem;
  }
  .site-nav.is-open { display: flex; }
  .region-switcher {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
  .header-phone { width: 100%; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-ghost-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-ghost-light:hover {
  background: var(--white);
  color: var(--teal);
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}

/* —— Split hero —— */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(72vh, 620px);
  background: var(--bg-soft);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 2.5rem 3.5rem clamp(1.25rem, 4vw, 3.5rem);
  max-width: 36rem;
  margin-left: auto;
  width: 100%;
}
.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.hero-split h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--teal);
  max-width: 14ch;
}
.hero-split .deck {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 32rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}
.hero-strip {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-dim);
}
.hero-strip a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.hero-strip a:hover { color: var(--brand); }
.hero-strip .dot { margin: 0 0.45rem; color: var(--border-strong); }

.hero-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--teal);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-copy {
    max-width: none;
    margin: 0;
    padding: 2.5rem 1.25rem;
  }
  .hero-media { min-height: 240px; aspect-ratio: 16 / 10; position: relative; }
}

/* —— About (dark teal) —— */
.about-band {
  background: var(--teal);
  color: var(--white);
  padding: 4rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem 3rem;
  align-items: center;
}
.about-band .section-label {
  color: rgba(255, 255, 255, 0.65);
}
.about-band h2 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--white);
  max-width: 16ch;
}
.about-band .lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 38rem;
}
.about-media {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.about-band .footnote {
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.7);
}
.about-band .footnote a { color: #7dffa8; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
}

/* —— Feature cards (four) —— */
.features {
  padding: 3.5rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
}
.feature-card .icon-sq {
  margin-bottom: 1rem;
}
.feature-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--teal);
  line-height: 1.15;
}
.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* —— Green square icons —— */
.icon-sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  background: var(--brand);
  color: var(--white);
  border-radius: 3px;
  flex-shrink: 0;
}
.icon-sq svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

/* —— Sections generic —— */
.section {
  padding: 3.75rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.section-alt { background: var(--bg-soft); }
.section-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.section h2,
.page-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--teal);
  line-height: 1.1;
}
.section .lead,
.page-hero .deck {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 40rem;
}

/* —— Safety —— */
.safety-band {
  padding: 3.75rem 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.safety-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}
.safety-band h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--teal);
  line-height: 1.1;
}
.safety-band p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 36rem;
}
.safety-band p:last-child { margin-bottom: 0; }
.safety-callout {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  padding: 1.5rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.safety-callout h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--teal);
}
.safety-callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
}
@media (max-width: 760px) {
  .safety-inner { grid-template-columns: 1fr; }
}

/* —— Packages (2-col, no photos, no prices) —— */
.packages-section { background: var(--white); }
.pricing-note {
  margin: 0 0 1.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-size: 0.975rem;
  max-width: 44rem;
}
.package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.package-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.package-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 18px rgba(0, 50, 59, 0.06);
}
.package-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--brand);
  line-height: 1.1;
}
.package-card .code {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.package-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
@media (max-width: 700px) {
  .package-grid { grid-template-columns: 1fr; }
}

.footnote {
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.975rem;
  max-width: 42rem;
}

/* —— How we work —— */
.how-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.65rem;
  max-width: 44rem;
}
.how-box p { margin: 0; color: var(--text-muted); }

/* —— Contact band with photo background —— */
.contact-band {
  position: relative;
  padding: 4.5rem 0;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0, 50, 59, 0.92) 0%, rgba(0, 50, 59, 0.78) 45%, rgba(0, 50, 59, 0.55) 100%),
    var(--contact-bg, #00323b) center / cover no-repeat;
  z-index: -1;
}
.contact-band h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--white);
  line-height: 1.08;
}
.contact-band .lead {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  backdrop-filter: blur(4px);
}
.contact-item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}
.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}
.contact-item a:hover { color: #7dffa8; }
.contact-item .sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
  margin-top: 0.5rem;
}
.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form .btn { justify-self: start; margin-top: 0.25rem; }

/* —— Page intro (inner pages) —— */
.page-hero {
  padding: 2.75rem 0 1.75rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

/* —— CTA band (simple) —— */
.cta-band {
  padding: 3rem 0;
  background: var(--teal);
  text-align: center;
  color: var(--white);
}
.cta-band h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--white);
}
.cta-band p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.85);
}
.cta-band .cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.cta-band .tiny {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* —— Footer (white) —— */
.site-footer {
  padding: 2.5rem 0 2rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h3 {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}
.site-footer p { margin: 0 0 0.4rem; }
.site-footer strong { color: var(--text); }
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--brand); }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  color: var(--text-dim);
  font-size: 0.8125rem;
}
.footer-legal .region-switcher {
  border: none;
  padding: 0;
  margin: 0;
}

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