/* =========================================================
   Pillar One IT Solutions — Global Stylesheet
   ========================================================= */

:root {
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --graphite: #3a3a3a;
  --slate: #6b6b6b;
  --mist: #9a9a9a;
  --line: #e5e5e5;
  --paper: #f7f6f3;
  --paper-warm: #efece5;
  --white: #ffffff;
  --accent: #b8895a;       /* warm bronze — editorial accent */
  --accent-deep: #8a6440;
  --navy: #14233a;         /* deep navy — trust */

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;

  --shadow-sm: 0 1px 2px rgba(10,10,10,0.04);
  --shadow-md: 0 8px 24px rgba(10,10,10,0.06);
  --shadow-lg: 0 24px 60px rgba(10,10,10,0.10);

  --container: 1280px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: opacity .25s ease, color .25s ease; }
a:hover { opacity: .65; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--graphite);
  max-width: 60ch;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(4rem, 9vw, 8rem) 0; }

/* ---------- Top Banner ---------- */
.banner {
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  text-align: center;
  padding: 10px var(--gutter);
  letter-spacing: 0.02em;
}
.banner a { border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 1px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 22px; height: 22px;
  display: inline-block;
  position: relative;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.brand-mark::before { left: 9px; top: 0; width: 4px; height: 22px; }
.brand-mark::after { left: 0; bottom: 0; width: 22px; height: 4px; }

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--graphite); }
.nav-links a:hover { color: var(--ink); opacity: 1; }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--white); opacity: 1; }

.nav-toggle {
  display: none;
  width: 28px; height: 22px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 4px; }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 999px;
  transition: all .3s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-deep); opacity: 1; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); opacity: 1; }
.btn .arrow { transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(ellipse at 80% 10%, rgba(184,137,90,0.08), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .35;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: end;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-deep);
}
.hero p.lead {
  margin-top: 1.75rem;
  max-width: 38ch;
}
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-meta {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.hero-meta div { display: flex; flex-direction: column; gap: .35rem; }
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--ink);
}
.hero-meta span { font-size: 13px; color: var(--slate); }

/* Animated reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Logo strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
  background: var(--white);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.trust-strip .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
.trust-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 2.75rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--graphite);
  font-size: 1.15rem;
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 4rem;
  max-width: 880px;
}
@media (min-width: 880px) {
  .section-head {
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: end;
  }
  .section-head .eyebrow { padding-top: .75rem; }
}

/* ---------- Capabilities ---------- */
.capabilities {
  background: var(--white);
}
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
}
.cap {
  padding: 2.5rem 2rem 2.5rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .3s ease;
}
.cap:not(:last-child) { border-right: 1px solid var(--line); }
.cap > * { padding-left: 2rem; }
@media (min-width: 760px) {
  .cap:nth-child(2n) { border-right: none; }
}
@media (min-width: 1080px) {
  .cap:nth-child(2n) { border-right: 1px solid var(--line); }
  .cap:nth-child(3n) { border-right: none; }
}
.cap-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
  margin-bottom: 1.5rem;
}
.cap h3 { margin-bottom: .85rem; }
.cap p { color: var(--slate); font-size: 15px; }
.cap:hover { background: var(--paper); }

/* ---------- Approach (editorial split) ---------- */
.approach {
  background: var(--paper);
  position: relative;
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 980px) {
  .approach-grid { grid-template-columns: 1fr 1.2fr; gap: 5rem; }
}
.approach-text h2 em { font-style: italic; color: var(--accent-deep); }
.approach-text p { margin-top: 1.5rem; color: var(--graphite); }
.approach-list {
  list-style: none;
  counter-reset: step;
}
.approach-list li {
  counter-increment: step;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(10,10,10,0.12);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
.approach-list li:last-child { border-bottom: 1px solid rgba(10,10,10,0.12); }
.approach-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-deep);
  letter-spacing: .1em;
  padding-top: .35rem;
}
.approach-list h4 { margin-bottom: .35rem; }
.approach-list p { color: var(--slate); font-size: 15px; }

/* ---------- Outcomes (numbers) ---------- */
.outcomes {
  background: var(--ink);
  color: var(--white);
}
.outcomes h2 { color: var(--white); }
.outcomes .eyebrow { color: rgba(255,255,255,0.55); }
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 880px) {
  .outcomes-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  padding: 2.5rem 1.5rem 0 0;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.outcomes-grid .stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.stat-num em { font-style: italic; color: var(--accent); }
.stat-label {
  display: block;
  margin-top: 1rem;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  max-width: 22ch;
}

/* ---------- Insights cards ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .insights-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .insights-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.card {
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: transform .4s ease, box-shadow .4s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-feature { background: var(--navy); color: var(--white); min-height: 480px; }
.card-feature .eyebrow { color: rgba(255,255,255,0.55); }
.card-feature h3 { color: var(--white); }
.card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.card .eyebrow { color: var(--slate); }
.card h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.card-feature h3 { font-size: clamp(1.65rem, 2.4vw, 2.25rem); }
.card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
  display: flex;
  gap: 1rem;
}
.card-feature .card-meta { color: rgba(255,255,255,0.55); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(135deg, var(--paper-warm) 0%, var(--paper) 100%);
  padding: clamp(4rem, 7vw, 6rem) 0;
}
.cta-band .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 880px) {
  .cta-band .container { grid-template-columns: 1.5fr auto; gap: 3rem; }
}
.cta-band h2 { max-width: 18ch; }
.cta-band h2 em { font-style: italic; color: var(--accent-deep); }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  font-size: 14px;
}
.footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 760px) {
  .footer .container { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer .brand { color: var(--white); margin-bottom: 1rem; }
.footer .brand-mark::before, .footer .brand-mark::after { background: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   Page-specific: Inner pages (about, services, contact, rfp)
   ========================================================= */
.page-hero {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  max-width: 18ch;
  margin-top: 1.25rem;
}
.page-hero h1 em { font-style: italic; color: var(--accent-deep); }
.page-hero p.lead { margin-top: 1.75rem; max-width: 60ch; }

/* ---------- Forms ---------- */
.form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 980px) {
  .form-layout { grid-template-columns: 1fr 1.6fr; gap: 5rem; }
}

.form-side h3 { margin-bottom: 1rem; }
.form-side p { color: var(--graphite); margin-bottom: 1.75rem; }
.form-side .contact-block {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 14px;
  color: var(--slate);
}
.form-side .contact-block strong { color: var(--ink); display: block; margin-bottom: .25rem; font-weight: 600; }
.form-side .contact-block a { display: block; margin-top: .25rem; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
  .form .full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .5rem;
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  border-radius: 0;
  transition: border-color .25s ease;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236b6b6b' stroke-width='1.2' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 24px; }
.field textarea { min-height: 140px; resize: vertical; padding-top: 14px; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--ink); }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 1rem;
}
.consent {
  font-size: 12px;
  color: var(--slate);
  max-width: 50ch;
}
.consent a { color: var(--ink); border-bottom: 1px solid var(--line); }

.form-success {
  display: none;
  padding: 2.5rem;
  background: var(--paper);
  border-left: 3px solid var(--accent-deep);
  border-radius: 4px;
  margin-top: 1.5rem;
}
.form-success.show { display: block; }
.form-success h4 { margin-bottom: .5rem; }
.form-success p { color: var(--graphite); }

/* ---------- Checkbox group (RFP) ---------- */
.checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 640px) {
  .checks { grid-template-columns: 1fr 1fr; }
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
  font-size: 14px;
}
.check-item:hover { border-color: var(--graphite); }
.check-item input { accent-color: var(--ink); margin-top: 2px; }
.check-item.checked { border-color: var(--ink); background: var(--paper); }

/* ---------- About: bio block ---------- */
.bio-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 980px) { .bio-block { grid-template-columns: 1fr 1.4fr; gap: 5rem; } }
.bio-portrait {
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, var(--paper-warm), var(--paper)),
    var(--paper);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.bio-portrait::after {
  content: "P1";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 10rem);
  font-style: italic;
  color: rgba(184,137,90,0.25);
}
.bio-text h2 em { font-style: italic; color: var(--accent-deep); }
.bio-text p { margin-top: 1.5rem; color: var(--graphite); }
.bio-credentials {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.bio-credentials div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: .25rem;
}
.bio-credentials div span { font-size: 13px; color: var(--slate); }

/* ---------- Services: detailed list ---------- */
.svc-list {
  border-top: 1px solid var(--line);
}
.svc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
@media (min-width: 880px) {
  .svc-row { grid-template-columns: auto 1fr 1.5fr; gap: 4rem; align-items: start; }
}
.svc-row:hover { background: var(--paper); }
.svc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-deep);
  letter-spacing: .12em;
  padding-top: .5rem;
}
.svc-title h3 em { font-style: italic; color: var(--accent-deep); }
.svc-desc p { color: var(--graphite); }
.svc-desc ul {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.svc-desc li {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  padding: 4px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--graphite);
}

/* ---------- Helpers ---------- */
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }
.text-accent { color: var(--accent-deep); font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
