/* ============================================================
   Školní jídelna Jana Babáka — home page
   ============================================================ */

:root {
  /* Official brand palette (barvy.pdf) */
  --mint: #dcfaee;
  --teal: #008089;
  --green: #81bb27;
  --amber: #f0ae00;

  /* Derived shades for gradients & hovers */
  --green-light: #93c93f;
  --green-dark: #6ba01e;
  --teal-dark: #006970;
  --amber-dark: #d49a00;
  --nav: #008089;

  --ink: #333;
  --container: 1480px;
  --pad-x: 48px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
  color: var(--ink);
  overflow-x: hidden;
}

a { text-decoration: none; }

img { max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  flex: none;
  display: block;
  height: 56px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--nav);
  transition: color 0.15s ease;
}

.nav-link:hover { color: var(--green); }

.btn-menu {
  flex: none;
  background: linear-gradient(180deg, var(--green-light), var(--green));
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(84, 165, 35, 0.35);
  transition: background 0.15s ease;
}

.btn-menu:hover {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
}

/* Mobile nav toggle (CSS-only) */
.nav-toggle { display: none; }

.nav-burger {
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #f3f8f1;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-cta-mobile { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 600px;
  background: #23302a;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: #1d3b3a;
  background-image: linear-gradient(135deg, #0c5a5f 0%, #14302c 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(14, 28, 20, 0.82) 0%,
    rgba(14, 28, 20, 0.52) 36%,
    rgba(14, 28, 20, 0.12) 68%,
    rgba(14, 28, 20, 0.28) 100%);
}

.hero-content {
  position: relative;
  padding-top: 104px;
}

.hero-title {
  margin: 0;
  font-size: 74px;
  line-height: 1.04;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-wrap: balance;
  max-width: 620px;
}

.hero-subtitle {
  margin: 26px 0 0;
  font-size: 25px;
  line-height: 1.45;
  font-weight: 600;
  color: #f1f5ee;
  max-width: 470px;
}

/* ============ MINT SECTION ============ */
.mint {
  position: relative;
  background: var(--mint);
  padding-bottom: 250px;
}

.mint-inner {
  position: relative;
  z-index: 3;
}

/* feature cards overlapping hero */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: -215px;
}

.feature-card {
  min-height: 300px;
  border-radius: 30px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.feature-card--green {
  background: linear-gradient(165deg, #9bcc4a 0%, var(--green-dark) 100%);
  box-shadow: 0 20px 44px rgba(40, 70, 20, 0.22);
}

.feature-card--teal {
  background: linear-gradient(165deg, #2a9aa2 0%, var(--teal) 100%);
  box-shadow: 0 20px 44px rgba(20, 60, 70, 0.22);
}

.feature-card--amber {
  background: linear-gradient(165deg, #ffc23d 0%, var(--amber) 100%);
  box-shadow: 0 20px 44px rgba(120, 80, 10, 0.22);
  color: #5a4205;
}

.feature-card-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.feature-card-title {
  margin: 26px 0 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.feature-card-text {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  opacity: 0.95;
}

/* Aktuálně grid */
.news-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  margin-top: 60px;
  align-items: start;
}

.news-intro {
  background: #ffffff;
  border-radius: 30px;
  padding: 56px;
  box-shadow: 0 18px 40px rgba(30, 60, 45, 0.07);
  min-height: 470px;
}

.news-intro-title {
  margin: 0;
  font-size: 46px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.5px;
}

.news-intro-text {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: #556666;
  font-weight: 600;
  max-width: 360px;
}

.news-intro-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 800;
  color: var(--green);
  transition: color 0.15s ease;
}

.news-intro-link:hover { color: var(--green-dark); }

.news-list {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.news-card { position: relative; }

.news-card-date {
  position: absolute;
  top: -16px;
  left: 30px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 9px 18px;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(20, 70, 80, 0.25);
}

.news-card-body {
  background: #ffffff;
  border-radius: 24px;
  padding: 42px 34px 32px;
  box-shadow: 0 14px 34px rgba(30, 60, 45, 0.07);
}

.news-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--amber);
  text-transform: uppercase;
}

.news-card-text {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4a4f4a;
  font-weight: 600;
}

/* utensil watermark band */
.utensils {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.6;
}

.utensils img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============ GALLERY ============ */
.gallery {
  background: #ffffff;
  padding: 84px 0 104px;
}

.gallery-title {
  margin: 0 0 56px;
  text-align: center;
  font-size: 56px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.5px;
}

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

.gallery-item {
  display: block;
  width: 100%;
  height: 320px;
  border-radius: 28px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item--empty {
  background: var(--mint);
  background-image: linear-gradient(135deg, #e6fbf2, #c2ecd9);
}

.gallery-more {
  margin-top: 48px;
  text-align: center;
}

.gallery-more .btn-menu {
  display: inline-block;
}

/* ============ SUBPAGE HEADER + GALLERY PAGE ============ */
.page-head {
  background: var(--mint);
  padding: 64px 0 72px;
  text-align: center;
}

.page-eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-dark);
}

.page-title {
  margin: 12px 0 0;
  font-size: 56px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.5px;
}

.page-lead {
  margin: 16px 0 0;
  font-size: 19px;
  font-weight: 600;
  color: #4a5a55;
}

.gallery--page { padding-top: 72px; }

.gallery--page .gallery-item {
  margin: 0;
  height: auto;
  border-radius: 0;
  overflow: visible;
}

.gallery--page .gallery-item img {
  height: 280px;
  border-radius: 28px;
}

.gallery-caption {
  margin: 14px 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: #4a5a55;
}

.gallery-empty {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #4a5a55;
  padding: 40px 0 20px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  color: #eaf6f4;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.footer-contact {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  opacity: 0.92;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 1100px) {
  :root { --pad-x: 32px; }

  .hero-title { font-size: 58px; }
  .hero-subtitle { font-size: 22px; }

  .feature-card-title { font-size: 21px; }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .news-intro {
    min-height: 0;
    padding: 44px;
  }

  .news-intro-text { max-width: none; }
}

/* Collapse nav into a burger menu below 980px */
@media (max-width: 980px) {
  .nav-cta { display: none; }

  .nav-burger { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.25s ease, visibility 0.25s ease;
  }

  .site-header { position: sticky; }
  .header-inner { position: relative; }

  .nav-toggle:checked ~ .site-nav {
    max-height: 520px;
    visibility: visible;
  }

  .nav-link {
    padding: 14px var(--pad-x);
    border-bottom: 1px solid #f0f4ee;
  }

  .nav-cta-mobile {
    display: block;
    text-align: center;
    margin: 14px var(--pad-x);
  }

  /* burger -> X animation */
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */
@media (max-width: 760px) {
  .hero {
    height: auto;
    min-height: 460px;
  }

  .hero-content {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .hero-title { font-size: 40px; max-width: none; }
  .hero-subtitle { font-size: 19px; max-width: none; }

  .mint { padding-bottom: 140px; }

  .feature-cards {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: -120px;
  }

  .feature-card { min-height: 0; }

  .news-grid { margin-top: 48px; gap: 48px; }

  .news-intro { padding: 36px 28px; border-radius: 24px; }
  .news-intro-title { font-size: 36px; }

  .news-card-body { padding: 40px 26px 28px; }

  .gallery { padding: 56px 0 64px; }
  .gallery-title { font-size: 36px; margin-bottom: 36px; }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gallery-item { height: 240px; }

  .utensils { height: 150px; }

  .footer-inner { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .brand-logo { height: 46px; }
}

@media (max-width: 420px) {
  :root { --pad-x: 20px; }
  .hero-title { font-size: 34px; }
  .brand-logo { height: 40px; }
}
