/* ===========================================================
   ECZACT — corporate site stylesheet
   =========================================================== */

:root {
  --ink: #0b1520;
  --ink-soft: #2c3a4a;
  --paper: #f6f7f9;
  --paper-raised: #ffffff;
  --line: #e2e6ea;
  --navy: #0e2a47;
  --navy-deep: #081a2e;
  --gold: #b98a3d;
  --gold-soft: #e7c98a;
  --muted: #5c6b7a;
  --radius: 4px;
  --maxw: 1180px;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

.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;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- header ---------- */

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

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
}

.brand .mark {
  width: 40px;
  height: 27px;
  flex: none;
}

nav.primary { display: flex; align-items: center; gap: 36px; }

nav.primary a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--navy-deep);
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: transparent;
  color: var(--navy-deep) !important;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 2px solid transparent !important;
  transition: color .15s ease, border-color .15s ease;
}

.nav-cta:hover,
.nav-cta[aria-current="page"] {
  color: var(--navy) !important;
  border-bottom-color: var(--gold) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
  margin: 5px 0;
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 62%, #123456 100%);
  color: #eef2f6;
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(185,138,61,0.20), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(185,138,61,0.10), transparent 40%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(231,201,138,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.14;
  font-weight: 600;
  max-width: 780px;
  margin: 0 0 22px;
  color: #fff;
}

.hero .lede {
  max-width: 620px;
  font-size: 18px;
  color: #c6d2de;
  margin: 0 0 38px;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); }

.btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px;
  margin-top: 64px;
  max-width: 640px;
}

.hero-stats .stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  color: #fff;
  font-weight: 600;
}

.hero-stats .stat span {
  font-size: 13px;
  color: #a9b8c6;
}

/* ---------- section scaffolding ---------- */

section { padding: 88px 0; }
section.tight { padding: 64px 0; }
section.on-paper-raised { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin: 0 0 52px; }

.section-head .kicker {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.22;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--navy-deep);
}

.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
}

.card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--navy);
}

.product-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a5a17;
  background: #fbf3e2;
  border: 1px solid #e8ce8e;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--navy-deep);
}

.card p { color: var(--muted); font-size: 15px; margin: 0; }

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}
.card ul li { margin-bottom: 6px; }

/* pillars strip on home */
.pillars { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars .grid-4 .pillar { text-align: center; padding: 6px 8px; }
.pillar b {
  display: block;
  font-family: var(--font-serif);
  font-size: 15.5px;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.pillar span { font-size: 13.5px; color: var(--muted); }

/* logic / diagram-style block */
.approach-steps { counter-reset: step; margin-top: 12px; }
.approach-step {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.approach-step:last-child { border-bottom: 1px solid var(--line); }
.approach-step .num {
  counter-increment: step;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold);
  font-weight: 600;
  width: 44px;
  flex: none;
}
.approach-step h3 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 18px; color: var(--navy-deep); }
.approach-step p { margin: 0; color: var(--muted); font-size: 15px; max-width: 640px; }

/* quote / positioning block */
.positioning {
  background: var(--navy-deep);
  color: #dbe4ec;
}
.positioning blockquote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
  font-weight: 500;
  color: #fff;
  margin: 0;
  max-width: 820px;
}
.positioning cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 14px;
  color: var(--gold-soft);
}

/* values / about grid */
.value-item { padding: 4px 0; }
.value-item h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--navy-deep);
  margin: 0 0 8px;
}
.value-item p { color: var(--muted); font-size: 15px; margin: 0; }

/* timeline (about) */
.timeline { border-left: 2px solid var(--line); margin-left: 6px; }
.timeline-item { position: relative; padding: 0 0 40px 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--paper);
}
.timeline-item h3 { font-family: var(--font-serif); font-size: 17px; margin: 0 0 6px; color: var(--navy-deep); }
.timeline-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* services page: capability rows */
.capability {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.capability:last-child { border-bottom: 1px solid var(--line); }
.capability .label .idx {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}
.capability .label h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--navy-deep);
  margin: 0;
  line-height: 1.3;
}
.capability .body p { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; }
.capability .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.capability .tags span {
  font-size: 12.5px;
  color: var(--navy);
  background: #eef2f6;
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
}

/* engagement models */
.engage-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.engage-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: var(--paper-raised);
}
.engage-card h3 { font-family: var(--font-serif); font-size: 18px; color: var(--navy-deep); margin: 0 0 10px; }
.engage-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: #fff;
  text-align: center;
  padding: 76px 0;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 16px;
}
.cta-band p { color: #c6d2de; max-width: 560px; margin: 0 auto 34px; font-size: 16px; }

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy-deep);
  margin: 0 0 8px;
}
.contact-info .item { margin-bottom: 30px; }
.contact-info .item p { color: var(--muted); margin: 4px 0 0; font-size: 15px; }

.office-list { margin-top: 10px; }
.office-list .office { padding: 16px 0; border-top: 1px solid var(--line); }
.office-list .office:last-child { border-bottom: 1px solid var(--line); }
.office-list .office b { display: block; color: var(--navy-deep); font-size: 15px; margin-bottom: 4px; }
.office-list .office span { color: var(--muted); font-size: 14px; }

form.contact-form {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfd6dd;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14.5px;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.field textarea { resize: vertical; min-height: 110px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  background: #eaf3ec;
  border: 1px solid #bfdcc6;
  color: #235c33;
  border-radius: var(--radius);
  font-size: 14px;
}

.form-error {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  background: #fbeaea;
  border: 1px solid #e3bcbc;
  color: #7a2222;
  border-radius: var(--radius);
  font-size: 14px;
}

.form-error a {
  color: inherit;
  font-weight: 600;
}

/* ---------- footer ---------- */

footer.site {
  background: var(--navy-deep);
  color: #9fb0bf;
  padding: 64px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { font-family: var(--font-serif); font-size: 19px; color: #fff; margin-bottom: 14px; }
.footer-grid p { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7288a0;
  margin: 0 0 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  margin-bottom: 11px;
  color: #c2cdd8;
}
.footer-col a:hover { color: #fff; }
.footer-social-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #9fb0c2;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: color .15s ease, border-color .15s ease;
}
.footer-social:hover { color: var(--gold); border-color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: #6b7d8f;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .grid-3, .grid-4, .engage-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .capability { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-row { padding: 16px 20px; }
  nav.primary { position: fixed; inset: 64px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; z-index: 40; }
  nav.primary.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .engage-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .hero-stats .stat b { font-size: 22px; }
  .two-col { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
