/* ============================================================
   PERCEPTION MULTIMEDIA — styles.css
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --pmm-red:     #E81B1E;
  --pmm-black:   #0A0A0A;
  --pmm-surface: #161616;
  --pmm-border:  #222222;
  --pmm-white:   #F4F4F0;
  --pmm-cream:   #EDECEA;
  --pmm-gray:    #5C5C5C;
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: var(--pmm-red);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar          { width: 3px; }
::-webkit-scrollbar-track    { background: var(--pmm-black); }
::-webkit-scrollbar-thumb    { background: var(--pmm-red); }

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.in-view { opacity: 1; transform: translateY(0); }
.reveal-up.delay-1 { transition-delay: 0.07s; }
.reveal-up.delay-2 { transition-delay: 0.14s; }
.reveal-up.delay-3 { transition-delay: 0.21s; }
.reveal-up.delay-4 { transition-delay: 0.28s; }

/* ============================================================
   EYEBROW RULE
   ============================================================ */
.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.eyebrow-rule::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--pmm-red);
  flex-shrink: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  background: transparent;
  transition: background 0.35s var(--ease-smooth),
              border-color 0.35s var(--ease-smooth),
              box-shadow 0.35s var(--ease-smooth);
}

#navbar.nav-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03),
    0 4px 32px rgba(0, 0, 0, 0.5);
}

.nav-cta-btn {
  transition: background-color 0.2s ease;
  letter-spacing: 0.18em;
}

/* ─── Nav Active Indicator ─── */
.nav-active {
  color: #F4F4F0 !important;
  position: relative;
}
.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #E81B1E;
  border-radius: 1px;
}

/* ─── Nav responsive breakpoint (hamburger below 900px) ─── */
.nav-links-wrapper {
  display: none;
  align-items: center;
}
@media (min-width: 900px) {
  .nav-links-wrapper { display: flex; }
}
.nav-hamburger-btn {
  display: block;
}
@media (min-width: 900px) {
  .nav-hamburger-btn { display: none; }
}

/* ─── Services Dropdown ─── */
.nav-dropdown-wrapper {
  position: relative;
}
.nav-chevron-icon {
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-dropdown-wrapper:hover .nav-chevron-icon,
.nav-dropdown-wrapper:focus-within .nav-chevron-icon {
  transform: rotate(180deg);
}
.nav-dropdown-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 22px;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(232, 27, 30, 0.06);
  padding: 12px;
  min-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}
.nav-dropdown-wrapper:hover .nav-dropdown,
.nav-dropdown-wrapper:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 244, 240, 0.45);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-dropdown-item:hover {
  color: #F4F4F0;
  background: rgba(255, 255, 255, 0.04);
}
.nav-dropdown-item.active {
  color: #E81B1E;
}
.nav-dropdown-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}
.nav-dropdown-item:hover .nav-dropdown-icon {
  opacity: 0.85;
}
.nav-dropdown-item.active .nav-dropdown-icon {
  opacity: 1;
  color: #E81B1E;
}
/* PPC — page not yet built */
.nav-dropdown-item--soon {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ============================================================
   HERO
   ============================================================ */

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Multi-layer overlay: deep dark base + subtle red tint at bottom */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.72) 0%,
      rgba(10, 10, 10, 0.60) 50%,
      rgba(10, 10, 10, 0.85) 100%
    );
  pointer-events: none;
}

.hero-symbol {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 48vw;
  max-width: 680px;
  height: 70vh;
  opacity: 0.04;
  filter: invert(1);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  z-index: 2;
  top: 10%;
  left: 55%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(
    circle at center,
    rgba(232, 27, 30, 0.10) 0%,
    transparent 65%
  );
  filter: blur(60px);
  pointer-events: none;
}

/* Text outline for "Digital" */
.text-outline-hero {
  -webkit-text-stroke: 2px var(--pmm-white);
  color: transparent;
}

/* Hero entrance animations */
.hero-eyebrow {
  animation: fadeSlideUp 0.85s var(--ease-expo) 0.05s both;
}
.hero-heading {
  animation: fadeSlideUp 0.95s var(--ease-expo) 0.18s both;
}
.hero-sub {
  animation: fadeSlideUp 0.85s var(--ease-expo) 0.32s both;
}
.hero-ctas {
  animation: fadeSlideUp 0.8s var(--ease-expo) 0.46s both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-track {
  display: flex;
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.marquee-dot {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-img-wrap {
  position: relative;
  padding-bottom: 2rem;
  padding-right: 1.5rem;
}

.about-img-inner {
  position: relative;
  overflow: hidden;
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%
  );
  mix-blend-mode: multiply;
}

.about-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--pmm-red);
  padding: 22px 28px;
  box-shadow:
    0 8px 32px rgba(232, 27, 30, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.about-quote-box {
  position: absolute;
  top: -18px;
  left: -18px;
  background: var(--pmm-black);
  border: 1px solid var(--pmm-border);
  padding: 16px 20px;
  max-width: 230px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  background: #f4f3f0;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .svc-card:nth-child(9)  { grid-column: 2; }
  .svc-card:nth-child(10) { grid-column: 3; }
}

a.svc-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.svc-card {
  background: #F4F4F0;
  padding: 30px 26px;
  border: 1px solid #e2e0dd;
  position: relative;
  transition:
    opacity 0.55s var(--ease-expo),
    transform 0.55s var(--ease-expo),
    background 0.25s ease;
  opacity: 0;
  transform: translateY(18px);
}

.svc-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.svc-card:hover {
  background: #EDECEA;
}

/* Red bottom-line reveal on hover */
.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 26px;
  width: 0;
  height: 2px;
  background: var(--pmm-red);
  transition: width 0.35s var(--ease-expo);
}
.svc-card:hover::after {
  width: calc(100% - 52px);
}

.svc-num {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--pmm-red);
  margin-bottom: 10px;
}

.svc-icon-wrap {
  width: 36px;
  height: 36px;
  border: 1px solid #c8c6c3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  margin-bottom: 12px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.svc-card:hover .svc-icon-wrap {
  border-color: rgba(232, 27, 30, 0.4);
  color: var(--pmm-red);
}

.svc-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0A0A0A;
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.svc-card:hover .svc-name {
  color: var(--pmm-red);
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.svc-tag {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid #c8c6c3;
  color: #888;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.svc-card:hover .svc-tag {
  border-color: #b0aeab;
  color: #666;
}

/* Stagger delays — services */
.svc-card:nth-child(1)  { transition-delay: 0s;    }
.svc-card:nth-child(2)  { transition-delay: 0.05s; }
.svc-card:nth-child(3)  { transition-delay: 0.10s; }
.svc-card:nth-child(4)  { transition-delay: 0.15s; }
.svc-card:nth-child(5)  { transition-delay: 0.20s; }
.svc-card:nth-child(6)  { transition-delay: 0.25s; }
.svc-card:nth-child(7)  { transition-delay: 0.30s; }
.svc-card:nth-child(8)  { transition-delay: 0.35s; }
.svc-card:nth-child(9)  { transition-delay: 0.40s; }
.svc-card:nth-child(10) { transition-delay: 0.45s; }

/* ============================================================
   PARTNER BADGES
   ============================================================ */
.partner-badge-wrap {
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   DIFFERENTIATORS
   ============================================================ */
.diff-card {
  background: var(--pmm-black);
  border: 1px solid var(--pmm-border);
  padding: 36px 32px;
  transition:
    opacity 0.55s var(--ease-expo),
    transform 0.55s var(--ease-expo),
    border-color 0.25s ease;
  opacity: 0;
  transform: translateY(18px);
}

.diff-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.diff-card:hover {
  border-color: #333;
}

.diff-icon {
  width: 54px;
  height: 54px;
  background: rgba(232, 27, 30, 0.07);
  border: 1px solid rgba(232, 27, 30, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.diff-card:nth-child(1) { transition-delay: 0s;    }
.diff-card:nth-child(2) { transition-delay: 0.1s;  }
.diff-card:nth-child(3) { transition-delay: 0.2s;  }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px)  { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .clients-grid { grid-template-columns: repeat(5, 1fr); } }

.client-item {
  background: var(--pmm-black);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  transition: background 0.25s ease;
}

@media (min-width: 640px) { .client-item { padding: 20px 24px; } }

.client-item img {
  width: auto;
  height: auto;
  max-width: min(180px, 100%);
  max-height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.client-item:hover { background: #0e0e0e; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .port-item--wide {
    grid-column: 1 / -1;
  }
}

.port-item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-expo),
    transform 0.6s var(--ease-expo);
}

.port-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.port-item:nth-child(1) { transition-delay: 0s;    }
.port-item:nth-child(2) { transition-delay: 0.08s; }
.port-item:nth-child(3) { transition-delay: 0.16s; }
.port-item:nth-child(4) { transition-delay: 0.08s; }
.port-item:nth-child(5) { transition-delay: 0.16s; }
.port-item:nth-child(6) { transition-delay: 0.24s; }

.port-img-wrap {
  position: relative;
  overflow: hidden;
  background: #111;
}

.port-item--wide .port-img-wrap { height: 380px; }
.port-img-wrap                  { height: 260px; }

.port-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-expo);
  display: block;
}

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

.port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2)  45%,
    transparent         100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.port-item:hover .port-overlay {
  opacity: 1;
}

.port-meta {
  padding: 14px 0;
  border-bottom: 1px solid #1e1e1e;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.port-num {
  flex-shrink: 0;
  margin-top: 2px;
}

.port-tag {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 8px;
  background: #1c1c1c;
  color: #555;
}

/* ============================================================
   PORTFOLIO 2×2 FULL-WIDTH GRID
   ============================================================ */
.port2-section {
  display: flex;
  flex-direction: column;
  background: #0A0A0A;
}

.port2-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid #1e1e1e;
}

.port2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 44vw);
}

@media (max-width: 767px) {
  .port2-section { height: auto; }
  .port2-header { padding: 16px 20px; }
  .port2-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 60vw);
  }
}

.port2-cell {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.port2-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.7);
}

.port2-cell:hover .port2-img {
  transform: scale(1.06);
  filter: brightness(0.5);
}

.port2-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.3)  40%,
    transparent      70%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.port2-cell:hover .port2-gradient {
  opacity: 1;
}

.port2-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 40px;
  transform: translateY(12px);
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.port2-cell:hover .port2-info {
  opacity: 1;
  transform: translateY(0);
}

.port2-services {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pmm-red);
  margin-bottom: 10px;
}

.port2-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
}

.port2-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}

.port2-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.port2-cell:hover .port2-arrow {
  border-color: var(--pmm-red);
  background: var(--pmm-red);
  transform: translateX(4px);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-symbol {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 40vw;
  max-width: 500px;
  height: 100%;
  opacity: 0.07;
  filter: invert(1);
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  opacity: 0;
  transform: translateX(-16px);
  transition:
    opacity 0.55s var(--ease-expo),
    transform 0.55s var(--ease-expo);
}

.contact-row.in-view {
  opacity: 1;
  transform: translateX(0);
}

.contact-row:nth-child(1) { transition-delay: 0.05s; }
.contact-row:nth-child(2) { transition-delay: 0.12s; }
.contact-row:nth-child(3) { transition-delay: 0.19s; }
.contact-row:nth-child(4) { transition-delay: 0.26s; }

.contact-icon-box {
  width: 42px;
  height: 42px;
  background: rgba(232, 27, 30, 0.07);
  border: 1px solid rgba(232, 27, 30, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Form */
.form-card {
  background: #111;
  border: 1px solid var(--pmm-border);
  padding: 40px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  .form-card { padding: 28px 20px; }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #555;
}

.field-input {
  background: #0a0a0a;
  border: 1px solid #252525;
  color: var(--pmm-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 13px 16px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.field-input::placeholder { color: #383838; }

.field-input:focus {
  border-color: var(--pmm-red);
  box-shadow: 0 0 0 3px rgba(232, 27, 30, 0.08);
}

.field-textarea {
  height: 120px;
  resize: vertical;
}

.field-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field-select option { background: #111; }

/* ============================================================
   STAT ITEMS (scroll reveal)
   ============================================================ */
.stat-item {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s var(--ease-expo),
    transform 0.6s var(--ease-expo);
}
.stat-item.in-view           { opacity: 1; transform: translateY(0); }
.stat-item:nth-child(1)      { transition-delay: 0.1s; }
.stat-item:nth-child(2)      { transition-delay: 0.2s; }
.stat-item:nth-child(3)      { transition-delay: 0.3s; }

/* ============================================================
   FOCUS VISIBLE (accessibility)
   ============================================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pmm-red);
  outline-offset: 3px;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--pmm-border);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s var(--ease-expo),
    transform 0.55s var(--ease-expo);
}

.faq-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:nth-child(1) { transition-delay: 0.05s; }
.faq-item:nth-child(2) { transition-delay: 0.12s; }
.faq-item:nth-child(3) { transition-delay: 0.19s; }
.faq-item:nth-child(4) { transition-delay: 0.26s; }
.faq-item:nth-child(5) { transition-delay: 0.33s; }

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--pmm-white);
  transition: color 0.2s ease;
}

.faq-btn:hover { color: var(--pmm-red); }

.faq-btn[aria-expanded="true"] { color: var(--pmm-red); }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--pmm-red);
  transition: transform 0.35s var(--ease-expo);
}

.faq-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-expo);
}

.faq-answer-inner {
  padding-bottom: 24px;
}

/* ============================================================
   BLOG TEASER GRID
   ============================================================ */
@media (min-width: 768px) {
  .blog-teaser-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ============================================================
   REVIEWS CAROUSEL
   ============================================================ */

/* Carousel fade transition */
#reviews-carousel-inner {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#reviews-carousel-inner.fading {
  opacity: 0;
}

/* Image panel */
.rc-image-wrap {
  width: 315px;
  height: 315px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.rc-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlapping card */
.rc-card {
  padding: 2.25rem 2.5rem;
  position: relative;
  z-index: 10;
  flex: 1;
}

/* Nav buttons */
.rc-nav-btn {
  width: 46px;
  height: 46px;
  background: #161616;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .rc-nav-btn { width: 34px; height: 34px; }
  .rc-nav-btn svg { width: 16px; height: 16px; }
}
.rc-nav-btn:hover {
  background: #1e1e1e;
  border-color: #E81B1E;
}
.rc-nav-btn svg {
  color: rgba(244, 244, 240, 0.7);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Dots */
.rc-dot {
  width: 6px;
  height: 6px;
  background: #3a3a3a;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
@media (min-width: 768px) {
  .rc-dot { width: 5px; height: 5px; }
}
.rc-dot.active {
  background: #E81B1E;
  transform: scale(1.3);
}
.rc-dot:hover:not(.active) {
  background: #5c5c5c;
}

/* Google badge link */
.rc-google-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 244, 240, 0.4);
  text-decoration: none;
  border: 1px solid #252525;
  padding: 7px 14px;
  background: #161616;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.rc-google-link:hover {
  color: #F4F4F0;
  border-color: #E81B1E;
}

/* Mobile image full-width */
@media (max-width: 767px) {
  .rc-image-wrap { width: 100%; height: auto; aspect-ratio: 1/1; }
  .rc-card { margin-left: 0; max-width: 100%; padding: 1.75rem; }
}

/* ===== Scroll Mouse Hint ===== */
.scroll-mouse {
  position: relative;
  width: 23px;
  height: 39px;
  margin-top: 4px;
  flex-shrink: 0;
  animation: scrollMouseNudge 5.5s ease-out infinite;
}

.scroll-mouse::after {
  content: '';
  background-color: #F4F4F0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(1);
  animation: scrollMouseBall 5.5s linear infinite;
  opacity: 1;
}

.scroll-mouse .sm-frame {
  width: 100%;
  position: absolute;
  top: 0;
  z-index: 1;
}

.scroll-mouse .sm-frame path {
  fill: none;
  stroke: #F4F4F0;
  stroke-width: 3;
  opacity: 0.4;
}

.scroll-mouse .sm-left,
.scroll-mouse .sm-right {
  width: 50%;
  position: absolute;
  top: 0;
  z-index: 2;
}

.scroll-mouse .sm-right {
  right: 0;
}

.scroll-mouse .sm-path {
  fill: none;
  stroke: #F4F4F0;
  stroke-width: 3;
}

.scroll-mouse .sm-left .sm-path {
  animation: scrollMouseDrawLeft 5.5s ease-out infinite;
}

.scroll-mouse .sm-right .sm-path {
  animation: scrollMouseDrawRight 5.5s ease-out infinite;
}

@keyframes scrollMouseDrawLeft {
  0%    { stroke-dashoffset: 0;   stroke-dasharray: 120; stroke-opacity: 1; }
  22%   { stroke-dashoffset: 0;   stroke-dasharray: 120; stroke-opacity: 1; }
  38%   { stroke-dashoffset: 125; stroke-dasharray: 120; stroke-opacity: 1; }
  38.1% { stroke-dashoffset: 0;   stroke-dasharray: 120; stroke-opacity: 0; }
  48%   { stroke-dashoffset: 0;   stroke-dasharray: 120; stroke-opacity: 1; }
  64%   { stroke-dashoffset: 125; stroke-dasharray: 120; stroke-opacity: 1; }
  64.1% { stroke-dashoffset: 0;   stroke-dasharray: 120; stroke-opacity: 0; }
  74%   { stroke-dashoffset: 0;   stroke-dasharray: 120; stroke-opacity: 1; }
  90%   { stroke-dashoffset: 125; stroke-dasharray: 120; stroke-opacity: 1; }
  90.1% { stroke-dashoffset: 0;   stroke-dasharray: 120; stroke-opacity: 0; }
}

@keyframes scrollMouseDrawRight {
  0%    { stroke-dashoffset: 0;    stroke-dasharray: 120; stroke-opacity: 1; }
  22%   { stroke-dashoffset: 0;    stroke-dasharray: 120; stroke-opacity: 1; }
  38%   { stroke-dashoffset: -114; stroke-dasharray: 120; stroke-opacity: 1; }
  38.1% { stroke-dashoffset: 0;    stroke-dasharray: 120; stroke-opacity: 0; }
  48%   { stroke-dashoffset: 0;    stroke-dasharray: 120; stroke-opacity: 1; }
  64%   { stroke-dashoffset: -114; stroke-dasharray: 120; stroke-opacity: 1; }
  64.1% { stroke-dashoffset: 0;    stroke-dasharray: 120; stroke-opacity: 0; }
  74%   { stroke-dashoffset: 0;    stroke-dasharray: 120; stroke-opacity: 1; }
  90%   { stroke-dashoffset: -114; stroke-dasharray: 120; stroke-opacity: 1; }
  90.1% { stroke-dashoffset: 0;    stroke-dasharray: 120; stroke-opacity: 0; }
}

@keyframes scrollMouseNudge {
  0%  { transform: translateY(0); }
  22% { transform: translateY(0); }
  38% { transform: translateY(6px); }
  48% { transform: translateY(0); }
  64% { transform: translateY(6px); }
  74% { transform: translateY(0); }
  90% { transform: translateY(6px); }
}

@keyframes scrollMouseBall {
  0%  { transform: translateX(-50%) translateY(10px) scale(1);   opacity: 1; }
  22% { transform: translateX(-50%) translateY(10px) scale(1);   opacity: 1; }
  26% { transform: translateX(-50%) translateY(15px) scale(0.9); opacity: 1; }
  34% { transform: translateX(-50%) translateY(27px) scale(0.1); opacity: 0; }
  41% { transform: translateX(-50%) translateY(15px) scale(0);   opacity: 0.3; }
  48% { transform: translateX(-50%) translateY(10px) scale(1);   opacity: 1; }
  52% { transform: translateX(-50%) translateY(15px) scale(0.9); opacity: 1; }
  60% { transform: translateX(-50%) translateY(27px) scale(0.1); opacity: 0; }
  67% { transform: translateX(-50%) translateY(15px) scale(0);   opacity: 0.3; }
  74% { transform: translateX(-50%) translateY(10px) scale(1);   opacity: 1; }
  78% { transform: translateX(-50%) translateY(15px) scale(0.9); opacity: 1; }
  86% { transform: translateX(-50%) translateY(27px) scale(0.1); opacity: 0; }
  93% { transform: translateX(-50%) translateY(15px) scale(0);   opacity: 0.3; }
  100%{ transform: translateX(-50%) translateY(10px) scale(1);   opacity: 1; }
}
