/* Keystone Advantage — base styles
   Palette: navy + warm gold on cream
*/

:root {
  --navy:        #14233f;
  --navy-deep:   #0d1830;
  --navy-soft:   #243b66;
  --gold:        #c9a449;
  --gold-warm:   #d8b864;
  --cream:       #faf8f3;
  --paper:       #ffffff;
  --ink:         #1c1c1c;
  --ink-soft:    #4a4a4a;
  --line:        #e6e1d3;
  --shadow:      0 8px 28px rgba(20, 35, 63, 0.08);
  --radius:      10px;
  --maxw:        1140px;
  --serif:       "Georgia", "Times New Roman", serif;
  --sans:        "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy-soft);
  text-decoration: none;
}
a:hover { color: var(--gold); }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em 0;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em 0; color: var(--ink-soft); }

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

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand .mark {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1px;
  overflow: hidden;
}
.brand .mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.brand .name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.brand .name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--gold-warm);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.site-nav a {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-warm);
  border-bottom-color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-warm);
  color: var(--navy);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(13,24,48,0.92), rgba(36,59,102,0.85)),
    radial-gradient(circle at 80% 20%, rgba(201,164,73,0.25), transparent 60%);
  background-color: var(--navy-deep);
  color: #fff;
  padding: 48px 0 44px;
}
.hero h1 {
  color: #fff;
  max-width: 780px;
  font-size: 3rem;
  margin-bottom: 18px;
}
.hero p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  max-width: 680px;
  margin-bottom: 28px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 36px 0 30px;
}
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p {
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  font-size: 1.1rem;
}

/* ---------- Sections ---------- */
section { padding: 36px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-head h2 { font-size: 2.1rem; }

/* ---------- Service grid ---------- */
.service-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.service-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 16px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.96rem; }

/* ---------- Two-column blocks ---------- */
.two-col {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.two-col .col-image {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 28px;
  box-shadow: var(--shadow);
}
.two-col .col-image img {
  max-width: 90%;
  max-height: 300px;
  object-fit: contain;
}

/* ---------- Values / list ---------- */
.value-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 32px;
}
.value-list .item {
  padding: 22px;
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.value-list h4 {
  color: var(--navy);
  margin: 0 0 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
}
.value-list p { margin: 0; font-size: 0.92rem; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 28px 0;
}
.cta-strip h2 { color: #fff; margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.8); margin-bottom: 22px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}
.contact-info .info-row {
  margin-bottom: 22px;
}
.contact-info .label {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-info .value { font-size: 1.05rem; color: var(--ink); }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 40px 0 28px;
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer a { color: var(--gold-warm); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; }
.site-footer .mark-sm {
  width: 38px; height: 38px; border-radius: 6px;
  background: var(--cream); color: var(--navy);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700;
  overflow: hidden;
}
.site-footer .mark-sm img {
  width: 100%; height: 100%; object-fit: contain; padding: 3px;
}

/* ---------- Trust strip (under hero) ---------- */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}
.trust-strip .pillar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-strip .pillar .ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--gold);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.trust-strip .pillar .ico svg { width: 20px; height: 20px; }
.trust-strip .pillar strong {
  display: block;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.trust-strip .pillar span.sub {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

/* ---------- Service icons ---------- */
.service-card .icon {
  width: 48px; height: 48px;
}
.service-card .icon svg {
  width: 26px; height: 26px;
}

/* ---------- Process steps (How we work) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  opacity: 0.5;
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}
.process-step .num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  box-shadow: var(--shadow);
}
.process-step h4 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.process-step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Industries grid ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.industry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.industry:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.industry .ico {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold);
  display: grid; place-items: center;
}
.industry .ico svg { width: 26px; height: 26px; }
.industry h4 {
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 6px;
}
.industry p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Quote band ---------- */
.quote-band {
  background:
    linear-gradient(135deg, var(--navy-deep), var(--navy)),
    radial-gradient(circle at 20% 80%, rgba(201,164,73,0.2), transparent 50%);
  background-color: var(--navy-deep);
  color: #fff;
  padding: 40px 0;
}
.quote-band .container {
  max-width: 880px;
  text-align: center;
}
.quote-band .mark-q {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: -10px;
}
.quote-band blockquote {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.5;
  color: #fff;
  font-style: italic;
  font-weight: 400;
}
.quote-band cite {
  display: block;
  font-style: normal;
  color: var(--gold-warm);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- Better placeholder col-image ---------- */
.two-col .col-image {
  background:
    radial-gradient(circle at 70% 30%, rgba(201,164,73,0.18), transparent 55%),
    linear-gradient(135deg, #ffffff, #f6f0e0);
  position: relative;
  overflow: hidden;
}
.two-col .col-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><path d='M70 50 L130 50 L150 160 L50 160 Z' fill='none' stroke='%23c9a449' stroke-width='2.5' opacity='0.35'/><path d='M85 60 L115 60 L130 150 L70 150 Z' fill='%23c9a449' opacity='0.12'/></svg>");
  background-position: center;
  background-size: 240px 240px;
  background-repeat: no-repeat;
  z-index: 0;
}
.two-col .col-image img {
  position: relative;
  z-index: 1;
}

/* ---------- Contact: what-happens-next ---------- */
.next-steps {
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.next-steps .step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.next-steps .step .n {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9rem;
}
.next-steps .step h5 {
  margin: 0 0 2px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}
.next-steps .step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Footer columns ---------- */
.site-footer .container {
  align-items: flex-start;
}
.footer-col h5 {
  color: #fff;
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--gold-warm); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  h1 { font-size: 2rem; }
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 2.2rem; }
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid::before { display: none; }
  .quote-band blockquote { font-size: 1.2rem; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    padding: 14px 24px 18px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 14px; }
}
@media (max-width: 520px) {
  .trust-strip .container { grid-template-columns: 1fr; }
}
