/* =========================================================
   MSTECK — Mohammed Shoukat Technical Services L.L.C.
   Design system: bold corporate, diagonal green/lime motif
   ========================================================= */

/* ---------- Self-hosted fonts (SIL Open Font License — see /fonts) ---------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}

:root {
  /* Brand colors — sampled from the company's own profile document */
  --green-dark: #52833A;
  --green-darker: #416829;
  --green-deep: #2F4A22;
  --green-accent: #9CC13F;
  --green-accent-light: #B7D766;
  --charcoal: #3A3A3A;
  --near-black: #26331C;
  --white: #FFFFFF;
  --off-white: #F7F8F4;
  --grey-border: #E4E7DF;
  --grey-text: #6B6F66;

  /* Type */
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Fluid spacing */
  --space-xs: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.6vw, 1.25rem);
  --space-md: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
  --space-lg: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  --space-xl: clamp(4rem, 3rem + 4vw, 7rem);

  --container-max: 1240px;
  --radius: 10px;
  --shadow-card: 0 4px 24px rgba(22, 33, 15, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(22, 33, 15, 0.14);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Anchor targets (e.g. services.html#bms) land below the sticky header */
[id] { scroll-margin-top: calc(var(--header-h, 90px) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-heading); font-weight: 600;
  padding: 0.7em 1.2em;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  color: var(--near-black);
}
h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.75vw, 1.5rem); }
p { margin: 0 0 var(--space-sm); color: var(--charcoal); }
.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: var(--grey-text); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 1rem + 2vw, 3rem);
}

section { padding-block: var(--space-xl); position: relative; }
.section-alt { background: var(--off-white); }
.section-tight { padding-block: var(--space-lg); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-darker);
  background: rgba(152, 184, 56, 0.15);
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
}

.section-head { max-width: 700px; margin-bottom: var(--space-lg); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-accent);
  color: var(--near-black);
}
.btn-primary:hover { background: var(--green-accent-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(152,184,56,0.35); }
.btn-dark {
  background: var(--green-dark);
  color: var(--white);
}
.btn-dark:hover { background: var(--green-darker); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(61,96,35,0.35); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--green-darker);
  color: var(--green-darker);
}
.btn-outline-dark:hover { background: var(--green-dark); color: var(--white); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; box-shadow: none; }
/* Long button labels wrap instead of running off narrow phones */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
}

/* ---------- Diagonal motif ---------- */
.diagonal-wrap { position: relative; overflow: hidden; }
.diagonal-band {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.diagonal-band::before,
.diagonal-band::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 160px;
}
/* top-left pair — fixed corner size, stays consistent at every viewport width */
.diagonal-band.top-left::before {
  top: 0; left: 0;
  background: var(--green-darker);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.diagonal-band.top-left::after {
  top: 0; left: 0;
  width: 150px;
  height: 108px;
  background: var(--green-accent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.85;
}
/* bottom-right pair */
.diagonal-band.bottom-right::before {
  bottom: 0; right: 0;
  background: var(--green-darker);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.diagonal-band.bottom-right::after {
  bottom: 0; right: 0;
  width: 150px;
  height: 108px;
  background: var(--green-accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.85;
}
@media (max-width: 600px) {
  .diagonal-band::before { width: 140px; height: 100px; }
  .diagonal-band.top-left::after, .diagonal-band.bottom-right::after { width: 96px; height: 68px; }
}

.watermark {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(46vw, 620px);
  background-image: url('../images/watermark.png');
  background-repeat: no-repeat;
  background-position: 100% 50%;
  background-size: contain;
  opacity: 0.1;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--grey-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand img { height: clamp(56px, 3.2vw + 34px, 76px); width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1vw + 0.5rem, 2rem);
}
.nav-cta { display: none; }
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  padding: 0.4em 0;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--green-accent);
  transition: right var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--green-dark); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }
.header-phone {
  display: flex; align-items: center; gap: 0.5em;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  color: var(--green-dark); white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; flex-shrink: 0; }
.header-phone span.phone-text { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--near-black); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-dark) 75%, var(--green-dark) 100%);
  color: var(--white);
  padding-block: clamp(3.5rem, 3rem + 4vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero .container, .page-hero .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: rgba(152,184,56,0.18);
  border: 1px solid rgba(152,184,56,0.4);
  color: var(--green-accent-light);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4em 1em; border-radius: 999px;
  margin-bottom: var(--space-md);
}
.hero h1 { color: var(--white); }
/* The badge sits inside the H1 (keyword line for search engines) but keeps its small pill styling */
.hero h1 .hero-badge { display: flex; width: fit-content; max-width: 100%; line-height: 1.5; }
.hero h1 .hero-title { display: block; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,0.82); max-width: 56ch; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); }
.hero-sub {
  padding-block: var(--space-lg) var(--space-xl);
}
.hero-sub h1 { max-width: none; }

/* ---------- Trust bar / stats ---------- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  background: var(--green-deep);
  color: var(--white);
  padding-block: var(--space-md);
}
.stat { text-align: center; padding-inline: var(--space-sm); }
.stat .num {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.6rem);
  color: var(--green-accent);
  display: block;
}
.stat .label { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(61,96,35,0.08);
  border-radius: 12px;
  margin-bottom: var(--space-sm);
  color: var(--green-dark);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.5em; }
.card ul { margin-top: 0.75em; }
.card ul li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 0.5em;
  font-size: 0.95rem;
  color: var(--grey-text);
}
.card ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--green-accent);
  border-radius: 50%;
}
.card a.card-link { display: inline-flex; align-items: center; gap: 0.4em; margin-top: var(--space-sm); font-family: var(--font-heading); font-weight: 600; color: var(--green-dark); }
.card a.card-link:hover { color: var(--green-accent); }

/* Value / feature items (icon + text, no card chrome) */
.feature {
  display: flex; gap: var(--space-sm); align-items: flex-start;
}
.feature .card-icon { flex-shrink: 0; margin-bottom: 0; }
.feature h3 { margin-bottom: 0.3em; font-size: 1.1rem; }
.feature p { color: var(--grey-text); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Alternating service sections ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--grey-border);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse .service-visual { order: -1; } /* alternate image side on desktop */
.service-block > div { min-width: 0; }
.service-block ul { margin-top: 0.75em; }
.service-block ul li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 0.55em;
  color: var(--charcoal);
}
.service-block ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px;
  background: var(--green-accent);
  border-radius: 50%;
}
.service-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-dark), var(--near-black));
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.service-visual svg { width: 40%; height: 40%; color: var(--green-accent); opacity: 0.9; }
/* Drop a real photo into a panel and it fills it, covering the icon:
   <img src="images/services/NAME.jpg" alt="..." width="1600" height="1200" loading="lazy" decoding="async"> */
.service-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.service-visual:has(img)::after { display: none; }
.service-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../images/logo-icon.png');
  background-repeat: no-repeat;
  background-position: -10% 110%;
  background-size: 55%;
  opacity: 0.12;
}
@media (max-width: 760px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block.reverse .service-visual { order: 0; }
}

/* ---------- Project cards ---------- */
.project-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-top: 3px solid var(--green-accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex; flex-direction: column;
  padding: var(--space-md);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.project-card-top {
  position: relative;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--grey-border);
}
.project-card-top .tag {
  display: inline-block;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(82,131,58,0.1); color: var(--green-darker);
  padding: 0.3em 0.8em; border-radius: 999px; margin-bottom: 0.6em;
}
.project-card-top h3 { color: var(--near-black); margin-bottom: 0.3em; font-size: 1.15rem; }
.project-card-top .client {
  font-size: 0.85rem; color: var(--grey-text);
  font-family: var(--font-heading); font-weight: 600;
  display: flex; align-items: center; gap: 0.4em;
}
.project-card-top .client svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--green-dark); }
.project-card-body { flex: 1; }
.project-card-body p { font-size: 0.95rem; margin-bottom: 0.75em; }
.project-card-body .scope-label { font-family: var(--font-heading); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-dark); }

/* ---------- Client logo grid ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
}
.client-tile {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  display: flex; align-items: center; justify-content: center;
  min-height: 110px;
  filter: grayscale(1) opacity(0.7);
  transition: filter var(--transition), transform var(--transition);
}
.client-tile:hover { filter: grayscale(0) opacity(1); transform: translateY(-2px); }
.client-tile img { max-height: 60px; width: auto; max-width: 90%; }
.client-tile.text-only {
  font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem;
  color: var(--charcoal); letter-spacing: 0.02em; text-align: center;
}

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); }
.cert-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-left: 4px solid var(--green-accent);
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.cert-card .cert-badge-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(82,131,58,0.1);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
}
.cert-card .cert-badge-icon svg { width: 26px; height: 26px; }
.cert-card-body { flex: 1; }
.cert-card h3 { margin-bottom: 0.2em; font-size: 1.05rem; }
.cert-card p { font-size: 0.9rem; color: var(--grey-text); margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--green-dark), var(--green-deep));
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.2em; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 0; }
.cta-banner-text { max-width: 560px; position: relative; z-index: 1; }
.cta-banner .btn-row { position: relative; z-index: 1; }
@media (max-width: 480px) { .cta-banner { padding: var(--space-md); } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.footer-top-cut {
  position: absolute; top: 0; left: 0; right: 0; height: 14px;
  background: linear-gradient(90deg, var(--green-accent), var(--green-dark));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand-badge {
  display: inline-block;
  background: var(--white);
  border-radius: 14px;
  padding: 1.1rem 1.6rem;
  margin-bottom: var(--space-md);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.footer-brand-badge img {
  height: 56px;
  width: auto;
  display: block;
}
.site-footer p { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.site-footer h4,
.site-footer .footer-heading {
  font-family: var(--font-heading); color: var(--white); font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-sm);
}
.footer-links li { margin-bottom: 0.6em; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--green-accent-light); }
.footer-contact li { display: flex; gap: 0.6em; margin-bottom: 0.8em; font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--green-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: var(--space-sm);
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255,255,255,0.62);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-sm) var(--space-md);
}
.form-field { display: flex; flex-direction: column; gap: 0.4em; min-width: 0; }
.form-field select { width: 100%; max-width: 100%; }
/* Spam trap for bots — hidden from people and screen readers */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: var(--near-black); }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.8em 1em;
  border: 1.5px solid var(--grey-border);
  border-radius: 8px;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(61,96,35,0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field.error input, .form-field.error select, .form-field.error textarea { border-color: #C0392B; }
.form-error-msg { font-size: 0.82rem; color: #C0392B; display: none; }
.form-field.error .form-error-msg { display: block; }
.form-status { margin-top: var(--space-sm); font-family: var(--font-heading); font-weight: 600; padding: 0.8em 1.2em; border-radius: 8px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(152,184,56,0.15); color: var(--green-dark); }
.form-status.error { background: rgba(192,57,43,0.12); color: #A93226; }
.form-status.info { background: rgba(82,131,58,0.08); color: var(--green-darker); }

/* ---------- Misc page bits ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-dark) 85%, var(--green-dark) 100%);
  color: var(--white);
  padding-block: clamp(3rem, 2.5rem + 3vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,0.82); max-width: 60ch; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-bottom: var(--space-sm); }
.breadcrumb a { color: var(--green-accent-light); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: start;
}
.two-col > * { min-width: 0; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.info-card {
  background: var(--off-white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey-border); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-link { display: inline-flex; align-items: center; gap: 0.4em; margin-top: var(--space-sm); font-family: var(--font-heading); font-weight: 600; color: var(--green-dark); }
.map-link:hover { color: var(--green-darker); text-decoration: underline; }

/* Reveal-on-scroll (JS toggles .in-view) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }

/* Respect visitors who turn off animations in their OS settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive nav ---------- */
@media (max-width: 1180px) {
  .header-phone span.phone-text { display: none; }
}
@media (max-width: 1180px) {
  .main-nav {
    position: fixed;
    top: var(--header-h, 81px);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md) clamp(1.25rem, 1rem + 2vw, 3rem);
    gap: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    overflow-y: auto;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0s linear 0s;
  }
  .main-nav a { font-size: 1.1rem; width: 100%; }
  .nav-toggle { display: flex; }
  .header-phone span.phone-text { display: none; }
  .nav-cta { display: inline-flex; margin-top: var(--space-sm); }
  .main-nav a.btn, .main-nav a.btn:hover { color: var(--white); }
  .main-nav a.btn::after { display: none; }
  body.nav-open { overflow: hidden; }
  /* nav is out of flow here, so pin the actions to the right edge beside the toggle */
  .header-actions { margin-left: auto; }
}
@media (max-width: 460px) {
  .header-actions .btn { display: none; }
}
@media (min-width: 1181px) {
  .nav-toggle { display: none; }
}

/* Card titles that are h2 for document outline but sized like h3 */
.h3-size { font-size: clamp(1.2rem, 1.05rem + 0.75vw, 1.5rem); margin-bottom: 0.5em; }

/* Desktop header: sized so logo + 6 links + quote button fit the container at every width
   (incl. laptops such as 1920px screens at 150% scaling = 1280px) */
@media (min-width: 1181px) {
  .header-inner { gap: 1.25rem; }
  .brand img { height: 60px; }
  .main-nav { gap: clamp(0.9rem, 2.2vw - 0.9rem, 1.45rem); }
  .main-nav a { font-size: 0.9rem; }
  .header-actions .btn { padding: 0.8em 1.4em; }
}
@media (min-width: 1441px) {
  .brand img { height: 66px; }
  .main-nav a { font-size: 0.95rem; }
}

/* Bulleted lists inside info cards (Company Facts, Certifications, Typical Callers) */
.info-card ul:not(.footer-contact) li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 0.5em;
}
.info-card ul:not(.footer-contact) li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px;
  background: var(--green-accent);
  border-radius: 50%;
}
.form-status a { text-decoration: underline; font-weight: 600; }
