/* ============================================================
   CAG Printing & Packaging — Main Stylesheet
   ============================================================ */

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: #0d1b2a;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ----- CSS Custom Properties ----- */
:root {
  --gold: #c8a96e;
  --white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.65);
  --overlay-opacity: 1;
  --transition-slide: 0.95s cubic-bezier(0.77, 0, 0.175, 1);
  --transition-ui: 0.3s ease;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-family: 'Teko', sans-serif;
  font-size: 21px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color var(--transition-ui);
}

.nav-links a:hover { color: var(--white); }

.nav-link.active {
  color: var(--white) !important;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-cta.active::after { display: none; }

.nav-cta {
  padding: 10px 24px;
  border: 1.5px solid var(--gold) !important;
  color: var(--gold) !important;
  transition: background var(--transition-ui), color var(--transition-ui) !important;
}

.nav-cta:hover {
  background: var(--gold);
  color: #111 !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: var(--transition-ui);
}

/* ============================================================
   SLIDER
   ============================================================ */
.slider-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.slides-wrapper {
  display: flex;
  width: 500vw;
  height: 100vh;
  transition: transform var(--transition-slide);
  will-change: transform;
}

/* ============================================================
   INDIVIDUAL SLIDES
   ============================================================ */
.slide {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
}

/* Overlay — applied to all slides */
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: var(--overlay-opacity);
}

/* ============================================================
   SLIDE BACKGROUND (tilts in 3D via JS mouse tracking)
   ============================================================ */
.slide-bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate(0, 0);
  transform-origin: center center;
  will-change: transform;
}

/* Static overlays — general dark gradient + per-slide accent.
   Layered on top of .slide-bg so they stay flat while the image tilts. */
.slide-1::before { background: linear-gradient(105deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.12) 60%), linear-gradient(135deg, rgba(13,27,42,0.45)  0%, rgba(36,59,85,0.2)  100%); }
.slide-2::before { background: linear-gradient(105deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.12) 60%), linear-gradient(135deg, rgba(11,61,46,0.45)  0%, rgba(26,107,84,0.2) 100%); }
.slide-3::before { background: linear-gradient(105deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.12) 60%), linear-gradient(135deg, rgba(45,15,15,0.45)  0%, rgba(90,26,26,0.2)  100%); }
.slide-4::before { background: linear-gradient(105deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.12) 60%), linear-gradient(135deg, rgba(15,20,32,0.45)  0%, rgba(28,39,84,0.2)  100%); }
.slide-5::before { background: linear-gradient(105deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.12) 60%), linear-gradient(135deg, rgba(17,17,17,0.45)  0%, rgba(30,26,21,0.2)  100%); }


/* ============================================================
   SLIDE CONTENT
   ============================================================ */
.slide-content {
  position: absolute;
  z-index: 2;
  bottom: 14%;
  left: 10%;
  max-width: 620px;
}

.slide-content::before {
  content: attr(data-num);
  position: absolute;
  top: -110px;
  left: -20px;
  font-size: clamp(120px, 14vw, 200px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  z-index: -1;
  user-select: none;
  letter-spacing: -4px;
}

.slide-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.slide-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.slide-content h1,
.slide-content h2 {
  font-family: 'Teko', sans-serif;
  font-size: clamp(52px, 6.5vw, 96px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.slide-content p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 38px;
  max-width: 440px;
  font-weight: 300;
}

.slide-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 15px 38px;
  background: var(--gold);
  color: #111;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: background var(--transition-ui), color var(--transition-ui), transform 0.2s;
}

.cta-btn:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.cta-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.cta-outline:hover {
  background: var(--white);
  color: #111;
  border-color: var(--white);
}

.cta-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-ui);
}

.cta-link:hover { color: var(--white); }

/* ============================================================
   SCROLL HINT — desktop (slide 1 only)
   ============================================================ */
.scroll-hint {
  position: absolute;
  z-index: 3;
  bottom: 72px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll-hint.hidden { opacity: 0; pointer-events: none; }

.scroll-hint span {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.scroll-hint-track {
  width: 2px;
  height: 72px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.scroll-hint-bar {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollHintAnim 1.8s ease-in-out infinite;
}

@keyframes scrollHintAnim {
  0%   { top: -40%; }
  100% { top: 120%; }
}

/* ============================================================
   SWIPE HINT — tablet & mobile (once per session)
   ============================================================ */
.swipe-hint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.swipe-hint.visible {
  opacity: 1;
  pointer-events: auto;
}

.swipe-hint-hand {
  font-size: 52px;
  animation: swipeAnim 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(200,169,110,0.6));
  user-select: none;
}

.swipe-hint-text {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

@keyframes swipeAnim {
  0%   { transform: translateX(0px)  rotate(-10deg); opacity: 1;    }
  40%  { transform: translateX(-40px) rotate(-10deg); opacity: 1;   }
  55%  { transform: translateX(-40px) rotate(-10deg); opacity: 0.3; }
  56%  { transform: translateX(16px)  rotate(-10deg); opacity: 0;   }
  70%  { transform: translateX(16px)  rotate(-10deg); opacity: 1;   }
  100% { transform: translateX(0px)  rotate(-10deg); opacity: 1;    }
}

@media (max-width: 1024px) {
  .swipe-hint { display: flex; }
  .scroll-hint { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 16px 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.4px;
  padding: 6px 28px;
  transition: color var(--transition-ui);
  white-space: nowrap;
}

.footer-contact-item:hover { color: var(--gold); }

.footer-contact-item i {
  font-size: 13px;
  color: var(--gold);
  flex-shrink: 0;
}

.footer-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* ============================================================
   SLIDE PANEL (right-panel for contact / portfolio templates)
   ============================================================ */
.slide-panel {
  position: absolute;
  z-index: 3;
  right: 10%;
  bottom: 14%;
  width: clamp(300px, 34vw, 460px);
}

/* Cap text width on contact panel template */
[data-template="contact"] .slide-content {
  max-width: 46%;
}

/* Portfolio left content: constrained to ~3/8 of screen */
[data-template="portfolio"] .slide-content {
  max-width: 28vw;
  z-index: 4;
}

/* For portfolio: clip slide-bg to the left panel only so the carousel is never obscured */
[data-template="portfolio"] .slide-bg {
  right: 62.5%;
  background-position: right center;
}

/* ============================================================
   CENTERED TEMPLATE
   ============================================================ */
.slide-content-centered {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 900px;
  width: 80%;
}

.slide-content-centered::before { display: none; }

.slide-content-centered .slide-label {
  justify-content: center;
}

.slide-content-centered .slide-label::before { display: none; }

.slide-content-centered h1,
.slide-content-centered h2 {
  font-size: clamp(60px, 8vw, 120px);
}

.slide-content-centered p {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   WIDGET: CONTACT FORM
   ============================================================ */
.widget-contact {
  background: rgba(8, 12, 22, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 169, 110, 0.22);
  padding: 36px 38px 40px;
}

.widget-contact-header {
  margin-bottom: 26px;
}

.widget-contact-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.widget-contact-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.widget-contact-title {
  font-family: 'Teko', sans-serif;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.3px;
  line-height: 1;
  margin: 0;
}

.widget-contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wc-field input,
.wc-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--white);
  padding: 11px 14px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition-ui), background var(--transition-ui);
  resize: none;
  display: block;
}

.wc-field input::placeholder,
.wc-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.wc-field input:focus,
.wc-field textarea:focus {
  border-color: rgba(200, 169, 110, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.wc-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 20px;
  background: var(--gold);
  color: #111;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  transition: background var(--transition-ui), transform 0.2s;
  margin-top: 4px;
}

.wc-submit:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.wc-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.wc-status {
  font-size: 12px;
  letter-spacing: 0.3px;
  line-height: 1.5;
  min-height: 18px;
}

.wc-status.success { color: #5fd38d; }
.wc-status.error   { color: #f47474; }

/* ============================================================
   WIDGET: PORTFOLIO CAROUSEL
   ============================================================ */
.widget-portfolio {
  background: rgba(8, 12, 22, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 169, 110, 0.22);
  padding: 24px 26px 20px;
}

.wp-header { margin-bottom: 14px; }

.wp-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.wp-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.wp-title {
  font-family: 'Teko', sans-serif;
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  margin: 0;
}

.wp-carousel { position: relative; }

.wp-track {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 3:2 aspect-ratio box */
.wp-track::before {
  content: '';
  display: block;
  padding-top: 66.666%;
}

.wp-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.wp-item.active { opacity: 1; }

.wp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wp-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.wp-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  font-family: 'Teko', sans-serif;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
}

.wp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: background 0.2s;
  z-index: 2;
  padding: 0;
}

.wp-nav:hover      { background: rgba(200, 169, 110, 0.45); }
.wp-nav-prev       { left: 8px; }
.wp-nav-next       { right: 8px; }

.wp-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.wp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.wp-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* ============================================================
   PORTFOLIO: LEFT PANEL BACKGROUND IMAGE
   ============================================================ */
.pf-left-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 37.5%; /* mirrors 100% - pf-carousel-panel (62.5%) */
  z-index: 1;   /* above slide-bg, covers slide::before in this area */
  background-size: cover;
  background-position: right center; /* right-anchored for seamless blend */
  background-repeat: no-repeat;
}

/* Subtle overlay so white text stays readable */
.pf-left-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}

/* ============================================================
   PORTFOLIO: FULL-HEIGHT RIGHT CAROUSEL (5/8 of screen)
   ============================================================ */
.pf-carousel-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 62.5%; /* 5/8 */
  z-index: 3;
  overflow: hidden;
}

/* Soft left-edge fade to blend with slide background */
.pf-carousel-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 140px;
  background: linear-gradient(to right, rgba(13, 27, 42, 0.85) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.pf-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.pf-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.pf-item.active { opacity: 1; }

.pf-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 22, 0.5);
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Directional gradient per caption position — below edge-fade (z-index:2), below caption (z-index:3) */
.pf-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.pf-item.cap-top-left::after,
.pf-item.cap-top-center::after,
.pf-item.cap-top-right::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82) 0%, transparent 52%);
}

.pf-item.cap-left-center::after {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.82) 0%, transparent 52%);
}

.pf-item.cap-right-center::after {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.82) 0%, transparent 52%);
}

.pf-item.cap-bottom-left::after,
.pf-item.cap-bottom-center::after,
.pf-item.cap-bottom-right::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 52%);
}

.pf-item.cap-center::after {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.68) 0%, transparent 65%);
}

/* Caption base — dark overlay tightly wrapping the text */
.pf-caption {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
  max-width: 60%;
  background: rgba(0, 0, 0, 0.50);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 12px 18px;
}

/* ---- Caption positions ---- */
.pf-item.cap-top-left     .pf-caption { top: 100px; left: 48px; }
.pf-item.cap-top-center   .pf-caption { top: 100px; left: 50%; transform: translateX(-50%); text-align: center; align-items: center; }
.pf-item.cap-top-right    .pf-caption { top: 100px; right: 48px; text-align: right; align-items: flex-end; }
.pf-item.cap-left-center  .pf-caption { top: 50%; left: 48px; transform: translateY(-50%); }
.pf-item.cap-center       .pf-caption { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; align-items: center; }
.pf-item.cap-right-center .pf-caption { top: 50%; right: 48px; transform: translateY(-50%); text-align: right; align-items: flex-end; }
.pf-item.cap-bottom-left  .pf-caption { bottom: 56px; left: 48px; }
.pf-item.cap-bottom-center .pf-caption { bottom: 56px; left: 50%; transform: translateX(-50%); text-align: center; align-items: center; }
.pf-item.cap-bottom-right .pf-caption { bottom: 56px; right: 48px; text-align: right; align-items: flex-end; }

.pf-client {
  font-family: 'Teko', sans-serif;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 500;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
}

.pf-desc {
  font-size: clamp(11px, 0.95vw, 14px);
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.pf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
  z-index: 3;
  padding: 0;
}

.pf-nav:hover { background: rgba(200, 169, 110, 0.45); }
.pf-nav-prev  { left: 24px; }
.pf-nav-next  { right: 24px; }

.pf-dots {
  position: absolute;
  bottom: 28px;
  right: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.pf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.pf-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* ============================================================
   SERVICES TEMPLATE — body text rendered as list
   ============================================================ */
.svc-list {
  list-style: none;
  margin-top: 4px;
}

.svc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 0;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.8;
}

.svc-item::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

[data-template="services"] .slide-content {
  max-width: 860px;
}

/* ============================================================
   PRODUCTS TEMPLATE
   ============================================================ */
[data-template="products"] .slide-content { max-width: 28vw; z-index: 4; }
[data-template="products"] .slide-bg      { right: 62.5%; background-position: right center; }

.prod-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 62.5%;
  z-index: 3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 80px 40px 40px;
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--bg, #0d1b2a) 80%, var(--gold, #c8a96e))        0%,
    color-mix(in srgb, var(--bg, #0d1b2a) 88%, var(--heading-color, #fff))  35%,
    color-mix(in srgb, var(--bg, #0d1b2a) 85%, var(--text-dim, #a8b4c0))    65%,
    color-mix(in srgb, var(--bg, #0d1b2a) 82%, var(--gold, #c8a96e))        100%
  );
}

/* Soft left-edge fade — blends into slide background */
.prod-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to right, var(--bg, #0d1b2a), transparent);
  z-index: 1;
  pointer-events: none;
}

.prod-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.prod-filter {
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.22);
  background: transparent;
  color: var(--text-dim);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.prod-filter:hover  { border-color: var(--gold); color: var(--gold); }
.prod-filter.active { border-color: var(--gold); background: var(--gold); color: #111; }

.prod-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  align-content: start;
  position: relative;
  z-index: 2;
  padding-right: 4px;
}

.prod-grid::-webkit-scrollbar { width: 3px; }
.prod-grid::-webkit-scrollbar-track { background: transparent; }
.prod-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.prod-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.prod-card:hover {
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
  transform: translateY(-2px);
}

.prod-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.prod-card:hover .prod-card-img img { transform: scale(1.05); }

.prod-card-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.12);
  font-size: 28px;
}

.prod-card-body { padding: 10px 12px 12px; }

.prod-brand {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.prod-name {
  font-family: 'Teko', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 4px;
  line-height: 1.2;
}

.prod-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 40px;
  font-size: 13px;
}

.prod-empty-filter {
  flex-shrink: 0;
  text-align: center;
  color: var(--text-dim);
  padding: 30px;
  font-size: 13px;
  position: relative;
  z-index: 2;
}

/* ============================================================
   CURSOR DOT (laser-pointer follower)
   ============================================================ */
#cursorDot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 4px  2px  var(--gold),
    0 0 14px 5px  color-mix(in srgb, var(--gold) 55%, transparent),
    0 0 32px 10px color-mix(in srgb, var(--gold) 20%, transparent);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform;
}

#cursorDot.visible {
  opacity: 1;
  animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    box-shadow:
      0 0 4px  2px  var(--gold),
      0 0 14px 5px  color-mix(in srgb, var(--gold) 55%, transparent),
      0 0 32px 10px color-mix(in srgb, var(--gold) 20%, transparent);
  }
  50% {
    box-shadow:
      0 0 6px  3px  var(--gold),
      0 0 20px 7px  color-mix(in srgb, var(--gold) 65%, transparent),
      0 0 44px 14px color-mix(in srgb, var(--gold) 28%, transparent);
  }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .navbar { padding: 22px 36px; }
  .slide-content { left: 8%; }
  .site-footer { padding: 16px 36px; }

  .slide-panel {
    right: 8%;
    width: clamp(260px, 38vw, 400px);
  }
  .widget-contact   { padding: 26px 28px 30px; }
  .widget-portfolio { padding: 20px 22px 18px; }

  /* Portfolio full-height carousel — widen on tablet */
  .pf-carousel-panel { width: 58%; }
  [data-template="portfolio"] .slide-content { max-width: 36vw; }
  .pf-left-bg { width: 42%; }
  [data-template="portfolio"] .slide-bg { right: 58%; }

  /* Products panel — widen on tablet */
  .prod-panel { width: 58%; padding: 70px 28px 32px; }
  [data-template="products"] .slide-content { max-width: 36vw; }
  [data-template="products"] .slide-bg { right: 58%; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .navbar { padding: 18px 24px; }
  .nav-logo-text { display: none; }
  .nav-logo-img { height: 36px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .slide-content {
    left: 6%;
    right: 6%;
    bottom: 18%;
    max-width: unset;
  }

  .slide-content h1,
  .slide-content h2 {
    font-size: clamp(32px, 8vw, 52px);
  }

  .slide-content p { max-width: unset; }

  .scroll-hint { display: none; }

  /* Panel templates: hide text, show panel centered */
  [data-template="contact"] .slide-content,
  [data-template="portfolio"] .slide-content,
  [data-template="products"] .slide-content { display: none; }

  .slide-panel {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: auto;
    width: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Compact panel widgets for small screens */
  .widget-portfolio {
    padding: 16px 14px 14px;
  }
  .widget-portfolio .wp-header { margin-bottom: 10px; }

  /* Portfolio full-height carousel: full width on mobile */
  .pf-carousel-panel {
    width: 100%;
  }
  .pf-carousel-panel::before { display: none; }
  .pf-left-bg { display: none; }
  [data-template="portfolio"] .slide-bg { display: none; }

  /* Products panel: full width on mobile — covers slide-content (z-index 4 → 5) */
  .prod-panel { left: 0; width: 100%; padding: 60px 16px 20px; z-index: 5; }
  .prod-panel::before { display: none; }
  [data-template="products"] .slide-content { display: none; }
  [data-template="products"] .slide-bg { display: none; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }

  /* Tighten caption positions on mobile */
  .pf-item.cap-top-left     .pf-caption,
  .pf-item.cap-top-center   .pf-caption,
  .pf-item.cap-top-right    .pf-caption { top: 80px; }
  .pf-item.cap-top-left     .pf-caption,
  .pf-item.cap-left-center  .pf-caption,
  .pf-item.cap-bottom-left  .pf-caption { left: 24px; }
  .pf-item.cap-top-right    .pf-caption,
  .pf-item.cap-right-center .pf-caption,
  .pf-item.cap-bottom-right .pf-caption { right: 24px; }
  .pf-item.cap-bottom-left  .pf-caption,
  .pf-item.cap-bottom-center .pf-caption,
  .pf-item.cap-bottom-right .pf-caption { bottom: 36px; }
  .pf-caption { max-width: 80%; }

  .widget-contact {
    padding: 22px 20px 26px;
  }
  .widget-contact-header {
    margin-bottom: 18px;
  }
  .widget-contact-form {
    gap: 9px;
  }
  .wc-field textarea {
    max-height: 72px;
  }

  /* Centered template on mobile */
  .slide-content-centered {
    width: 90%;
  }

  .site-footer {
    padding: 14px 20px;
    gap: 0;
  }

  .footer-contact-item {
    font-size: 12px;
    padding: 6px 16px;
  }
}

@media (max-width: 480px) {
  .slide-content {
    left: 5%;
    right: 5%;
    bottom: 16%;
  }

  .cta-btn { padding: 13px 28px; font-size: 10px; }
  .slide-actions { gap: 20px; }

  .footer-contact-item span { font-size: 11px; }
  .footer-contact-item { padding: 6px 12px; }

  .slide-has-widget .slide-widget-area {
    left: 4%;
    right: 4%;
  }
}
