/* ============================================================
   ZIMERSTAV – REFERENCE PAGE (PREMIUM STYLE)
   Bez navbaru a footeru
   Layout max-width: 1680px
============================================================ */


/* ------------------------------------------------------------
   1️⃣ HERO – Reference
------------------------------------------------------------ */

.hero-projects {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.hero-projects .hero-img {
  max-width: 1680px;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: brightness(0.62) contrast(1.05);
  margin: 0 auto;
}

/* Glass box */
.hero-projects .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 90%;
  max-width: 720px;
  padding: 45px 60px;

  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 18px;
  border: 1px solid rgba(255, 200, 0, 0.25);
  text-align: center;

  animation: heroFadeProjects 0.8s ease-out;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

@keyframes heroFadeProjects {
  from { opacity: 0; transform: translate(-50%, -58%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.hero-projects h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 14px;
}

.hero-projects p {
  font-size: 1.2rem;
  color: #e8e8e8;
  line-height: 1.65;
}


/* ------------------------------------------------------------
   EXTRA LINKS under hero
------------------------------------------------------------ */

.hero-extra-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 22px;
}

.hero-extra-links a {
  color: #fbbf24;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: 0.25s ease;
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid rgba(255,200,0,0.25);
}

.hero-extra-links a:hover {
  background: rgba(255,200,0,0.22);
  color: #ffe58f;
}


/* ------------------------------------------------------------
   2️⃣ FILTER BAR
------------------------------------------------------------ */

.projects-filter {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0 20px;
  background: #fff;
}

.projects-filter-container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.projects-filter-container button {
  padding: 12px 26px;
  background: #fffbee;
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #111;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.25s ease;
}

.projects-filter-container button:hover {
  background: #ffe58f;
}

.projects-filter-container .active {
  background: #fbbf24;
  color: #111;
  border-color: #fbbf24;
}


/* ------------------------------------------------------------
   3️⃣ PROJECT GRID (premium cards)
------------------------------------------------------------ */

.projects-section {
  display: flex;
  justify-content: center;
  padding: 40px 0 90px;
  background: #ffffff;
}

.projects-container {
  width: 100%;
  max-width: 1680px;
  padding: 0 20px;
  text-align: center;
}

.projects-container h2 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.projects-subtitle {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 50px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 a 3 na desktopu */
  gap: 35px;
}

/* když budeme chtít centrovat méně karet (přes JS) */
.projects-grid.projects-grid--center {
  grid-template-columns: 1fr;
  justify-items: center;
}

.project-card {

  width: 100%;
  max-width: 520px;
  background: #fffbee;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  cursor: pointer;
   margin: 0 auto;
  
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-info {
  padding: 20px 22px;
  text-align: left;
}

.project-info h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.project-info p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.55;
}


/* ------------------------------------------------------------
   SEO interlinking bar
------------------------------------------------------------ */

.projects-links {
  max-width: 900px;
  margin: 40px auto 0;
}

.projects-links p {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.6;
}

.projects-links a {
  color: #d89f00;
  font-weight: 600;
  text-decoration: none;
}

.projects-links a:hover {
  text-decoration: underline;
}


/* ------------------------------------------------------------
   4️⃣ MINI TESTIMONIALS
------------------------------------------------------------ */

.projects-testimonials {
  width: 100%;
  padding: 90px 20px;
  display: flex;
  justify-content: center;
  background: #f7f7f7;
}

.projects-testimonials-container {
  width: 100%;
  max-width: 1680px;
  text-align: center;
}

.projects-testimonials h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 35px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 25px;
}

.review-card {
  background: #ffffff;
  padding: 28px 32px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  border: 1px solid #ececec;
  transition: 0.3s ease;
  text-align: left;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.review-card p {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 12px;
}

.review-card span {
  font-size: 1.05rem;
  font-weight: 600;
  color: #777;
}


/* ------------------------------------------------------------
   5️⃣ CTA SECTION
------------------------------------------------------------ */

.cta-section {
  width: 100%;
  background: #111;
  padding: 90px 20px;
  text-align: center;
  color: #fff;
  display: flex;
  justify-content: center;
}

.cta-container {
  max-width: 900px;
}

.cta-section h2 {
  font-size: 2.4rem;
  color: #fbbf24;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-desc {
  font-size: 1.2rem;
  color: #ddd;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-btn {
  padding: 16px 40px;
  font-size: 1.25rem;
  background: #fbbf24;
  color: #111;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 12px 22px rgba(251,191,36,0.25);
}

.cta-btn:hover {
  background: #ffe58f;
  box-shadow: 0 14px 28px rgba(251,191,36,0.38);
}


/* ------------------------------------------------------------
   6️⃣ SEO TEXT SECTION
------------------------------------------------------------ */

.seo-text {
  width: 100%;
  padding: 90px 20px;
  text-align: center;
  background: #ffffff;
}

.seo-text-container {
  max-width: 900px;
  margin: 0 auto;
}

.seo-text h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  font-weight: 700;
  color: #111;
}

.seo-text p {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.55;
}

.project-card {
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 1;
  transform: scale(1);
}

.projects-filter-container button.active {
  background: #fbbf24;
  color: #111;
  font-weight: 700;
  border-color: #d8a700;
  box-shadow: 0 6px 16px rgba(251,191,36,0.25);
}

.projects-filter-container button {
  background: rgba(255,200,0,0.10);
  border: 1px solid rgba(255,200,0,0.25);
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  color: #fbbf24;
  transition: 0.25s ease;
}

.projects-filter-container button:hover {
  background: rgba(255,200,0,0.20);
}

.project-card {
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 1;
  transform: scale(1);
}

.projects-filter-container button.active {
  background: #fbbf24;
  color: #111;
  border-color: #d8a700;
  box-shadow: 0 6px 16px rgba(251,191,36,0.25);
}

/* ------------------------------------------------------------
   RESPONSIVE BREAKPOINTS (PREMIUM)
------------------------------------------------------------ */

@media (max-width: 1200px) {
  .projects-grid { grid-template-columns: repeat(2,1fr); }
  .reviews-grid   { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {

  /* HERO */
  .hero-projects .hero-img {
    margin-top: 90px !important;
  }

  .hero-projects .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: -40px auto 0;
    padding: 26px 24px;
    max-width: 420px;
  }

  .hero-projects h1 { font-size: 2rem; }
  .hero-projects p  { font-size: 1rem; }

  .hero-extra-links {
    flex-direction: column;
    gap: 10px;
  }

  /* grids */
  .projects-grid { grid-template-columns: 1fr; }
  .reviews-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .projects-container,
  .projects-testimonials-container,
  .cta-container,
  .seo-text-container {
    padding: 0 10px;
  }

  .project-card img { height: 220px; }
}

@media (max-width: 375px) {
  .hero-projects h1 { font-size: 1.6rem; }
  .hero-projects p  { font-size: 0.95rem; }

  .project-card,
  .review-card {
    max-width: 300px;
    margin: 0 auto;
  }
}
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}