/* ========================================================
   Mead Works — shared styles
   ======================================================== */

:root {
  --navy: #0c1e32;
  --slate-dark: #168e80;
  --slate-light: #8cc3ba;
  --cream: #ffffff;
  --ivory: #ffffff;
  --font-head: 'Jost', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* keeps the footer flush with the bottom of the window on short pages
   (e.g. thank-you.html) instead of leaving a gap of page background
   showing beneath it; inert on pages already taller than the window */
body > .section:last-of-type {
  flex: 1 0 auto;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  margin: 0 0 0.4em 0;
  line-height: 1.15;
}

p { margin: 0 0 1em 0; }

a { color: inherit; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 700px) {
  .container { padding: 0 24px; }
}

/* ---------- Nav ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}

@media (max-width: 700px) {
  .site-nav { padding: 20px 24px; flex-wrap: wrap; gap: 12px; }
}

.site-nav .logo {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  text-decoration: none;
}

.site-nav .links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 2px;
}

.site-nav .links a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 18px 38px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-cream {
  background: var(--cream);
  color: var(--navy);
}

.btn-cream:hover { opacity: 0.9; }

.btn-dark {
  background: var(--slate-dark);
  color: var(--cream);
}

.btn-dark:hover { opacity: 0.9; }

.btn-navy {
  background: var(--navy);
  color: var(--cream);
}

.btn-navy:hover { opacity: 0.9; }

/* ---------- Sections ---------- */

.section {
  padding: 100px 0;
}

@media (max-width: 900px) {
  .section { padding: 64px 0; }
}

.bg-slate-dark { background: var(--slate-dark); color: var(--cream); }
.bg-slate-light { background: var(--slate-light); color: var(--navy); }
.bg-ivory { background: var(--ivory); color: var(--navy); }
.bg-navy { background: var(--navy); color: var(--cream); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Services page intro row: heading sized to its text, paragraph
   pulled in close beside it; reverts to a normal stacked column
   on narrow screens so the heading can wrap again. */
.two-col.services-intro {
  grid-template-columns: auto 1fr;
  gap: 32px;
}

.services-intro h1 {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .two-col.services-intro {
    grid-template-columns: 1fr;
  }

  .services-intro h1 {
    white-space: normal;
  }
}

.hero-heading {
  font-size: 56px;
}

@media (max-width: 700px) {
  .hero-heading { font-size: 38px; }
}

.eyebrow-lead {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 1.2em;
}

.photo-box {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.photo-box img, .photo-box svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About page headshot: shrunk to half its column width, left-aligned
   within the grid cell rather than stretched to fill it. */
.photo-box-half {
  width: 50%;
}

/* Decorative generated "photo" placeholders standing in for the
   original Squarespace stock imagery — swap the <img>/<svg> in each
   .photo-box for your own photo whenever you have it. */

.ripple-photo, .glass-photo, .sketch-photo, .desk-photo {
  width: 100%;
  height: 100%;
}

/* Line-art sketches replacing the Home page photography: simple,
   monochrome, single-line drawings that sit directly on the section
   background rather than in a filled photo box. */
.line-art {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.footer-note {
  font-size: 13px;
  opacity: 0.85;
  padding: 40px 0 10px;
}

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; gap: 56px; }
}

.service-card { text-align: center; }

.service-card .num {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-card h3 { font-size: 22px; margin-bottom: 16px; }

.service-card .good-for-label {
  font-weight: 700;
  font-style: italic;
  margin: 20px 0 8px;
}

.centered-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.centered-copy p { font-size: 15px; }

/* ---------- Case studies (About) ---------- */

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 64px;
  margin-top: 56px;
}

@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; }
}

.case-card h3 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.case-card ol {
  padding-left: 20px;
  margin: 12px 0;
}

.case-card p.result { font-weight: 700; }

.who-worked-heading {
  text-align: center;
  font-size: 40px;
}

/* ---------- Forms ---------- */

form.contact-form {
  max-width: 640px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field-group { margin-bottom: 20px; }

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field-group label .req {
  font-weight: 400;
  opacity: 0.75;
  text-transform: none;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group textarea {
  width: 100%;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: inherit;
}

.field-group textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.checkbox-row input { width: 16px; height: 16px; }

/* ---------- Footer ---------- */

.site-footer {
  text-align: left;
}
