/* Cornerstone Web Solutions — site styles */

:root {
  --navy: #12376e;
  --accent: #2b8fd0;
  --accent-on-dark: #6fb6e8;
  --ink: #14243b;
  --text: #3e4652;
  --text-muted: #4a525e;
  --label: #5c6168;
  --link: #1a5e9c;
  --link-hover: #0f3a6b;
  --ground: #fafaf7;
  --surface: #ffffff;
  --line: #e3e5e8;
  --line-strong: #c9d3e0;
  --field-border: #b9c3d1;
  --on-navy-soft: #dce5f0;
  --on-navy-label: #c4d3e6;
  --success: #1e6b3a;
  --error: #a3261b;

  --font-display: "Montserrat", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1200px;
  --gutter: 24px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--link);
}
a:hover {
  color: var(--link-hover);
}

img {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.section {
  padding-block: 96px;
}

.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--navy {
  background: var(--navy);
  color: #ffffff;
}

/* Logo crops: the logo file has generous whitespace and an off-white ground,
   so each use is a fixed window onto the image, blended into light backgrounds. */
.logo-crop {
  position: relative;
  overflow: hidden;
}
.logo-crop img {
  position: absolute;
  height: auto;
  max-width: none;
  mix-blend-mode: multiply;
}
.logo-crop--nav {
  width: 153px;
  height: 48px;
}
.logo-crop--nav img {
  left: -26px;
  top: -33px;
  width: 203px;
}
.logo-crop--mark {
  width: 329px;
  height: 380px;
}
.logo-crop--mark img {
  left: -207px;
  top: -263px;
  width: 1603px;
}
.logo-crop--footer {
  width: 122px;
  height: 38px;
}
.logo-crop--footer img {
  left: -21px;
  top: -26px;
  width: 161px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 48px;
}
.btn--primary {
  background: var(--navy);
  color: #ffffff;
}
.btn--primary:hover {
  background: #0c2850;
  color: #ffffff;
}
.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--field-border);
}
.btn--secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.btn--small {
  padding: 11px 20px;
  min-height: 0;
  font-size: 15px;
}

/* Header */
.site-header {
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav__links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  padding-block: 10px;
}
.site-nav__links a:not(.btn):hover {
  color: var(--link);
}

/* Eyebrow label with the circuit-trace motif from the logo */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}
.eyebrow svg {
  flex: none;
  color: var(--accent);
}
.section--navy .eyebrow {
  color: var(--on-navy-label);
}
.section--navy .eyebrow svg {
  color: var(--accent-on-dark);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}

/* Hero */
.hero {
  padding-block: 96px 104px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}
.hero__copy {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.hero__lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text);
  max-width: 580px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}
.hero__mark {
  flex: 0 1 auto;
  margin: 0 auto;
}

/* Services */
.services {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card svg {
  color: var(--accent);
}
.card p {
  color: var(--text-muted);
  font-size: 16px;
}

.card--wide {
  grid-column: 1 / -1;
  background: var(--surface);
  border-color: var(--line-strong);
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px 56px;
  padding: 36px 32px;
}
.card--wide__intro {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card--wide h3 {
  font-size: 22px;
  color: var(--navy);
}
.feature-list {
  flex: 999 1 420px;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px 32px;
  font-size: 15px;
  color: var(--text-muted);
}
.feature-list li {
  border-top: 2px solid var(--line-strong);
  padding-top: 14px;
}
.feature-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
}

/* Approach */
.approach {
  display: flex;
  flex-direction: column;
  gap: 52px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px 28px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 2px solid var(--line-strong);
  padding-top: 22px;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
.step p {
  color: var(--text-muted);
  font-size: 16px;
}

/* About */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
  align-items: flex-start;
}
.split__side {
  flex: 1 1 340px;
  min-width: 0;
}
.split__main {
  flex: 999 1 480px;
  min-width: 0;
}
.about__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  color: var(--text);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.facts div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
}
.facts dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}
.facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

/* Contact */
.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__intro h2 {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}
.contact__lede {
  font-size: 18px;
  color: var(--on-navy-soft);
  max-width: 460px;
}
.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  font-size: 17px;
  color: var(--on-navy-soft);
}
.contact__direct a {
  color: #ffffff;
  font-weight: 600;
}
.contact__direct a:hover {
  color: var(--on-navy-soft);
}

.contact-form {
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.form-row .field {
  flex: 1 1 200px;
}
.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field label span {
  font-weight: 400;
  color: var(--label);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}
.field input {
  min-height: 48px;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.contact-form .btn {
  align-self: flex-start;
}
.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.form-status {
  font-size: 15px;
  color: var(--text-muted);
}
.form-status:empty {
  display: none;
}
.form-status--success {
  color: var(--success);
  font-weight: 600;
}
.form-status--error {
  color: var(--error);
  font-weight: 600;
}
/* Honeypot field: off-screen for people, still in the DOM for bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--ground);
}
.site-footer .container {
  padding-block: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 14px;
  color: var(--label);
}
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

@media (max-width: 480px) {
  .section {
    padding-block: 72px;
  }
  .hero {
    padding-block: 64px 72px;
  }
  .contact-form {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
