/* ============================================
   GISS — Design Tokens
   Color: Coral #E8623D / Deep Teal #1A4F4A / Off-white #F7F4EF
          Charcoal #22272A / Steel #6B7680 / White #FFFFFF
   Type: Fraunces (display) / Inter (body) / JetBrains Mono (spec data)
   ============================================ */

:root {
  --coral: #E8623D;
  --coral-dark: #C84F2E;
  --teal: #1A4F4A;
  --teal-light: #2A6F68;
  --offwhite: #F7F4EF;
  --white: #FFFFFF;
  --charcoal: #22272A;
  --steel: #6B7680;
  --steel-light: #A8AFB5;
  --line: rgba(34, 39, 42, 0.12);
  --line-light: rgba(247, 244, 239, 0.18);

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1180px;
  --radius: 4px;
}

section[id] {
  scroll-margin-top: 84px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--offwhite);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ============ TYPOGRAPHY ============ */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: 14px;
}

.eyebrow-light { color: var(--coral); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-sub { margin-top: 16px; color: var(--steel); font-size: 1.02rem; max-width: 560px; }

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--charcoal);
}
.btn-ghost:hover { border-color: var(--charcoal); }

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--coral-dark); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--charcoal);
}

/* ============ HERO ============ */

.hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(232, 98, 61, 0.08), transparent),
    var(--offwhite);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 { color: var(--teal); margin-bottom: 22px; }

.hero-lede {
  font-size: 1.08rem;
  color: var(--steel);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Nameplate signature element ---- */

.nameplate {
  background: var(--teal);
  border-radius: 8px;
  padding: 28px 30px 22px;
  box-shadow: 0 24px 60px -20px rgba(26, 79, 74, 0.45);
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}

.nameplate::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(247, 244, 239, 0.14);
  border-radius: 4px;
  pointer-events: none;
}

.nameplate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nameplate-top { margin-bottom: 14px; }

.nameplate-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--offwhite);
  letter-spacing: 0.02em;
}

.nameplate-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--coral);
  border: 1px solid var(--coral);
  padding: 4px 9px;
  border-radius: 2px;
}

.nameplate-divider {
  height: 1px;
  background: var(--line-light);
  margin-bottom: 18px;
}

.nameplate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-bottom: 20px;
}

.nameplate-grid dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--steel-light);
  margin-bottom: 5px;
}

.nameplate-grid dd {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--offwhite);
  line-height: 1.35;
}

.nameplate-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--steel-light);
}

.nameplate-dot { color: #6FBF8B; }

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

.about { padding: 64px 0 100px; }

.about-inner h2 { color: var(--teal); }

.about-body p {
  color: var(--steel);
  font-size: 1.04rem;
  max-width: 760px;
  margin-bottom: 18px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.why-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.why-mark {
  font-family: var(--font-mono);
  color: var(--coral);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 14px;
}

.why-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.why-card p { color: var(--steel); font-size: 0.93rem; margin: 0; }

/* ============ VISION / MISSION / VALUES ============ */

.vmv {
  background: var(--teal);
  padding: 80px 0;
}

.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(247, 244, 239, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.vmv-card {
  background: var(--teal);
  padding: 36px 32px;
}

.vmv-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.vmv-card p {
  color: var(--offwhite);
  font-size: 0.96rem;
  line-height: 1.6;
  opacity: 0.92;
}

.vmv-list { list-style: none; }
.vmv-list li {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--offwhite);
  padding: 7px 0;
  border-bottom: 1px solid var(--line-light);
}
.vmv-list li:last-child { border-bottom: none; }
.vmv-list li::before { content: '— '; color: var(--coral); }

/* ============ PRODUCTS — CATALOGUE ============ */

.products { padding: 100px 0; }

.products h2, .industries h2, .certs h2 { color: var(--teal); }

.catalogue {
  border-top: 1px solid var(--line);
}

.cat-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.cat-row:hover { background: rgba(232, 98, 61, 0.035); }

.cat-code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--steel-light);
  font-weight: 500;
}

.cat-main h3 { font-size: 1.12rem; margin-bottom: 6px; color: var(--charcoal); }
.cat-main p { color: var(--steel); font-size: 0.94rem; max-width: 540px; }

.cat-spec {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--coral-dark);
  background: rgba(232, 98, 61, 0.08);
  padding: 6px 12px;
  border-radius: 3px;
  white-space: nowrap;
}

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

.industries { padding: 0 0 100px; }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.industry-card {
  padding: 36px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}

.industry-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--coral);
  display: block;
  margin-bottom: 18px;
}

.industry-card h3 { margin-bottom: 10px; color: var(--teal); }
.industry-card p { color: var(--steel); font-size: 0.93rem; }

/* ============ CERTIFICATIONS ============ */

.certs { padding: 0 0 100px; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cert-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.cert-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

.cert-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 12px;
  word-break: break-word;
}

.cert-card p { color: var(--steel); font-size: 0.88rem; margin: 0; }

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

.contact {
  background: var(--charcoal);
  padding: 100px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-left h2 { color: var(--offwhite); margin-bottom: 20px; }

.contact-lede {
  color: var(--steel-light);
  font-size: 1.02rem;
  max-width: 440px;
  margin-bottom: 36px;
}

.contact-details {
  display: grid;
  gap: 18px;
}

.contact-details dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}

.contact-details dd {
  font-size: 1rem;
  color: var(--offwhite);
}

.contact-details a:hover { color: var(--coral); }

.contact-form {
  background: var(--offwhite);
  padding: 36px;
  border-radius: 8px;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--charcoal);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.94rem;
  background: var(--white);
  color: var(--charcoal);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--coral);
}

.form-submit { width: 100%; margin-top: 4px; }

.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.2em;
}
.form-status.success { color: var(--teal-light); }
.form-status.error { color: var(--coral-dark); }

/* ============ FOOTER ============ */

.site-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(247, 244, 239, 0.1);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }

.footer-logo-img {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--steel-light);
  line-height: 1.5;
}

.footer-nav { display: flex; gap: 26px; }
.footer-nav a { font-size: 0.86rem; color: var(--steel-light); }
.footer-nav a:hover { color: var(--coral); }

.footer-meta {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--steel);
  padding-top: 28px;
  margin-top: 4px;
  border-top: 1px solid rgba(247, 244, 239, 0.08);
}

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

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-grid, .industry-grid, .cert-grid { grid-template-columns: 1fr; }
  .vmv-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .about, .products, .vmv, .contact { padding: 64px 0; }
  .industries, .certs { padding-bottom: 64px; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--offwhite);
    border-bottom: 1px solid var(--line);
    padding: 20px 28px;
    gap: 18px;
  }

  .cat-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cat-code { display: none; }
  .cat-spec { justify-self: start; }

  h1 { font-size: 2.6rem; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .nameplate { padding: 22px 20px 18px; }
  .nameplate-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-form { padding: 26px 22px; }
}
