/* ============================================================
   THB Company — Main Stylesheet
   Covers: all pages (index, services, about, portfolio,
           clients/industries, contact)
   ============================================================ */

/* ── Variables ── */
:root {
  --green:       #4a6741;
  --green-dark:  #2e3f2c;
  --green-light: #7c907c;
  --green-pale:  #f0f4ef;
  --orange:      #DE5328;
  --orange-dark: #b84220;
  --ink:         #1e1e1e;
  --ink-mid:     #444444;
  --ink-light:   #6b6b6b;
  --cream:       #f8f6f1;
  --white:       #ffffff;
  --border:      #ddd8cc;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Source Sans 3', system-ui, sans-serif;
  --radius:      4px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--orange); }
ul { list-style: none; }

/* ── Utilities ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-outline-green { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline-green:hover { background: var(--green); color: var(--white); }
.btn-white { background: var(--white); color: var(--orange); font-weight: 700; }
.btn-white:hover { background: #f5f5f5; color: var(--orange-dark); transform: translateY(-1px); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--green); }

.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Top bar ── */
#topbar {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 7px 0;
}
#topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
#topbar a { color: rgba(255,255,255,0.85); }
#topbar a:hover { color: var(--white); }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contact span { display: flex; align-items: center; gap: 5px; }

/* ── Header ── */
#header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}
#logo img { height: 60px; width: auto; }

/* ── Nav ── */
#nav ul { display: flex; gap: 4px; align-items: center; }
#nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-mid);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
#nav ul li a:hover,
#nav ul li a.active { color: var(--green); background: var(--green-pale); }
#nav ul li a.nav-cta { background: var(--orange); color: var(--white); margin-left: 8px; }
#nav ul li a.nav-cta:hover { background: var(--orange-dark); color: var(--white); }

/* Dropdown */
#nav li.has-dropdown { position: relative; }
#nav li.has-dropdown > ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 0;
  padding: 6px 0;
}
#nav li.has-dropdown > ul li a { padding: 9px 18px; border-radius: 0; font-size: 0.875rem; }
#nav li.has-dropdown:hover > ul { display: flex; }

/* ── Hamburger ── */
#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
#menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}
#menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; }
#menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Cert badges (topbar + footer) ── */
.cert-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-right: 6px;
}

/* ── Page hero (inner pages) ── */
#page-hero {
  background: var(--green-dark);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
#page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 40px,
    rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px
  );
}
.page-hero-content { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.3); }
#page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
#page-hero h1 em { font-style: italic; color: #a8c4a0; }
#page-hero > .container > .page-hero-content > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  line-height: 1.7;
}

/* ── CTA Band ── */
#cta-band {
  padding: 72px 0;
  background: var(--orange);
  color: var(--white);
  text-align: center;
}
#cta-band .section-title { color: var(--white); margin-bottom: 14px; }
#cta-band .section-label { color: rgba(255,255,255,0.6); }
#cta-band > .container > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
#footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
/* UPDATED: removed filter: brightness(0) invert(1) which was causing a white color overlay on the footer logo */
.footer-brand img { height: 50px; width: auto; margin-bottom: 16px; opacity: 0.9; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; }
.footer-contact a { color: rgba(255,255,255,0.65); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-cert-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-right: 6px;
}

/* ============================================================
   INDEX — Hero & homepage sections
   ============================================================ */

#hero {
  position: relative;
  background: var(--green-dark);
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,40,28,0.92) 0%, rgba(46,63,44,0.75) 60%, rgba(74,103,65,0.5) 100%);
  z-index: 1;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,255,255,0.018) 40px, rgba(255,255,255,0.018) 41px);
  z-index: 1;
}
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 60px 0; }
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 32px; height: 1px; background: var(--orange); }
.hero-title { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 22px; }
.hero-title em { font-style: italic; color: #a8c4a0; }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.78); line-height: 1.7; margin-bottom: 36px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cert {
  position: absolute; bottom: 32px; right: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius);
  padding: 10px 18px; color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 600;
}
.hero-cert::before { content: '✓'; display: inline-flex; width: 20px; height: 20px; background: var(--orange); color: white; border-radius: 50%; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.hero-dots { position: absolute; bottom: 32px; left: 24px; z-index: 2; display: flex; gap: 8px; }
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: background 0.3s, transform 0.3s; border: none; }
.hero-dot.active { background: var(--orange); transform: scale(1.3); }

#services-strip { background: var(--green); color: var(--white); padding: 0; }
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.service-item { padding: 22px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,0.12); transition: background 0.2s; cursor: default; }
.service-item:last-child { border-right: none; }
.service-item:hover { background: rgba(255,255,255,0.08); }
.service-icon { font-size: 22px; margin-bottom: 8px; display: block; }
.service-item h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.3; }

#intro { padding: 80px 0; background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.intro-text p { color: var(--ink-mid); margin-bottom: 16px; font-size: 1.05rem; }
.intro-text .lead { font-size: 1.15rem; color: var(--ink); font-weight: 300; line-height: 1.75; }
.intro-text .btn { margin-top: 10px; }
.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat-card { background: var(--green-pale); border: 1px solid #dde8db; border-radius: 6px; padding: 24px 20px; }
.stat-card .stat-number { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 6px; }
.stat-card .stat-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card.accent { background: var(--green); border-color: var(--green); }
.stat-card.accent .stat-number,
.stat-card.accent .stat-label { color: var(--white); }
.stat-card.accent .stat-label { color: rgba(255,255,255,0.7); }

#why { padding: 80px 0; background: var(--cream); border-top: 1px solid var(--border); }
.why-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 32px 28px; position: relative; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.why-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.why-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--green-light); }
.why-card.featured::before { background: var(--orange); }
.why-card-icon { width: 44px; height: 44px; background: var(--green-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 18px; }
.why-card.featured .why-card-icon { background: #fdf0eb; }
.why-card h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.why-card p { font-size: 0.95rem; color: var(--ink-mid); line-height: 1.65; }

#portfolio { padding: 80px 0; background: var(--white); }
.portfolio-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.portfolio-item { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; background: var(--green-pale); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,40,28,0.85) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 16px; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span { color: var(--white); font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.portfolio-item.featured { grid-column: span 2; grid-row: span 2; aspect-ratio: unset; }

#industries { padding: 80px 0; background: var(--green-dark); color: var(--white); }
.industries-header { text-align: center; margin-bottom: 48px; }
.industries-header .section-title { color: var(--white); }
.industries-header .section-label { color: rgba(255,255,255,0.5); }
.industries-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.industry-item { padding: 28px 20px; text-align: center; background: rgba(255,255,255,0.04); transition: background 0.2s; }
.industry-item:hover { background: rgba(255,255,255,0.09); }
.industry-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.industry-item h3 { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.85); }

#certifications { padding: 56px 0; background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cert-header { text-align: center; margin-bottom: 36px; }
.cert-header p { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-light); }
.cert-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.cert-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.75; transition: opacity 0.2s; }
.cert-logo:hover { opacity: 1; }
.cert-logo img { height: 52px; width: auto; object-fit: contain; filter: grayscale(30%); }
.cert-logo span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-light); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-content > * { animation: fadeUp 0.7s ease both; }
.hero-content .hero-eyebrow  { animation-delay: 0.1s; }
.hero-content .hero-title    { animation-delay: 0.25s; }
.hero-content .hero-subtitle { animation-delay: 0.4s; }
.hero-content .hero-actions  { animation-delay: 0.55s; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */

#service-nav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 88px; z-index: 90; }
.service-nav-inner { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.service-nav-inner::-webkit-scrollbar { display: none; }
.service-nav-item { flex-shrink: 0; padding: 14px 20px; font-size: 0.85rem; font-weight: 600; color: var(--ink-mid); border-bottom: 3px solid transparent; white-space: nowrap; transition: color 0.2s, border-color 0.2s; cursor: pointer; }
.service-nav-item:hover { color: var(--green); }
.service-nav-item.active { color: var(--green); border-bottom-color: var(--orange); }

.service-section { padding: 80px 0; scroll-margin-top: 140px; }
.service-section:nth-child(even) { background: var(--cream); }
.service-section:nth-child(odd) { background: var(--white); }
.service-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.service-layout.reverse { direction: rtl; }
.service-layout.reverse > * { direction: ltr; }

.service-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--green-pale); border: 1px solid #cddecb; border-radius: 20px; padding: 5px 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.service-tag.healthcare { background: #fdf0eb; border-color: #f5c9b5; color: var(--orange-dark); }
.service-tag.safety { background: #fff8ed; border-color: #f5dfa0; color: #8a6000; }

.service-content h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: 18px; }
.service-content h2 em { font-style: italic; color: var(--green); }
.service-content p { color: var(--ink-mid); margin-bottom: 16px; font-size: 1rem; line-height: 1.75; }
.service-content p.lead { font-size: 1.1rem; color: var(--ink); font-weight: 300; }

.what-we-do { margin: 24px 0; border-left: 3px solid var(--green-light); padding-left: 20px; }
.what-we-do h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 12px; }
.what-we-do ul li { padding: 5px 0; font-size: 0.95rem; color: var(--ink-mid); display: flex; align-items: flex-start; gap: 10px; }
.what-we-do ul li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-top: 8px; flex-shrink: 0; }

.service-cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.cert-note { font-size: 0.8rem; color: var(--ink-light); display: flex; align-items: center; gap: 6px; }
.cert-note::before { content: '✓'; display: inline-flex; width: 16px; height: 16px; background: var(--green); color: white; border-radius: 50%; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; }

.service-visual { position: relative; }
.service-img-wrap { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--green-pale); box-shadow: var(--shadow-lg); }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.service-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; background: linear-gradient(135deg, var(--green-pale) 0%, #dde8db 100%); }
.service-img-placeholder .placeholder-icon { font-size: 56px; opacity: 0.5; }
.service-img-placeholder p { font-size: 0.8rem; color: var(--green-light); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.service-badge { position: absolute; bottom: -16px; right: 20px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 12px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; }
.service-badge .badge-icon { font-size: 24px; }
.service-badge .badge-text strong { display: block; font-size: 0.85rem; color: var(--ink); }
.service-badge .badge-text span { font-size: 0.75rem; color: var(--ink-light); }

#process { padding: 80px 0; background: var(--green-dark); color: var(--white); }
.process-header { text-align: center; margin-bottom: 56px; }
.process-header .section-title { color: var(--white); }
.process-header .section-label { color: rgba(255,255,255,0.45); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.process-step { padding: 32px 24px; background: rgba(255,255,255,0.04); text-align: center; transition: background 0.2s; }
.process-step:hover { background: rgba(255,255,255,0.08); }
.step-number { font-family: var(--font-serif); font-size: 3rem; font-weight: 700; color: rgba(255,255,255,0.1); line-height: 1; margin-bottom: 12px; }
.step-title { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 10px; }
.step-desc { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

#story { padding: 80px 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-text p { color: var(--ink-mid); margin-bottom: 16px; font-size: 1rem; line-height: 1.75; }
.story-text p.lead { font-size: 1.1rem; color: var(--ink); font-weight: 300; }
.story-img { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-lg); }
.story-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

#timeline { padding: 80px 0; background: var(--cream); border-top: 1px solid var(--border); }
.timeline-header { text-align: center; margin-bottom: 56px; }
.timeline-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline-items::before { content: ''; position: absolute; top: 28px; left: 0; right: 0; height: 2px; background: var(--border); }
.timeline-item { padding: 0 20px; position: relative; text-align: center; }
.timeline-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--green); margin: 20px auto 20px; position: relative; z-index: 1; }
.timeline-item.highlight .timeline-dot { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.timeline-year { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.timeline-item.highlight .timeline-year { color: var(--orange); }
.timeline-desc { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.5; }

#values { padding: 80px 0; }
.values-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card { background: var(--cream); border: 1px solid var(--border); border-radius: 6px; padding: 32px 28px; }
.value-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.value-card h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.value-card p { font-size: 0.95rem; color: var(--ink-mid); line-height: 1.65; }

#equipment { padding: 80px 0; background: var(--green-dark); color: var(--white); }
.equip-header { max-width: 600px; margin-bottom: 48px; }
.equip-header .section-title { color: var(--white); }
.equip-header .section-label { color: rgba(255,255,255,0.45); }
.equip-header p { color: rgba(255,255,255,0.7); font-size: 1rem; line-height: 1.7; }
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.equip-item { background: rgba(255,255,255,0.04); padding: 28px 24px; transition: background 0.2s; }
.equip-item:hover { background: rgba(255,255,255,0.08); }
.equip-item h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 8px; }
.equip-item p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

#certs { padding: 56px 0; background: var(--cream); border-top: 1px solid var(--border); }
.certs-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.certs-text .section-title { margin-bottom: 14px; }
.certs-text p { color: var(--ink-mid); font-size: 1rem; margin-bottom: 16px; }
.cert-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.cert-row { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 14px 18px; }
.cert-row img { height: 40px; width: auto; object-fit: contain; flex-shrink: 0; }
.cert-row div strong { display: block; font-size: 0.9rem; color: var(--ink); }
.cert-row div span { font-size: 0.8rem; color: var(--ink-light); }
.certs-img { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-lg); }
.certs-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */

#filter-bar { padding: 24px 0; border-bottom: 1px solid var(--border); background: var(--white); position: sticky; top: 88px; z-index: 90; }
.filter-inner { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-btn { padding: 7px 18px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; border: 1px solid var(--border); background: var(--white); color: var(--ink-mid); cursor: pointer; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: var(--green); color: var(--white); border-color: var(--green); }

#projects { padding: 56px 0 80px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--white); transition: box-shadow 0.2s, transform 0.2s; }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.project-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--green-pale); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-info { padding: 20px 22px; }
.project-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 10px; margin-bottom: 10px; background: var(--green-pale); color: var(--green); }
.project-tag.healthcare { background: #fdf0eb; color: var(--orange-dark); }
.project-tag.education { background: #f0f4ef; color: var(--green-dark); }
.project-tag.research { background: #f5f0fd; color: #5c3d99; }
.project-tag.commercial { background: #fff8ed; color: #8a6000; }
.project-info h3 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.project-info p { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.6; }
.project-meta { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; gap: 16px; flex-wrap: wrap; }
.project-meta span { font-size: 0.78rem; color: var(--ink-light); display: flex; align-items: center; gap: 4px; }

.project-card.featured { grid-column: span 3; }
.featured-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.featured-thumb { aspect-ratio: unset; min-height: 340px; }
.featured-content { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-content .project-tag { margin-bottom: 14px; }
.featured-content h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; line-height: 1.25; }
.featured-content p { font-size: 1rem; color: var(--ink-mid); line-height: 1.7; margin-bottom: 12px; }
.featured-content .project-meta { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }

#stats-band { padding: 56px 0; background: var(--green); color: var(--white); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.stat-item { text-align: center; padding: 24px 16px; }
.stat-num { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.65); margin-top: 8px; }

/* ============================================================
   INDUSTRIES PAGE
   ============================================================ */

#industries-page { padding: 80px 0; }
.industry-section { margin-bottom: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--border); }
.industry-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.industry-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.industry-layout.reverse { direction: rtl; }
.industry-layout.reverse > * { direction: ltr; }
.industry-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.industry-icon-wrap { width: 52px; height: 52px; background: var(--green-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.industry-icon-wrap.orange { background: #fdf0eb; }
.industry-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-light); margin-bottom: 4px; }
.industry-label.orange { color: var(--orange-dark); }
.industry-header h2 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.industry-header h2 em { font-style: italic; color: var(--green); }
.industry-text p { color: var(--ink-mid); margin-bottom: 14px; font-size: 1rem; line-height: 1.75; }
.relevant-services { margin-top: 20px; padding: 18px 20px; background: var(--green-pale); border-radius: 6px; border: 1px solid #cddecb; }
.relevant-services h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.service-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.service-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; background: var(--white); border: 1px solid #cddecb; color: var(--green); transition: background 0.2s, color 0.2s; }
.service-pill a { color: var(--green); }
.service-pill:hover { background: var(--green); color: var(--white); }
.service-pill:hover a { color: var(--white); }
.industry-img { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-lg); }
.industry-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

#cleanroom { padding: 64px 0; background: var(--green-dark); color: var(--white); }
.cleanroom-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cleanroom-text .section-title { color: var(--white); }
.cleanroom-text .section-label { color: rgba(255,255,255,0.45); }
.cleanroom-text p { color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.75; margin-bottom: 14px; }
.cleanroom-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.spec-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 16px 18px; }
.spec-item h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.spec-item p { font-size: 0.9rem; color: var(--white); line-height: 1.4; }
.cleanroom-img { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-lg); }
.cleanroom-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */

#contact-main { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-card { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 24px 22px; }
.info-card h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 14px; }
.info-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.info-row:last-child { margin-bottom: 0; }
.info-icon { width: 36px; height: 36px; background: var(--green-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.info-row div strong { display: block; font-size: 0.88rem; color: var(--ink); font-weight: 600; }
.info-row div a { font-size: 0.95rem; color: var(--green); }
.info-row div a:hover { color: var(--orange); }
.info-row div span { font-size: 0.95rem; color: var(--ink-mid); }
.cert-panel { background: var(--green); border-radius: 8px; padding: 24px 22px; color: var(--white); }
.cert-panel h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.cert-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.cert-item::before { content: '✓'; display: inline-flex; width: 18px; height: 18px; background: rgba(255,255,255,0.2); border-radius: 50%; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }

.contact-form-wrap h2 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.contact-form-wrap > p { color: var(--ink-mid); margin-bottom: 28px; font-size: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-mid); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(74,103,65,0.12); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.btn-submit { display: inline-block; padding: 13px 32px; background: var(--orange); color: var(--white); border: none; border-radius: var(--radius); font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.btn-submit:hover { background: var(--orange-dark); transform: translateY(-1px); }
.form-note { font-size: 0.8rem; color: var(--ink-light); }
.form-success { display: none; background: #f0f4ef; border: 1px solid #cddecb; border-radius: 6px; padding: 16px 20px; color: var(--green); font-weight: 600; margin-top: 16px; }
.form-success.show { display: block; }

#map-section { padding: 0 0 80px; }
.map-wrap { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-wrap iframe { display: block; width: 100%; height: 400px; border: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-item:nth-child(3) { border-right: none; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item.featured { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .equip-grid { grid-template-columns: 1fr 1fr; }
  .timeline-items { grid-template-columns: 1fr 1fr; gap: 24px; }
  .timeline-items::before { display: none; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-column: span 2; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .cleanroom-inner { gap: 40px; }
}

@media (max-width: 768px) {
  #topbar .container { flex-direction: column; align-items: flex-start; }
  #menu-toggle { display: flex; }
  #nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 200;
  }
  #nav.open { display: block; }
  #nav ul { flex-direction: column; gap: 0; padding: 12px 0; }
  #nav ul li a { padding: 12px 24px; border-radius: 0; font-size: 1rem; }
  #nav ul li a.nav-cta { margin: 10px 24px; border-radius: var(--radius); }
  #nav li.has-dropdown > ul { display: block; position: static; box-shadow: none; border: none; border-top: 1px solid var(--border); background: var(--cream); padding: 4px 0; }
  #nav li.has-dropdown > ul li a { padding-left: 40px; }

  #service-nav { top: 76px; }
  #filter-bar { top: 76px; }

  .service-layout,
  .service-layout.reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .service-badge { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item:nth-child(2n) { border-right: none; }
  .service-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.12); }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-cert { display: none; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr; }
  .certs-inner { grid-template-columns: 1fr; gap: 32px; }
  .industry-layout,
  .industry-layout.reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .cleanroom-inner { grid-template-columns: 1fr; gap: 32px; }
  .cleanroom-specs { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .featured-inner { grid-template-columns: 1fr; }
  .featured-thumb { min-height: 220px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .intro-stats { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
