/* ============================================================
   KTSDI.com — Global Stylesheet
   Industrial services · navy steel + safety orange
   ============================================================ */

:root {
  --navy-900: #0b1624;
  --navy-800: #10203a;
  --navy-700: #17293f;
  --steel-600: #2c405c;
  --steel-300: #8fa3bc;
  --steel-100: #dbe4ee;
  --paper: #f4f6f9;
  --white: #ffffff;
  --orange: #f97316;
  --orange-dark: #e05e07;
  --green: #16a34a;
  --red: #dc2626;
  --ink: #1a2433;
  --radius: 8px;
  --shadow: 0 4px 18px rgba(11, 22, 36, 0.10);
  --shadow-lg: 0 12px 34px rgba(11, 22, 36, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section { padding: 72px 0; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin-bottom: 12px; }
.section-sub { color: #56657a; max-width: 640px; margin-bottom: 36px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font);
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--steel-300); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--steel-100); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--steel-300);
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--steel-100); font-weight: 600; white-space: nowrap; }
.topbar a:hover { color: var(--orange); }
.topbar-right { display: flex; gap: 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-800);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* Real KTSDI logo is black-on-white; invert + screen shows it white on the navy background */
.logo-img { height: 48px; width: auto; filter: invert(1); mix-blend-mode: screen; }
.logo-tag { display: block; font-size: 10px; font-weight: 700; line-height: 1.35; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-300); border-left: 1px solid var(--steel-600); padding-left: 12px; margin-left: 4px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-actions svg { flex-shrink: 0; }
.header-phone { color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; line-height: 1.2; }
.header-phone svg { color: var(--orange); }
.header-phone small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-300); }
.header-phone:hover { color: var(--orange); }

/* ---------- Nav ---------- */
.main-nav { background: var(--navy-700); border-top: 1px solid var(--steel-600); }
.main-nav ul { display: flex; list-style: none; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block;
  padding: 13px 18px;
  color: var(--steel-100);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.main-nav a.active { color: var(--orange); border-bottom-color: var(--orange); }
.nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 8px; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(11,22,36,0.95) 30%, rgba(11,22,36,0.7) 58%, rgba(11,22,36,0.25)),
    url("../Images/home-banner.jpg") center / cover no-repeat,
    var(--navy-900);
  color: #fff;
  padding: 96px 0;
}
.hero-grid { max-width: 640px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; margin-bottom: 18px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p { color: var(--steel-100); font-size: 18px; max-width: 540px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--steel-100); }
.hero-badge svg { color: var(--orange); flex-shrink: 0; }

/* ---------- Grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--navy-800); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border: 1px solid #cdd6e1;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }

/* ---------- Feature strips ---------- */
.strip { background: var(--navy-800); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-top: 40px; padding-bottom: 40px; }
.strip-item { display: flex; gap: 14px; align-items: flex-start; }
.strip-item svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.strip-item h4 { font-size: 15px; margin-bottom: 2px; }
.strip-item p { font-size: 14px; color: var(--steel-100); font-weight: 600; }
a.strip-item:hover p { color: var(--orange); }

.brand-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.brand-tile {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 24px; text-align: center;
  transition: transform 0.16s ease;
}
.brand-tile:hover { transform: translateY(-3px); }
.brand-tile img { height: 64px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 10px; }
.brand-tile p { font-size: 13px; color: #56657a; margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--orange), #fb923c);
  color: #fff;
  border-radius: 14px;
  padding: 46px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.cta-band p { opacity: 0.92; max-width: 560px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(100deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.page-hero p { color: var(--steel-100); max-width: 640px; }

/* ---------- About / services ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; text-align: center; }
.stat .num { font-size: 34px; font-weight: 800; color: var(--orange); }
.stat .lbl { font-size: 13px; color: #56657a; font-weight: 600; }

.service-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.service-card .icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: #fff3e8; color: var(--orange);
  display: grid; place-items: center; margin-bottom: 16px;
}
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: #56657a; }
.service-card ul { margin: 12px 0 0 18px; font-size: 14px; color: #46556b; }
.service-card li { margin: 4px 0; }
.service-card[id] { scroll-margin-top: 140px; }
.service-card.has-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card.has-photo .card-photo { width: 100%; aspect-ratio: 360 / 226; object-fit: cover; }
.service-card.has-photo .card-body { padding: 22px 26px 26px; }
.service-card.has-photo .icon { width: 44px; height: 44px; margin: -44px 0 12px; position: relative; box-shadow: var(--shadow); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 360 / 226; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: #46556b; }
.photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-frame img { width: 100%; }
.brand-logo-img { height: 56px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.brand-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.brand-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid #e4e9f0; }
.service-link { display: block; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.service-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-link:hover h3 { color: var(--orange); }

/* ---------- Contact ---------- */
.contact-info-card { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 30px; }
.contact-info-card h3 { margin-bottom: 18px; }
.contact-line { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14.5px; align-items: flex-start; }
.contact-line svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.contact-line a:hover { color: var(--orange); }
.contact-line .muted { color: var(--steel-300); font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--steel-300); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin: 9px 0; font-size: 14px; }
.footer-grid a:hover { color: var(--orange); }
.footer-about .logo-img { height: 56px; }
.footer-about p { font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-iso { display: inline-flex; align-items: center; gap: 10px; }
.footer-iso img { border-radius: 4px; }
.footer-bottom { border-top: 1px solid var(--steel-600); padding-top: 20px; padding-bottom: 20px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4, .strip-grid, .brand-row, .stat-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { background-position: 70% center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .header-cta, .header-phone span { display: none; }
  .nav-toggle { display: block; }
  .main-nav ul { display: none; flex-direction: column; }
  .main-nav.open ul { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-4, .strip-grid, .brand-row, .stat-grid, .form-grid { grid-template-columns: 1fr; }
  .topbar .container > div:first-child { display: none; }
  .topbar-right { gap: 14px; flex-wrap: wrap; }
  .logo-tag { display: none; }
  .logo-img { height: 42px; }
  .form-field { grid-column: 1 / -1; }
  .cta-band { padding: 32px 26px; }
}
