/* Optimized v3 package for WordPress/Elementor iframe use.
   Source file verified slide count: 8
*/

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 820px;
  background: #1c2b2d;
}

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

  :root {
    --teal:       #1a7a8a;
    --teal-dark:  #0f5560;
    --teal-deep:  #0a3d47;
    --teal-light: #2aa8bc;
    --teal-pale:  #d0eef3;
    --red:        #c0392b;
    --red-light:  #e74c3c;
    --white:      #ffffff;
    --off-white:  #f4f9fa;
    --charcoal:   #1c2b2d;
    --mid:        #5a7a80;
    --light-mid:  #8fb5bc;
  }

  body {
    background: var(--charcoal);
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    width: 100%;
    height: 100%;
  }

  /* ── Slides ─────────────────────────────── */
  #slideshow { position: relative; width: 100%; height: 100%; }

  .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  .slide.active { opacity: 1; pointer-events: all; }

  /* BG image layer */
  .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.28) saturate(0.8);
    transform: scale(1.05);
    transition: transform 8s ease;
  }
  .slide.active .slide-bg { transform: scale(1); }

  /* Teal overlay gradient */
  .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      rgba(10,61,71,0.82) 0%,
      rgba(15,85,96,0.55) 50%,
      rgba(10,61,71,0.88) 100%
    );
  }

  /* Left accent bar */
  .slide-accent-bar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--red) 0%, var(--teal-light) 100%);
  }

  /* Content */
  .slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 860px;
    width: 100%;
    padding: 60px 40px;
    gap: 0;
  }

  /* ── Reveal animations ─────────────────── */
  .line { overflow: hidden; display: block; }
  .reveal {
    display: block;
    transform: translateY(110%);
    transition: transform 0.75s cubic-bezier(0.22,1,0.36,1);
  }
  .slide.active .reveal { transform: translateY(0); }
  .slide.active .reveal.d1 { transition-delay: 0.1s; }
  .slide.active .reveal.d2 { transition-delay: 0.25s; }
  .slide.active .reveal.d3 { transition-delay: 0.4s; }

  .fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .slide.active .fade-up { opacity: 1; transform: translateY(0); }
  .slide.active .fade-up.d1 { transition-delay: 0.35s; }
  .slide.active .fade-up.d2 { transition-delay: 0.5s; }
  .slide.active .fade-up.d3 { transition-delay: 0.65s; }
  .slide.active .fade-up.d4 { transition-delay: 0.8s; }
  .slide.active .fade-up.d5 { transition-delay: 0.95s; }
  .slide.active .fade-up.d6 { transition-delay: 1.1s; }

  .expand-line {
    width: 0;
    transition: width 1s ease 0.45s;
  }
  .slide.active .expand-line { width: 100%; }

  /* ── Typography ─────────────────────────── */
  .eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 14px;
  }

  .display {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6.5vw, 82px);
    font-weight: 600;
    color: var(--white);
    line-height: 1.08;
  }
  .display em {
    font-style: italic;
    color: var(--teal-light);
  }
  .display .red { color: var(--red-light); font-style: normal; }

  .subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(16px, 2.2vw, 22px);
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
    max-width: 580px;
  }

  .body-copy {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    max-width: 560px;
  }

  /* Divider */
  .divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
    justify-content: center;
  }
  .divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
    flex: 1;
    max-width: 140px;
  }
  .divider-dot {
    width: 6px; height: 6px;
    background: var(--red);
    border-radius: 50%;
  }

  /* Cards */
  .card-grid {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 800px;
  }
  .card-grid.c2 { grid-template-columns: 1fr 1fr; }
  .card-grid.c3 { grid-template-columns: 1fr 1fr 1fr; }

  .card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(42,168,188,0.18);
    border-top: 2px solid var(--teal-light);
    padding: 20px 22px;
    border-radius: 2px;
    text-align: left;
  }
  .card-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 7px;
  }
  .card-text {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
  }

  /* Stat blocks */
  .stat-row {
    display: flex;
    gap: 0;
  }
  .stat {
    flex: 1;
    text-align: center;
    padding: 20px;
    border-right: 1px solid rgba(42,168,188,0.15);
  }
  .stat:last-child { border-right: none; }
  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 400;
    color: var(--teal-light);
    line-height: 1;
  }
  .stat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-top: 6px;
  }

  /* Price badges */
  .price-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
  }
  .price-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(42,168,188,0.25);
    border-radius: 2px;
    padding: 14px 24px;
    text-align: center;
    min-width: 130px;
  }
  .price-badge .pnum {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--teal-light);
    line-height: 1;
  }
  .price-badge .punit {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin-top: 4px;
  }

  /* Bullet list */
  .bullet-list {
    list-style: none;
    text-align: left;
    max-width: 540px;
    width: 100%;
  }
  .bullet-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(42,168,188,0.1);
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
  }
  .bullet-list li::before {
    content: '';
    width: 6px; height: 6px;
    min-width: 6px;
    background: var(--red);
    border-radius: 50%;
    margin-top: 7px;
  }

  /* CTA button */
  .btn {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    padding: 14px 38px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 1px;
  }
  .btn-primary {
    background: var(--teal);
    border: 1px solid var(--teal-light);
    color: var(--white);
    transition: background 0.3s;
  }
  .btn-primary:hover { background: var(--teal-light); }
  .btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.6);
    transition: border-color 0.3s, color 0.3s;
  }
  .btn-outline:hover { border-color: var(--teal-light); color: var(--white); }

  /* ── Chrome UI ──────────────────────────── */
  #topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: rgba(10,30,34,0.92);
    border-bottom: 1px solid rgba(42,168,188,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 200;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .brand-logo {
    width: 34px; height: 34px;
    border-radius: 3px;
    object-fit: contain;
    background: white;
    padding: 2px;
  }
  .brand-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--white);
    text-transform: uppercase;
  }
  .brand-sub {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: var(--teal-light);
    text-transform: uppercase;
    display: block;
    margin-top: 1px;
  }

  .top-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .ctrl {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(42,168,188,0.2);
    color: rgba(255,255,255,0.55);
    font-size: 16px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
  }
  .ctrl:hover { background: rgba(42,168,188,0.15); color: var(--white); }

  /* Progress */
  #progress-track {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.07);
    z-index: 200;
  }
  #progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    transition: width 0.25s linear;
    box-shadow: 0 0 10px rgba(42,168,188,0.5);
  }

  /* Slide counter & dots */
  #bottom-bar {
    position: fixed;
    bottom: 14px;
    left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 200;
  }
  .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
  }
  .dot.active { background: var(--teal-light); transform: scale(1.6); }

  #slide-counter {
    position: fixed;
    bottom: 18px; right: 28px;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.25);
    z-index: 200;
  }

  /* Timer ring */
  #timer-ring {
    position: fixed;
    bottom: 10px; left: 24px;
    z-index: 200;
  }
  #timer-ring svg { transform: rotate(-90deg); }
  #timer-ring circle { fill: none; stroke-width: 1.5; }
  .tr-bg { stroke: rgba(255,255,255,0.1); }
  #tr-fill {
    stroke: var(--teal-light);
    stroke-dasharray: 56.5;
    stroke-dashoffset: 56.5;
    transition: stroke-dashoffset 0.1s linear;
    stroke-linecap: round;
  }

  /* Contact info bar on CTA slide */
  .contact-row {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .contact-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--teal-light);
  }
  .contact-value {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.05em;
  }

/* v3 iframe stability fixes */
body {
  width: 100%;
  min-height: 820px;
  height: 100vh;
  overflow: hidden;
}

.bbv3-presentation {
  position: relative;
  width: 100%;
  min-height: 820px;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: var(--charcoal, #1c2b2d);
}

#slideshow {
  width: 100%;
  height: 100%;
  min-height: 820px;
}

.slide {
  width: 100%;
  min-height: 820px;
}

#topbar,
#bottom-bar,
#slide-counter,
#progress-track,
#timer-ring {
  position: absolute;
}

.slide-bg {
  background-image: none;
  will-change: transform;
}

.slide-bg.is-loaded {
  background-image: var(--bb-bg);
}

/* Keep missing/late backgrounds from hiding content */
.slide-overlay,
.slide-accent-bar,
.slide-content {
  pointer-events: none;
}

.top-controls,
.btn,
.dot,
.ctrl {
  pointer-events: auto;
}

.dot {
  border: 0;
  padding: 0;
}

/* Correct small typo-like missing currency values from source display if desired by CSS only impossible.
   Edit presentation.html if the $ signs were intentionally removed by copy/paste. */

/* Responsive layout */
@media (max-width: 920px) {
  html, body, .bbv3-presentation, #slideshow, .slide {
    min-height: 900px;
  }

  .slide-content {
    padding: 90px 26px 80px;
    max-width: 100%;
  }

  .card-grid.c2,
  .card-grid.c3 {
    grid-template-columns: 1fr;
    max-width: 620px !important;
  }

  .stat-row {
    flex-direction: column;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(42,168,188,0.15);
  }

  .stat:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  html, body, .bbv3-presentation, #slideshow, .slide {
    min-height: 980px;
  }

  #topbar {
    min-height: 64px;
    height: auto;
    padding: 10px 14px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 11px;
  }

  .brand-sub {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .top-controls {
    gap: 5px;
  }

  .ctrl {
    width: 30px;
    height: 30px;
  }

  .display {
    font-size: clamp(34px, 12vw, 54px);
  }

  .subtitle,
  .body-copy {
    font-size: 15px;
  }

  .price-row,
  .contact-row {
    gap: 10px;
  }

  .btn {
    padding: 12px 24px;
    letter-spacing: 0.18em;
  }

  #slide-counter {
    right: 14px;
    bottom: 18px;
  }

  #timer-ring {
    left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
