@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:opsz@8..144&family=Instrument+Sans:wght@300;400;500;600;700&display=swap");

:root {
  --ink: #11120f;
  --muted: #4c4a44;
  --bg: #f6f2ec;
  --surface: #ffffff;
  --border: #e4ddd2;
  --accent: #1a8f5d;
  --accent-dark: #0f6c45;
  --shadow: 0 24px 50px rgba(17, 18, 15, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

html {
  scroll-padding-top: 190px;
}

h1, h2, h3, .brand span {
  font-family: "Instrument Serif", "Times New Roman", serif;
  letter-spacing: 0.2px;
}

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

a {
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 242, 236, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.1rem;
}

.brand-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.9rem;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  margin: 0 0 1.2rem;
  line-height: 1.08;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 16px 30px rgba(17, 18, 15, 0.15);
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
  box-shadow: none;
}

.hero-panel {
  display: grid;
  place-items: center;
}

.hero-ornament {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  padding: 1.2rem;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.tile {
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f0e8dc);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.tile-1 { background: linear-gradient(145deg, #1a8f5d, #0f6c45); }
.tile-2 { background: linear-gradient(145deg, #2fb37b, #1a8f5d); }
.tile-3 { background: linear-gradient(145deg, #1aa86b, #53c48f); }
.tile-4 { background: linear-gradient(145deg, #2c6f5a, #1a8f5d); }
.tile-5 { background: linear-gradient(145deg, #8acb9f, #3aa876); }
.tile-6 { background: linear-gradient(145deg, #e6efe7, #cfe3d7); }

.hero-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.stat {
  border-right: 1px solid var(--border);
  padding-right: 1.5rem;
}

.stat:last-child {
  border-right: none;
  padding-right: 0;
}

.stat strong {
  display: block;
  font-size: 1.1rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(228, 221, 210, 0.9),
    inset 0 -1px 0 rgba(228, 221, 210, 0.9);
}

h2 {
  font-size: clamp(2.3rem, 3.4vw, 3rem);
  margin: 0 0 1rem;
  line-height: 1.15;
}

h3 {
  line-height: 1.2;
}

.section-lede {
  color: var(--muted);
  max-width: 640px;
}

.section-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.card-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.card {
  background: var(--surface);
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.9rem;
}

.principles {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.principles li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}

.principles span {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.principles h3 {
  margin-top: 0;
}

.card-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  color: var(--muted);
}

.card-list li {
  margin-bottom: 0;
  padding-left: 1rem;
  position: relative;
}

.card-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.steps li > div {
  border-left: 1px solid var(--border);
  padding-left: 1.2rem;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  line-height: 1;
  border-radius: 12px;
  background: #f0ede6;
  color: var(--ink);
  font-weight: 700;
}

.about-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.about-meta {
  padding: 1.6rem;
  display: grid;
  gap: 1.1rem;
}

.about-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.logo-grid {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cases-grid {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.case-media {
  background: #eceadd;
  border-bottom: 1px solid var(--border);
  padding: 2.6rem 2rem;
  display: grid;
  place-items: center;
}

.case-media .logo-pill {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  min-height: 0;
}

.case-media img {
  max-height: 80px;
  width: auto;
}

.case-body {
  padding: 1.6rem 1.7rem 1.4rem;
  display: grid;
  gap: 0.8rem;
}

.case-callout {
  font-size: 1.05rem;
  line-height: 1.35;
}

.case-summary {
  color: var(--muted);
  margin: 0;
}

.case-meta {
  margin-top: 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.case-time {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.case-time::before {
  content: "⏱";
  font-size: 0.9rem;
}

.case-arrow {
  font-size: 1.1rem;
}

.logo-pill {
  text-align: center;
  padding: 1.8rem 1.4rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  min-height: 140px;
  box-shadow: var(--shadow);
}

.logo-pill img {
  max-height: 90px;
  width: auto;
}

.testimonial-grid {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial {
  display: grid;
  gap: 1rem;
  align-items: center;
  text-align: left;
}

.testimonial img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial .quote {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.testimonial span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact {
  padding-bottom: 5rem;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-details strong {
  display: block;
  font-weight: 600;
}

.form {
  min-height: 320px;
}

.hs-form-frame {
  min-height: 320px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 4rem;
  }

  .stat {
    border-right: none;
    padding-right: 0;
  }

  /* Anchor offset for taller stacked header */
  html {
    scroll-padding-top: 240px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3.5rem;
  }

  .steps li,
  .principles li {
    grid-template-columns: 44px 1fr;
  }
}
