/* ============================================================
   SUMMERLIN INTEGRITY — Site Styles
   Palette: ink #0e1318 · white · steel blue #2e9fd0 · slate
   ============================================================ */

:root {
  --ink: #0e1318;
  --ink-2: #161d24;
  --ink-3: #1f2832;
  --steel: #2e9fd0;
  --steel-dark: #1b7fa8;
  --steel-soft: #e3f2fa;
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --line: #e2e7eb;
  --txt: #2a323a;
  --txt-soft: #5b6770;
  --txt-inverse: #c9d4dc;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(14, 19, 24, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 19, 24, 0.18);
  --maxw: 1180px;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--txt);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--steel-dark); text-decoration: none; }
a:hover { color: var(--steel); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--steel-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--steel);
}
.on-dark .eyebrow { color: var(--steel); }

.lead {
  font-size: 1.18rem;
  color: var(--txt-soft);
  max-width: 740px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
}
.btn-primary { background: var(--steel); color: #fff; }
.btn-primary:hover { background: var(--steel-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(46, 159, 208, 0.35); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 19, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

/* Wordmark lockup (matches logo) */
.wordmark { display: inline-block; line-height: 1; }
.wordmark .wm-top {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: #fff;
  display: block;
}
.wordmark .wm-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.wordmark .wm-bar {
  flex: 0 0 auto;
  width: 84px;
  height: 6px;
  background: var(--steel);
}
.wordmark .wm-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.46em;
  color: var(--txt-inverse);
  text-transform: uppercase;
}
.wordmark:hover .wm-top { color: #fff; }

/* Light variant (footer on white, print) */
.wordmark.dark .wm-top { color: var(--ink); }
.wordmark.dark .wm-sub { color: var(--txt-soft); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-inverse);
  border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.main-nav a.active { color: var(--steel); }
.main-nav .nav-cta {
  margin-left: 10px;
  background: var(--steel);
  color: #fff;
  font-weight: 700;
}
.main-nav .nav-cta:hover { background: var(--steel-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #0e1318 0%, #14202b 55%, #0e1318 100%);
  color: #fff;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.hero-inner {
  position: relative;
  padding: 110px 0 130px;
  max-width: 780px;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--steel); }
.hero p {
  margin: 26px 0 38px;
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--txt-inverse);
  max-width: 620px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stats .stat {
  flex: 1;
  padding: 26px 28px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.hero-stats .stat span {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-inverse);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink); color: var(--txt-inverse); }
.section.dark h2, .section.dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 16px; color: var(--txt-soft); font-size: 1.1rem; }
.section.dark .section-head p { color: var(--txt-inverse); }

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 159, 208, 0.45);
}
.card .icon {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: var(--steel-soft);
  color: var(--steel-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card .icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--txt-soft); font-size: 0.99rem; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Service category cards on dark */
.section.dark .card {
  background: var(--ink-2);
  border-color: rgba(255,255,255,0.09);
}
.section.dark .card h3 { color: #fff; }
.section.dark .card p { color: var(--txt-inverse); }
.section.dark .card:hover { border-color: var(--steel); }

/* Service list item */
.svc-list { list-style: none; margin-top: 18px; }
.svc-list li {
  position: relative;
  padding: 9px 0 9px 28px;
  color: var(--txt-inverse);
  font-size: 0.97rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.svc-list li:last-child { border-bottom: none; }
.svc-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 3px;
  background: var(--steel);
}
.section:not(.dark) .svc-list li { color: var(--txt-soft); border-color: var(--line); }

/* ---------- Values band ---------- */
.values .card { text-align: center; }
.values .card .icon { margin-left: auto; margin-right: auto; border-radius: 50%; width: 72px; height: 72px; }
.values .card .icon svg { width: 36px; height: 36px; }

/* ---------- Industries strip ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.industry {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.industry:hover { border-color: var(--steel); transform: translateY(-4px); }
.industry svg { width: 34px; height: 34px; color: var(--steel); margin: 0 auto 14px; }
.industry span {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- Split / About ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.split .visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 380px;
  background: linear-gradient(150deg, var(--ink-2), var(--ink-3));
}
.split .visual svg, .split .visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.checklist { list-style: none; margin-top: 26px; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 36px;
  font-size: 1.02rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--steel-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b7fa8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- HSE tenets ---------- */
.tenet {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.tenet:last-child { border-bottom: none; }
.tenet .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--steel);
  line-height: 1;
}
.tenet h3 { margin-bottom: 8px; }
.tenet p { color: var(--txt-soft); }

.stopwork {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
}
.stopwork svg { width: 56px; height: 56px; color: var(--steel); }
.stopwork h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.stopwork p { color: var(--txt-inverse); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel) 100%);
  color: #fff;
  text-align: center;
  padding: 84px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.92); font-size: 1.12rem; max-width: 640px; margin: 0 auto 36px; }
.cta-band .btn-dark:hover { background: #060a0d; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.field label .req { color: var(--steel-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--txt);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 7px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--steel);
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }

.form-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--txt-soft);
}

/* ---------- Contact info panel ---------- */
.contact-panel {
  background: var(--ink);
  color: var(--txt-inverse);
  border-radius: var(--radius);
  padding: 44px;
  height: 100%;
}
.contact-panel h3 { color: #fff; font-size: 1.5rem; margin-bottom: 22px; }
.contact-panel .ci {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-panel .ci:last-of-type { border-bottom: none; }
.contact-panel .ci svg { width: 24px; height: 24px; color: var(--steel); flex: 0 0 auto; margin-top: 3px; }
.contact-panel .ci strong { display: block; color: #fff; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.contact-panel .ci a { color: var(--txt-inverse); }
.contact-panel .ci a:hover { color: var(--steel); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, #0e1318 0%, #15222e 70%, #0e1318 100%);
  color: #fff;
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero p { margin-top: 18px; font-size: 1.15rem; color: var(--txt-inverse); max-width: 660px; }
.page-hero .hero-grid-art { position: absolute; right: -60px; top: -40px; opacity: 0.16; width: 540px; height: 540px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0e12;
  color: var(--txt-inverse);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: var(--txt-inverse); font-size: 0.96rem; }
.site-footer a:hover { color: var(--steel); }
.footer-about p { font-size: 0.95rem; margin-top: 18px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #7a8893;
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stats .stat { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,0.12); }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .hero-inner { padding: 72px 0 88px; }
  .section { padding: 64px 0; }
  .stopwork { grid-template-columns: 1fr; padding: 34px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 26px;
    gap: 4px;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 12px; }
  .main-nav .nav-cta { margin-left: 0; margin-top: 10px; text-align: center; }
}
