/* Endward Solutions — website styles.
   Change colors and type here. They apply to the whole site. */

:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --card: #fffdf8;
  --ink: #1b1914;
  --soft: #4d473c;
  --muted: #767060;
  --line: #d3c9b4;
  --pine: #2c4a3e;
  --pine-dark: #1e342c;
  --max: 66rem;
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pine); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

.wrap { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-desc {
  font-family: Fraunces, Georgia, serif;
  font-size: 0.78rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--soft);
}
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
nav a {
  margin-left: 1.85rem;
  color: var(--soft);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
}
nav a:hover { color: var(--ink); }

/* Type */
h1, h2, h3, .serif {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.8vw, 4.35rem); max-width: 14ch; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.55rem); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 1.35rem;
}

/* Hero */
.hero { padding: 7.5rem 0 7rem; border-top: 0; }
.hero .lede {
  margin: 2rem 0 2.5rem;
  max-width: 34rem;
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--soft);
}

.btn {
  display: inline-block;
  background: var(--pine);
  color: var(--card);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--pine-dark); color: var(--card); }

/* Sections */
section { border-top: 1px solid var(--line); }
.block { padding: 6.25rem 0; }
#objectives, #solutions, #approach, #about, #contact { scroll-margin-top: 5rem; }

/* Objectives: quiet grid, hairlines, not cards */
.obj-grid {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.25rem 4rem;
}
.obj-grid li { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.obj-grid h3 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
}
.obj-grid p { margin: 0; color: var(--soft); max-width: 28rem; }

/* What we do: the lead section. Large titles, row layout, no cards. */
.offer {
  display: grid;
  grid-template-columns: minmax(12rem, 0.85fr) 1.15fr;
  gap: 2rem 4rem;
  align-items: baseline;
  padding: 2.35rem 0;
  border-top: 1px solid var(--ink);
}
.offers { margin-top: 3rem; }
.offers .offer:last-child { padding-bottom: 0; }
.offer h3 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); }
.offer p { margin: 0; color: var(--soft); max-width: 32rem; }

/* Approach */
.approach-lead {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
  margin: 1.5rem 0 3.25rem;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem 4rem;
}
.steps li { border-top: 1px solid var(--ink); padding-top: 1.15rem; }
.steps h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}
.steps p { margin: 0; color: var(--soft); max-width: 28rem; }

/* About + philosophy */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}
.about-copy { margin-top: 1.5rem; }
.split p { margin: 1.2rem 0 0; color: var(--soft); max-width: 32rem; }
.about-copy p:first-child { margin-top: 0; }
.philosophy { border-left: 2px solid var(--pine); padding: 0.15rem 0 0.15rem 1.6rem; }
.philosophy h2 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin-bottom: 0.85rem; }
.philosophy .serif { font-size: clamp(1.85rem, 3vw, 2.25rem); letter-spacing: -0.02em; margin: 0 0 1rem; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact .intro p { margin: 1.2rem 0 0; color: var(--soft); max-width: 28rem; }
form { display: grid; gap: 1.1rem; }
label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; }
input, textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
input:focus, textarea:focus {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
  border-color: var(--pine);
}
textarea { min-height: 7rem; resize: vertical; }
form .btn { justify-self: start; }
.status { display: none; margin: 0; color: var(--soft); font-size: 0.98rem; }
.status.show { display: block; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 3.25rem 0 2.75rem; }
.foot-lockup { display: grid; gap: 0.45rem; }
.foot-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.foot-line { margin: 0; color: var(--soft); font-size: 1rem; }
.foot-cats {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-copy { margin: 1.75rem 0 0; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 820px) {
  .obj-grid, .steps, .split, .contact { grid-template-columns: 1fr; }
  .obj-grid { gap: 2.25rem; }
  .steps { gap: 2.15rem; }
  .split, .contact { gap: 2.75rem; }
  .offer { grid-template-columns: 1fr; gap: 0.65rem; padding: 1.85rem 0; }
  .hero { padding: 4.5rem 0; }
  .block { padding: 4.25rem 0; }
  .approach-lead { margin-bottom: 2.5rem; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 0.15rem 1rem; padding: 0.85rem 0 0.95rem; }
  .header-inner nav { width: 100%; justify-content: flex-start; }
  nav a { margin: 0 1.1rem 0 0; font-size: 0.9rem; }
  .brand-name { font-size: 1.08rem; }
  #objectives, #solutions, #approach, #about, #contact { scroll-margin-top: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
