/* Self-hosted Montserrat (variable weight 100-900), latin + latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   Martynas Kairys (DI): mokymai
   Design system derived from martynaskairys.com
   (../web martynaskairys com/css/styles.css): same
   variables, Mondrian hero block grid, numbered
   sections, duotone photos, hamburger overlay nav,
   footer wordmark.
   ============================================ */

:root {
  --surface: #050507;
  --surface-alt: #1E1F59;
  --ink: #FFFFFF;
  --ink-muted: #E2E2E6;
  --accent: #00C9E8;

  --gutter: 12px;
  --edge: 32px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}

/* stage-light glow, viewport-fixed (no background-attachment: it is janky
   on mobile Safari) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(30,31,89,0.5) 0%, rgba(30,31,89,0) 45%),
    radial-gradient(circle at 85% 60%, rgba(30,31,89,0.35) 0%, rgba(30,31,89,0) 50%);
}

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }

a { color: inherit; text-decoration: none; }

.c-accent { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--surface);
  padding: 10px 16px;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus { left: var(--edge); top: var(--edge); }

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--edge);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5,5,7,0.8) 0%, rgba(5,5,7,0) 100%);
}
.site-header > * { pointer-events: auto; }

.header-mark {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hamburger {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
.hamburger:hover span { width: 28px; background: var(--accent); }
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- Nav overlay ---------- */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-close {
  position: absolute;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; margin: -1px; padding: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.nav-list li { margin: 0.35em 0; }

.nav-link {
  display: inline-block;
  font-size: clamp(1.8rem, 6vw, 3.6rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link:focus { color: var(--accent); }

.nav-cta {
  margin-top: 0.5em !important;
  font-size: clamp(1.1rem, 3vw, 1.5rem) !important;
  color: var(--accent);
}

/* ---------- Layout helpers ---------- */

.section {
  padding: 90px var(--edge);
  position: relative;
  scroll-margin-top: 70px;
}
.section-alt {
  background: rgba(255,255,255,0.015);
}

.section-inner { max-width: none; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 48px;
}
.section-num {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.15;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

ul.plain, ul.check {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.plain li, ul.check li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-top: 1px solid rgba(226, 226, 230, 0.14);
}
ul.plain li:first-child, ul.check li:first-child { border-top: none; }
ul.plain li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--accent);
}
ul.check li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Reveal (progressive, visible by default) ---------- */

.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Duotone photo treatment ---------- */

.duotone {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
}
.duotone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05) brightness(0.92);
  transition: filter 0.5s ease;
}
.duotone::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
/* strong wash for illustrations that clash with the palette (the hero AI image) */
.duotone-strong img {
  filter: grayscale(0.9) contrast(1.1) saturate(1.1) brightness(0.85);
}
.duotone-strong::after {
  background: linear-gradient(160deg, rgba(0,201,232,0.55), rgba(30,31,89,0.8));
  mix-blend-mode: multiply;
}
/* photos of Martynas: the same duotone as martynaskairys.com, natural colour on hover */
.duotone-cyan img, .duotone-dim img {
  filter: grayscale(1) contrast(1.05);
}
.duotone-cyan::after {
  background: linear-gradient(160deg, rgba(0,201,232,0.55), rgba(30,31,89,0.65));
  mix-blend-mode: multiply;
}
.duotone-dim::after {
  background: linear-gradient(160deg, rgba(30,31,89,0.75), rgba(0,201,232,0.35));
  mix-blend-mode: multiply;
}
.duotone-cyan:hover img, .duotone-dim:hover img { filter: grayscale(0) contrast(1); }
.duotone-cyan:hover::after, .duotone-dim:hover::after { opacity: 0; }

/* ---------- Hero (Mondrian block grid) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--edge) + 70px) var(--edge) var(--edge);
  display: flex;
  align-items: stretch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.7fr 1.1fr;
  gap: var(--gutter);
  width: 100%;
  align-items: stretch;
}

.hero-blocks {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: var(--gutter);
}

.block { min-height: 40px; }
.block-cyan { background: var(--accent); }
.block-deepblue { background: var(--surface-alt); }
.block-white { background: var(--ink-muted); }

.block-1 { grid-row: 1 / 2; }
.block-2 { grid-row: 2 / 4; }
.block-3 { grid-row: 4 / 5; }
.block-4 { grid-row: 1 / 3; }

.hero-name-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(4px, 2vw, 20px);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.14;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 28px;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.hero-photo-wrap {
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}

.hero-photo {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.hero-photo:hover img { filter: grayscale(0.5) contrast(1.05); }
.hero-photo:hover::after { opacity: 0.5; }

.block-5 { grid-column: 1 / 2; grid-row: 2 / 3; min-height: 60px; }
.block-6 { grid-column: 2 / 3; grid-row: 2 / 3; min-height: 60px; }

/* ---------- Why section ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.why-body p { font-size: 1.05rem; }
.why-list-label {
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 4px;
}

/* ---------- Trainer section ---------- */

.trainer-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr;
  gap: 56px;
  align-items: center;
}
.trainer-photo {
  aspect-ratio: 3 / 4;
}

/* ---------- Testimonials (row / divider list, no carousel, no cards) ---------- */

.testi-list {
  display: flex;
  flex-direction: column;
}
.testi {
  border-top: 1px solid rgba(226, 226, 230, 0.18);
  padding: 30px 0;
}
.testi:first-child { border-top: none; padding-top: 0; }
.testi:last-child { padding-bottom: 0; }
.testi p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-muted);
  white-space: pre-line;
  max-width: 74ch;
}
.testi-attr {
  margin-top: 14px;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.92rem;
}

/* ---------- Bio ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr;
  gap: 56px;
  align-items: start;
}
.bio-photo {
  aspect-ratio: 3 / 4;
}
.bio-sub {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 600;
  margin: -18px 0 24px;
}
.bio-facts {
  margin-top: 28px;
}
.competencies-label {
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 4px;
}
.bio-closing {
  margin-top: 28px;
  font-style: italic;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.contact-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.contact-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(226, 226, 230, 0.15);
  font-size: 1.15rem;
}
.contact-list li:first-child { border-top: none; }
.contact-list a:hover, .contact-list a:focus { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--surface);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--accent);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover, .btn:focus { background: transparent; color: var(--accent); }

.closing-line {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}
.closing-line .c-accent { display: inline; }

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

.site-footer {
  padding: 40px var(--edge) 50px;
  border-top: 1px solid rgba(226, 226, 230, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-inner { max-width: none; }
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-mark {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.footer-slogan {
  margin: 0;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.footer-privacy {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.footer-privacy:hover, .footer-privacy:focus { color: var(--accent); }

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

@media (max-width: 1024px) {
  .why-grid,
  .trainer-grid,
  .bio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .trainer-photo, .bio-photo { max-width: 420px; }
}

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--edge) + 60px); }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .hero-blocks { grid-template-rows: repeat(4, 60px); }
  .hero-name-panel { padding: 26px 0; }
  .hero-photo-wrap { min-height: 300px; }
  .section { padding: 64px var(--edge); }
}

@media (max-width: 640px) {
  :root { --edge: 20px; --gutter: 8px; }
  .site-header { padding: 16px var(--edge); }
}

/* ---------- Prose (privacy policy page) ---------- */

.prose {
  max-width: 760px;
}
.prose h1 { margin-bottom: 20px; }
.prose-lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin-bottom: 36px;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 44px;
  margin-bottom: 14px;
}
.prose p {
  font-size: 0.98rem;
  line-height: 1.65;
}
.prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.prose ul li { margin-bottom: 8px; }
.prose a {
  color: var(--accent);
  text-decoration: underline;
}
.prose-meta {
  margin-top: 40px;
  color: var(--ink-muted);
  opacity: 0.7;
  font-size: 0.85rem;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(226, 226, 230, 0.2);
}
th {
  color: var(--ink);
  font-weight: 700;
}

/* privacy page and other inner pages are not fixed under the hero, so they
   need the header's fixed height compensated at the top */
.prose-page-top { padding-top: 70px; }
