@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #0a2540;
  --gold: #c7a45b;
  --soft: #f5f7fa;
  --white: #fff;
  --ink-muted: #475569;
  --light-muted: #cbd5e1;
  --line: #dbe3ec;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font: 1rem/1.65 Inter, system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
p + p { margin-top: 1rem; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.wrap { width: min(100% - var(--gutter) * 2, 74rem); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: var(--white);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.site-header { background: var(--navy); color: var(--white); border-bottom: 1px solid #ffffff26; }
.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  padding-block: 1rem;
}
.brand, nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(.55rem, 2vw, 1.5rem);
}
.brand { gap: .7rem; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 8px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.nav-contact { color: var(--gold); }
.language-nav {
  flex: 0 0 auto;
  width: auto;
  flex-wrap: nowrap;
  gap: .2rem;
  padding: .2rem;
  border: 1px solid #ffffff30;
  border-radius: 8px;
}
.language-nav a {
  justify-content: center;
  min-width: 40px;
  min-height: 36px;
  border-radius: 5px;
}
.language-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--gold);
}

.section { padding-block: clamp(3.3rem, 7vw, 6rem); }
.soft { background: var(--soft); }
.dark { color: var(--white); background: var(--navy); }
.section p { color: var(--ink-muted); }
.dark p { color: var(--light-muted); }
.section .eyebrow, .eyebrow {
  color: #705521;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.dark .eyebrow { color: var(--gold); }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { letter-spacing: -.045em; }
h1 { font-size: clamp(2.55rem, 5vw, 4.6rem); font-weight: 800; }
h1 span { color: var(--gold); }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; letter-spacing: -.025em; }
h2 + p { margin-top: 1rem; }
h3 + p { margin-top: .55rem; }
.section-intro { max-width: 44rem; margin-bottom: clamp(1.6rem, 4vw, 2.8rem); }

.hero { padding-block: clamp(3.2rem, 8vw, 7rem); }
.hero-grid, .split, .grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-grid, .split { align-items: center; gap: clamp(1.6rem, 5vw, 5rem); }
.hero-lead { margin-top: 1.4rem; max-width: 34rem; font-size: clamp(1rem, 1.7vw, 1.17rem); }
.hero-note { font-size: .9rem; font-weight: 600; }
.hero-image { min-width: 0; }
.hero-image img, .about-image img, .expertise-intro img { width: 100%; border-radius: 12px; }
.hero-image img { aspect-ratio: 6 / 5; object-fit: cover; }
figcaption { margin-top: .55rem; font-size: .8rem; color: var(--light-muted); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.primary { background: var(--gold); color: var(--navy); }
.primary:hover { background: #e0c384; }
.dark .primary:focus-visible { outline-color: var(--white); }
.outline { border-color: #ffffff6b; }
.outline:hover { background: #ffffff17; }

.service-grid, .benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.service-grid article, .benefit-grid article, .project-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--white);
}
.service-grid article::before, .benefit-grid article::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--gold);
}
.benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-two { gap: 1.2rem; }
.platform-grid { margin-top: 2rem; }
.platform-grid article {
  border: 1px solid #ffffff30;
  border-radius: 12px;
  padding: clamp(1.2rem, 3vw, 2rem);
}
.platform-grid h3 { color: var(--gold); font-size: 1.65rem; }
.platform-grid ul { margin: .9rem 0 0; padding-left: 1.3rem; color: var(--light-muted); }
.platform-grid li + li { margin-top: .35rem; }
.platform-grid li::marker { color: var(--gold); }

.project-grid article { display: flex; flex-direction: column; align-items: flex-start; }
.project-list { width: 100%; margin: .85rem 0 1rem; padding: 0; list-style: none; }
.project-list li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .1rem .75rem;
  padding-block: .55rem;
  border-bottom: 1px solid var(--line);
}
.project-list span { color: var(--ink-muted); font-size: .9rem; }
.text-link { display: inline-block; font-weight: 650; padding-block: .5rem; }
.project-grid .text-link { margin-top: auto; }
.portfolio-grid article { scroll-margin-top: 1rem; }
.portfolio-grid article:target { border-color: var(--gold); }
.portfolio-grid h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.detail-grid { align-items: start; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.detail-list article { border-top: 1px solid var(--line); padding-block: 1rem; }
.detail-list article:last-child { border-bottom: 1px solid var(--line); }
.credentials { border-block: 1px solid var(--line); }
.credentials ul { margin: 0; padding: 0; list-style: none; }
.credentials li { border-bottom: 1px solid var(--line); padding: .75rem 0; font-weight: 650; }
.credential-group + .credential-group { margin-top: 3rem; }
.credential-group h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.credential-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 22rem));
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.credential-gallery a {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .9rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-weight: 650;
  text-align: center;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process-step;
}
.process-grid li { border-top: 2px solid var(--gold); padding: .8rem 0 0; counter-increment: process-step; }
.process-grid li::before {
  content: counter(process-step, decimal-leading-zero);
  display: block;
  margin-bottom: .65rem;
  color: #705521;
  font-size: .875rem;
  font-weight: 700;
}
.contact { text-align: center; }
.contact .wrap { max-width: 47rem; }
.contact .actions { justify-content: center; }
body:has(.contact-page) { display: flex; flex-direction: column; min-height: 100vh; background: var(--navy); }
.contact-page { flex: 1; display: grid; align-items: center; }
.contact-page .hero-lead { margin-inline: auto; }
.site-footer { background: var(--navy); color: var(--light-muted); border-top: 1px solid #ffffff26; font-size: .875rem; }
.footer-inner a { padding-block: .5rem; }

@media (max-width: 62rem) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 47rem) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .about-grid figure { order: 1; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-image img { aspect-ratio: 3 / 2; }
}

@media (max-width: 35rem) {
  .header-inner { padding-block: .7rem; }
  nav:not(.language-nav) { width: 100%; gap: 0 .8rem; }
  .grid-two, .service-grid, .benefit-grid, .process-grid { grid-template-columns: minmax(0, 1fr); }
}
