/* =========================================================
   fredidoho.com
   Farby a rozmery meň tu hore — premietne sa to všade.
   ========================================================= */

:root{
  /* Farby */
  --navy:        #003061;
  --navy-dark:   #002050;
  --cream:       #FCFAE9;   /* hero pozadie */
  --cream-soft:  #FFFCF3;   /* sekcia Let's connect, FAB tlačidlo */
  --cream-hover: #F5F0E0;
  --white:       #FFFFFF;
  --grey-footer: #EDEDED;
  --grey-soft:   #F5F5F5;   /* striedavy pruh v case study */

  --blue-soft:   #EEF1FB;   /* striedavy pruh v Medical */
  --dark:        #3A3A38;   /* sekcia s referenciami */

  /* Typografia */
  --font-display: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Rozmery */
  --container:   1440px;
  --gutter:      40px;
  --header-h:    88px;
  --case-gap:    96px;   /* odstup medzi sekciami case study */
  --shadow:      0 10px 20px rgba(0,0,0,.18);
}

/* ---------- Základ ---------- */

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

html{ scroll-behavior:smooth; scroll-padding-top:var(--header-h); }

body{
  margin:0;
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.6;
  color:var(--navy);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}

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

a{ color:var(--navy); }

.container{
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

/* Viditeľný focus pre klávesnicu */
a:focus-visible, button:focus-visible{
  outline:3px solid var(--navy);
  outline-offset:3px;
  border-radius:4px;
}

/* ---------- Hlavička ---------- */

.site-header{
  position:sticky; top:0; z-index:1000;
  background:var(--white);
  border-bottom:1px solid rgba(0,48,97,.08);
}

.header-inner{
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between;
  gap:24px;
}

.logo{
  font-family:var(--font-display);
  font-weight:500;
  font-size:24px;
  text-decoration:none;
  letter-spacing:-.3px;
}

.site-nav{ display:flex; gap:36px; }

.site-nav a{
  font-family:var(--font-display);
  font-weight:500;
  font-size:17px;
  text-decoration:none;
  padding-bottom:3px;
  border-bottom:2px solid transparent;
}

.site-nav a:hover{ border-bottom-color:rgba(0,48,97,.35); }
.site-nav a.is-active{ border-bottom-color:var(--navy); }

/* Hamburger — skrytý na desktope */
.nav-toggle{
  display:none;
  width:44px; height:44px;
  background:none; border:0; cursor:pointer;
  padding:10px;
}
.nav-toggle span{
  display:block; height:2px; background:var(--navy);
  margin:5px 0; border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */

.hero{
  background:var(--cream) url('../img/hero-bg.jpg') center / cover no-repeat;
  position:relative;
  overflow:hidden;
}

.hero-inner{
  position:relative;
  min-height:calc(100vh - var(--header-h));
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-block:80px;
}

/* Stmavenie hero vety pred prechodom na ďalšiu.
   Dĺžku meň spolu s premennou fadeTime v js/main.js */
.hero-type.is-fading{ opacity:0; }

.hero-type{
  transition:opacity .5s ease;
  font-family:var(--font-body);
  font-weight:600;
  font-size:clamp(48px, 9vw, 140px);
  line-height:1;
  letter-spacing:-2px;
  margin:0;
  min-height:1.1em;          /* aby text pri animácii neposkakoval */
}

.cursor{
  display:inline-block;
  margin-left:6px;
  font-weight:400;
  opacity:.6;
  animation:blink 1.8s infinite;
}

@keyframes blink{
  0%,100%{ opacity:.6; }
  50%    { opacity:0; }
}

.hero-aside{
  margin-top:auto;
  padding-top:80px;
  max-width:640px;
  margin-left:auto;
  text-align:right;
}

.hero-claim{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(24px, 3vw, 38px);
  margin:0;
}

.hero-tagline{
  font-style:italic;
  font-size:clamp(17px, 1.8vw, 24px);
  margin:16px 0 40px;
}

/* ---------- Tlačidlá ---------- */

.btn{
  display:inline-block;
  font-family:var(--font-display);
  font-weight:500;
  font-size:18px;
  text-decoration:none;
  padding:18px 44px;
  border-radius:9999px;
  transition:background .2s ease, color .2s ease;
}

.btn-solid{
  background:var(--navy);
  color:var(--white);
  border:2px solid var(--navy);
}
.btn-solid:hover{ background:var(--navy-dark); border-color:var(--navy-dark); }

.btn-outline{
  background:transparent;
  color:var(--navy);
  border:2px solid var(--navy);
}
.btn-outline:hover{ background:var(--navy); color:var(--white); }

/* ---------- Sekcia projektov ---------- */

.work{
  background:var(--white);
  padding-block:110px;
}

.section-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(38px, 5.5vw, 68px);
  letter-spacing:-1px;
  margin:0 0 80px;
}

.project{
  display:grid;
  grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  gap:72px;
  align-items:center;
  margin-bottom:96px;
}

.project:last-child{ margin-bottom:0; }

.project-media{
  position:relative;
  display:block;
  overflow:hidden;
}

.project-media img{
  width:100%;
  height:auto;
  transition:transform .4s ease;
}

.project-media:hover img{ transform:scale(1.03); }

.badge{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  background:var(--grey-footer);
  color:var(--navy);
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(24px, 3vw, 44px);
  padding:6px 20px;
  white-space:nowrap;
}

.project-body h3{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(26px, 3vw, 40px);
  line-height:1.2;
  margin:0 0 24px;
}

.project-body h3 a{ text-decoration:underline; text-underline-offset:4px; }

.project-body p{
  text-align:justify;
  margin:0;
  max-width:62ch;
}

/* ---------- Referencie ---------- */

.quotes{
  background:var(--dark) url('../img/leaves.jpg') center / cover no-repeat;
  background-blend-mode:multiply;
  color:var(--white);
  padding-block:100px;
}

.quotes-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:80px;
}

.quote{ margin:0; display:flex; flex-direction:column; }

.stars{
  text-align:center;
  letter-spacing:4px;
  font-size:20px;
  margin:0 0 28px;
}

.quote blockquote{ margin:0; }
.quote blockquote p{ margin:0 0 20px; }

.quote figcaption{
  margin-top:auto;
  padding-top:48px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}

.quote figcaption img{
  width:56px; height:56px;
  border-radius:50%;
  object-fit:cover;
}

.quote-name{ font-weight:500; }
.quote-role{ font-size:16px; }

/* ---------- Let's connect ---------- */

.connect{
  background:var(--cream-soft);
  padding-block:100px;
}

.connect-inner{
  display:grid;
  grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  gap:72px;
  align-items:center;
}

.connect-photo{
  width:100%;
  aspect-ratio:4 / 5;
  object-fit:cover;
}

.connect-body{ text-align:center; }

.connect-body h2{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(38px, 5vw, 62px);
  margin:0 0 56px;
}

.connect-body .btn{ display:block; width:280px; margin:0 auto 24px; }

/* ---------- Pätička ---------- */

.site-footer{
  background:var(--grey-footer);
  padding-block:64px;
}

.footer-inner{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr)) 1fr;
  gap:48px;
  align-items:end;
}

.footer-col h2{
  font-family:var(--font-display);
  font-weight:600;
  font-size:19px;
  letter-spacing:.5px;
  text-transform:uppercase;
  margin:0 0 24px;
}

.footer-col p{ margin:0 0 16px; }

.copyright{
  grid-column:3;
  text-align:right;
  font-size:15px;
  margin:0;
}

/* ---------- Plávajúce tlačidlá ---------- */

.fab{
  position:fixed;
  bottom:calc(16px + env(safe-area-inset-bottom,0px));
  border:none;
  border-radius:9999px;
  box-shadow:var(--shadow);
  cursor:pointer;
  opacity:0; visibility:hidden;
  transform:translateY(10px);
  transition:opacity .4s ease, transform .4s ease, visibility .4s ease, background .2s ease;
  z-index:999;
}

.fab.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }

#fab-top{
  right:calc(16px + env(safe-area-inset-right,0px));
  width:48px; height:48px;
  display:grid; place-items:center;
  background:var(--navy);
}
#fab-top:hover{ background:var(--navy-dark); }
#fab-top svg{ fill:var(--white); }

#fab-work{
  right:calc(74px + env(safe-area-inset-right,0px));
  display:inline-flex; align-items:center; gap:10px;
  height:48px; padding:0 18px;
  font-family:var(--font-display);
  font-weight:500; font-size:15px;
  text-decoration:none; white-space:nowrap;
  background:var(--cream-soft);
  color:var(--navy);
  border:1px solid var(--navy);
}
#fab-work:hover{ background:var(--cream-hover); }
#fab-work svg{ fill:var(--navy); }

/* =========================================================
   PODSTRÁNKY
   ========================================================= */

.page{
  background:var(--white);
  padding-block:90px 120px;
}

.page-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(40px, 6vw, 76px);
  letter-spacing:-1.5px;
  line-height:1.05;
  margin:0 0 56px;
}

/* ---------- About me ---------- */

.about{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:56px;
  align-items:stretch;      /* fotka aj text majú rovnakú výšku */
}

/* Fotka sa natiahne presne od horného okraja textu po spodok gombíkov */
.about-photo{
  width:100%;
  height:100%;
  min-height:100%;
  object-fit:cover;
  object-position:center 30%;   /* posuň, ak ti orez nesedí */
}

.about-body{
  display:flex;
  flex-direction:column;
}

.about-body h2{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(26px, 2.6vw, 34px);
  letter-spacing:-.5px;
  margin:0 0 16px;
}

.about-body h2 + p{ margin-top:0; }

.about-body p{
  margin:0 0 18px;
  max-width:70ch;
}

.about-body > h2:not(:first-child){ margin-top:40px; }

.btn-row{
  display:flex;
  flex-wrap:nowrap;
  gap:20px;
  margin-top:auto;      /* pritlačí gombíky k spodku stĺpca */
  padding-top:40px;
}

.btn-row .btn{
  flex:1 1 0;
  text-align:center;
  padding-inline:24px;
  white-space:nowrap;
}

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

/* Ozdobné pozadie je obrázok. Ak ho nemáš, ostane čistá krémová plocha. */
.contact{
  background:var(--cream-soft) url('../img/contact-bg.jpg') center / cover no-repeat;
  padding-block:140px;
}

.contact-inner{
  min-height:52vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.contact h1{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(48px, 8vw, 96px);
  letter-spacing:-2px;
  margin:0 0 56px;
}

/* Hlavička na krémovej stránke nesmie svietiť bielym pruhom */
.header-on-cream{
  background:var(--cream-soft);
  border-bottom-color:transparent;
}

@media (max-width:1024px){
  .about{ grid-template-columns:1fr; gap:40px; }
  .about-photo{ height:auto; min-height:0; aspect-ratio:4 / 3; }
}

@media (max-width:768px){
  .page{ padding-block:56px 72px; }
  .page-title{ margin-bottom:36px; }
  .contact{ padding-block:80px; }
  .contact-inner{ min-height:auto; }
  .btn-row{ gap:14px; padding-top:32px; }
  .btn-row .btn{ padding-inline:16px; font-size:16px; }
}

/* =========================================================
   CASE STUDY — GRADIENT A RYTMUS
   =========================================================
   Pozadie prechadza z bielej hore do svetlomodrej dole.
   Kontrast navy #003061 na najtmavsom odtieni #D2DCF2
   je 9.6:1, teda nad hranicou WCAG AAA (7:1).
   Este tmavsie uz nechod — pri #BFCDEC klesne na 8.2:1
   a sekundarny text #706F6C spadne pod AA (3.1:1).
   ========================================================= */

.case-gradient{
  background:linear-gradient(180deg,
              #FFFFFF   0%,
              #F2F5FC  30%,
              #E4EAF8  60%,
              #D2DCF2 100%);
}

/* Jednotny odstup medzi sekciami — vsade rovnaky */
.case-gradient .case-section{
  background:none;
  padding-block:0;
  margin-block:var(--case-gap);
}

.case-gradient .case-section:first-child{ margin-top:48px; }
.case-gradient .case-section:last-of-type{ margin-bottom:var(--case-gap); }

/* Vnutri sekcie ma kazdy prvok predvidatelny odstup */
.case-gradient .case-section h2{ margin:0 0 24px; }
.case-gradient .case-section h3{ margin:32px 0 12px; }
.case-gradient .case-section p{ margin:0 0 16px; }
.case-gradient .case-section p:last-child{ margin-bottom:0; }
.case-gradient .case-section ul,
.case-gradient .case-section ol{ margin:0 0 16px; }
.case-gradient .case-section ul:last-child,
.case-gradient .case-section ol:last-child{ margin-bottom:0; }
.case-gradient .case-section .figure{ margin:0; }
.case-gradient .case-section .figure-phone,
.case-gradient .case-section .figure-center{ margin-inline:auto; }
.case-gradient .case-section .lead-in{ margin-top:24px; font-weight:500; }

/* Hlavicka na gradiente nesmie svietit bielym pruhom */
.header-transparent{
  background:var(--white);
  border-bottom-color:transparent;
}

/* ---- Uvod case study ---- */

.case-hero .case-meta{ margin:0; }
.case-hero .case-meta dt{ font-weight:600; font-size:19px; margin-bottom:6px; }
.case-hero .case-meta dd{ margin:0 0 28px; }
.case-hero .case-meta dd:last-child{ margin-bottom:0; }

.case-hero h1{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(36px, 4.4vw, 58px);
  letter-spacing:-1.2px;
  line-height:1.1;
  margin:0 0 32px;
}

.case-claim{
  font-weight:600;
  font-size:18px;
  max-width:42ch;
  margin:0 0 28px;
}

.case-meta-line{
  font-style:italic;
  margin:0 0 6px;
}

.case-hero .case-cta{ margin-top:40px; }
.case-gradient .case-section .split-text .case-cta{ margin-top:56px; }

/* ---- Text vlavo / obrazok vpravo ---- */

.split{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:72px;
  align-items:center;
}

.split-reverse .split-media{ order:-1; }

.split-text > :first-child{ margin-top:0; }

.split-media{
  margin:0;
  width:100%;
  border-radius:14px;
  overflow:hidden;
}

.split-media img,
.split-media video{ width:100%; display:block; }

.split-media figcaption{
  text-align:center;
  font-size:16px;
  opacity:.85;
  padding-top:16px;
}

/* ---- Obrazok cez celu sirku / na stred ---- */

.figure-flush img{ width:100%; }

.figure-center{
  max-width:840px;
  margin-inline:auto;
}

.figure-wide{ max-width:1100px; }

/* Centrovanie ma prednost pred plosnym margin:0 vyssie */
.figure-center,
.figure-phone{
  margin-left:auto  !important;
  margin-right:auto !important;
}

@media (max-width:1024px){
  .split{ grid-template-columns:1fr; gap:36px; }
  .split-reverse .split-media{ order:0; }
}

/* =========================================================
   CASE STUDY
   ========================================================= */

.case{ background:var(--white); }
.case.case-gradient{
  background:linear-gradient(180deg,
              #FFFFFF   0%,
              #F2F5FC  30%,
              #E4EAF8  60%,
              #D2DCF2 100%);
}

/* Striedanie bielej a jemnej sivej */
.case-hero,
.case-section{ padding-block:72px; }

.case-section.is-grey{ background:var(--grey-soft); }
.case-section.is-blue{ background:var(--blue-soft); }

.case-hero{ padding-block:64px 72px; }

.case-hero .gallery-lead{ margin-top:-32px; }

/* Uvod zarovnany na stred (Daily UI) */
.case-hero.is-centered h1{ text-align:center; }
.case-hero.is-centered .gallery-lead{ margin-inline:auto; text-align:center; }

.case-hero .case-meta{ margin:0; }
.case-hero .case-meta dt{ font-weight:600; font-size:19px; margin-bottom:6px; }
.case-hero .case-meta dd{ margin:0 0 28px; }
.case-hero .case-meta dd:last-child{ margin-bottom:0; }

.case-hero h1{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(40px, 6vw, 76px);
  letter-spacing:-1.5px;
  line-height:1.05;
  text-align:center;
  margin:0 0 64px;
}

/* Vlavo fakty, vpravo obrazok */
.case-intro{
  display:grid;
  grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  gap:64px;
  align-items:center;
}

.case-intro-facts h2{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(26px, 2.6vw, 34px);
  letter-spacing:-.5px;
  margin:0 0 44px;
}

.case-meta{ margin:0; }

.case-meta dt{
  font-family:var(--font-display);
  font-weight:600;
  font-size:21px;
  margin-bottom:8px;
}

.case-meta dd{
  margin:0 0 32px;
}

.case-meta dd:last-child{ margin-bottom:0; }

.case-intro-media{ width:100%; }

/* Poznamka o dovernosti */
.note{
  font-style:italic;
  font-size:16px;
  max-width:80ch;
  margin:64px 0 0;
}

/* ---------- Text v sekciach ---------- */

.case-section h2{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(28px, 3vw, 38px);
  letter-spacing:-.5px;
  margin:0 0 20px;
}

.case-section h2 ~ h2{ margin-top:56px; }

.case-section h3{
  font-family:var(--font-display);
  font-weight:600;
  font-size:21px;
  margin:36px 0 14px;
}

.case-section p{
  margin:0 0 20px;
  max-width:90ch;
}

.case-section ul{
  margin:0 0 20px;
  padding-left:22px;
  max-width:90ch;
}

.case-section li{ margin-bottom:10px; }

/* ---------- Obrazky ---------- */

.figure{ margin:44px 0 0; }

.figure img,
.figure video{ width:100%; display:block; }

/* Boardy z workshopu su v nizkom rozliseni — nenatahuj ich */
.figure img[src*='medical-'],
.figure img[src*='unidc-note'],
.figure img[src*='unidc-challenge']{ max-width:760px; }

.figure figcaption{
  font-size:15px;
  opacity:.75;
  padding-top:10px;
}

.figure-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:40px;
  margin-top:44px;
  align-items:start;
}

.figure-grid .figure{ margin:0; }

.figure-narrow{ max-width:560px; }

.case-cta{ margin:36px 0 0; max-width:none; }

/* Obrazok alebo video na stred, v sirke telefonu */
.figure-phone{
  max-width:360px;
  margin-inline:auto;
}

.figure-phone video,
.figure-phone img{
  border-radius:14px;
}

.figure-phone figcaption{ text-align:center; }

/* ---------- Dovody odchodu (UniDC) ---------- */

.reasons{
  list-style:none;
  padding:0;
  margin:0 0 20px;
  max-width:760px;
}

.reasons li{
  display:grid;
  grid-template-columns:76px 1fr;
  gap:16px;
  align-items:baseline;
  padding:14px 0;
  border-bottom:1px solid rgba(0,48,97,.12);
  margin:0;
}

.reason-count{
  font-weight:600;
  font-size:26px;
  letter-spacing:-.5px;
}

/* Zvyrazneny odsek s klucovym zistenim */
.pull{
  font-size:clamp(19px, 2vw, 24px);
  line-height:1.5;
  border-left:3px solid var(--navy);
  padding-left:24px;
  max-width:68ch;
}

/* ---------- Procesna mapa ---------- */

.process{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:0;
  list-style:none;
  margin:8px 0 0;
  padding:0;
  counter-reset:none;
}

.process li{
  position:relative;
  padding:0 16px;
  text-align:center;
  margin:0;
}

/* Spojnica medzi krokmi */
.process li::before{
  content:"";
  position:absolute;
  top:19px; left:-50%;
  width:100%;
  height:1.5px;
  background:var(--navy);
  opacity:.25;
}

.process li:first-child::before{ display:none; }

.process-num{
  display:grid;
  place-items:center;
  width:40px; height:40px;
  margin:0 auto 16px;
  border-radius:50%;
  background:var(--navy);
  color:var(--white);
  font-size:14px;
  font-weight:600;
  position:relative;
  z-index:1;
}

.process li:nth-child(even) .process-num{
  background:var(--white);
  color:var(--navy);
  box-shadow:inset 0 0 0 1.5px var(--navy);
}

.process-name{
  display:block;
  font-weight:600;
  font-size:17px;
  margin-bottom:6px;
}

.process-desc{
  display:block;
  font-size:15px;
  opacity:.75;
  line-height:1.45;
}

.case-section ol{
  margin:0 0 20px;
  padding-left:22px;
  max-width:90ch;
}

.case-section ol li{ margin-bottom:10px; }

.case-section .process li{ margin-bottom:0; }

@media (max-width:900px){
  .process{ grid-template-columns:1fr; gap:28px; text-align:left; }
  .process li{ padding:0; text-align:left; display:grid;
               grid-template-columns:40px 1fr; column-gap:16px; align-items:start; }
  .process li::before{ display:none; }
  .process-num{ margin:0; grid-row:span 2; }
  .process-desc{ grid-column:2; }
}

/* ---------- Galeria (Daily UI) ---------- */

.gallery-lead{
  font-size:clamp(18px, 2vw, 24px);
  max-width:60ch;
  margin:0;
}

.gallery{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:40px;
}

.gallery .figure{ margin:0; }

.gallery .figure img{
  width:100%;
  aspect-ratio:4 / 5;
  object-fit:contain;      /* nic sa neoreze, vsetky su rovnako velke */
  background:var(--white);
  padding:12px;
}

.gallery-end{
  margin:56px 0 0;
  text-align:center;
  font-style:italic;
  opacity:.7;
}

@media (max-width:900px){
  .gallery{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px; }
}

@media (max-width:560px){
  .gallery{ grid-template-columns:1fr; }
}

/* ---------- Prechod na dalsi projekt ---------- */

.case-next{
  background:var(--white);
  border-top:1px solid rgba(0,48,97,.12);
  padding-block:40px;
}

.case-next-inner{
  display:flex;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  font-weight:500;
}

.case-next a{ text-decoration:underline; text-underline-offset:4px; }

@media (max-width:1024px){
  .case-intro{ grid-template-columns:1fr; gap:40px; }
  .case-intro-media{ order:-1; }
}

@media (max-width:768px){
  .case-hero{ padding-block:48px 56px; }
  .case-section{ padding-block:56px; }
  .case-hero .gallery-lead{ margin-top:-32px; }

/* Uvod zarovnany na stred (Daily UI) */
.case-hero.is-centered h1{ text-align:center; }
.case-hero.is-centered .gallery-lead{ margin-inline:auto; text-align:center; }

.case-hero .case-meta{ margin:0; }
.case-hero .case-meta dt{ font-weight:600; font-size:19px; margin-bottom:6px; }
.case-hero .case-meta dd{ margin:0 0 28px; }
.case-hero .case-meta dd:last-child{ margin-bottom:0; }

.case-hero h1{ margin-bottom:40px; text-align:left; }
  .case-intro-facts h2{ margin-bottom:32px; }
  .case-meta dd{ margin-bottom:24px; }
  .note{ margin-top:48px; }
  .figure-grid{ grid-template-columns:1fr; gap:32px; }
}

/* =========================================================
   RESPONZÍVNE
   ========================================================= */

@media (max-width:1024px){
  :root{ --gutter:32px; }

  .project,
  .connect-inner{ grid-template-columns:1fr; gap:32px; }

  .quotes-grid{ grid-template-columns:1fr; gap:64px; }

  .footer-inner{ grid-template-columns:1fr 1fr; }
  .copyright{ grid-column:1 / -1; text-align:left; }

  .hero-aside{ text-align:left; margin-left:0; }
}

@media (max-width:768px){
  :root{ --gutter:20px; --header-h:72px; --case-gap:64px; }

  body{ font-size:16px; }

  /* Mobilné menu */
  .nav-toggle{ display:block; }

  .site-nav{
    position:fixed;
    inset:var(--header-h) 0 auto 0;
    background:var(--white);
    flex-direction:column;
    gap:0;
    padding:8px 20px 24px;
    border-bottom:1px solid rgba(0,48,97,.1);
    transform:translateY(-120%);
    transition:transform .3s ease;
  }
  .site-nav.is-open{ transform:translateY(0); }
  .site-nav a{ padding:16px 0; border-bottom:1px solid rgba(0,48,97,.08); }

  .hero-inner{ min-height:auto; padding-block:56px; }
  .hero-aside{ padding-top:56px; }

  .work{ padding-block:64px; }
  .section-title{ margin-bottom:48px; }
  .project{ margin-bottom:64px; }
  .project-body p{ text-align:left; }

  .quotes,
  .connect{ padding-block:64px; }

  .connect-body .btn{ width:100%; max-width:320px; }

  .btn{ padding:16px 32px; font-size:17px; }

  #fab-work span{ display:none; }        /* na mobile ostane len šípka */
  #fab-work{ padding:0 14px; }
}

/* ---------- Menej pohybu ---------- */

/* Kto ma vypnute animacie, video sa neprehrava samo */
@media (prefers-reduced-motion:reduce){
  .figure video{ animation:none; }
  html{ scroll-behavior:auto; }
  .cursor{ animation:none; }
  .project-media img{ transition:none; }
  .fab{ transition:opacity .01s; }
}


/* =========================================================
   ZVACSENIE OBRAZKA PO KLIKNUTI
   ========================================================= */

.figure img{ cursor:zoom-in; }

.lightbox{
  position:fixed;
  inset:0;
  z-index:2000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:40px;
  background:rgba(0,48,97,.92);
  cursor:zoom-out;
}

.lightbox.is-open{ display:flex; }

.lightbox img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  background:var(--white);
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.lightbox-caption{
  position:absolute;
  left:0; right:0; bottom:16px;
  text-align:center;
  color:var(--white);
  font-size:15px;
  padding-inline:40px;
}

.lightbox-close{
  position:absolute;
  top:16px; right:20px;
  width:44px; height:44px;
  display:grid; place-items:center;
  background:none; border:0;
  color:var(--white);
  font-size:30px;
  line-height:1;
  cursor:pointer;
}

@media (max-width:768px){
  .lightbox{ padding:16px; }
}

/* =========================================================
   SCOPE 3 — SIVY GRADIENT A ZELENE TLACIDLO
   Zamerne az na konci suboru, aby to nic neprebilo.
   ========================================================= */

.case.case-gradient-grey{
  background:linear-gradient(180deg,
              #FFFFFF   0%,
              #FAFAFA  40%,
              #F4F4F4  75%,
              #ECECEC 100%);
}

/* Zelene tlacidlo (Check FIGMA Prototype).
   #008350 dava bielemu textu kontrast 4.8:1 — nad WCAG AA (4.5:1).
   Povodna #009159 mala len 4.0:1, preto je o odtien tmavsia. */
.btn-green{
  background:#008350;
  color:var(--white);
  border:2px solid #008350;
}
.btn-green:hover{ background:#006B42; border-color:#006B42; }

/* Vycentrovany nadpis a tlacidlo */
h1.is-centered,
.case-cta.is-centered{ text-align:center; }

/* Podnadpis v uvode case study */
.case-kicker{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(24px, 2.4vw, 32px);
  letter-spacing:-.5px;
  margin:0 0 40px !important;
}

/* Zoznam Role / Tools / Year */
.case-hero .case-meta{ margin:0; }
.case-hero .case-meta dt{ font-weight:600; font-size:19px; margin-bottom:6px; }
.case-hero .case-meta dd{ margin:0 0 28px; }
.case-hero .case-meta dd:last-child{ margin-bottom:0; }

/* Poznamka o dovernosti */
.case-gradient .note{
  font-style:italic;
  font-size:16px;
  max-width:90ch;
  margin:56px 0 0 !important;
}

/* Tlacidlo v Prototype presne na stred.
   Ak ho chces radsej vlavo, staci v HTML zmazat triedu is-centered. */
.case-section .case-cta.is-centered{
  text-align:center !important;
  margin-top:48px !important;
}

/* Odsek s tlacidlom nesmie dedit max-width:90ch od bezneho odseku,
   inak sa tlacidlo centruje len v ramci textoveho stlpca. */
.case-section .case-cta.is-centered{
  max-width:none !important;
  width:100% !important;
}

/* =========================================================
   Before / After — University Dance Center
   Pridane na koniec zamerne, aby sa pravidla nizsie neprebili.
   ========================================================= */

.ba{ margin-top:44px; }
.ba + .ba{ margin-top:64px; }

.ba > h3{
  font-size:20px;
  font-weight:600;
  margin:0 0 20px;
  color:var(--navy);
}

.ba-pair{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:32px;
  align-items:start;
}

.ba-pair .figure{ margin:0; }

.ba-pair .figure img{
  width:100%;
  display:block;
  border-radius:10px;
  border:1px solid rgba(0,48,97,.12);
}

.ba-label{
  display:inline-block;
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:4px 12px;
  border-radius:999px;
  margin:0 0 12px;
}

.ba-label.is-before{ background:var(--grey-footer); color:#4A4A4A; }
.ba-label.is-after{  background:#D2DCF2;            color:var(--navy); }

@media (max-width:900px){
  .ba-pair{ grid-template-columns:1fr; gap:28px; }
  .ba + .ba{ margin-top:48px; }
}

/* =========================================================
   University Dance Center — fialovy gradient a uprava uvodu
   Na konci suboru zamerne: prebija .case.case-gradient vyssie.
   ========================================================= */

/* Biela -> fialova, plynulo cez celu stranku.
   Koncova #E3D8F2 ma s navy kontrast 9,6 : 1 — rovnako ako modra v Medical.
   Tmavsie uz nie, sekundarny text spadne pod AA. */
.case.case-gradient-purple{
  background:linear-gradient(180deg,
              #FFFFFF   0%,
              #F7F3FB  30%,
              #EEE8F7  60%,
              #E3D8F2 100%);
}

/* Uvod bez obrazka: vlavo tvrdenie, vpravo fakty */
.case-intro-notext{
  grid-template-columns:minmax(0,7fr) minmax(0,5fr);
  align-items:start;
  gap:72px;
}

.case-intro-notext .case-intro-facts h2{ margin-bottom:0; }

/* Dva obrazky za sebou v gradientovej sekcii potrebuju medzeru,
   .case-gradient .case-section .figure ju vyssie nuluje. */
.case-gradient .case-section .figure + .figure{ margin-top:56px; }

/* Popisok pod zmensenym obrazkom patri na stred obrazka, nie vlavo */
.figure-center figcaption{ text-align:center; }

/* Tri wireframy vedla seba */
.figure-grid-3{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:32px; }

/* Stitky Before/After musia drzat na bielej aj na fialovej */
.case-section .ba > h3{ margin:0 0 20px; }
.case-section .ba-label{ margin:0 0 12px; }
.ba-label.is-before{ background:rgba(0,48,97,.08); color:#4A4A4A; }
.ba-label.is-after{  background:var(--navy);       color:var(--white); }

@media (max-width:1024px){
  .case-intro-notext{ grid-template-columns:1fr; gap:40px; }
}

@media (max-width:900px){
  .figure-grid-3{ grid-template-columns:1fr; gap:32px; }
}

/* =========================================================
   Explore my work — zjednotenie mriezky
   Na konci suboru zamerne, prebija .project pravidla vyssie.
   ========================================================= */

/* Vsetky obalky rovnako vysoke. 19:10 je pomer najsirsej obalky,
   takze sa nic neoreze do sirky — ubudne len prazdne miesto hore a dole. */
.project-media img{
  aspect-ratio:19 / 10;
  height:auto;
  object-fit:cover;
  display:block;
}

/* Text na stred oproti obrazku. Funguje az teraz, ked su vsetky
   obrazky rovnako vysoke — predtym bol kazdy riadok inde. */
.project{ align-items:center; }

/* Rovnaka medzera medzi vsetkymi projektmi */
.project{ margin-bottom:96px; }
.project:last-child{ margin-bottom:0; }

/* Justify trhalo medzery medzi slovami */
.project-body p{ text-align:left; }
