:root {
  --ink: #102027;
  --graphite: #28363d;
  --muted: #66747a;
  --line: #dbe4e1;
  --paper: #f7f9f7;
  --white: #ffffff;
  --teal: #087c75;
  --teal-dark: #065b56;
  --coral: #d7654b;
  --gold: #c99738;
  --mint: #e9f4ef;
  --shadow: 0 18px 45px rgba(16, 32, 39, 0.12);
  --header-height: 76px;
  --container: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: rgba(8, 124, 117, 0.45);
  text-underline-offset: 0.18em;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.skip-link,
.screen-reader-text {
  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:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  clip: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
body:not(.home) .site-header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(16, 32, 39, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--coral));
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 4px;
  color: currentColor;
  opacity: 0.72;
  font-size: 0.78rem;
}

.primary-nav {
  display: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu a {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.language-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.language-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  opacity: 0.72;
}

.language-menu a.is-active,
.language-menu a:hover {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
  opacity: 1;
}

.real-site-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  opacity: 0.78;
}

.real-site-link:hover {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
  opacity: 1;
}

.header-cta {
  display: none;
  padding: 10px 16px;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.header-cta:hover {
  color: var(--white);
  background: var(--teal-dark);
}

.nav-toggle {
  display: inline-grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
}

.site-header.is-scrolled .nav-toggle,
body:not(.home) .nav-toggle {
  background: var(--white);
  border-color: var(--line);
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 132px 0 80px;
  color: var(--white);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 32, 39, 0.88) 0%, rgba(16, 32, 39, 0.72) 36%, rgba(16, 32, 39, 0.18) 72%),
    linear-gradient(0deg, rgba(16, 32, 39, 0.5), rgba(16, 32, 39, 0));
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin-left: max(20px, calc((100vw - 1120px) / 2));
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.intro-grid h2,
.method-grid h2,
.contact-grid h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(2.4rem, 8vw, 5.7rem);
}

.hero-copy {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2.7vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

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

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

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.36);
}

.button-secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.hero-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-proof span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.hero-proof strong {
  display: block;
  color: var(--white);
  font-size: 1.32rem;
}

.section {
  padding: 76px 0;
}

.intro-band {
  padding: 34px 0;
  background: var(--paper);
}

.intro-grid,
.method-grid,
.contact-grid {
  display: grid;
  gap: 32px;
}

.intro-grid h2,
.method-grid h2,
.contact-grid h2,
.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.intro-grid p,
.section-heading p,
.method-grid p,
.contact-grid p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading-row {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-grid,
.case-grid,
.post-grid {
  display: grid;
  gap: 18px;
}

.service-card,
.case-card,
.post-card,
.listing-item,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  min-height: 260px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.post-card:hover,
.listing-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-card span {
  color: var(--gold);
  font-weight: 900;
}

.service-card h3,
.case-card h3,
.post-card h3,
.listing-item h2 {
  margin: 16px 0 10px;
  line-height: 1.2;
  font-size: 1.28rem;
}

.service-card p,
.case-card p,
.post-card p,
.listing-item p {
  margin: 0;
  color: var(--muted);
}

.method-section {
  color: var(--white);
  background: var(--ink);
}

.method-section .section-kicker {
  color: #7dd7cd;
}

.method-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.method-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: method;
}

.method-list li {
  position: relative;
  padding: 20px 20px 20px 66px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.method-list li::before {
  counter-increment: method;
  content: counter(method);
  position: absolute;
  left: 18px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: #7dd7cd;
  border-radius: 8px;
  font-weight: 900;
}

.method-list strong,
.method-list span {
  display: block;
}

.method-list span {
  color: rgba(255, 255, 255, 0.74);
}

.case-card {
  padding: 26px;
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.case-metric {
  color: var(--teal);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.testimonial {
  margin: 22px 0 0;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), var(--graphite));
  border-radius: 8px;
}

.testimonial p {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.3;
}

.testimonial cite {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.insights-section {
  background: var(--paper);
}

.text-link {
  align-self: flex-start;
  color: var(--teal);
  font-weight: 900;
}

.post-card a,
.listing-item a {
  display: block;
  height: 100%;
  padding: 24px;
  text-decoration: none;
}

.post-card time,
.listing-item time,
.article-meta {
  color: var(--coral);
  font-weight: 800;
  font-size: 0.9rem;
}

.contact-section {
  background: var(--mint);
}

.contact-points {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.contact-points li {
  padding-left: 24px;
  position: relative;
  font-weight: 800;
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  background: var(--coral);
  border-radius: 50%;
}

.contact-panel {
  padding: 24px;
  box-shadow: var(--shadow);
}

.lead-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c9d5d1;
  border-radius: 8px;
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 3px solid rgba(8, 124, 117, 0.18);
  border-color: var(--teal);
}

.lead-form-hp {
  display: none;
}

.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  font-weight: 600;
}

.consent input {
  min-height: auto;
  margin-top: 5px;
}

.form-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.form-message-success {
  color: #124238;
  background: #dff4ed;
}

.form-message-error {
  color: #7a2515;
  background: #fbe4dc;
}

.page-hero {
  padding-top: calc(var(--header-height) + 70px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 32, 39, 0.96), rgba(8, 124, 117, 0.9)),
    var(--ink);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.page-hero .section-kicker {
  color: #7dd7cd;
}

.content-list {
  display: grid;
  gap: 16px;
}

.prose {
  color: var(--graphite);
}

.prose h2,
.prose h3 {
  color: var(--ink);
  line-height: 1.2;
}

.prose a {
  color: var(--teal);
  font-weight: 800;
}

.nav-links,
.pagination {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #14252b;
}

.footer-grid {
  display: grid;
  gap: 30px;
  padding: 56px 0 34px;
}

.footer-brand {
  color: var(--white);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer p {
  max-width: 420px;
  margin: 18px 0 0;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a {
  color: inherit;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 899px) {
  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    width: 100%;
    max-width: 100vw;
    padding: 8px 20px 18px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
    overflow-x: hidden;
  }

  .primary-nav.is-open {
    display: block;
  }

  .menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .menu a {
    display: block;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .language-menu {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .real-site-link {
    width: 100%;
    margin-top: 14px;
    justify-content: center;
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
  }

  .header-inner {
    width: min(100% - 40px, 1120px);
  }

  .brand {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 640px) {
  .hero-proof,
  .service-grid,
  .case-grid,
  .post-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .primary-nav,
  .header-cta {
    display: block;
  }

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

  .language-menu {
    margin: 0;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intro-grid,
  .method-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .section {
    padding: 96px 0;
  }

  .intro-band {
    padding: 44px 0;
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .case-grid,
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading-row,
  .footer-bottom {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}
