@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/kanit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/kanit-500.woff2") format("woff2");
}

@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/kanit-600.woff2") format("woff2");
}

@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/kanit-700.woff2") format("woff2");
}

@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/kanit-800.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/assets/fonts/nunito-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --color-ink: #1c2733;
  --color-muted: #5d6b79;
  --color-line: #dbe4ec;
  --color-bg: #ffffff;
  --color-soft: #f4f8fb;
  --color-brand: #0d6b74;
  --color-brand-strong: #07525a;
  --color-accent: #af1417;
  --color-red: #af1417;
  --color-red-dark: #8f1014;
  --color-dark: #172532;
  --shadow: 0 16px 40px rgba(22, 45, 61, 0.12);
  --radius: 8px;
  --container: 1180px;
  --space-section: clamp(3.5rem, 7vw, 6.5rem);
  --font-heading: "Kanit", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
  --type-body: 20px;
  --type-body-small: 16px;
  --type-meta: 13px;
  --type-h1: 45px;
  --type-h2: 40px;
  --type-h3: 32px;
  --type-h4: 24px;
  --line-body: 1.5;
  --line-heading: 45px;
  --weight-heading: 500;
  --weight-body: 400;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--weight-body);
  line-height: var(--line-body);
}

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

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  color: var(--color-brand-strong);
  text-decoration: underline;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: var(--type-h1);
}

h2 {
  font-size: var(--type-h2);
  line-height: var(--line-heading);
}

h3 {
  font-size: var(--type-h3);
  line-height: var(--line-heading);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 0;
}

.header-inner {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);
}

.brand img {
  width: 152px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.35rem, 3vw, 2.8rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0;
  color: #121722;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-red);
}

.site-nav .is-active > a {
  color: var(--color-red);
}

.has-submenu > a::after {
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}

.nav-submenu {
  position: absolute;
  left: -1.25rem;
  top: 100%;
  min-width: 300px;
  display: none !important;
  gap: 0 !important;
  padding: 0.85rem 0 0.65rem !important;
  background: #fff;
  border: 0;
  box-shadow: 0 18px 42px rgba(18, 23, 34, 0.12);
}

.nav-submenu a {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  color: #121722;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.has-submenu:hover .nav-submenu,
.has-submenu:focus-within .nav-submenu,
.has-submenu.is-submenu-open .nav-submenu {
  display: grid !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  background: var(--color-ink);
  content: "";
}

.nav-toggle-line::before {
  transform: translateY(-7px);
}

.nav-toggle-line::after {
  transform: translateY(5px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.page-hero {
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    linear-gradient(135deg, rgba(13, 107, 116, 0.12), rgba(175, 20, 23, 0.08)),
    var(--color-soft);
}

.page-hero-compact {
  padding: clamp(3.5rem, 6vw, 5.25rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-copy .lead {
  max-width: 700px;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1.5;
}

.hero-actions,
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius);
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--color-brand-strong);
  color: #fff;
  text-decoration: none;
}

.button-secondary {
  background: #fff;
  color: var(--color-brand);
}

.button-light {
  background: #fff;
  color: var(--color-brand-strong);
  border-color: #fff;
}

.button-red {
  background: var(--color-red);
  border-color: var(--color-red);
}

.button-red:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
}

.button.is-loading {
  color: transparent;
  pointer-events: none;
  position: relative;
}

.button.is-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.section {
  padding: var(--space-section) 0;
}

.section-muted {
  background: var(--color-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

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

.prose.narrow {
  max-width: 780px;
}

.section-header {
  max-width: 760px;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-header.centered,
.home-clients .section-header,
.home-services .section-header {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.section-header p {
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1.5;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.product-card,
.post-card,
.value-grid article,
.feature-list article,
.contact-panel,
.contact-form {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 45, 61, 0.06);
}

.service-card {
  display: grid;
  grid-template-rows: 170px 1fr;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  padding: 1rem;
  background: #edf5f7;
}

.service-card div,
.product-card,
.post-card,
.value-grid article,
.feature-list article,
.contact-panel,
.contact-form {
  padding: 1.35rem;
}

.product-card p,
.service-card p,
.post-card p {
  color: var(--color-muted);
}

.clients-section {
  border-top: 1px solid var(--color-line);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 0.8rem;
  align-items: center;
}

.client-grid img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  padding: 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
}

.cta-section {
  padding: clamp(2.4rem, 5vw, 4rem) 0;
  background: var(--color-dark);
  color: #fff;
}

.cta-inner {
  justify-content: space-between;
}

.cta-inner p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.service-detail-list {
  display: grid;
  gap: 1.5rem;
}

.service-detail {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.4rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.service-detail img {
  max-height: 210px;
  object-fit: contain;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.value-grid,
.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

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

.blog-archive {
  padding: 2.4rem 0 6rem;
  background: #fff;
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 3rem;
  color: #353535;
  font-family: "Nunito Sans", var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.blog-filter a {
  color: inherit;
  text-decoration: none;
}

.blog-filter a:hover,
.blog-filter a[aria-current="true"] {
  color: var(--color-red);
}

.blog-groups {
  display: grid;
  gap: 4.2rem;
}

.blog-post-group h2 {
  margin-bottom: 1.8rem;
  color: #1a1a1a;
  font-family: "Kanit", var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  line-height: 45px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 10px 12px 16px -4px #c4c4c4;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  box-shadow: 10px 14px 18px -4px #b7b7b7;
  transform: translateY(-5px);
}

.post-card-media {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-card-media img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
}

.post-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  min-height: 245px;
  padding: 2rem 1rem;
  color: inherit;
  text-decoration: none;
}

.post-card-body:hover {
  color: inherit;
  text-decoration: none;
}

.post-type {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-red);
  font-family: "Nunito Sans", var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.post-card h3 {
  margin-bottom: 1.5rem;
  color: #353535;
  font-family: "Kanit", var(--font-heading);
  font-size: 32px;
  font-weight: 500;
  line-height: 45px;
}

.post-card time {
  margin-top: auto;
  color: #1a1a1a;
  font-family: "Nunito Sans", var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.post-detail {
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.post-content {
  max-width: 1000px;
  color: #353535;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
  color: var(--color-red);
  font-size: 17px;
  line-height: 1.5;
}

.post-meta span + time::before {
  margin-right: 0.85rem;
  color: #aeb4bc;
  content: "/";
}

.post-content h2 {
  margin: 2.4rem 0 1rem;
  color: #1a1a1a;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  line-height: 45px;
}

.post-content h3 {
  margin: 2rem 0 0.8rem;
  color: #1a1a1a;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 500;
  line-height: 45px;
}

.post-content p,
.post-content li {
  color: #353535;
  font-size: 20px;
  line-height: 1.5;
}

.post-content p,
.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.45rem;
}

.post-content li + li {
  margin-top: 0.45rem;
}

.post-content a {
  color: var(--color-red);
  text-decoration: none;
}

.post-content a:hover {
  color: var(--color-red-dark);
  text-decoration: underline;
}

.post-back-link {
  margin-top: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: inherit;
  line-height: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(13, 107, 116, 0.18);
  border-color: var(--color-brand);
}

.site-footer {
  padding: clamp(4rem, 8vw, 6.5rem) 0 0;
  background: #f7f8fa;
  color: #1f2933;
}

.home-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 6.5rem);
  background: #fff;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.home-hero-copy h1 {
  margin-bottom: 1.1rem;
  color: #05070a;
  font-size: 45px;
  line-height: 1.1;
  font-weight: 500;
}

.home-hero-copy h1 span {
  color: var(--color-red);
}

.home-hero-copy p {
  max-width: 650px;
  margin-bottom: 2rem;
  color: #3f3f46;
  font-size: 20px;
  line-height: 1.5;
}

.home-hero-media {
  margin: 0;
}

.home-hero-media img {
  width: min(448px, 80%);
  margin-inline: auto;
}

.vision-mission {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: #f6f7f8;
}

.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 8vw, 7rem);
}

.vm-grid article {
  text-align: center;
}

.vm-grid h2 {
  margin-bottom: 1rem;
  color: #05070a;
  font-size: 40px;
  line-height: 45px;
}

.vm-grid p {
  max-width: 520px;
  margin-inline: auto;
  color: #424249;
  font-size: 20px;
  line-height: 1.5;
}

.vm-icon {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
}

.vm-icon-flag::before {
  position: absolute;
  left: 19px;
  top: 6px;
  width: 7px;
  height: 42px;
  background: var(--color-red);
  border-radius: 5px;
  content: "";
}

.vm-icon-flag::after {
  position: absolute;
  left: 24px;
  top: 7px;
  width: 30px;
  height: 22px;
  background: var(--color-red);
  border-radius: 4px 14px 14px 4px;
  content: "";
}

.vm-icon-diamond::before {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 32px;
  height: 32px;
  background: var(--color-red);
  border-radius: 8px;
  transform: rotate(45deg);
  content: "";
}

.home-clients {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: #fff;
}

.home-services {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-service-card {
  min-height: 330px;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  background: var(--color-red);
  color: #fff;
  border-radius: 0;
}

.home-service-card img {
  width: 82px;
  height: 82px;
  margin-bottom: 1.2rem;
  object-fit: contain;
}

.home-service-card h3 {
  max-width: 300px;
  margin-bottom: 1.2rem;
  font-size: 24px;
  line-height: 36px;
}

.home-service-card p {
  max-width: 330px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 20px;
  line-height: 1.5;
}

.why-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.18fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
}

.why-grid figure {
  margin: 0;
  display: grid;
  place-items: center;
  overflow: visible;
}

.why-grid img {
  width: min(860px, 142%);
  margin-inline: auto;
  transform: none;
}

.why-grid h2 {
  margin-bottom: 2rem;
  color: #151c2b;
}

.why-grid article {
  margin-bottom: 1.4rem;
}

.why-grid h3 {
  margin-bottom: 0.5rem;
  color: #151c2b;
  font-size: 32px;
  line-height: 45px;
}

.why-grid p {
  color: #4b4d55;
  font-size: 20px;
  line-height: 1.5;
}

.methodology-section {
  padding: 1rem 0 clamp(4rem, 8vw, 6rem);
  background: #fff;
}

.methodology-section img {
  width: min(980px, 100%);
  margin-inline: auto;
}

.testimonials-section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: linear-gradient(174deg, #fff 0%, #fff 68%, #f7f8fa 68.3%, #f7f8fa 100%);
}

.testimonials-section .eyebrow {
  color: var(--color-red);
  font-size: 1.3rem;
  letter-spacing: 0;
  text-transform: none;
}

.testimonials-section .section-header {
  max-width: 1040px;
}

.testimonial-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 820px) auto;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial-viewport {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.32s ease;
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 100%;
  margin: 0;
  padding: clamp(1.35rem, 2.4vw, 1.8rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  color: #424249;
  box-shadow: 0 10px 28px rgba(22, 45, 61, 0.05);
}

.testimonial-slide p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.testimonial-arrow {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fff;
  color: var(--color-red);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22, 45, 61, 0.08);
}

.testimonial-arrow:hover,
.testimonial-arrow:focus-visible {
  border-color: var(--color-red);
  background: var(--color-red);
  color: #fff;
}

.home-contact-cta {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: #f7f8fa;
  text-align: center;
}

.home-contact-cta h2 {
  margin-bottom: 2rem;
  color: #3e4148;
  font-size: 32px;
  line-height: 45px;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.35rem, 4vw, 3.55rem) 0 clamp(2.65rem, 4vw, 3.8rem);
  background: #161b27;
  color: #fff;
  text-align: center;
}

.subpage-hero::after {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -24px;
  height: 54px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  content: "";
}

.subpage-hero .container {
  position: relative;
  z-index: 1;
}

.subpage-hero h1 {
  margin-inline: auto;
  margin-bottom: 0.65rem;
  font-size: 45px;
  line-height: 1.1;
}

.subpage-hero p {
  max-width: min(920px, 100%);
  margin: 0 auto 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.5;
}

.subpage-hero ol {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.subpage-hero li + li::before {
  margin-right: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  content: "/";
}

.subpage-hero a {
  color: rgba(255, 255, 255, 0.62);
}

.timeline {
  position: relative;
  max-width: 1040px;
  margin: 2rem auto 0;
  padding: 1rem 0;
}

.timeline::before {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #d7d7db;
  transform: translateX(-50%);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
  margin: 2rem 0;
}

.timeline-item::before {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 4px solid #d7d7db;
  border-radius: 50%;
  background: var(--color-red);
  transform: translateX(-50%);
  content: "";
}

.timeline-year {
  color: var(--color-red);
  font-size: 24px;
  font-weight: 800;
}

.timeline-card {
  padding: 1.35rem 1.55rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.timeline-item.is-right .timeline-card {
  grid-column: 3;
}

.timeline-item.is-right .timeline-year {
  grid-column: 1;
  text-align: right;
}

.timeline-item.is-left .timeline-card {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.timeline-item.is-left .timeline-year {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
}

.mission-strip {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: #fff;
}

.mission-strip p {
  max-width: 620px;
  color: #4b4d55;
  font-size: 20px;
  line-height: 1.5;
}

.about-values article {
  text-align: center;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.about-values h3 {
  font-size: 32px;
  line-height: 45px;
}

.service-overview {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.service-overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  min-height: 520px;
}

.service-overview-row.is-reversed {
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
}

.service-overview-row figure,
.product-intro figure,
.service-page-detail figure {
  margin: 0;
}

.service-overview-row img,
.service-page-detail img {
  width: min(380px, 100%);
  margin-inline: auto;
}

.service-overview-copy h2 {
  margin-bottom: 1.5rem;
  color: var(--color-red);
  font-size: 40px;
  line-height: 45px;
}

.service-overview-copy h3,
.service-page-detail h2 {
  margin-bottom: 0.35rem;
  color: #151c2b;
  font-size: 32px;
  line-height: 45px;
}

.service-overview-copy p,
.service-page-detail p {
  color: #4b4d55;
  font-size: 20px;
  line-height: 1.5;
}

.service-overview-copy ul {
  columns: 2;
  padding-left: 1.2rem;
  color: #4b4d55;
}

.service-page-detail figure {
  display: grid;
  place-items: center;
}

.product-intro {
  padding-top: clamp(3rem, 7vw, 5.5rem);
}

.product-intro img {
  width: min(620px, 100%);
  margin-inline: auto;
}

.product-visual-infolite img {
  width: min(980px, 122%);
  max-width: none;
  margin-inline: auto;
}

.product-visual-dq img {
  width: min(820px, 100%);
}

.dq-product-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.dq-product-intro .product-visual-dq {
  display: grid;
  place-items: center;
  overflow: visible;
  margin: 0;
  padding: 1.4rem 0;
}

.dq-product-intro .product-visual-dq img {
  width: min(1080px, 124%);
  max-width: none;
  margin-inline: auto;
}

.dq-product-intro,
.dq-product-intro .prose,
.dq-product-intro .prose h2,
.dq-product-intro .prose p,
.dq-product-intro .prose li,
.dq-framework,
.dq-framework .prose,
.dq-framework .prose p,
.dq-framework .prose li,
.dq-framework .prose strong,
.dq-framework .prose h2 {
  color: #000;
}

.product-intro .prose h2 {
  color: #111827;
}

.product-intro .prose p,
.product-intro .prose li {
  color: #41424a;
  font-size: 20px;
  line-height: 1.5;
}

.capabilities-section {
  padding-top: 1rem;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 3rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.check-grid li {
  position: relative;
  padding-left: 1.65rem;
  color: #4b4d55;
  font-size: 20px;
  line-height: 1.5;
}

.check-grid li::before {
  position: absolute;
  left: 0;
  top: 0.2rem;
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--color-red);
  border-radius: 50%;
  color: var(--color-red);
  font-size: 0.7rem;
  font-weight: 900;
  content: "";
}

.dq-framework {
  padding-top: 1rem;
}

.dq-framework .prose,
.legal-content {
  max-width: 940px;
}

.dq-framework .prose {
  color: #000;
  font-size: 19px;
  line-height: 1.55;
}

.dq-framework .prose p,
.dq-framework .prose li {
  color: #000;
  font-size: 19px;
  line-height: 1.55;
}

.dq-framework .prose h2 {
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  color: #000;
  font-size: 28px;
  line-height: 1.28;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 32px;
  line-height: 45px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.contact-info-stack {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}

.contact-info-stack article {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}

.contact-info-stack h2 {
  margin: 0;
  font-size: 24px;
  line-height: 36px;
}

.contact-info-stack p {
  margin: 0;
  color: #4b4d55;
}

.contact-info-stack a {
  color: var(--color-red);
}

.contact-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: var(--radius);
  background: #f7f4ff;
  color: var(--color-red);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 45, 61, 0.08);
}

.contact-icon-mail::before {
  width: 28px;
  height: 20px;
  border: 3px solid var(--color-red);
  border-radius: 4px;
  content: "";
}

.contact-icon-mail::after {
  position: absolute;
  top: 32px;
  width: 20px;
  height: 20px;
  border-left: 3px solid var(--color-red);
  border-bottom: 3px solid var(--color-red);
  transform: rotate(-45deg);
  content: "";
}

.contact-icon-pin::before {
  width: 28px;
  height: 28px;
  border: 3px solid var(--color-red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  content: "";
}

.contact-icon-pin::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 3px solid var(--color-red);
  border-radius: 50%;
  content: "";
}

.flat-form {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.flat-form h2 {
  margin-bottom: 1.6rem;
}

.flat-form label {
  display: block;
  color: #111827;
}

.flat-form label span {
  color: var(--color-red);
}

.flat-form input,
.flat-form textarea {
  margin-top: 0.35rem;
  border-color: #111;
  border-radius: 2px;
}

.flat-form button {
  justify-self: center;
  min-width: 144px;
  margin-top: 0.5rem;
}

.centered-content {
  text-align: center;
}

/* Typography alignment with the original Etico site. */
.home-hero-copy h1,
.subpage-hero h1 {
  font-family: var(--font-heading);
  font-size: var(--type-h1);
  font-weight: var(--weight-heading);
  line-height: 1.1;
}

.section-header h2,
.blog-post-group h2,
.post-content h2,
.vm-grid h2,
.why-grid h2,
.service-overview-copy h2,
.product-intro .prose h2,
.legal-content h2,
.home-contact-cta h2 {
  font-family: var(--font-heading);
  font-size: var(--type-h2);
  font-weight: var(--weight-heading);
  line-height: var(--line-heading);
}

.post-card h3,
.post-content h3,
.why-grid h3,
.service-overview-copy h3,
.service-page-detail h2,
.about-values h3,
.contact-info-stack h2 {
  font-family: var(--font-heading);
  font-size: var(--type-h3);
  font-weight: var(--weight-heading);
  line-height: var(--line-heading);
}

.home-hero-copy p,
.section-header p,
.vm-grid p,
.home-service-card p,
.why-grid p,
.mission-strip p,
.service-overview-copy p,
.service-page-detail p,
.product-intro .prose p,
.product-intro .prose li,
.check-grid li,
.post-content,
.post-content p,
.post-content li,
.contact-info-stack p,
.legal-content p,
.legal-content li {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--weight-body);
  line-height: var(--line-body);
}

.blog-filter,
.post-type,
.post-meta,
.site-footer,
.button,
button.button {
  font-family: var(--font-body);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-logo {
  width: 220px;
  margin-bottom: 1rem;
}

.site-footer h2 {
  color: #111827;
  font-size: 20px;
  line-height: 1.5;
}

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

.site-footer a {
  color: #1f2933;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin-top: 3rem;
  padding: 1rem max(1rem, calc((100vw - var(--container)) / 2));
  background: var(--color-red);
  color: #fff;
}

.footer-bottom p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #fff;
  color: var(--color-red);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 920px) {
  .header-inner {
    min-height: 78px;
  }

  .brand img {
    width: 150px;
  }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    display: none;
    padding: 1.2rem 1rem 1.35rem;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
  }

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

  .site-nav ul,
  .nav-submenu {
    position: static;
    display: grid !important;
    gap: 0.45rem;
    box-shadow: none;
  }

  .site-nav a {
    width: max-content;
    min-height: 34px;
    color: #121722;
  }

  .nav-submenu {
    margin-left: 1rem !important;
    border: 0;
    padding-top: 0 !important;
  }

  .hero-grid,
  .home-hero-grid,
  .split,
  .why-grid,
  .service-overview-row,
  .service-overview-row.is-reversed,
  .contact-page-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    gap: 1.5rem;
  }

  .why-grid figure {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .card-grid,
  .two-col,
  .post-list,
  .value-grid,
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-overview-row.is-reversed figure {
    order: 2;
  }

  .service-overview-row.is-reversed .service-overview-copy {
    order: 1;
  }

  .client-grid {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }

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

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

  .timeline::before,
  .timeline-item::before {
    left: 0.5rem;
  }

  .timeline-item,
  .timeline-item.is-left,
  .timeline-item.is-right {
    grid-template-columns: 80px 1fr;
    padding-left: 1.5rem;
  }

  .timeline-year,
  .timeline-item.is-left .timeline-year,
  .timeline-item.is-right .timeline-year {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  .timeline-item .timeline-card,
  .timeline-item.is-left .timeline-card,
  .timeline-item.is-right .timeline-card {
    grid-column: 2;
    text-align: left;
  }

  .timeline-item.is-left .timeline-year {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .subpage-hero {
    padding: 1.75rem 0 2.15rem;
  }

  .subpage-hero::after {
    bottom: -18px;
    height: 40px;
  }

  .subpage-hero p {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 0.95rem;
  }

  h1,
  .home-hero-copy h1,
  .subpage-hero h1 {
    font-size: 38px;
    line-height: 1.1;
  }

  h2,
  .vm-grid h2,
  .service-overview-copy h2,
  .post-content h2 {
    font-size: 35px;
    line-height: 36px;
  }

  h3,
  .why-grid h3,
  .service-overview-copy h3,
  .service-page-detail h2,
  .about-values h3,
  .post-content h3 {
    font-size: 24px;
    line-height: 36px;
  }

  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .card-grid,
  .two-col,
  .vm-grid,
  .home-service-grid,
  .post-list,
  .check-grid,
  .value-grid,
  .feature-list,
  .detail-columns,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .testimonial-carousel {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .testimonial-viewport {
    grid-column: 1 / -1;
    grid-row: 1;
    width: min(100%, 390px);
    justify-self: center;
  }

  .testimonial-slide p {
    font-size: 18px;
    line-height: 1.55;
  }

  .testimonial-arrow {
    grid-row: 2;
    justify-self: center;
  }

  .service-overview-copy ul {
    columns: 1;
  }

  .cta-inner {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .product-intro figure,
  .service-page-detail figure {
    order: 2;
  }

  .product-visual-infolite img {
    width: min(720px, 134%);
  }

  .dq-product-grid {
    gap: 1.25rem;
  }

  .dq-product-intro .product-visual-dq {
    padding: 1.1rem 0 2rem;
  }

  .dq-product-intro .product-visual-dq img {
    width: min(760px, 136%);
  }

  .dq-framework .prose p,
  .dq-framework .prose li {
    font-size: 18px;
    line-height: 1.55;
  }

  .dq-framework .prose h2 {
    font-size: 26px;
    line-height: 1.28;
  }
}
