/* ==========================================================================
   STONIKS - Stoyan Stoychev, portfolio
   style.css
   1. Tokens
   2. Reset & base
   3. Layout helpers
   4. Header / navigation
   5. Hero
   6. Services
   7. Process
   8. Quote
   9. About
   10. Contact
   11. Footer
   12. Responsive - tablet (<=860px) / mobile (<=560px)
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --ink: #0E2238;
  --ink-soft: #1A3350;
  --paper: #F5F7F8;
  --panel: #FFFFFF;
  --slate: #435063;
  --slate-light: #7A8494;
  --steel: #2E6F95;
  --amber: #C98A2C;
  --amber-hover: #D99A3C;
  --line: #DCE2E8;
  --on-dark: #B7C4D1;
  --on-dark-dim: #7C8CA1;
  --on-dark-accent: #8FB6CC;

  --display: 'IBM Plex Serif', Georgia, serif;
  --body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --maxw: 1180px;
  --gutter: 32px;
  --section-y: 96px;
}

/* 2. Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
p { margin: 0; }
img, svg { max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--ink); }

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.reveal { animation: fadeUp .7s ease both; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; scroll-behavior: auto; }
}

/* 3. Layout helpers ---------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--amber);
  border-radius: 1px;
}
.eyebrow--light { color: var(--on-dark-accent); }

.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  color: var(--ink);
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: .92rem;
  font-weight: 500;
  border-radius: 2px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--steel); color: var(--paper); }
.btn--outline { border: 1px solid var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--amber { background: var(--amber); color: var(--ink); font-weight: 600; align-self: flex-start; }
.btn--amber:hover { background: var(--amber-hover); color: var(--ink); }

/* 4. Header / navigation ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 248, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
}

@media (min-width: 961px) {
  .site-nav { flex-wrap: nowrap; }
}

@media (max-width: 1080px) and (min-width: 961px) {
  .nav-links { gap: 22px; }
}

.logo { display: flex; flex-direction: column; gap: 6px; line-height: 1; }
.logo img { height: 32px; width: auto; display: block; }
.logo__tagline {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.nav-links { display: flex; align-items: center; gap: 36px; font-size: .92rem; font-weight: 500; }
.nav-links a { color: var(--slate); padding: 4px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: var(--paper); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(14, 34, 56, .08);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a { color: var(--ink); font-size: 1rem; font-weight: 500; }
.nav-mobile .nav-mobile__cta { color: var(--steel); font-weight: 600; }

/* 5. Hero -------------------------------------------------------------- */
.hero {
  padding: 88px 0 var(--section-y);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero .eyebrow { margin-bottom: 22px; }

.hero__title {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.28;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}
.hero__title em { font-style: normal; color: var(--steel); }

.hero__lead {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.stats { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat__num { font-family: var(--mono); font-size: 1.5rem; font-weight: 500; color: var(--ink); }
.stat__label { font-size: .78rem; color: var(--slate-light); margin-top: 4px; max-width: 16ch; }

.figure-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 28px 24px 24px;
}
.figure-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 18px;
}
.figure-panel img { display: block; width: 100%; height: auto; }

/* 6. Services ---------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--panel);
  padding: 36px 28px;
}
.service__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-bottom: 24px;
  border: 1.3px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink);
}
.service h3 { font-size: 1.05rem; margin-bottom: 12px; }
.service p { color: var(--slate); font-size: .92rem; }

/* 7. Process ----------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step__num { display: block; font-family: var(--mono); font-size: .85rem; color: var(--amber); margin-bottom: 14px; }
.step h3 { font-size: 1.02rem; margin-bottom: 10px; }
.step p { color: var(--slate); font-size: .9rem; }

/* 8. Quote ------------------------------------------------------------- */
.quote-band {
  padding: 72px 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.5;
  color: var(--ink);
}
.quote::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--amber);
  margin: 0 auto 28px;
}

/* 9. About ------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.profile {
  display: block;
  align-self: start;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}
.profile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1448 / 1086; /* reserves the box before the file loads */
}

@media (max-width: 860px) {
  .profile img { aspect-ratio: 1999 / 787; }
}
@media (max-width: 560px) {
  .profile img { aspect-ratio: 1774 / 887; }
}

.about__text { color: var(--slate); font-size: 1.08rem; margin-top: 18px; }

.checklist { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.check { display: flex; gap: 16px; align-items: flex-start; }
.check__mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.3px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}
.check strong { display: block; font-weight: 600; font-size: .98rem; color: var(--ink); }
.check span { font-size: .9rem; line-height: 1.5; color: var(--slate); }

/* 10. Contact ---------------------------------------------------------- */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section-y) 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.contact__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--paper);
  margin-top: 18px;
  max-width: 16ch;
}
.contact__side { display: flex; flex-direction: column; gap: 18px; }
.contact__side p { color: var(--on-dark); font-size: .98rem; }

.contact__nap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-style: normal;
  font-size: .85rem;
  color: var(--on-dark);
  padding-top: 6px;
}
.contact__nap span { display: flex; align-items: baseline; gap: 8px; }
.contact__nap-key {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-accent);
}
.contact__nap a { color: var(--paper); }
.contact__nap a:hover { color: var(--amber); }

/* 11. Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 28px 0;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand img { height: 22px; width: auto; display: block; }
.site-footer__brand p { font-family: var(--mono); font-size: .75rem; color: var(--on-dark-dim); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__links a { font-size: .8rem; color: #A9B6C6; }
.site-footer__links a:hover { color: var(--paper); }

.social { display: flex; gap: 10px; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 2px;
  color: #A9B6C6;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.social a:hover { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.social svg { width: 16px; height: 16px; display: block; }

/* Language switcher */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
}
.lang__icon { display: flex; color: var(--steel); }
.lang__icon svg { width: 15px; height: 15px; display: block; }
.lang__sep { color: var(--line); }
.lang__opt {
  color: var(--slate-light);
  font-weight: 500;
  transition: color .2s ease;
}
.lang__opt:hover { color: var(--ink); }
.lang__opt.is-active { color: var(--ink); font-weight: 600; }

.nav-mobile .lang { padding: 9px 14px; font-size: .8rem; }
.nav-mobile .lang__icon svg { width: 17px; height: 17px; }

/* 12. Responsive ------------------------------------------------------- */

/* Tablet - up to 960px */
@media (max-width: 960px) {
  .site-nav { position: relative; padding: 14px var(--gutter); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* Tablet - up to 860px */
@media (max-width: 860px) {
  :root { --gutter: 24px; --section-y: 72px; }

  .hero { padding: 64px 0 var(--section-y); }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .figure-panel { max-width: 520px; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }

  .contact__grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .contact__title { max-width: 24ch; }
}

/* Mobile - up to 560px */
@media (max-width: 560px) {
  :root { --gutter: 20px; --section-y: 60px; }

  body { font-size: 15.5px; }

  .logo img { height: 26px; }
  .logo__tagline { font-size: .56rem; }

  .hero { padding: 48px 0 var(--section-y); }
  .hero__grid { gap: 40px; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .stats { gap: 28px; }
  .stat__label { max-width: 20ch; }

  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 28px 22px; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }

  .section-head { margin-bottom: 36px; }
  .quote-band { padding: 56px 0; }

  .btn--amber { width: 100%; justify-content: center; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}
