/* ==========================================================================
   Greek Start Up Universe
   afok system layer: tokens, base type, shell, components
   Prefix and token names are derived from this project's design seed.
   ========================================================================== */

:root,
.afok-theme {
  /* ---- brand palette (inherited from the original site) ---- */
  --afok-ink: #0a0b10;
  --afok-navy: #071019;
  --afok-navy-2: #0e1c27;
  --afok-navy-3: #142a38;
  --afok-terra: #df6236;
  --afok-terra-deep: #b8451f;
  --afok-amber: #ee840a;
  --afok-gold: #c4b583;
  --afok-sky: #ebf6ff;
  --afok-mist: #f4f1ea;
  --afok-paper: #fbf9f5;
  --afok-white: #ffffff;
  --afok-text: #3a4047;
  --afok-muted: #6d747d;
  --afok-line: #e4ddd2;
  --afok-line-strong: #d3c9ba;
  --afok-on-dark: #eef2f5;
  --afok-on-dark-soft: #aab6bf;
  --afok-hair-dark: rgba(255, 255, 255, 0.14);

  /* ---- type families ---- */
  --afok-font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --afok-font-display: "Rancho", "Segoe Script", cursive;
  --afok-font-serif: "Artifika", Georgia, "Times New Roman", serif;
  --afok-font-condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --afok-font-nav: "Reem Kufi", "Barlow Condensed", sans-serif;
  --afok-font-label: "Jost", "Trebuchet MS", sans-serif;

  /* ---- spacing scale (seed gap 24) ---- */
  --afok-gap: 24px;
  --afok-gap-sm: 12px;
  --afok-gap-lg: 48px;
  --afok-shell: 1180px;
  --afok-narrow: 780px;

  /* ---- shape: sharp corners from seed ---- */
  --afok-radius: 0px;
  --afok-radius-sm: 0px;

  /* ---- elevation from seed ---- */
  --afok-shadow: 0 24px 60px -34px rgba(7, 16, 25, 0.55);
  --afok-shadow-soft: 0 14px 34px -24px rgba(7, 16, 25, 0.4);
  --afok-shadow-raised: 0 34px 80px -40px rgba(7, 16, 25, 0.6);

  /* ---- bulma variable overrides (self hosted build) ---- */
  --bulma-family-primary: var(--afok-font-body);
  --bulma-family-secondary: var(--afok-font-serif);
  --bulma-body-family: var(--afok-font-body);
  --bulma-body-size: 1.0625rem;
  --bulma-body-line-height: 1.72;
  --bulma-radius: 0px;
  --bulma-radius-small: 0px;
  --bulma-primary: 17deg 72% 54%;
  --bulma-link: 17deg 72% 44%;
  --bulma-text: 213deg 9% 25%;
  --bulma-text-strong: 220deg 23% 5%;
  --bulma-background: 40deg 33% 98%;
  --bulma-scheme-main: 0deg 0% 100%;
  --bulma-border: 38deg 23% 86%;
}

/* Bulma ships an opinionated body size; align it with the type scale. */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--afok-font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--afok-text);
  background-color: var(--afok-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.afok-locked {
  overflow: hidden;
}

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

::selection {
  background: var(--afok-terra);
  color: #fff;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--afok-terra-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--afok-ink);
}

.afok-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--afok-ink);
  color: #fff;
  font-family: var(--afok-font-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: top 0.2s ease;
}

.afok-skip:focus {
  top: 12px;
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--afok-amber);
  outline-offset: 3px;
}

.afok-shell {
  width: 100%;
  max-width: var(--afok-shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

main [id] {
  scroll-margin-top: 100px;
}

.afok-shell--narrow {
  max-width: 860px;
}

/* ------------------------------------------------------------------ */
/* Typography                                                          */
/* ------------------------------------------------------------------ */

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--afok-ink);
  font-weight: 400;
}

.afok-display {
  font-family: var(--afok-font-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.01em;
}

.afok-h2 {
  font-family: var(--afok-font-condensed);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.afok-h3 {
  font-family: var(--afok-font-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.afok-h4 {
  font-family: var(--afok-font-condensed);
  font-weight: 600;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.afok-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--afok-font-label);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--afok-terra-deep);
}

.afok-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--afok-terra);
  display: inline-block;
}

.afok-kicker--light {
  color: var(--afok-gold);
}

.afok-kicker--light::before {
  background: var(--afok-gold);
}

.afok-lede {
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  line-height: 1.6;
  color: #2f353c;
}

.afok-muted {
  color: var(--afok-muted);
}

.afok-prose p {
  margin: 0 0 1.15em;
}

.afok-prose p:last-child {
  margin-bottom: 0;
}

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

.afok-section {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px);
}

.afok-section--paper {
  background: var(--afok-paper);
}

.afok-section--white {
  background: var(--afok-white);
}

.afok-section--mist {
  background: var(--afok-mist);
}

.afok-section--sky {
  background: var(--afok-sky);
}

.afok-section--ink {
  background: var(--afok-navy);
  color: var(--afok-on-dark);
}

.afok-section--ink h2,
.afok-section--ink h3,
.afok-section--ink h4 {
  color: #fff;
}

.afok-section--ink p {
  color: var(--afok-on-dark-soft);
}

.afok-section--tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.afok-rule {
  height: 1px;
  border: 0;
  background: var(--afok-line);
  margin: 0;
}

.afok-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--afok-gap);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.afok-eyebrow-row .afok-h2 {
  flex: 1 1 420px;
  margin-bottom: 0;
}

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

.afok-top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 249, 245, 0.94);
  border-bottom: 1px solid var(--afok-line);
  backdrop-filter: saturate(140%) blur(10px);
}

.afok-top__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  min-height: 86px;
}

.afok-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding-block: 12px;
}

.afok-brand img {
  width: clamp(176px, 19vw, 220px);
  height: auto;
}

.afok-nav {
  margin-left: auto;
}

.afok-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.afok-nav__link {
  display: inline-block;
  padding: 9px 11px;
  font-family: var(--afok-font-nav);
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--afok-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.afok-nav__link:hover,
.afok-nav__link:focus-visible {
  background: #f0e2d6;
  color: var(--afok-terra-deep);
}

.afok-nav__link[aria-current="page"] {
  color: var(--afok-terra-deep);
  box-shadow: inset 0 -2px 0 var(--afok-terra);
}

.afok-head-cta {
  margin-left: 6px;
}

.afok-nav__toggle {
  display: none;
  width: 48px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--afok-line-strong);
  background: transparent;
  color: var(--afok-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.afok-nav__toggle span,
.afok-nav__toggle span::before,
.afok-nav__toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.afok-nav__toggle span::before,
.afok-nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.afok-nav__toggle span::before { top: -6px; }
.afok-nav__toggle span::after { top: 6px; }

.afok-nav__toggle[aria-expanded="true"] span {
  background: transparent;
}

.afok-nav__toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.afok-nav__toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.afok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--afok-radius);
  font-family: var(--afok-font-label);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.afok-btn:hover {
  transform: translateY(-2px);
}

.afok-btn:active {
  transform: translateY(0);
}

.afok-btn--primary {
  background: var(--afok-terra);
  color: #fff;
}

.afok-btn--primary:hover {
  background: var(--afok-terra-deep);
  color: #fff;
}

.afok-btn--amber {
  background: var(--afok-amber);
  color: var(--afok-ink);
}

.afok-btn--amber:hover {
  background: var(--afok-gold);
  color: var(--afok-ink);
}

.afok-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.afok-btn--ghost:hover {
  background: #fff;
  color: var(--afok-ink);
  border-color: #fff;
}

.afok-btn--line {
  background: transparent;
  border-color: var(--afok-line-strong);
  color: var(--afok-ink);
}

.afok-btn--line:hover {
  border-color: var(--afok-ink);
  background: var(--afok-ink);
  color: #fff;
}

.afok-btn--sm {
  padding: 11px 18px;
  font-size: 0.75rem;
}

.afok-btn__arrow {
  font-size: 1rem;
  line-height: 1;
}

.afok-link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--afok-font-label);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--afok-terra-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--afok-terra);
  padding-bottom: 4px;
}

.afok-link-more:hover {
  color: var(--afok-ink);
  border-color: var(--afok-ink);
}

/* ------------------------------------------------------------------ */
/* Cards and content blocks                                            */
/* ------------------------------------------------------------------ */

.afok-card {
  background: var(--afok-white);
  border: 1px solid var(--afok-line);
  border-radius: var(--afok-radius);
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: var(--afok-shadow-soft);
}

.afok-card--flush {
  padding: 0;
  overflow: hidden;
}

.afok-card__index {
  display: block;
  font-family: var(--afok-font-condensed);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  color: var(--afok-terra);
  margin-bottom: 14px;
}

.afok-media {
  display: block;
  width: 100%;
  object-fit: cover;
}

.afok-figure {
  margin: 0;
  position: relative;
}

.afok-figure figcaption {
  margin-top: 12px;
  font-family: var(--afok-font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--afok-muted);
}

.afok-tag {
  display: inline-block;
  padding: 6px 11px;
  background: var(--afok-sky);
  color: var(--afok-navy);
  font-family: var(--afok-font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.afok-foot {
  background: var(--afok-navy);
  color: var(--afok-on-dark-soft);
  border-top: 4px solid var(--afok-terra);
}

.afok-foot__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 6vw, 76px);
}

.afok-foot__brand img {
  width: 220px;
  background: var(--afok-paper);
  padding: 12px 16px;
}

.afok-foot__brand p {
  margin: 22px 0 0;
  max-width: 42ch;
  color: var(--afok-on-dark-soft);
  font-size: 0.98rem;
}

.afok-foot__heading {
  margin: 0 0 18px;
  font-family: var(--afok-font-condensed);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.afok-foot__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.afok-foot__links a {
  color: var(--afok-on-dark-soft);
  text-decoration: none;
  font-size: 0.96rem;
}

.afok-foot__links a:hover {
  color: var(--afok-gold);
  text-decoration: underline;
}

.afok-foot__bar {
  border-top: 1px solid var(--afok-hair-dark);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--afok-font-label);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--afok-on-dark-soft);
}

.afok-foot__bar a {
  color: var(--afok-on-dark-soft);
  text-decoration: none;
}

.afok-foot__bar a:hover {
  color: var(--afok-gold);
}

/* ------------------------------------------------------------------ */
/* Breadcrumbs                                                         */
/* ------------------------------------------------------------------ */

.afok-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  font-family: var(--afok-font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--afok-muted);
}

.afok-crumbs a {
  color: var(--afok-terra-deep);
  text-decoration: none;
}

.afok-crumbs a:hover {
  text-decoration: underline;
}

.afok-crumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--afok-line-strong);
}

/* ------------------------------------------------------------------ */
/* Scroll reveal (seed: staggered fade)                                */
/* ------------------------------------------------------------------ */

.afok-rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.afok-rise.is-visible {
  opacity: 1;
  transform: none;
}

.afok-rise[data-afok-delay="1"] { transition-delay: 0.08s; }
.afok-rise[data-afok-delay="2"] { transition-delay: 0.16s; }
.afok-rise[data-afok-delay="3"] { transition-delay: 0.24s; }
.afok-rise[data-afok-delay="4"] { transition-delay: 0.32s; }

@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;
  }

  .afok-rise {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ */
/* Responsive shell                                                    */
/* ------------------------------------------------------------------ */

@media (max-width: 1200px) {
  .afok-top__inner {
    min-height: 74px;
    flex-wrap: wrap;
  }

  .afok-nav {
    margin-left: auto;
  }

  .afok-nav__list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--afok-paper);
    border-bottom: 1px solid var(--afok-line);
    padding: 8px 20px 20px;
    box-shadow: var(--afok-shadow);
  }

  .afok-nav.is-open .afok-nav__list {
    display: flex;
  }

  .afok-nav__link {
    padding: 15px 4px;
    border-bottom: 1px solid var(--afok-line);
    font-size: 0.95rem;
  }

  .afok-nav__link[aria-current="page"] {
    box-shadow: none;
  }

  .afok-head-cta {
    display: none;
  }

  .afok-nav__toggle {
    display: inline-flex;
  }

  .afok-foot__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .afok-brand img {
    width: 168px;
  }

  .afok-btn {
    padding: 14px 20px;
    font-size: 0.76rem;
  }

  .afok-foot__brand img {
    width: 190px;
  }
}
