/* styles.css */
/* =========================
   Tokens
========================= */
:root{
  /* --bg: #FBFBFC; */
  --bg: #F7FBFA;
  --text: #111317;
  --muted: rgba(17,19,23,0.72);

  --card: #FFFFFF;
  --border: rgba(17,19,23,0.12);

  --accent: #008260;
  --accent-hover: #006E52;

  --shadow: 0 10px 28px rgba(17,19,23,0.08);

  --r-ui: 12px;
  --r-card: 16px;

  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 72px;
}

/* =========================
   Base
========================= */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
a{ color: inherit; text-decoration: none; }
img{ display: block; max-width: 100%; height: auto; }

.container{
  width: min(1120px, calc(100% - 2*var(--s4)));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: var(--s3);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: var(--r-ui);
  box-shadow: var(--shadow);
}
.skip-link:focus{
  left: var(--s4);
  outline: none;
}

/* =========================
   Typography
========================= */
.h1,.h2,.h3{ margin: 0 0 var(--s2); letter-spacing: -0.01em; }
.h1{ font-size: clamp(28px, 4.6vw, 44px); line-height: 1.15; }
.h2{ font-size: clamp(20px, 3.2vw, 28px); line-height: 1.2; }
.h3{ font-size: 18px; line-height: 1.25; }
.lead{ margin: 0 0 var(--s4); color: var(--muted); max-width: 62ch; }
.muted{ color: var(--muted); margin: 0; }

.kicker{
  display: inline-block;
  margin: 0 0 var(--s2);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(17,19,23,0.64);
}

/* =========================
   Topbar / Nav
========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,251,252,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17,19,23,0.08);
}
.topbar__inner{
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  flex-wrap: wrap;
  row-gap: 10px;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand__logo{
  height: 34px;
  width: auto;
  border-radius: 0;
  border: none;
  background: transparent;
}

.brand__name{
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav{
  display: none;
  gap: 10px;
  margin-left: auto;
}
.nav__link{
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(17,19,23,0.78);
  border: 1px solid transparent;
}
.nav__link:hover{
  color: var(--text);
  border-color: rgba(17,19,23,0.10);
  background: rgba(17,19,23,0.03);
}
.nav__link:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,130,96,0.20);
  border-color: rgba(0,130,96,0.38);
}

.topbar__contact{
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  display: none;
  gap: 10px;
}
.contact-pill{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,130,96,0.28);
  background: rgba(0,130,96,0.08);
  min-width: 0;
  max-width: 100%;
}
.contact-pill--muted{
  border-color: rgba(17,19,23,0.12);
  background: rgba(17,19,23,0.03);
}
.contact-pill__label{
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}
.contact-pill--muted .contact-pill__label{
  color: rgba(17,19,23,0.70);
}
.contact-pill__value{
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.contact-pill--muted .contact-pill__value{
  word-break: break-all;
}

/* =========================
   Buttons
========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: var(--r-ui);
  border: 1px solid rgba(17,19,23,0.14);
  background: transparent;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover{
  background: rgba(17,19,23,0.03);
  border-color: rgba(17,19,23,0.20);
  transform: translateY(-1px);
}
.btn:active{ transform: translateY(0px); }
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,130,96,0.20);
  border-color: rgba(0,130,96,0.38);
}
.btn--primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover{
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--ghost{
  background: #fff;
}
.btn--full{ width: 100%; margin-top: var(--s3); }
@media (prefers-reduced-motion: reduce){
  .btn{ transition: none; }
  .btn:hover{ transform: none; }
}

/* =========================
   Sections / layout helpers
========================= */
.section{
  padding: var(--s6) 0;
}
.section__head{
  margin-bottom: var(--s4);
}
.hero{
  padding: var(--s6) 0 var(--s5);
}
.hero__grid{
  display: grid;
  gap: var(--s5);
}
.hero__actions{
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  margin: 0 0 var(--s4);
}

.two-col{
  display: grid;
  gap: var(--s3);
}

/* Sticky header safety: don't hide section titles under it */
#o-firme, #realizacie, #kontakt{
  scroll-margin-top: 84px;
}

/* =========================
   Cards
========================= */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.card--padded{ padding: var(--s4); }

.divider{
  height: 1px;
  background: rgba(17,19,23,0.08);
  margin: var(--s4) 0;
}
.note{
  margin: 0;
  font-size: 13px;
  color: rgba(17,19,23,0.70);
}

/* =========================
   Hero panel
========================= */
.facts{
  display: grid;
  gap: var(--s3);
  margin-top: var(--s3);
}
.fact__k{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(17,19,23,0.55);
  font-weight: 800;
}
.fact__v{
  font-weight: 800;
  margin-top: 4px;
}

/* =========================
   Lists
========================= */
.service-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(17,19,23,0.82);
}
.service-list li{ margin: 6px 0; }

.bullets{
  margin: var(--s3) 0 0;
  padding-left: 18px;
}
.bullets li{ margin: 8px 0; color: rgba(17,19,23,0.82); }
.bullets--tight li{ margin: 6px 0; }

/* =========================
   Projects
========================= */
.project{ padding: var(--s4); margin-bottom: var(--s3); }
.project__head{
  display: grid;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.meta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(17,19,23,0.70);
  font-weight: 700;
  font-size: 13px;
}
.meta__dot{
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(17,19,23,0.35);
}

.photo-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
}
.photo{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(17,19,23,0.12);
  background: rgba(17,19,23,0.02);
}

/* =========================
   Contact
========================= */
.contact{
  display: grid;
  gap: var(--s3);
}
.contact__rows{
  display: grid;
  gap: 8px;
  margin-top: var(--s2);
}
.contact-row{
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(17,19,23,0.10);
  background: rgba(17,19,23,0.02);
}
.contact-row:hover{
  border-color: rgba(0,130,96,0.28);
  background: rgba(0,130,96,0.05);
}
.contact-row--static:hover{
  border-color: rgba(17,19,23,0.10);
  background: rgba(17,19,23,0.02);
}
.contact-row__k{
  color: rgba(17,19,23,0.65);
  font-weight: 800;
}
.contact-row__v{
  font-weight: 900;
  color: var(--accent);
}
.contact-row--static .contact-row__v{
  color: rgba(17,19,23,0.86);
  font-weight: 800;
}
.contact-row:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,130,96,0.20);
  border-color: rgba(0,130,96,0.38);
}

/* =========================
   Footer
========================= */
.footer{
  border-top: 1px solid rgba(17,19,23,0.10);
  padding: var(--s4) 0;
}
.footer__inner{
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
}

/* =========================
   Breakpoints (exactly 3)
   0–640px: base (mobile-first)
   641–1024px: tablet
   1025px+: desktop
========================= */
@media (max-width: 640px){
  .container{ width: calc(100% - 2*var(--s3)); }
  .photo-grid{ grid-template-columns: 1fr; }
  .brand{ min-width: auto; }
}

@media (min-width: 641px) and (max-width: 1024px){
  .nav{ display: flex; }
  .topbar__contact{ display: flex; }
  .hero__grid{
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
  .two-col{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand{ min-width: 160px; }
}

@media (min-width: 1025px){
  .nav{ display: flex; }
  .topbar__contact{ display: flex; }
  .hero__grid{
    grid-template-columns: 1.35fr 0.65fr;
    align-items: start;
  }
  .two-col{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
