/* =========================================================
   GRAPHIC DESIGN PORTFOLIO PAGE
   Scoped styles for graphic-design-portfolio.html only.
   Prefixed "gdp-" so nothing here collides with the shared
   theme classes in assets/css/style.css (e.g. .portfolio-item,
   .portfolio-grid, .section-title are reused elsewhere on the
   site with different rules).
   ========================================================= */

.gdp-section {
  padding: 60px 0;
}

.gdp-section.gdp-alt {
  background: #f2faf6;
}

.gdp-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.gdp-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.gdp-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #002753;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media only screen and (max-width: 767px) {
  .gdp-heading h2 {
    font-size: 19px;
  }
}

.gdp-accent {
  flex: 1;
  height: 3px;
  min-width: 40px;
  max-width: 220px;
  border-radius: 3px;
  background: linear-gradient(90deg, #00A481 0%, rgba(0, 164, 129, 0.12) 100%);
}

/* Grid */
.gdp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 992px) {
  .gdp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Card */
.gdp-card {
  position: relative;
  display: block;
  background: #ffffff;
  border: 1px solid #e6ecf1;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 39, 83, 0.06);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.gdp-card:hover,
.gdp-card:focus-visible {
  box-shadow: 0 12px 30px rgba(0, 39, 83, 0.14);
  transform: translateY(-4px);
  border-color: rgba(0, 164, 129, 0.35);
  outline: none;
}

.gdp-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  display: block;
  transition: transform 0.4s ease;
}

.gdp-card:hover img,
.gdp-card:focus-visible img {
  transform: scale(1.06);
}

.gdp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 39, 83, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gdp-card:hover .gdp-overlay,
.gdp-card:focus-visible .gdp-overlay {
  opacity: 1;
}

.gdp-overlay svg {
  width: 38px;
  height: 38px;
  color: #fff;
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

.gdp-card:hover .gdp-overlay svg,
.gdp-card:focus-visible .gdp-overlay svg {
  transform: scale(1);
}

/* Back-to-top CTA under the intro */
.gdp-intro-cta {
  margin-top: 18px;
}

/* =========================================================
   GRAPHIC DESIGN PACKAGES
   Added below the portfolio galleries on this same page.
   Text is static; only the image carousel auto-rotates.
   Click any image to open it in the page's existing Magnific
   Popup lightbox (".image-popup", already wired site-wide via
   assets/js/main.js) — no separate lightbox needed here.
   ========================================================= */

.gdp-pkg-intro {
  max-width: 640px;
  margin: -10px 0 46px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #52565b;
}

.gdp-pkg-row {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 46px 0;
  border-top: 1px solid #e6ecf1;
}

.gdp-pkg-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.gdp-pkg-row.reverse {
  flex-direction: row-reverse;
}

.gdp-pkg-text,
.gdp-pkg-carousel {
  flex: 1 1 0;
  min-width: 0;
}

.gdp-pkg-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 11px;
  font-weight: 700;
  color: #267544;
  background: #e7f8ee;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.gdp-pkg-text h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #002753;
}

.gdp-pkg-sub {
  margin: 0 0 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: #267544;
}

.gdp-pkg-accent {
  display: block;
  width: 44px;
  height: 3px;
  background: #00A481;
  border-radius: 2px;
  margin-bottom: 18px;
}

.gdp-pkg-text p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #52565b;
}

.gdp-pkg-text .btn {
  margin-top: 8px;
}

/* --- Image carousel --- */
.carousel-frame {
  position: relative;
  border-radius: 12px;
  border: 1px solid #e6ecf1;
  box-shadow: 0 14px 30px rgba(0, 39, 83, 0.08);
  overflow: hidden;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.image-trigger {
  position: relative;
  display: block;
  width: 100%;
}

.image-trigger img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.image-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 39, 83, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.image-trigger:hover .image-zoom-overlay,
.image-trigger:focus-visible .image-zoom-overlay {
  opacity: 1;
  background: rgba(0, 39, 83, 0.4);
}

.image-zoom-overlay svg {
  width: 32px;
  height: 32px;
  color: #fff;
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

.image-trigger:hover .image-zoom-overlay svg { transform: scale(1); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #002753;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.carousel-frame:hover .carousel-arrow { opacity: 1; }

.carousel-arrow:hover { background: #00A481; color: #fff; }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5dbde;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: #00A481;
  transform: scale(1.25);
}

@media (max-width: 860px) {
  .gdp-pkg-row,
  .gdp-pkg-row.reverse {
    flex-direction: column;
    gap: 24px;
    padding: 36px 0;
  }

  .image-trigger img { max-height: 320px; }
}
