/* ==========================================================================
   American Pool Table Doctors — Professional Homepage Stylesheet
   WordPress Plugin Ready: Strictly scoped under `.aptd-root` namespace
   Client: Bernard "Bernie" Johnson | Virginia Beach, VA (757) 470-0473
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body.aptd-standalone {
  margin: 0;
  padding: 0;
  background-color: #08110e;
  overflow-x: hidden;
}

/* ==========================================================================
   DESIGN TOKENS & SCOPED BASE RESET
   ========================================================================== */
.aptd-root {
  --aptd-dark: #08110e;
  --aptd-dark-2: #0d1b16;
  --aptd-dark-card: #12241d;
  --aptd-ivory: #f8f6f1;
  --aptd-cream: #efeae0;
  --aptd-white: #ffffff;
  --aptd-emerald: #0f6b4a;
  --aptd-emerald-light: #168a60;
  --aptd-emerald-soft: rgba(15, 107, 74, 0.1);
  --aptd-gold: #c99b3b;
  --aptd-gold-light: #e5be67;
  --aptd-gold-dark: #9c7320;
  --aptd-gold-soft: rgba(201, 155, 59, 0.16);
  --aptd-text-dark: #111b17;
  --aptd-text-muted: #516059;
  --aptd-text-light: #f6f8f7;
  --aptd-text-light-muted: #b3c2bb;
  --aptd-border-light: rgba(17, 27, 23, 0.1);
  --aptd-border-dark: rgba(255, 255, 255, 0.12);
  --aptd-border-gold: rgba(201, 155, 59, 0.38);
  --aptd-shadow-sm: 0 8px 24px rgba(8, 17, 14, 0.06);
  --aptd-shadow-md: 0 18px 42px rgba(8, 17, 14, 0.12);
  --aptd-shadow-lg: 0 28px 64px rgba(4, 10, 8, 0.42);
  --aptd-radius-sm: 10px;
  --aptd-radius-md: 16px;
  --aptd-radius-lg: 22px;
  --aptd-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --aptd-font-serif: 'Playfair Display', Georgia, serif;
  --aptd-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --aptd-ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: var(--aptd-font-body);
  color: var(--aptd-text-dark);
  background-color: var(--aptd-ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  position: relative;
  overflow-x: clip;
}

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

.aptd-root h1,
.aptd-root h2,
.aptd-root h3,
.aptd-root h4,
.aptd-root p,
.aptd-root ul {
  margin: 0;
  padding: 0;
}

.aptd-root ul {
  list-style: none;
}

.aptd-root a {
  text-decoration: none;
  color: inherit;
}

.aptd-root img {
  max-width: 100%;
  display: block;
}

.aptd-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.aptd-root [data-aptd-reveal] {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.78s var(--aptd-ease),
    transform 0.78s var(--aptd-ease);
}

.aptd-root [data-aptd-reveal="up"] {
  transform: translateY(34px);
}

.aptd-root [data-aptd-reveal="left"] {
  transform: translateX(-34px);
}

.aptd-root [data-aptd-reveal="right"] {
  transform: translateX(34px);
}

.aptd-root [data-aptd-reveal="scale"] {
  transform: scale(0.95) translateY(20px);
}

.aptd-root [data-aptd-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .aptd-root [data-aptd-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   TOP BAR & TRANSPARENT-TO-GLASS FIXED HEADER OVER BANNER
   ========================================================================== */
.aptd-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.35s var(--aptd-ease);
}

.aptd-topbar {
  background: rgba(5, 11, 9, 0.88);
  backdrop-filter: blur(8px);
  color: var(--aptd-text-light-muted);
  font-size: 12.5px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  max-height: 44px;
  overflow: hidden;
}

.aptd-header-wrap.is-scrolled .aptd-topbar {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-bottom: none;
}

.aptd-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aptd-topbar-left,
.aptd-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.aptd-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  margin-right: 7px;
  animation: aptdPulse 2s infinite;
}

@keyframes aptdPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28); }
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.04); }
}

.aptd-topbar strong {
  color: #ffffff;
}

.aptd-header {
  position: relative;
  background: linear-gradient(180deg, rgba(6, 13, 10, 0.78) 0%, rgba(6, 13, 10, 0.28) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s var(--aptd-ease), box-shadow 0.35s var(--aptd-ease), border-color 0.35s ease;
}

.aptd-header-wrap.is-scrolled .aptd-header {
  background: rgba(7, 15, 12, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(201, 155, 59, 0.24);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.aptd-scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--aptd-emerald-light), var(--aptd-gold-light));
}

.aptd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}

.aptd-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  transition: transform 0.25s var(--aptd-ease);
}

.aptd-brand:hover {
  transform: translateY(-1px);
}

.aptd-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, #157a54, #083d29);
  border: 1.5px solid var(--aptd-border-gold);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.aptd-brand-title {
  display: block;
  font-family: var(--aptd-font-heading);
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.aptd-brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--aptd-gold-light);
  margin-top: 3px;
}

.aptd-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.aptd-nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.aptd-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--aptd-gold-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--aptd-ease);
}

.aptd-nav-link:hover {
  color: #ffffff;
}

.aptd-nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.aptd-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aptd-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   BUTTONS WITH LUXURY SHINE HOVER
   ========================================================================== */
.aptd-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--aptd-font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.3s var(--aptd-ease),
    box-shadow 0.3s var(--aptd-ease),
    background 0.3s ease,
    border-color 0.3s ease;
  white-space: nowrap;
}

.aptd-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-22deg);
  transition: left 0.65s var(--aptd-ease);
  pointer-events: none;
}

.aptd-btn:hover::after {
  left: 145%;
}

.aptd-btn:hover {
  transform: translateY(-2.5px);
}

.aptd-btn:active {
  transform: translateY(0);
}

.aptd-btn-gold {
  background: linear-gradient(135deg, #ecc974 0%, #c99b3b 55%, #9e741f 100%);
  color: #08110e;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 28px rgba(201, 155, 59, 0.35);
}

.aptd-btn-gold:hover {
  box-shadow: 0 16px 36px rgba(229, 190, 103, 0.5);
}

.aptd-btn-emerald {
  background: linear-gradient(135deg, #189467 0%, #0f6b4a 100%);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 107, 74, 0.3);
}

.aptd-btn-emerald:hover {
  box-shadow: 0 16px 34px rgba(15, 107, 74, 0.45);
}

.aptd-btn-glass {
  background: rgba(12, 24, 19, 0.62);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.aptd-btn-glass:hover {
  background: rgba(201, 155, 59, 0.18);
  border-color: var(--aptd-gold-light);
}

.aptd-btn-sm {
  padding: 10px 19px;
  font-size: 13.5px;
}

.aptd-phone-icon {
  animation: aptdRing 3s ease-in-out infinite;
}

@keyframes aptdRing {
  0%, 82%, 100% { transform: rotate(0); }
  86% { transform: rotate(-15deg); }
  90% { transform: rotate(15deg); }
  94% { transform: rotate(-9deg); }
}

/* ==========================================================================
   SECTION 1: PROMINENT FULL-BLEED BACKGROUND IMAGE HERO BANNER
   ========================================================================== */
.aptd-hero {
  position: relative;
  min-height: 88vh;
  padding: 162px 0 84px;
  display: flex;
  align-items: center;
  background-color: #090e0c;
  color: #ffffff;
  overflow: hidden;
}

/* Full-Bleed Prominent Background Image Layer */
.aptd-hero-bg {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aptd-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: brightness(1.03) contrast(1.04) saturate(1.06);
  animation: aptdKenBurns 24s ease-in-out infinite alternate;
  transform-origin: 72% center;
}

@keyframes aptdKenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.065) translate(-1%, -0.6%);
  }
}

/* Left-Only Readability Feather — Right Side Pool Table 100% Bright & Clear */
.aptd-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 12, 9, 0.88) 0%, rgba(6, 12, 9, 0.65) 34%, rgba(6, 12, 9, 0.12) 52%, rgba(6, 12, 9, 0) 68%),
    linear-gradient(180deg, rgba(5, 10, 8, 0.56) 0%, rgba(5, 10, 8, 0) 24%);
  pointer-events: none;
}

.aptd-hero-main {
  position: relative;
  z-index: 2;
  display: block;
}

.aptd-hero-copy {
  max-width: 555px;
}

.aptd-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(12, 26, 20, 0.82);
  border: 1px solid var(--aptd-border-gold);
  backdrop-filter: blur(10px);
  color: var(--aptd-gold-light);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.aptd-hero-title {
  font-family: var(--aptd-font-heading);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.65);
}

.aptd-hero-title em {
  font-family: var(--aptd-font-serif);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(92deg, #f7df9c 0%, #d4a647 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 4px;
}

.aptd-hero-lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(245, 248, 246, 0.92);
  margin-bottom: 28px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.aptd-hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.aptd-hero-signoff {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.aptd-signoff-stars {
  color: #f6c445;
  letter-spacing: 1.5px;
  font-size: 14px;
}

/* Dedicated Trust Badges Bar Anchored Cleanly Below Hero Banner */
.aptd-trust-bar-section {
  background: #08120e;
  border-top: 1px solid rgba(201, 155, 59, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}

.aptd-trust-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.aptd-trust-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.3s var(--aptd-ease), border-color 0.3s ease, background 0.3s ease;
}

.aptd-trust-card:hover {
  transform: translateY(-3px);
  border-color: var(--aptd-border-gold);
  background: rgba(255, 255, 255, 0.065);
}

.aptd-trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(201, 155, 59, 0.16);
  color: var(--aptd-gold-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.aptd-trust-title {
  display: block;
  font-family: var(--aptd-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.aptd-trust-sub {
  display: block;
  font-size: 12px;
  color: var(--aptd-text-light-muted);
  margin-top: 2px;
}

/* ==========================================================================
   SHARED SECTION STYLING
   ========================================================================== */
.aptd-section {
  padding: 92px 0;
}

.aptd-section-cream {
  background: var(--aptd-cream);
  border-top: 1px solid var(--aptd-border-light);
  border-bottom: 1px solid var(--aptd-border-light);
}

.aptd-section-dark {
  background:
    radial-gradient(circle at 15% 20%, rgba(22, 138, 96, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(201, 155, 59, 0.12), transparent 45%),
    linear-gradient(165deg, #08120e 0%, #0e1f19 100%);
  color: var(--aptd-text-light);
}

.aptd-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 46px;
}

.aptd-section-header > div:first-child {
  max-width: 640px;
}

.aptd-eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--aptd-emerald);
  margin-bottom: 10px;
}

.aptd-eyebrow-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--aptd-gold);
}

.aptd-section-dark .aptd-eyebrow-tag {
  color: var(--aptd-gold-light);
}

.aptd-section-title {
  font-family: var(--aptd-font-heading);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--aptd-text-dark);
}

.aptd-section-dark .aptd-section-title {
  color: #ffffff;
}

.aptd-section-desc {
  font-size: 15.5px;
  color: var(--aptd-text-muted);
  max-width: 500px;
}

.aptd-section-dark .aptd-section-desc {
  color: var(--aptd-text-light-muted);
}

/* ==========================================================================
   SECTION 2: KEY SERVICE SUMMARY CARDS WITH EDITORIAL PHOTOGRAPHY
   ========================================================================== */
.aptd-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.aptd-service-card {
  position: relative;
  background: var(--aptd-white);
  border: 1px solid var(--aptd-border-light);
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--aptd-shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.4s var(--aptd-ease),
    box-shadow 0.4s var(--aptd-ease),
    border-color 0.4s ease;
}

.aptd-service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--aptd-emerald), var(--aptd-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--aptd-ease);
}

.aptd-service-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--aptd-shadow-md);
  border-color: rgba(201, 155, 59, 0.48);
}

.aptd-service-card:hover::after {
  transform: scaleX(1);
}

/* Service Card Photography Header */
.aptd-service-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: #10201a;
}

.aptd-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.68s var(--aptd-ease);
}

.aptd-service-card:hover .aptd-service-media img {
  transform: scale(1.09);
}

.aptd-service-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 10, 0.05) 40%, rgba(6, 13, 10, 0.62) 100%);
  pointer-events: none;
}

.aptd-service-num {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 17, 14, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--aptd-font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--aptd-gold-light);
  letter-spacing: 0.06em;
}

.aptd-service-body {
  padding: 0 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.aptd-service-icon {
  position: relative;
  z-index: 3;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: var(--aptd-emerald);
  color: #ffffff;
  border: 3px solid var(--aptd-white);
  box-shadow: 0 8px 20px rgba(8, 17, 14, 0.18);
  display: grid;
  place-items: center;
  transition: background 0.32s ease, color 0.32s ease, transform 0.35s var(--aptd-ease);
}

.aptd-service-card:hover .aptd-service-icon {
  background: var(--aptd-gold);
  color: #08110e;
  transform: translateY(-3px) scale(1.05);
}

.aptd-service-title {
  font-family: var(--aptd-font-heading);
  font-size: 19.5px;
  font-weight: 800;
  color: var(--aptd-text-dark);
  margin-bottom: 9px;
  line-height: 1.24;
}

.aptd-service-text {
  font-size: 13.8px;
  color: var(--aptd-text-muted);
  margin-bottom: 16px;
  line-height: 1.56;
}

.aptd-service-list {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
  padding-top: 13px;
  border-top: 1px dashed rgba(17, 27, 23, 0.11);
}

.aptd-service-list li {
  font-size: 12.8px;
  font-weight: 600;
  color: var(--aptd-text-dark);
  display: flex;
  align-items: center;
  gap: 7px;
}

.aptd-service-list li::before {
  content: '✓';
  color: var(--aptd-emerald);
  font-weight: 800;
}

.aptd-service-cta {
  width: 100%;
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--aptd-ivory);
  border: 1px solid var(--aptd-border-light);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--aptd-text-dark);
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.aptd-service-cta span:last-child {
  transition: transform 0.28s var(--aptd-ease);
}

.aptd-service-card:hover .aptd-service-cta {
  background: var(--aptd-emerald);
  color: #ffffff;
  border-color: var(--aptd-emerald);
}

.aptd-service-card:hover .aptd-service-cta span:last-child {
  transform: translateX(4px);
}

/* ==========================================================================
   SECTION 3: DEDICATED INTERACTIVE FELT COLOR SELECTOR STUDIO
   ========================================================================== */
.aptd-felt-studio {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(201, 155, 59, 0.28);
  border-radius: var(--aptd-radius-lg);
  padding: 38px;
  box-shadow: var(--aptd-shadow-lg);
}

.aptd-table-stage {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 28px 24px 22px;
  text-align: center;
}

.aptd-felt-svg {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.55));
}

#aptdFeltCloth,
#aptdFeltRails {
  transition: fill 0.45s var(--aptd-ease);
}

.aptd-stage-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--aptd-text-light-muted);
}

.aptd-stage-caption strong {
  color: var(--aptd-gold-light);
}

.aptd-cloth-grades {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.32);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

.aptd-grade-btn {
  border: none;
  background: transparent;
  color: var(--aptd-text-light-muted);
  font-family: var(--aptd-font-body);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.aptd-grade-btn.is-active {
  background: var(--aptd-gold);
  color: #08110e;
}

.aptd-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.aptd-swatch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 11px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: var(--aptd-font-body);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--aptd-ease), border-color 0.25s ease, background 0.25s ease;
}

.aptd-swatch-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.aptd-swatch-card.is-active {
  border-color: var(--aptd-gold-light);
  background: rgba(201, 155, 59, 0.16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.aptd-swatch-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   SECTION 4: CUSTOM & USED POOL TABLES FOR SALE CATALOG
   ========================================================================== */
.aptd-catalog-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.aptd-filter-tabs {
  display: inline-flex;
  background: var(--aptd-white);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--aptd-border-light);
  box-shadow: var(--aptd-shadow-sm);
}

.aptd-filter-btn {
  border: none;
  background: transparent;
  color: var(--aptd-text-muted);
  font-family: var(--aptd-font-body);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.aptd-filter-btn:hover {
  color: var(--aptd-text-dark);
}

.aptd-filter-btn.is-active {
  background: var(--aptd-emerald);
  color: #ffffff;
}

.aptd-tables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-bottom: 30px;
}

.aptd-table-card {
  background: var(--aptd-white);
  border-radius: var(--aptd-radius-md);
  overflow: hidden;
  border: 1px solid var(--aptd-border-light);
  box-shadow: var(--aptd-shadow-sm);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  transition:
    transform 0.38s var(--aptd-ease),
    box-shadow 0.38s var(--aptd-ease),
    border-color 0.38s ease;
}

.aptd-table-card.is-hidden {
  display: none;
}

.aptd-table-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--aptd-shadow-md);
  border-color: var(--aptd-border-gold);
}

.aptd-table-media {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: #14241e;
}

.aptd-table-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--aptd-ease);
}

.aptd-table-card:hover .aptd-table-media img {
  transform: scale(1.08);
}

.aptd-table-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(8, 17, 14, 0.86);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.aptd-table-badge.is-custom {
  background: rgba(15, 107, 74, 0.94);
}

.aptd-table-price {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 13px;
  border-radius: 9px;
  font-family: var(--aptd-font-heading);
  font-size: 18px;
  font-weight: 800;
  background: #ffffff;
  color: var(--aptd-text-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.aptd-table-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.aptd-table-specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.aptd-spec-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--aptd-ivory);
  color: var(--aptd-text-muted);
}

.aptd-table-name {
  font-family: var(--aptd-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--aptd-text-dark);
  margin-bottom: 8px;
  line-height: 1.22;
}

.aptd-table-desc {
  font-size: 13.8px;
  color: var(--aptd-text-muted);
  margin-bottom: 18px;
}

.aptd-table-inquire {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--aptd-ivory);
  color: var(--aptd-text-dark);
  border: 1px solid var(--aptd-border-light);
  font-family: var(--aptd-font-body);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.aptd-table-card:hover .aptd-table-inquire {
  background: var(--aptd-emerald);
  color: #ffffff;
  border-color: var(--aptd-emerald);
}

/* Custom Build Consultation Strip */
.aptd-custom-cta-strip {
  background: linear-gradient(135deg, #0c1c16 0%, #163127 100%);
  border-radius: var(--aptd-radius-md);
  padding: 26px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--aptd-border-gold);
  flex-wrap: wrap;
}

.aptd-custom-cta-strip h3 {
  font-family: var(--aptd-font-heading);
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 4px;
}

.aptd-custom-cta-strip p {
  font-size: 14px;
  color: var(--aptd-text-light-muted);
}

/* ==========================================================================
   SECTION 5: ABOUT BERNIE & MASTER INSTALLER CRAFTSMANSHIP
   ========================================================================== */
.aptd-about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.aptd-about-media {
  position: relative;
}

.aptd-about-img-wrap {
  border-radius: var(--aptd-radius-lg);
  overflow: hidden;
  box-shadow: var(--aptd-shadow-md);
  border: 1px solid var(--aptd-border-light);
}

.aptd-about-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--aptd-ease);
}

.aptd-about-media:hover .aptd-about-img-wrap img {
  transform: scale(1.04);
}

.aptd-about-float-card {
  position: absolute;
  bottom: -20px;
  right: 22px;
  background: #0a1712;
  color: #ffffff;
  padding: 16px 22px;
  border-radius: 14px;
  border: 1px solid var(--aptd-border-gold);
  box-shadow: var(--aptd-shadow-md);
}

.aptd-about-float-card strong {
  display: block;
  font-family: var(--aptd-font-heading);
  font-size: 22px;
  color: var(--aptd-gold-light);
}

.aptd-about-float-card span {
  font-size: 12.5px;
  color: var(--aptd-text-light-muted);
}

.aptd-about-copy p {
  font-size: 15.5px;
  color: var(--aptd-text-muted);
  margin: 16px 0 26px;
}

.aptd-standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.aptd-standard-item {
  padding: 15px 16px;
  border-radius: 12px;
  background: var(--aptd-white);
  border: 1px solid var(--aptd-border-light);
  transition: transform 0.25s var(--aptd-ease), border-color 0.25s ease;
}

.aptd-standard-item:hover {
  transform: translateY(-3px);
  border-color: var(--aptd-emerald);
}

.aptd-standard-item strong {
  display: block;
  font-size: 14.5px;
  color: var(--aptd-text-dark);
  margin-bottom: 3px;
}

.aptd-standard-item span {
  font-size: 12.5px;
  color: var(--aptd-text-muted);
}

/* ==========================================================================
   SECTION 6: CUSTOMER TESTIMONIALS
   ========================================================================== */
.aptd-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.aptd-review-card {
  position: relative;
  background: var(--aptd-white);
  border: 1px solid var(--aptd-border-light);
  border-radius: var(--aptd-radius-md);
  padding: 28px;
  box-shadow: var(--aptd-shadow-sm);
  transition: transform 0.32s var(--aptd-ease), box-shadow 0.32s var(--aptd-ease), border-color 0.32s ease;
}

.aptd-review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--aptd-shadow-md);
  border-color: var(--aptd-border-gold);
}

.aptd-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.aptd-review-stars {
  color: #eab308;
  font-size: 16px;
  letter-spacing: 1.5px;
}

.aptd-review-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--aptd-emerald-soft);
  color: var(--aptd-emerald);
}

.aptd-review-quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--aptd-text-dark);
  margin-bottom: 18px;
}

.aptd-review-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--aptd-text-dark);
}

.aptd-review-loc {
  font-size: 12.5px;
  color: var(--aptd-text-muted);
}

/* ==========================================================================
   SECTION 7: SERVICE AREA MAP & MULTI-STEP QUOTE REQUEST FORM
   ========================================================================== */
.aptd-quote-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.aptd-area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.aptd-area-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--aptd-text-light);
}

.aptd-map-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 20px;
  background: #0d1b16;
}

.aptd-map-frame {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

.aptd-contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.aptd-contact-mini {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.aptd-contact-mini small {
  display: block;
  font-size: 11.5px;
  color: var(--aptd-text-light-muted);
}

.aptd-contact-mini strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
  margin-top: 2px;
}

/* Multi-Step Form Card */
.aptd-form-card {
  background: var(--aptd-white);
  color: var(--aptd-text-dark);
  border-radius: var(--aptd-radius-lg);
  padding: 34px;
  box-shadow: var(--aptd-shadow-lg);
}

.aptd-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.aptd-form-title {
  font-family: var(--aptd-font-heading);
  font-size: 23px;
  font-weight: 800;
}

.aptd-step-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--aptd-emerald);
  background: var(--aptd-emerald-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

.aptd-step-bar {
  height: 6px;
  background: #e7ece9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.aptd-step-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--aptd-emerald), var(--aptd-gold));
  transition: width 0.4s var(--aptd-ease);
}

.aptd-step-pane {
  display: none;
  animation: aptdStepIn 0.35s var(--aptd-ease);
}

.aptd-step-pane.is-active {
  display: block;
}

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

.aptd-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.aptd-field {
  margin-bottom: 15px;
}

.aptd-field-grid .aptd-field {
  margin-bottom: 0;
}

.aptd-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--aptd-text-dark);
  margin-bottom: 6px;
}

.aptd-input,
.aptd-select {
  width: 100%;
  font-family: var(--aptd-font-body);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #d5deda;
  background: #fafcfb;
  color: var(--aptd-text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aptd-input:focus,
.aptd-select:focus {
  outline: none;
  border-color: var(--aptd-emerald);
  box-shadow: 0 0 0 3px rgba(15, 107, 74, 0.12);
  background: #ffffff;
}

.aptd-size-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.aptd-size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.aptd-size-box {
  display: block;
  text-align: center;
  padding: 11px 8px;
  border-radius: 11px;
  border: 1.5px solid #d5deda;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.aptd-size-box small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--aptd-text-muted);
}

.aptd-size-option input:checked + .aptd-size-box {
  border-color: var(--aptd-emerald);
  background: var(--aptd-emerald-soft);
  color: var(--aptd-emerald);
}

.aptd-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.aptd-btn-back {
  background: #eef2f0;
  color: var(--aptd-text-dark);
}

.aptd-form-note {
  font-size: 11.5px;
  color: var(--aptd-text-muted);
  text-align: center;
  margin-top: 14px;
}

.aptd-form-success {
  display: none;
  text-align: center;
  padding: 26px 12px;
}

.aptd-form-success.is-visible {
  display: block;
  animation: aptdStepIn 0.4s var(--aptd-ease);
}

.aptd-success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--aptd-emerald-soft);
  color: var(--aptd-emerald);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

/* ==========================================================================
   FOOTER & PERSISTENT MOBILE STICKY BAR
   ========================================================================== */
.aptd-footer {
  background: #050b09;
  color: var(--aptd-text-light-muted);
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.aptd-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aptd-footer h4 {
  font-family: var(--aptd-font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.aptd-footer-list {
  display: grid;
  gap: 9px;
}

.aptd-footer-list a:hover {
  color: var(--aptd-gold-light);
}

.aptd-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}

.aptd-mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(7, 15, 12, 0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(201, 155, 59, 0.3);
  padding: 10px 14px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .aptd-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .aptd-hero-main,
  .aptd-felt-studio,
  .aptd-about-grid,
  .aptd-quote-grid {
    grid-template-columns: 1fr;
  }

  .aptd-services-grid,
  .aptd-trust-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .aptd-tables-grid {
    grid-template-columns: 1fr;
  }

  .aptd-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .aptd-topbar-right {
    display: none;
  }

  .aptd-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #08120e;
    flex-direction: column;
    padding: 20px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--aptd-border-gold);
  }

  .aptd-nav.is-open {
    display: flex;
  }

  .aptd-mobile-toggle {
    display: inline-flex;
  }

  .aptd-header-actions .aptd-btn-sm {
    display: none;
  }

  .aptd-hero {
    min-height: auto;
    padding: 132px 0 56px;
  }

  .aptd-hero-overlay {
    background: linear-gradient(180deg, rgba(6, 12, 9, 0.82) 0%, rgba(6, 12, 9, 0.72) 100%);
  }

  .aptd-services-grid,
  .aptd-trust-ribbon,
  .aptd-reviews-grid,
  .aptd-swatch-grid,
  .aptd-standards-grid,
  .aptd-contact-cards,
  .aptd-field-grid,
  .aptd-footer-grid,
  .aptd-table-card {
    grid-template-columns: 1fr;
  }

  .aptd-section {
    padding: 64px 0;
  }

  .aptd-felt-studio,
  .aptd-form-card {
    padding: 22px 18px;
  }

  .aptd-footer {
    padding-bottom: 88px;
  }

  .aptd-mobile-sticky {
    display: grid;
  }
}
