/* =============================
   Datastone Consulting Group
   Minimalist Stylesheet
   ============================= */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Hanken+Grotesk:wght@400;500;600&display=swap');

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

:root {
  --ink:     #1a1a1a;
  --muted:   #6b6b6b;
  --line:    #e5e5e5;
  --bg:      #ffffff;
  --accent:  #c46a2e;        /* warm orange — used very sparingly */
  --serif:   'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --sans:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --max-w:   1280px;
  --gutter:  56px;
  --nav-h:   80px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ---------- Layout shell ---------- */
.shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  flex: 1;
  padding-top: calc(var(--nav-h) + 24px);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.wordmark img {
  /* Source is 413×88; displaying at 40px tall keeps the wordmark legible
     and leaves visual breathing room in the 80px nav. */
  height: 40px;
  width: auto;
  display: block;
}

.wordmark:hover {
  opacity: 0.55;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav__links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s ease;
}

.nav__links a:hover {
  opacity: 0.55;
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 12px;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  color: var(--muted);
  line-height: 1.3;
  margin-bottom: 56px;
}

.lede {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 32em;
  margin-bottom: 24px;
}

.lede + .lede {
  margin-top: 0;
}

.heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 28px;
}

.subheading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}

.muted {
  color: var(--muted);
}

a.link {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

a.link:hover {
  opacity: 0.55;
}


/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section--tight {
  padding: 64px 0;
}

.section__head {
  margin-bottom: 56px;
  max-width: 36em;
}

/* Narrow content column to match the spacious left-aligned style */
.col {
  max-width: 36em;
}

.col--wide {
  max-width: 48em;
}

/* Two-column layout for content + meta */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

/* ---------- Simple ordered list (services, principles) ---------- */
.list {
  list-style: none;
}

.list__item {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: baseline;
}

.list__item:last-child {
  border-bottom: 1px solid var(--line);
}

.list__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--muted);
}

.list__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}

.list__body {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 32em;
}

/* ---------- Inline meta row (Supported By style) ---------- */
.meta-row {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 32em;
}

.meta-row__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.meta-row__items {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
}

/* ---------- Form ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 32em;
}

.form--wide {
  max-width: 44em;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__group label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.form__group input,
.form__group textarea,
.form__group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
  border-radius: 0;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: #bdbdbd;
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  border-bottom-color: var(--ink);
}

.form__group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--sans);
}

.form__group select {
  appearance: none;
  -webkit-appearance: none;
  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' fill='none' stroke='%231a1a1a' stroke-width='1.2'><polyline points='1 1 5 5 9 1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: opacity 0.2s ease;
  align-self: flex-start;
}

.btn::after {
  content: '\2192';
  font-size: 1rem;
  letter-spacing: 0;
  transition: transform 0.25s ease;
}

.btn:hover {
  opacity: 0.55;
}

.btn:hover::after {
  transform: translateX(3px);
}

.btn--block {
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  justify-content: space-between;
  width: 100%;
  max-width: 32em;
}

/* ---------- Footer ---------- */
footer {
  margin-top: auto;
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__copy {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer__links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.footer__links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--ink);
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-in 0.7s 0.05s ease forwards;
}

.fade-in:nth-of-type(2) { animation-delay: 0.15s; }
.fade-in:nth-of-type(3) { animation-delay: 0.25s; }
.fade-in:nth-of-type(4) { animation-delay: 0.35s; }

@keyframes fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Form success ---------- */
.form-success {
  display: none;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  max-width: 32em;
}

.form-success__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-success__body {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Form error (inline, below submit) ---------- */
.form-error {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #c0392b;
  border-left-width: 3px;
  max-width: 32em;
  background: #fdf3f1;
}

.form-error[hidden] { display: none; }

.form-error__body {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: #8a2a1f;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  :root {
    --gutter: 32px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 24px;
    --nav-h: 64px;
  }

  .wordmark img {
    height: 32px;
  }

  body {
    font-size: 16px;
  }

  .form__row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .list__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 24px var(--gutter) 32px;
    border-bottom: 1px solid var(--line);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    width: 100%;
    padding: 10px 0;
  }

  .nav__toggle {
    display: flex;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
