/* ============================================================
   Crintea LTD — brand styles
   Identity: black + yellow (#FAE105) + grey (#C9C9C9), Geist.
   Plain CSS, no build step. Theme via custom properties.
   ============================================================ */

/* --- Geist (self-hosted variable font) --- */
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (per brand book) */
  --yellow: #fae105;
  --yellow-dim: #d4be00;
  --black: #000000;
  --grey: #c9c9c9;

  /* Working surfaces / text derived from the core three */
  --ink: #0a0a0a;        /* page background */
  --surface: #111111;    /* raised dark panel */
  --surface-2: #181818;  /* card */
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --white: #ffffff;
  --grey-dim: #8c8c8c;

  /* Light section */
  --paper: #f4f4f2;
  --paper-line: #dcdcd6;
  --ink-on-paper: #0a0a0a;
  --grey-on-paper: #555555;

  --radius: 18px;
  --radius-sm: 12px;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--grey);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font);
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
strong { color: var(--white); font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: #000;
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 0;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Eyebrow --------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--yellow);
}
.eyebrow--dark { color: var(--ink-on-paper); }
.eyebrow--dark::before { background: var(--ink-on-paper); }

/* Logo ------------------------------------------------------ */
.logo { height: 30px; width: auto; display: block; }
.logo-icon { fill: var(--yellow); }
.logo-word { fill: currentColor; }
.logo--footer { height: 26px; }

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--yellow); color: #000; }
.btn-primary:hover { background: #fff; }

.btn-outline { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: var(--yellow); color: #000; }

.btn-text { background: transparent; color: var(--white); padding-inline: 0.4rem; }
.btn-text:hover { color: var(--yellow); }

.btn-block { width: 100%; }

/* Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { color: #fff; display: inline-flex; align-items: center; }

.nav { display: flex; align-items: center; }
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--grey);
  transition: color 0.15s ease;
}
.nav-menu a:hover { color: var(--white); }
.nav-cta {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #000 !important;
  font-weight: 600;
}
.nav-cta:hover { background: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; }

/* Hero ------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(250, 225, 5, 0.16), transparent 62%),
    radial-gradient(700px 420px at 0% 110%, rgba(250, 225, 5, 0.06), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero-mark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 560px);
  opacity: 0.06;
  pointer-events: none;
}
.hero-mark svg { width: 100%; height: auto; }
.hero-mark path { fill: var(--yellow); }

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 11vw, 8.5rem);
  max-width: 880px;
}
.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}
.hl { color: var(--yellow); }
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  color: var(--grey);
  max-width: 620px;
  margin: 1.6rem 0 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3.4rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.8rem;
  margin: 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey-dim);
  margin-bottom: 0.35rem;
}
.hero-stats dd {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

/* Sections / heads ------------------------------------------ */
section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-head { max-width: 660px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.section-sub { font-size: 1.1rem; }

/* What we do ------------------------------------------------ */
.work { background: var(--ink); }
.work .section-sub { color: var(--grey); }
.work-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem;
  min-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.work-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.work-card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--surface-2); }
.work-card:hover::after { transform: scaleX(1); }
.work-num {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--yellow);
}
.work-card h3 { font-size: 1.9rem; margin: 0.6rem 0 0.5rem; }
.work-card p { color: var(--grey); }
.card-link { margin-top: auto; font-weight: 600; color: var(--white); }
.work-card:hover .card-link { color: var(--yellow); }

/* Trades ---------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split-text { order: 2; }
.split-text h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.split-text > p { font-size: 1.08rem; }

.trade--dark { background: var(--surface); border-block: 1px solid var(--line); }
.trade--light { background: var(--paper); color: var(--grey-on-paper); }
.trade--light h2 { color: var(--ink-on-paper); }
.trade--light .split-text > p { color: var(--grey-on-paper); }
.trade--light strong { color: var(--ink-on-paper); }

.feature-list { list-style: none; margin: 1.6rem 0 2.2rem; padding: 0; }
.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.85rem;
  color: var(--grey);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 2px;
}
.feature-list--dark li { color: var(--grey-on-paper); }

.trade-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; }

/* Software visual — code card */
.split-visual { display: grid; place-items: center; }
.code-card {
  width: 100%;
  max-width: 440px;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem 1.6rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.code-bar { display: flex; gap: 7px; padding-bottom: 1rem; }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2a; }
.code-bar span:first-child { background: var(--yellow); }
.code-card pre {
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, monospace;
  font-size: 1.02rem;
  line-height: 2;
  color: #e8e8e8;
}
.c-dim { color: #6a6a6a; }
.c-key { color: #fff; }
.c-str { color: var(--grey); }
.c-yellow { color: var(--yellow); font-weight: 600; }

/* Construction visual — phase track */
.phase-track {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.phase {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 1.4rem;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
}
.phase-i {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--grey-on-paper);
  width: 2rem;
}
.phase-l { font-weight: 600; font-size: 1.15rem; color: var(--ink-on-paper); letter-spacing: -0.02em; }
.phase--on { background: var(--yellow); border-color: var(--yellow); }
.phase--on .phase-i, .phase--on .phase-l { color: #000; }

/* About ----------------------------------------------------- */
.about { background: var(--ink); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.about-lead { font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--white); font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }
.about-points { display: grid; gap: 1.6rem; }
.point { padding-left: 1.2rem; border-left: 2px solid var(--yellow); }
.point h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.point p { color: var(--grey); margin: 0; }

/* Contact --------------------------------------------------- */
.contact { background: var(--yellow); color: #000; }
.contact .eyebrow--dark { color: #000; }
.contact .eyebrow--dark::before { background: #000; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-text h2 { color: #000; font-size: clamp(2rem, 4.5vw, 3.1rem); }
.contact-text p { color: #1c1c1c; font-size: 1.08rem; }
.contact-direct { font-weight: 600; }
.contact-direct a { text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  background: #000;
  padding: 2rem;
  border-radius: var(--radius);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; color: #fff; margin-bottom: 0.4rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #0f0f0f;
  color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #666; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(250, 225, 5, 0.25);
}
.field textarea { resize: vertical; }
/* Native dropdown list: light background + dark text so options are legible.
   (On a dark <select> the popup inherits dark colours and reads black-on-black.) */
.field select { color-scheme: light; }
.field select option { color: #000; background: #fff; }
.form-note { margin: 0.9rem 0 0; font-size: 0.92rem; font-weight: 600; min-height: 1.2em; color: #fff; }
.form-note.ok { color: var(--yellow); }
.form-note.err { color: #ff8a8a; }

/* Footer ---------------------------------------------------- */
.site-footer { background: #000; color: var(--grey-dim); padding-block: 3rem; border-top: 1px solid var(--line); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.8rem 2rem;
  align-items: start;
}
.footer-brand { color: #fff; }
.footer-brand p { margin: 1rem 0 0; font-size: 0.92rem; max-width: 30ch; color: var(--grey-dim); }
.footer-nav { display: flex; gap: 1.6rem; justify-self: end; flex-wrap: wrap; }
.footer-nav a { font-size: 0.95rem; color: var(--grey); transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.footer-legal { margin: 0; font-size: 0.85rem; }

/* Reveal-on-scroll ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------ */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0d0d0d;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-menu.open { max-height: 380px; }
  .nav-menu li { padding: 0 28px; }
  .nav-menu li a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin: 0.9rem 0; }

  .work-cards,
  .split,
  .about-grid,
  .contact-inner { grid-template-columns: 1fr; }

  .split--reverse .split-text { order: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .work-card:hover { transform: none; }
}
