/* ==========================================================================
   Armita Technologies — shared design system
   Space Grotesk (display) + General Sans (body), brand colour tokens,
   component classes, motion + accessibility primitives.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/GeneralSans-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/GeneralSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/GeneralSans-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/GeneralSans-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-green: #02835a;      /* primary */
  --c-green-deep: #016245; /* pressed / hover state of primary */
  --c-bright: #20c677;     /* tertiary — accents, small highlights */
  --c-charcoal: #17202a;   /* secondary — dark sections, headings */
  --c-blue: #0024ff;       /* accent — trust / tech moments, used sparingly */
  --c-gold: #e6b84a;       /* tertiary — warmth, rare premium accent */
  --c-paper: #f7f5ef;      /* warm neutral background, not pure white */
  --c-cream: #efece2;
  --c-ink: #14201b;        /* body copy on paper */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: "General Sans", "Inter Tight", sans-serif;
  background: var(--c-paper);
  color: var(--c-ink);
  line-height: 1.7;
}

h1, h2, h3, h4, .font-display {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

::selection { background: var(--c-bright); color: var(--c-charcoal); }

/* Focus-visible — brand-coloured ring on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--c-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--c-green);
  color: #fff;
  box-shadow: 0 1px 2px rgba(2, 40, 26, 0.3), 0 8px 20px -6px rgba(2, 131, 90, 0.55);
}
.btn-primary:hover { background: var(--c-green-deep); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(2, 40, 26, 0.35), 0 14px 28px -8px rgba(2, 131, 90, 0.6); }

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.7); transform: translateY(-2px); background: rgba(255, 255, 255, 0.06); }

.btn-ghost-light {
  background: transparent;
  color: var(--c-charcoal);
  border: 1px solid rgba(23, 32, 42, 0.18);
}
.btn-ghost-light:hover { border-color: rgba(23, 32, 42, 0.45); transform: translateY(-2px); background: rgba(23, 32, 42, 0.04); }

.btn-on-green {
  background: #fff;
  color: var(--c-green);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15), 0 10px 24px -8px rgba(0,0,0,0.35);
}
.btn-on-green:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,0.18), 0 16px 30px -8px rgba(0,0,0,0.4); }

/* ---- Layered, colour-tinted shadows for elevated surfaces ---------- */
.shadow-elevated {
  box-shadow:
    0 1px 1px rgba(2, 32, 22, 0.04),
    0 4px 10px -2px rgba(2, 32, 22, 0.08),
    0 16px 32px -12px rgba(2, 32, 22, 0.16);
}
.shadow-floating {
  box-shadow:
    0 2px 2px rgba(2, 32, 22, 0.05),
    0 12px 24px -6px rgba(2, 32, 22, 0.14),
    0 32px 64px -20px rgba(2, 32, 22, 0.22);
}

/* ---- Card lift on hover (transform/opacity only) -------------------- */
.lift {
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
}
.lift:hover { transform: translateY(-6px); }

/* ---- Image treatment: gradient + brand colour blend ----------------- */
.img-treat { position: relative; overflow: hidden; }
.img-treat img { transition: transform 0.7s var(--ease-out); }
.img-treat:hover img { transform: scale(1.045); }
.img-treat::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2,10,7,0.72) 0%, rgba(2,10,7,0.15) 45%, rgba(2,10,7,0) 65%);
  pointer-events: none;
}
.img-treat.tint::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--c-green);
  mix-blend-mode: multiply;
  opacity: 0.28;
  z-index: 1;
  pointer-events: none;
}

/* ---- Grain / noise texture for dark sections ------------------------ */
.noise { position: relative; }
.noise::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ---- Brand flower pattern watermark ---------------------------------- */
.pattern-wash {
  background-image: url("/assets/pattern/armita-icon.png");
  background-repeat: repeat;
  background-size: 120px 120px;
}

/* ---- One orchestrated load-in moment for the hero only --------------
   Deliberately not used as a scroll-triggered reveal on every section:
   content must never depend on JS/IntersectionObserver timing to become
   visible (breaks for slow scripts, crawlers, print, and full-page
   capture tools). This is a pure CSS entrance, present from first paint. */
.fade-in-up {
  animation: fadeInUp 0.9s var(--ease-out) both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in-up { animation: none; }
}

/* ---- Numbered step marker -------------------------------------------- */
.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---- Nav underline hover ---------------------------------------------- */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 1.5px;
  background: currentColor;
  transition: right 0.35s var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { right: 0; }

/* ---- Mobile menu ------------------------------------------------------ */
#mobile-menu { transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out); }
#mobile-menu[hidden] { display: flex !important; opacity: 0; visibility: hidden; pointer-events: none; }
#mobile-menu:not([hidden]) { opacity: 1; visibility: visible; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--c-charcoal); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
