/* EideIA Systems landing page — v1
   Brand colours only: ivory #F6F1E7, charcoal #2B2B2B, copper #A85F32, light copper #D08A55.
   Allowed tints: charcoal at reduced opacity, darker ivory #EDE6D8. */

@font-face {
  font-family: "Ubuntu Sans Mono derivative EideIA";
  src: url("/assets/fonts/UbuntuSansMono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu Sans derivative EideIA";
  src: url("/assets/fonts/UbuntuSans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #F6F1E7;
  --ivory-alt: #EDE6D8;
  --charcoal: #2B2B2B;
  --copper: #A85F32;
  --copper-light: #D08A55;
  --muted: rgba(43, 43, 43, 0.75);   /* secondary text, 75% charcoal */
  --line: rgba(43, 43, 43, 0.3);     /* decorative outlines */
  --line-soft: rgba(43, 43, 43, 0.14);
  --field: rgba(43, 43, 43, 0.6);    /* form field borders, >= 3:1 */
  --ivory-line: rgba(246, 241, 231, 0.25);

  --mono: "Ubuntu Sans Mono derivative EideIA", ui-monospace, monospace;
  --sans: "Ubuntu Sans derivative EideIA", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 16px;
  --header-h: 92px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ivory);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "brand lang"
    "nav   nav";
  align-items: center;
  column-gap: 16px;
  padding-block: 10px 6px;
}

.site-header .brand { grid-area: brand; }
.site-header .brand img { height: 40px; width: auto; }

.site-nav { grid-area: nav; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 2px;
}

.site-nav a,
.lang-switch a {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-block;
  padding-block: 6px;
}

.site-nav a:hover,
.lang-switch a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-self: end;
}

.site-header .lang-switch { grid-area: lang; }

.lang-switch li { display: flex; align-items: center; }

.lang-switch .sep {
  font-family: var(--mono);
  padding-inline: 6px;
  color: var(--muted);
}

.lang-switch a { color: var(--muted); padding-inline: 2px; }

.lang-switch a[aria-current="page"] {
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }

  .header-inner {
    display: flex;
    gap: 32px;
    padding-block: 18px;
  }

  .site-header .brand img { height: 52px; }

  .site-nav { margin-left: auto; }
  .site-nav ul { column-gap: 28px; }
  .site-nav a, .lang-switch a { font-size: 0.9375rem; }
}

@media (min-width: 1200px) {
  :root { --gutter: 48px; }
}

/* Sections ----------------------------------------------------------- */

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.section { padding-block: 72px; }
.section-alt { background: var(--ivory-alt); }

.section h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  max-width: 22ch;
}

.section h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--copper);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .section { padding-block: 104px; }
}

@media (min-width: 1200px) {
  .section { padding-block: 128px; }
}

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

.hero {
  padding-block: 80px 88px;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 5.6vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 14ch;
}

.cursor {
  color: var(--copper);
  font-weight: 600;
  margin-left: 0.04em;
  animation: blink 1.1s steps(1, end) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

.lead {
  margin-top: 32px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.55;
  max-width: 58ch;
}

.hero-cta { margin-top: 40px; }

@media (min-width: 768px) {
  .hero { padding-block: 128px 136px; }
}

@media (min-width: 1200px) {
  .hero { padding-block: 160px 168px; }
}

/* Button ------------------------------------------------------------- */

/* Ivory on copper is 4.3:1, so the label is kept at large-text size (19px bold). */
.button {
  display: inline-block;
  font-family: var(--mono);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ivory);
  background: var(--copper);
  border: 1.5px solid var(--copper);
  border-radius: var(--radius-sm);
  padding: 15px 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

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

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

/* Three steps -------------------------------------------------------- */

.step-list {
  display: grid;
  gap: 48px;
  margin-top: 56px;
}

.step {
  border-top: 1.5px solid var(--line);
  padding-top: 24px;
}

/* Copper is used only at large size (28px+). */
.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--copper);
  margin-bottom: 20px;
}

.step p { margin-top: 12px; }

@media (min-width: 768px) {
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 72px; }
}

/* Services ----------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 20px;
  margin-top: 56px;
}

.card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
}

.card-mark {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--copper);
  border-radius: 5px;
  margin-bottom: 28px;
}

.card p { margin-top: 12px; }

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 72px; }
  .card { padding: 36px 36px 40px; }
}

/* How we work: timeline ---------------------------------------------- */

.timeline {
  position: relative;
  display: grid;
  gap: 36px;
  margin-top: 56px;
}

/* Vertical copper line on small screens. */
.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 1.5px;
  background: var(--copper);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}

.timeline-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  background: var(--ivory-alt);
  border: 1.5px solid var(--charcoal);
  border-radius: 14px;
}

.timeline-body { padding-top: 10px; }
.timeline-body p { margin-top: 8px; }

@media (min-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 72px;
  }

  .timeline::before {
    left: 24px;
    right: calc(25% - 48px); /* end at the centre of the last marker */
    top: 23px;
    bottom: auto;
    width: auto;
    height: 1.5px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 24px;
  }

  .timeline-body { padding-top: 0; padding-right: 8px; }
}

/* Positioning band --------------------------------------------------- */

.band {
  background: var(--charcoal);
  color: var(--ivory);
  padding-block: 88px;
}

.statement {
  font-size: clamp(1.375rem, 1.05rem + 1.6vw, 2.25rem);
  font-weight: 300;
  line-height: 1.4;
  max-width: 34ch;
}

.statement::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--copper-light);
  margin-bottom: 32px;
}

.statement::after {
  content: "_";
  content: "_" / "";
  font-family: var(--mono);
  font-weight: 600;
  color: var(--copper-light);
  margin-left: 0.1em;
}

.band :focus-visible { outline-color: var(--copper-light); }

@media (min-width: 768px) {
  .band { padding-block: 120px; }
}

@media (min-width: 1200px) {
  .band { padding-block: 152px; }
}

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

.contact-grid {
  display: grid;
  gap: 48px;
}

.contact-intro p {
  margin-top: 24px;
  max-width: 42ch;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.field { display: grid; gap: 8px; }

.field label {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1.5px solid var(--field);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 48px;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

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

.contact-form .button { justify-self: start; margin-top: 6px; }

.consent {
  font-size: 0.875rem;
  color: var(--muted);
}

.hp { display: none; }

@media (max-width: 479px) {
  .contact-form .button { justify-self: stretch; text-align: center; }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 5fr 6fr;
    gap: 80px;
    align-items: start;
  }
}

/* Thank-you page ----------------------------------------------------- */

.page-thanks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.thanks {
  flex: 1 0 auto;
  padding-block: 96px 120px;
}

.thanks h1 {
  font-size: clamp(2.5rem, 1.4rem + 5.6vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

@media (min-width: 768px) {
  .thanks { padding-block: 144px 168px; }
}

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

.site-footer {
  background: var(--charcoal);
  color: var(--ivory);
  padding-block: 48px;
}

.footer-inner {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.site-footer .brand img { height: 48px; width: auto; }

.copyright,
.credit {
  font-size: 0.875rem;
}

.site-footer .lang-switch { justify-self: start; }
.site-footer .lang-switch a,
.site-footer .lang-switch .sep { color: var(--ivory); }
.site-footer .lang-switch a[aria-current="page"] {
  color: var(--copper-light);
  text-decoration-color: var(--copper-light);
}

.credit a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--ivory-line);
}

.credit a:hover { text-decoration-color: var(--copper-light); }

.site-footer :focus-visible { outline-color: var(--copper-light); }

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 32px;
    row-gap: 24px;
  }

  .site-footer .lang-switch { justify-self: end; }

  .credit {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid var(--ivory-line);
    width: 100%;
  }
}
