/* South Central Industrial -- v2 stylesheet
   Brand palette preserved from original site:
   Primary (plum):  #3A1A4E
   Ink (text):      #1A1A1A
   Gray (muted):    #7C7B7E
   Gray light:      #DBD9DB
   Background:      #FAF9FA
*/

:root {
  --color-primary: #3A1A4E;
  --color-primary-dark: #27122f;
  --color-primary-light: #5c3477;
  --color-ink: #1a1a1a;
  --color-gray: #7c7b7e;
  --color-gray-light: #dbd9db;
  --color-bg: #faf9fa;
  --color-white: #ffffff;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(26, 10, 36, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 10, 36, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary);
  color: #fff; padding: 12px 20px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s ease;
}
.btn:hover { text-decoration: none; }
/* Compound .btn.btn-X selectors are used deliberately: buttons are sometimes nested
   inside containers (nav, footer) that set their own `a { color }` rule at a higher
   specificity than a single class. Compounding keeps button text color reliable
   regardless of where a button is placed. */
.btn.btn-primary { background: var(--color-primary); color: #fff; }
.btn.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }
.btn.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn.btn-outline-light:hover { background: #fff; color: var(--color-primary); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(250,249,250,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-gray-light);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand-name { font-weight: 800; font-size: 1rem; color: var(--color-primary); line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--color-gray); letter-spacing: 0.06em; }

.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  color: var(--color-ink); font-weight: 600; font-size: 0.92rem; padding: 10px 14px;
  border-radius: 999px; transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--color-primary); color: #fff; text-decoration: none; }
.main-nav .btn { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-ink); margin: 5px 0; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-light); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px; }
  .main-nav a { display: block; text-align: center; }
  .main-nav .btn { margin: 8px 16px 12px; }
}

/* Hero */
.hero {
  position: relative; color: #fff; padding: 130px 0 100px;
  background-size: cover; background-position: center;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(39,18,47,0.94), rgba(58,26,78,0.82) 55%, rgba(58,26,78,0.55));
}
.hero-small { padding: 90px 0 70px; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #e7cfff; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 820px; }
.hero p.lead { font-size: 1.15rem; max-width: 640px; color: #ece5f0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Stats */
.stats { background: var(--color-primary); color: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0;
  text-align: center;
}
.stats-grid .num { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
.stats-grid .label { font-size: 0.85rem; color: #d9c7e6; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 720px; margin: 0 0 42px; }
.section-head .eyebrow-dark {
  color: var(--color-primary); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-top: 8px; }
.section-head p { color: var(--color-gray); font-size: 1.05rem; }
.bg-alt { background: var(--color-white); border-top: 1px solid var(--color-gray-light); border-bottom: 1px solid var(--color-gray-light); }

/* Cards / grids */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-white); border: 1px solid var(--color-gray-light);
  border-radius: var(--radius); padding: 28px; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--color-primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; }
.card p { color: var(--color-gray); font-size: 0.95rem; margin-bottom: 0; }

/* Photo feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.feature-reverse .feature-media { order: 2; }

/* Project gallery */
.project-card {
  background: #fff; border: 1px solid var(--color-gray-light); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.project-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-gray-light); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .body { padding: 18px 20px 22px; flex: 1; }
.project-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.project-card p { color: var(--color-gray); font-size: 0.9rem; margin: 0; }

/* Team */
.team-card { display: flex; gap: 20px; background: #fff; border: 1px solid var(--color-gray-light); border-radius: var(--radius); padding: 26px; }
.avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--color-primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
}
.team-card h3 { margin-bottom: 2px; font-size: 1.15rem; }
.team-role { color: var(--color-primary); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; display: block; }
.team-card p { color: var(--color-gray); font-size: 0.92rem; }
.team-card a { font-size: 0.88rem; font-weight: 600; }

/* Certifications */
.cert-row { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.cert-row img { max-height: 64px; width: auto; filter: grayscale(15%); }

/* CTA band */
.cta-band { background: var(--color-primary); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: #e9def0; max-width: 600px; margin: 0 auto 24px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--color-gray-light); }
.contact-item:last-child { border-bottom: none; }
.contact-item .icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--color-bg); border: 1px solid var(--color-gray-light);
  display: flex; align-items: center; justify-content: center; flex: none; color: var(--color-primary); font-size: 1.1rem;
}
address { font-style: normal; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-gray-light); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--color-primary-dark); color: #d8cfdd; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-grid a { color: #d8cfdd; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 46px; margin-bottom: 14px; opacity: 0.95; }
.footer-nav li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: #b6a9bd;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
