/* ==========================================================================
   Emerald Data Partners — Design System
   ========================================================================== */

:root {
  --color-black: #0a0a0a;
  --color-ink: #14201d;
  --color-teal: #027867;
  --color-teal-dark: #015a4d;
  --color-teal-light: #e6f3f0;
  --color-white: #ffffff;
  --color-cream: #faf9f6;
  --color-gray-100: #f2f2f0;
  --color-gray-300: #d8dad8;
  --color-gray-600: #5b655f;
  --color-gray-800: #2b332f;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 28px;

  --shadow-card: 0 12px 32px -16px rgba(10, 10, 10, 0.25);
  --max-width: 1180px;
}

/* ---- Reset ------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--color-black);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.9em;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-gray-600);
  max-width: 640px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-teal-dark); }

.btn-dark {
  background: var(--color-black);
  color: var(--color-white);
}
.btn-dark:hover { background: var(--color-ink); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-black);
  color: var(--color-black);
}
.btn-outline-dark:hover { background: var(--color-black); color: var(--color-white); }

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

.site-header {
  background: var(--color-black);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
}

.logo svg { width: 28px; height: 28px; flex-shrink: 0; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.88;
  transition: opacity 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  color: var(--color-teal-light);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--color-black);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a { font-size: 1.1rem; }

  .nav-cta .btn span.btn-label-long { display: none; }

  .nav-toggle { display: inline-flex; }
}

@media (max-width: 480px) {
  .nav { padding: 14px 16px; gap: 8px; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 0.72rem; }
  .logo-text { font-size: 1.1rem; }
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--color-black);
  color: var(--color-white);
  overflow: hidden;
}

.hero.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.85) 100%);
  z-index: 1;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px 130px;
  position: relative;
  z-index: 2;
}

.hero-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  max-width: 720px;
  margin-bottom: 0.5em;
}

.hero-byline {
  color: var(--color-teal-light);
  font-size: 0.95rem;
  margin-top: 28px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
}

.hero-curve svg { width: 100%; height: auto; display: block; }

.page-hero {
  background: var(--color-black);
  color: var(--color-white);
}

.page-hero .hero-inner { padding: 70px 24px 96px; }

.page-hero h1 { color: var(--color-white); }

.page-hero.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.page-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.82) 100%);
}

.page-hero.has-photo .hero-inner {
  position: relative;
  z-index: 1;
}

/* ---- Cards / Grids -------------------------------------------------------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--color-gray-300);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--color-teal);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 22px; height: 22px; }

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---- Band / CTA ------------------------------------------------------------ */

.band {
  background: var(--color-teal);
  color: var(--color-white);
}

.band-dark {
  background: var(--color-black);
  color: var(--color-white);
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.band h2 { color: var(--color-white); margin-bottom: 0.3em; }
.band-dark h2 { color: var(--color-white); }

/* ---- Split / two-column layout --------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

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

.split-media {
  background: var(--color-teal-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-media svg { width: 100%; height: auto; max-width: 320px; }

.split-media.photo {
  padding: 0;
  background: none;
  overflow: hidden;
}

.split-media.photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

/* ---- Headshots / photo strips ----------------------------------------------- */

.headshot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.headshot img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.headshot-name { font-weight: 700; color: var(--color-black); }
.headshot-title { color: var(--color-gray-600); font-size: 0.9rem; }

.photo-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 32px 0;
}

.photo-block img { width: 100%; height: auto; display: block; }

.partners-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.partner-chip {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
}

.partner-chip img {
  height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.post-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 0 32px;
}

.post-image img { width: 100%; height: auto; display: block; }

.blog-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
}

.blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Values / stat list ---------------------------------------------------- */

.value-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.value-pill {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---- Fit checklist (Why Emerald) -------------------------------------------- */

.fit-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-gray-300);
}

.fit-item:last-child { border-bottom: none; }

.fit-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  flex-shrink: 0;
}

.fit-mark.yes { background: var(--color-teal); }
.fit-mark.no { background: var(--color-black); }

.fit-item h3 { margin-bottom: 0.35em; }
.fit-item p { color: var(--color-gray-600); margin-bottom: 0; }

/* ---- Contact page ------------------------------------------------------------ */

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

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

.contact-info-item {
  margin-bottom: 28px;
}

.contact-info-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.5em;
}

.hub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.hub-list li {
  color: var(--color-gray-600);
}

.hub-list li:not(:last-child)::after {
  content: "\2022";
  margin-left: 14px;
  color: var(--color-gray-300);
}

form.contact-form {
  background: var(--color-cream);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  padding: 36px;
}

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

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

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-gray-800);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-300);
  font: inherit;
  background: var(--color-white);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
}

.field-required::after {
  content: " *";
  color: var(--color-teal);
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-gray-600);
  margin-top: 10px;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.success { color: var(--color-teal-dark); }
.form-status.error { color: #b3261e; }

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

.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

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

.footer-brand .logo-text { color: var(--color-white); }
.footer-brand p { color: rgba(255, 255, 255, 0.65); margin-top: 14px; max-width: 260px; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.85); }
.footer-col a:hover { color: var(--color-teal-light); }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.75); }
.footer-bottom a:hover { color: var(--color-teal-light); }

.footer-areas {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  line-height: 2;
}

.footer-areas-label {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 8px;
}

.footer-areas a {
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.footer-areas a:not(:last-child)::after {
  content: "\2022";
  margin: 0 10px 0 12px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-areas a:hover { color: var(--color-teal-light); }

/* ---- Prose (legal / blog articles) ------------------------------------------------- */

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.6em;
}

.prose p, .prose li { color: var(--color-gray-800); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--color-black); }

.post-meta {
  color: var(--color-gray-600);
  font-size: 0.9rem;
  margin-bottom: 2em;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--color-gray-300);
}

.post-nav a {
  font-weight: 700;
  color: var(--color-teal-dark);
}

.post-nav a:hover { color: var(--color-teal); }

/* ---- Feature list (city / location pages) --------------------------------------- */

.feature-list {
  display: grid;
  gap: 24px;
}

.feature-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.4em;
}

.feature-item h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
  flex-shrink: 0;
}

.feature-item p { color: var(--color-gray-600); margin-bottom: 0; }

/* ---- Utility ------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-teal);
  color: var(--color-white);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}
