/* ==========================================================================
   Harez Labs — one-page site
   Colors come only from the logo (navy + cream) plus one accent (blue).
   ========================================================================== */

:root {
  --navy: #092F4E;
  --surface: #0E3A5F;
  --cream: #FDF6EC;
  --cream-60: rgba(253, 246, 236, 0.6);
  --cream-15: rgba(253, 246, 236, 0.15);
  --accent: #2FA4F5;          /* site accent (user decision 2026-12-01); navy on accent = 5.07:1 */
  --hero-dot: var(--accent);  /* hero ribbon dots */
  --error: #FF9E8F;           /* form errors only (proposal); ~7:1 on navy and surface */

  --font-head: "Philosopher", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Lexend", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.08; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-label);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type helpers ---------- */
.label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-60);
}
.label--accent { color: var(--accent); }

.h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--cream-60);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--accent); color: var(--navy); }
.btn--primary:hover { background: var(--cream); }
.btn--outline { border-color: var(--cream-60); color: var(--cream); }
.btn--outline:hover { border-color: var(--cream); background: var(--cream-15); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 47, 78, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; color: var(--cream); padding: 4px 0; }
.brand__logo { width: 136px; height: auto; }

.nav__menu { display: flex; align-items: center; gap: 40px; }

.nav__links { display: flex; gap: 32px; }
.nav__links a,
.footer__links a {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-60);
  transition: color .2s ease;
}
.nav__links a:hover,
.footer__links a:hover { color: var(--cream); }

.nav__actions { display: flex; align-items: center; gap: 20px; }

.lang { display: flex; align-items: center; gap: 6px; font-family: var(--font-label); font-size: 12px; }
.lang__sep { color: var(--cream-15); }
.lang__btn {
  background: none;
  border: 0;
  padding: 6px 4px;
  color: var(--cream-60);
  font: inherit;
  letter-spacing: 0.2em;
  cursor: pointer;
}
.lang__btn[aria-pressed="true"] { color: var(--cream); text-decoration: underline; text-underline-offset: 6px; }
.lang__btn:hover { color: var(--cream); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--cream-15);
  border-radius: var(--radius);
  color: var(--cream);
  padding: 8px 14px;
  min-height: 40px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before,
.nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -5px; }
.nav__toggle-bars::after { top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--navy);
    border-bottom: 1px solid var(--cream-15);
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--cream-15); font-size: 13px; }
  .nav__actions { justify-content: space-between; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--accent); }

.hero__intro {
  margin-top: 28px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--cream-60);
  max-width: 42ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__visual { position: relative; }
.hero__canvas { width: 100%; aspect-ratio: 3 / 2; }
@media (min-width: 1100px) {
  /* Let the visual run slightly past its column toward the page edge. */
  .hero__canvas { width: calc(100% + 64px); max-width: none; margin-left: -24px; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 560px; width: 100%; margin-inline: auto; }
}

/* ---------- Strip ---------- */
.strip {
  border-block: 1px solid var(--cream-15);
  padding-block: 18px;
}
.strip__text { text-align: center; color: var(--cream); }

/* ---------- Sections ---------- */
/* One rule owns section spacing; modifiers only change colors. */
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }

/* Studio + consulting intro: heading left, text right */
.studio__grid,
.consulting__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.studio__punch {
  margin-top: 28px;
  font-family: var(--font-head);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
}

/* Services: two labelled groups (Games / Software consulting) */
.service-group { margin-top: 48px; }
.service-group + .service-group { margin-top: 56px; }
.service-group__title { font-family: var(--font-label); line-height: 1.6; }

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.service--wide { grid-column: 1 / -1; }
.service {
  position: relative;
  padding: 28px 28px 30px;
  border: 1px solid var(--cream-15);
  border-radius: var(--radius);
  background: var(--navy);
}
.service::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--cream);
}
.service__title { font-size: 24px; }
.service p { margin-top: 8px; color: var(--cream-60); }

/* Games */
.games { display: grid; gap: 24px; margin-top: 48px; }

.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  border: 1px solid var(--cream-15);
  border-radius: var(--radius);
  overflow: hidden;
}

.game__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3.5vw, 44px);
}

.game__head { display: flex; align-items: center; gap: 16px; }
.game__icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}
.game__title { font-size: clamp(24px, 2.4vw, 32px); }
.game__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.badge--live { background: var(--accent); color: var(--navy); }

.game__genre { font-size: 11px; }
.game__tagline { font-family: var(--font-head); font-size: 20px; color: var(--cream); }
.game__desc { color: var(--cream-60); }

.game__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  line-height: 0;
}
/* Official Google Play badge: unmodified, fixed height */
.game__badge { display: block; height: 56px; width: auto; }
.game__dev { margin-top: auto; color: var(--cream-60); }

.game__media {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border-left: 1px solid var(--cream-15);
}
/* Landscape feature graphics keep their own 1024:500 ratio: never cropped, centred in the row */
.game__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 500;
  object-fit: contain;
}
/* Square artwork fills the row height set by the text column */
.game__media:has(.game__cover--contain) { min-height: 260px; }
.game__cover--contain { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; padding: 24px; }

/* Placeholder cover (used when a game has no cover yet) */
.cover-ph {
  flex: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 100%;
  min-height: 260px;
  padding: 32px;
  text-align: center;
}
.cover-ph svg { width: 72px; height: 52px; color: var(--cream-60); }
.cover-ph__name { font-family: var(--font-head); font-size: clamp(24px, 3vw, 36px); font-weight: 700; }

/* Why */
.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: 48px;
  counter-reset: none;
}
.why__item { border-top: 1px solid var(--cream-15); padding-top: 24px; }
.why__num { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.why__title { margin-top: 16px; font-size: 26px; }
.why__item p { margin-top: 10px; color: var(--cream-60); }

/* Consulting */
.consulting__cta { margin-top: 32px; }

.steps__title { margin-top: clamp(56px, 7vw, 88px); font-family: var(--font-label); line-height: 1.6; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: 20px;
}
/* A real sequence: a line with a dot per step, number above the title */
.step { position: relative; border-top: 1px solid var(--cream-15); padding-top: 24px; }
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.step__num { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.step__title { margin-top: 12px; font-size: 24px; }
.step p { margin-top: 10px; color: var(--cream-60); }

/* Contact: intro left, form right */
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.cta__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cta__mark { width: 64px; height: 47px; color: var(--cream); }
.cta__title { font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.02em; }
.cta__mail { color: var(--cream-60); }
.cta__mail a { color: var(--cream); text-underline-offset: 3px; }
.cta__mail a:hover { color: var(--accent); }

/* Form */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}
.field__opt { color: var(--cream-60); letter-spacing: 0.1em; text-transform: none; }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--cream-15);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--cream);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  transition: border-color .2s ease;
}
.field__input::placeholder { color: var(--cream-60); opacity: 0.7; }
.field__input:hover { border-color: var(--cream-60); }
.field__input:focus-visible { outline-offset: 0; border-color: var(--accent); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field__select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(-45deg, transparent 50%, var(--cream) 50%);
  background-position: right 20px center, right 15px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field__error { font-size: 14px; color: var(--error); }
.field__error:empty { display: none; }

/* Honeypot: off-screen for people, still in the DOM for bots */
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__submit { cursor: pointer; }
.form__submit:disabled { cursor: progress; opacity: 0.7; }
.form__status { flex: 1 1 220px; font-size: 15px; }
.form__status[data-state="success"] { color: var(--accent); }
.form__status[data-state="error"] { color: var(--error); }

/* Footer */
.site-footer { border-top: 1px solid var(--cream-15); padding-block: 40px; }
.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 40px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__mark { width: 40px; height: 29px; color: var(--cream); }
.footer__name { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.2; }
.footer__tagline { font-size: 14px; color: var(--cream-60); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.footer__legal { font-size: 14px; color: var(--cream-60); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 860px) {
  .studio__grid,
  .consulting__grid,
  .cta__grid { grid-template-columns: 1fr; }
  .game { grid-template-columns: 1fr; }
  .game__media { order: -1; display: block; border-left: 0; border-bottom: 1px solid var(--cream-15); }
  .game__badge { height: 48px; }
  .game__cover--contain { position: static; height: auto; aspect-ratio: 16 / 10; }
  .why { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; justify-items: start; }
  .footer__links { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .services,
  .steps,
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
  .game__icon { width: 52px; height: 52px; border-radius: 12px; }
}

@media (max-width: 400px) {
  .btn { padding-inline: 18px; letter-spacing: 0.12em; }
  .nav__actions .btn--sm { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Privacy link in a game row */
.game__privacy { align-self: flex-start; color: var(--cream-60); text-decoration: underline; text-underline-offset: 3px; }
.game__privacy:hover { color: var(--accent); }
