/* ============================================================
   Acrithm — styles.css
   ------------------------------------------------------------
   1. Theme variables  <- change colours & fonts HERE
   2. Base / reset
   3. Reusable bits (buttons, wordmark)
   4. Header / nav
   5. Hero
   6. Trust / experience
   7. About page
   8. Contact + form
   9. Footer
   10. Responsive + reduced-motion
   ============================================================ */

/* ---------- 1. THEME VARIABLES ---------- */
:root {
  --void:         #0d0f12;
  --charcoal:     #16191e;
  --charcoal-2:   #1e232a;
  --line:         #2a2f37;
  --gold:         #c9a227;
  --gold-bright:  #e6c256;
  --text:         #e8e9eb;
  --muted:        #9aa1ab;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1080px;
  --pad:  clamp(1.25rem, 5vw, 4rem);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: border-box; }

/* ---------- 2. BASE / RESET ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 20;
  background: var(--gold); color: var(--void);
  padding: .6rem 1rem; border-radius: 4px; font-weight: 600;
}

/* ---------- 3. REUSABLE BITS ---------- */
.wordmark { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; color: var(--text); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 6px; border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--gold); color: var(--void); }
.btn--primary:hover { background: var(--gold-bright); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- 4. HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  background: rgba(13, 15, 18, 0.82);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

/* brand = logo placeholder + name */
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__logo {
  /* LOGO PLACEHOLDER box — swap for your <img>/<svg> later */
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--void);
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.2rem;
  line-height: 1;
}
.brand__img {
  height: 40px;
  width: auto;
  display: block;
}
.brand__name {
  font-family: var(--font-body);
  font-weight: 600; font-size: 1.25rem; letter-spacing: -0.5px;
  color: var(--text);
}

.nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 1.75rem); }
.nav__link {
  color: var(--muted); font-weight: 500; font-size: .98rem;
  padding: .25rem 0; position: relative;
  transition: color .18s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--gold); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.nav__icon { display: inline-flex; align-items: center; }
.nav__icon:hover { color: var(--gold-bright); }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) var(--pad) clamp(3rem, 9vh, 5.5rem);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 34ch; }
.hero__mark {
  font-family: var(--font-body);   /* wordmark set in the UI sans for a techy feel */
  font-weight: 600; letter-spacing: -2px;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 0.98; margin: 0 0 1rem;
}
.hero__descriptor { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--gold); margin: 0 0 1rem; font-weight: 500; }
.hero__line { color: var(--muted); margin: 0 0 2.25rem; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .55; pointer-events: none; }

/* ---------- 6. TRUST / EXPERIENCE ---------- */
.trust { border-top: 1px solid var(--line); background: var(--charcoal); }
.trust__grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 9vh, 6rem) var(--pad);
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.trust__heading {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.15; margin: 0 0 1.5rem;
}
.trust__body { color: var(--muted); margin: 0 0 1.1rem; }
.trust__facts { list-style: none; margin: 0; padding: 0; }
.fact { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fact:first-child { padding-top: 0; }
.fact__key { color: var(--gold); font-weight: 600; }
.fact__val { color: var(--muted); font-size: .97rem; }

/* generic inner page wrapper (about, contact) */
.page { min-height: 60vh; }

/* ---------- 7. ABOUT PAGE ---------- */
.about { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 8vh, 5rem) var(--pad); }
.about__grid {
  display: grid; grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 6vw, 4.5rem); align-items: start;
}
/* photo placeholder (swap for <img class="about__photo">) */
.about__photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem;
  width: 100%; aspect-ratio: 4 / 5;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--charcoal);
  color: var(--muted);
  object-fit: cover;  /* applies once it becomes an <img> */
}
.about__photo-label { font-size: .9rem; font-weight: 500; }
.about__photo-hint { font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.about__photo-hint code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 .35em;
  color: var(--gold);
  font-size: .95em;
}

.about__eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin: 0 0 .5rem; }
.about__heading { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1.25rem; line-height: 1.05; }
.about__lead { font-size: 1.15rem; color: var(--text); margin: 0 0 1.1rem; }
.about__text { color: var(--muted); margin: 0 0 1.1rem; }
.about__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }

/* ---------- 8. CONTACT + FORM ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 9vh, 6rem) var(--pad);
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.contact__heading { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 1rem; }
.contact__body { color: var(--muted); margin: 0 0 1.75rem; }
.contact__direct { display: flex; flex-direction: column; gap: .35rem; }
.contact__label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.contact__link { color: var(--gold); font-weight: 500; width: max-content; border-bottom: 1px solid transparent; transition: border-color .18s ease, color .18s ease; }
.contact__link:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

.form__row { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.form__label { font-size: .95rem; font-weight: 500; margin-bottom: .4rem; }
.form__optional { color: var(--muted); font-weight: 400; }
.form__input {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--charcoal-2); border: 1px solid var(--line);
  border-radius: 6px; padding: .75rem .85rem; transition: border-color .18s ease;
}
.form__input::placeholder { color: var(--muted); }
.form__input:focus { border-color: var(--gold); outline: none; }
.form__input:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.form__textarea { resize: vertical; min-height: 120px; }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { margin-top: .25rem; }
.form__status { margin: 1rem 0 0; font-size: .97rem; min-height: 1.4em; }
.form__status--ok  { color: var(--gold-bright); }
.form__status--err { color: #e08a7a; }
.form__input.is-invalid { border-color: #e08a7a; }

/* ---------- 9. FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  max-width: var(--maxw); margin: 0 auto;
  padding: 2rem var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem;
  justify-content: center;
}
.footer__brand { font-weight: 600; letter-spacing: -0.5px; }
.footer__logo-link { display: inline-flex; align-items: center; }
.footer__logo { height: 30px; width: auto; display: block; }
.footer__meta { color: var(--muted); font-size: .9rem; }
.footer__link { color: var(--gold); font-size: .9rem; border-bottom: 1px solid transparent; transition: border-color .18s ease; }
.footer__link:hover { border-color: var(--gold); }

/* ---------- 10. RESPONSIVE + REDUCED MOTION ---------- */
@media (max-width: 760px) {
  .trust__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 260px; }
  .nav { gap: 1rem; }
  .nav__link { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

