:root {
  --navy: #002a40;
  --blue: #205081;
  --panel: #f4f5f7;
  --header-text: #004c73;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--navy);
}

a { text-decoration: none; }

/* ---------- home page ---------- */

.hero {
  background: var(--blue);
  padding: 58px 20px 0;
  text-align: center;
}

.hero h1 {
  display: inline-block;
  margin: 0;
  background: var(--panel);
  color: var(--header-text);
  font-size: 19px;
  font-weight: 700;
  padding: 5px 15px;
  border-radius: 5px 5px 0 0;
}

.cards-panel {
  background: var(--panel);
  padding: 80px 80px 150px;
}

.cards {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 347px));
  justify-content: center;
  gap: 40px;
}

.card {
  min-height: 148px;
  border-radius: 5px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: -1px 0 2px rgba(255, 158, 158, 0.5);
}

.card img {
  width: 115px;
  height: 110px;
  object-fit: contain;
  flex-shrink: 0;
}

.card-body { min-width: 0; }

.card h2 {
  font-size: 28px;
  margin: 0 0 6px;
}

.card p {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .cards-panel { padding: 60px 30px 90px; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(280px, 347px)); }
}

@media (max-width: 480px) {
  .cards-panel { padding: 40px 16px 60px; }
  .card { flex-direction: column; text-align: center; }
  .card img { width: 90px; height: 90px; }
  .card h2 { font-size: 22px; }
}

.card--kocholo  { background: #800000; color: #f2ebc6; }
.card--greenbox { background: #9cd759; color: #000000; }
.card--hellochef{ background: #33546d; color: #eaf1f3; }
.card--delisheh { background: #fff5e9; color: #f07d00; }
.card--recipe   { background: #99081f; color: #ffedee; }

.footer-shape {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 34px;
  overflow: hidden;
  line-height: 0;
}

.footer-shape svg { width: 100%; height: 100%; display: block; }

footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #007bab, #002a40, #002a40, #004d78);
  background-size: 400% 400%;
  animation: gradient-animation 10s ease infinite;
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/home/bg-footer.svg") center / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes gradient-animation {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-logo-col { position: relative; z-index: 1; }

.footer-info-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.social {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social a {
  color: #fff;
  display: inline-flex;
}

.social svg { width: 27px; height: 27px; fill: currentColor; }

.footer-logo {
  max-width: 160px;
  display: block;
}

footer p {
  color: #eaf1f3;
  font-size: 13px;
  margin: 0;
  text-align: center;
}

/* ---------- greenbox gallery page ---------- */

.gallery-page { background: var(--panel); min-height: 100vh; }

.gallery-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.filters {
  border-top: 6px solid #003281;
  border-radius: 15px 15px 0 0;
  padding: 12px 5px 5px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.filters button {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  border: none;
  background: transparent;
  color: #004c73;
  padding: 7px 14px;
  border-radius: 5px;
  cursor: pointer;
}

.filters button.active {
  background: #003281;
  color: #fff;
}

.gallery {
  columns: 4 220px;
  column-gap: 10px;
  margin-top: 15px;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 10px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.gallery-item .caption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 10px;
}

.gallery-item[hidden] { display: none; }

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 4px;
}

.lightbox .lb-caption {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 15px;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
  padding: 10px;
}

.lb-close { top: 10px; left: 20px; font-size: 28px; }
.lb-prev  { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 10px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .gallery { columns: 2 160px; }
  .lightbox button { font-size: 26px; padding: 6px; }
  .lb-close { top: 6px; left: 10px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 15px; }
  .filters button { font-size: 13px; padding: 6px 10px; }
}
