@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  color: #18252e;
  background: #f5f8f7;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f5f8f7; }
a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible { outline: 2px solid #3b8580; outline-offset: 4px; }

.sr-only {
  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;
  top: -5rem;
  left: 1rem;
  z-index: 20;
  padding: .7rem 1rem;
  border-radius: 100px;
  background: #1c3a42;
  color: #f5f8f7;
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 3rem, 1160px); margin-inline: auto; }

.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-size: .98rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1c3a42;
  object-fit: cover;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem 1.25rem;
  flex-wrap: wrap;
}

.nav-link,
.nav-contact {
  color: #50646b;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.text-link:hover,
.site-footer a:hover { color: #287772; }

.nav-contact {
  padding: .7rem 1rem;
  border: 1px solid #bdceca;
  border-radius: 100px;
  color: #315a59;
}

.nav-contact:hover { border-color: #3b8580; background: #e7f2ef; }

.language-switcher { display: inline-flex; align-items: center; gap: .45rem; }
.language-switcher a {
  padding: .35rem .1rem;
  color: #718589;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .69rem;
  font-weight: 500;
  text-decoration: none;
}
.language-switcher a:hover,
.language-switcher a[aria-current='true'] { color: #287772; }
.language-switcher a[aria-current='true'] { text-decoration: underline; text-underline-offset: .35em; }

.eyebrow {
  margin: 0 0 1.4rem;
  color: #4f817d;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .71rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: .7rem;
  vertical-align: middle;
  background: currentColor;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 5rem;
  align-items: center;
  padding-block: 5rem 6.5rem;
}

.hero > * { min-width: 0; }
.hero h1,
.section-heading h2,
.approach h2,
.initiative h2,
.contact h2,
.case-main h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.hero h1 { max-width: 760px; font-size: clamp(3.15rem, 5.6vw, 5.55rem); }
.hero-intro {
  max-width: 650px;
  margin: 1.7rem 0 0;
  color: #50646b;
  font-size: 1.08rem;
  line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; margin-top: 2.25rem; }
.hero-note { margin: 1.7rem 0 0; color: #658082; font-family: 'IBM Plex Mono', monospace; font-size: .69rem; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .82rem 1.25rem;
  border-radius: 100px;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.button-primary { border: 0; background: #1c3a42; color: #f5f8f7; }
.button-primary:hover { background: #367b76; }
.button-outline { border: 1px solid #8ab2ad; background: transparent; color: #315a59; }
.button-outline:hover { border-color: #367b76; background: #e7f2ef; }
.text-link { color: #316e6a; font-weight: 700; text-decoration: none; }

.hero-panel {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid #cbd9d5;
  border-radius: 24px;
  background: #e7f0ee;
}
.panel-top,
.panel-foot { display: flex; justify-content: space-between; gap: 1rem; }
.panel-label,
.panel-overline,
.panel-foot { color: #54736f; font-family: 'IBM Plex Mono', monospace; font-size: .68rem; }
.panel-cross { color: #367b76; font-size: 1.6rem; }
.panel-core { margin-block: auto; }
.panel-core strong {
  display: block;
  margin-top: 1rem;
  color: #1c3a42;
  font-size: clamp(2.25rem, 3.5vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.05;
}
.accent { color: #367b76; }
.panel-foot { flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid #bfd0cc; }

.section-pad { padding-block: 7rem; }
.section-heading { max-width: 790px; margin-bottom: 3rem; }
.section-heading h2,
.approach h2,
.initiative h2,
.contact h2 { font-size: clamp(2.35rem, 4vw, 4rem); }
.section-heading > p:last-child { max-width: 720px; margin: 1.4rem 0 0; color: #53676e; font-size: 1.06rem; line-height: 1.72; }

.services { border-block: 1px solid #d5e0dd; background: #eef4f2; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid #cbd9d5;
  border-radius: 24px;
  background: rgba(255, 255, 255, .6);
}
.card-number { color: #54736f; font-family: 'IBM Plex Mono', monospace; font-size: .7rem; letter-spacing: .04em; }
.service-card h3 { margin: 2.8rem 0 1rem; color: #1c3a42; font-size: 1.48rem; letter-spacing: -.045em; line-height: 1.22; }
.service-card p { margin: 0; color: #53676e; line-height: 1.68; }
.service-card .card-tags { margin-top: auto; padding-top: 2rem; color: #367b76; font-family: 'IBM Plex Mono', monospace; font-size: .68rem; }

.portfolio { background: #f5f8f7; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid #cbd9d5;
  border-radius: 24px;
  background: #fff;
}
.project-card .eyebrow { margin-bottom: 1.3rem; }
.project-card h3 { margin: 0 0 1.2rem; color: #1c3a42; font-size: 1.5rem; letter-spacing: -.04em; line-height: 1.25; overflow-wrap: anywhere; }
.project-card p,
.project-card dd { color: #53676e; font-size: .94rem; line-height: 1.65; }
.project-task { margin: 0; }
.project-card dl { margin: 1.4rem 0; }
.project-card dt { margin-bottom: .45rem; color: #1c3a42; font-size: .8rem; font-weight: 700; }
.project-card dd { margin: 0 0 1.2rem; }
.project-card dd:last-child { margin-bottom: 0; }
.project-status {
  padding: .8rem 1rem;
  border-left: 3px solid #4f817d;
  border-radius: 0 12px 12px 0;
  background: #e7f0ee;
  color: #315a59;
  font-size: .88rem;
  line-height: 1.6;
}
.project-card .project-status { margin: auto 0 1rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.tech-tags li { padding: .35rem .6rem; border: 1px solid #bdceca; border-radius: 100px; color: #54736f; font-family: 'IBM Plex Mono', monospace; font-size: .67rem; line-height: 1.4; }
.project-link { margin-top: 1.5rem; padding-block: .4rem; line-height: 1.5; }

.approach { background: #e6efed; }
.approach-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.approach-copy { padding-top: 2rem; }
.approach-copy p { margin: 0 0 1.2rem; color: #4f656b; font-size: 1.07rem; line-height: 1.78; }
.approach-copy .text-link { display: inline-block; margin-top: .5rem; }

.initiative { background: #f5f8f7; }
.initiative-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem;
  border: 1px solid #cbd9d5;
  border-radius: 24px;
  background: #e7f0ee;
}
.initiative-card p:not(.eyebrow) { max-width: 620px; margin: 1.2rem 0 0; color: #53676e; font-size: 1.06rem; line-height: 1.68; }
.initiative-card .button { flex: none; }

.contact { padding-block: 0 2rem; background: #f5f8f7; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .78fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding: 4rem;
  border-radius: 24px;
  background: #1c3a42;
  color: #f2f8f6;
}
.contact .eyebrow { color: #92c6c0; }
.contact p:not(.eyebrow) { max-width: 650px; color: #bdd3d0; line-height: 1.7; }
.contact-email { margin-top: 1.5rem; }
.contact-email a { text-decoration-color: #92c6c0; text-underline-offset: .2em; }
.contact-form { display: grid; gap: .9rem; padding: 1.4rem; border: 1px solid #5f8581; border-radius: 18px; background: #17343c; }
.contact-form label { display: grid; gap: .4rem; color: #dce8eb; font-family: 'IBM Plex Mono', monospace; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.contact-form input,
.contact-form textarea { width: 100%; padding: .75rem; border: 1px solid #66827f; border-radius: 10px; background: #24434a; color: #fff; font: inherit; letter-spacing: normal; text-transform: none; }
.contact-form textarea { min-height: 7rem; resize: vertical; }
.contact-form .button-primary { width: 100%; cursor: pointer; background: #b9e1da; color: #17353d; }
.contact-form .button-primary:hover { background: #e3f6f1; }
.whatsapp-button { width: 100%; border: 1px solid #7fb5ae; color: #d9eeea; }
.whatsapp-button:hover { background: #315a59; }
.form-note { margin: 0; color: #aebfc5; font-size: .78rem; line-height: 1.5; }

.site-footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 2rem; color: #718589; font-family: 'IBM Plex Mono', monospace; font-size: .69rem; }
.site-footer a { text-underline-offset: .3rem; }

/* Case-study pages */
.case-main { border-top: 1px solid #d5e0dd; }
.case-hero { padding-block: 4.5rem 5rem; border-bottom: 1px solid #d5e0dd; }
.case-hero > .eyebrow { margin: 3rem 0 1.2rem; }
.case-hero h1 { max-width: 950px; margin: 0 0 1.5rem; font-size: clamp(2.6rem, 5vw, 4.8rem); letter-spacing: -.06em; line-height: 1.06; overflow-wrap: anywhere; }
.case-hero > .project-status { max-width: 850px; margin-block: 1.5rem; }
.case-anon { color: #718589; font-family: 'IBM Plex Mono', monospace; font-size: .7rem; line-height: 1.6; }
.case-body { max-width: 900px; }
.case-section { padding-block: 3.2rem; border-bottom: 1px solid #d5e0dd; }
.case-section h2 { margin-bottom: 1.5rem; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.case-section h3 { margin: 1.7rem 0 .8rem; color: #1c3a42; font-size: 1.08rem; }
.case-section p,
.solution-list { color: #53676e; font-size: 1.05rem; line-height: 1.8; }
.case-section p:last-child { margin-bottom: 0; }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0 0; }
.case-facts dt { margin-bottom: .5rem; color: #4f817d; font-family: 'IBM Plex Mono', monospace; font-size: .7rem; font-weight: 500; }
.case-facts dd { margin: 0; color: #1c3a42; line-height: 1.7; }
.solution-list { padding-left: 1.25rem; }
.solution-list li { margin-bottom: 1.2rem; padding-left: .5rem; }
.solution-list li::marker { color: #4f817d; }
.case-note { margin-top: 1.8rem; padding: 1.3rem 1.5rem; border-left: 3px solid #4f817d; border-radius: 0 14px 14px 0; background: #e7f0ee; color: #315a59; line-height: 1.75; }
.case-diagram { margin: 0; padding: 1.2rem 1.5rem 1.5rem; border: 1px solid #cbd9d5; border-radius: 24px; background: #eef4f2; }
.case-diagram svg { display: block; width: 100%; max-width: 680px; height: auto; margin-inline: auto; }
.diagram-nodes rect { fill: #e7f0ee; stroke: #4f817d; stroke-width: 1.5; }
.diagram-nodes text { fill: #1c3a42; font: 20px 'DM Sans', Arial, sans-serif; }
.diagram-lines { fill: none; stroke: #4f817d; stroke-width: 2; }
.case-diagram marker path { fill: #4f817d; }
.case-diagram figcaption { color: #53676e; font-size: .95rem; line-height: 1.7; }
.case-diagram small { display: block; margin-top: .7rem; color: #718589; font-size: .78rem; }
.case-section .case-result { color: #1c3a42; font-size: 1.2rem; font-weight: 600; }
.case-contact { background: #1c3a42; color: #f2f8f6; }
.case-contact h2 { max-width: 850px; margin: 0 0 1rem; font-size: clamp(2.3rem, 4vw, 4rem); }
.case-contact p { max-width: 700px; margin-bottom: 1.5rem; color: #bdd3d0; line-height: 1.7; }
.case-contact .button-primary { background: #b9e1da; color: #17353d; }
.case-contact .button-primary:hover { background: #e3f6f1; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.related-card { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem; border: 1px solid #cbd9d5; border-radius: 18px; background: #fff; color: #315a59; font-size: 1.08rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.related-card:hover { border-color: #4f817d; color: #287772; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 3rem; }
  .hero-panel { max-width: 620px; min-height: 340px; }
  .service-grid,
  .project-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 270px; }
  .project-card h3 { font-size: 1.8rem; }
  .project-card p,
  .project-card dd { font-size: 1rem; }
  .approach-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .approach-copy { padding-top: 0; }
  .initiative-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 2rem, 1160px); }
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-header nav { width: 100%; justify-content: flex-start; gap: .7rem 1rem; }
  .nav-link,
  .nav-contact { font-size: .8rem; }
  .nav-contact { padding: .58rem .8rem; }
  .hero { padding-block: 4rem 5rem; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.3rem); }
  .hero-intro { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-panel { min-height: 320px; padding: 1.5rem; }
  .section-pad { padding-block: 5rem; }
  .section-heading h2,
  .approach h2,
  .initiative h2,
  .contact h2 { font-size: 2.5rem; }
  .initiative-card { padding: 2rem; }
  .contact { padding-block: 0 1rem; }
  .contact-layout { grid-template-columns: 1fr; padding: 2.2rem; }
  .case-facts,
  .related-grid { grid-template-columns: 1fr; }
  .case-facts { gap: 1.2rem; }
  .case-hero { padding-block: 3rem 3.5rem; }
  .case-hero > .eyebrow { margin-top: 2.2rem; }
  .case-section { padding-block: 2.4rem; }
  .case-diagram { padding: .6rem .8rem 1rem; }
  .diagram-nodes text { font-size: 25px; }
  .case-section p,
  .solution-list { font-size: 1rem; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 380px) {
  .wrap { width: min(100% - 1.5rem, 1160px); }
  .site-header nav { gap: .65rem .8rem; }
  .hero h1 { font-size: 2.65rem; }
  .section-heading h2,
  .approach h2,
  .initiative h2,
  .contact h2 { font-size: 2.2rem; }
  .service-card,
  .project-card { padding: 1.5rem; }
  .initiative-card,
  .contact-layout { padding: 1.5rem; border-radius: 18px; }
  .contact-form { padding: 1rem; }
  .case-hero h1 { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
