/**
 * That Tote Boxx
 * Primary custom CSS
 *
 * Recommended sections:
 * 1. Variables / global utilities
 * 2. Typography
 * 3. Header / navigation
 * 4. Buttons
 * 5. Divi modules
 * 6. Page-specific components
 * 7. WooCommerce
 * 8. Footer
 * 9. Responsive adjustments
 * 10. Homepage V2 — Hero video overlay
 */

:root {
	/* Add CSS custom properties here only when they are not managed by Divi 5. */
}

/* ---------- Global / Utilities ---------- */


/* ---------- Typography ---------- */


/* ---------- Header / Navigation ---------- */

/* ShiftNav: adjust main toggle content spacing */
#shiftnav-toggle-main .shiftnav-main-toggle-content {
  padding: 10px 20px !important;
}

/* Container alignment inside ShiftNav bar */
.shiftnav-text-logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none !important;
  vertical-align: middle;
  line-height: 1.1;
}

/* ---------- Buttons ---------- */


/* ---------- Divi 5 Components ---------- */


/* ---------- Page-Specific Components ---------- */
/* Homepage hero — large screens */
@media (min-width: 1920px) {
  .et_pb_section.ttb-home-hero {
    min-height: clamp(600px, 31.25vw, 800px);
  }
}


/* =========================================================
   That Tote Boxx — Animated Percentage Counters
   Divi Section class: ttb-stats-section
   ========================================================= */

.ttb-stats-section {
  --ttb-counter-ring: #ffffff;
  --ttb-counter-track: rgba(255, 255, 255, 0.18);
  --ttb-counter-number: #d03c6a;
  --ttb-counter-text: #ffffff;
  --ttb-counter-divider: rgba(255, 255, 255, 0.48);

  position: relative;
  overflow: hidden;
}

/*
 * Set the Divi row containing the Code Module to 100% width.
 * This removes Divi's normal content-width restriction.
 */
.ttb-stats-section > .et_pb_row,
.ttb-stats-section .et_pb_row {
  width: 100%;
  max-width: none;
  padding: 0;
}

/*
 * Remove the Code Module's default bottom margin if Divi adds one.
 */
.ttb-stats-section .et_pb_code,
.ttb-stats-section .et_pb_code_inner {
  margin-bottom: 0;
}

/* ---------- Grid ---------- */

.ttb-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1600px);
  margin-inline: auto;
}

/* ---------- Individual stat ---------- */

.ttb-stat {
  display: flex;
  min-width: 0;
  min-height: clamp(270px, 23vw, 360px);
  padding: clamp(36px, 5vw, 72px) clamp(22px, 4vw, 58px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2vw, 32px);
  text-align: center;
}

/* Desktop vertical dividers */
.ttb-stat:not(:nth-child(3n)) {
  border-right: 1px solid var(--ttb-counter-divider);
}

/* Desktop horizontal divider */
.ttb-stat:nth-child(-n + 3) {
  border-bottom: 1px solid var(--ttb-counter-divider);
}

/* ---------- Animated circle ---------- */

.ttb-stat__ring {
  --ttb-counter-value: 0;

  position: relative;
  display: grid;
  width: clamp(92px, 8vw, 116px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;

  background:
    conic-gradient(
      from 0deg,
      var(--ttb-counter-ring)
        calc(var(--ttb-counter-value) * 1%),
      var(--ttb-counter-track) 0
    );

  transform: translateZ(0);
  transition: transform 250ms ease;
}

/*
 * This creates the transparent/dark center.
 * Change the color if your section overlay is lighter.
 */
.ttb-stat__ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: rgba(5, 18, 26, 0.92);
}

/* ---------- Percentage ---------- */

.ttb-stat__number {
  position: relative;
  z-index: 1;
  color: var(--ttb-counter-number);
  font-size: clamp(1.75rem, 2.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Description ---------- */

.ttb-stat__description {
  max-width: 32ch;
  margin: 0;
  color: var(--ttb-counter-text);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.55;
}

.ttb-stat__description strong {
  color: inherit;
  font-weight: 700;
}

/* Optional subtle interaction */
@media (hover: hover) and (pointer: fine) {
  .ttb-stat:hover .ttb-stat__ring {
    transform: scale(1.06);
  }
}

/* ---------- Tablet: two columns ---------- */

@media (max-width: 980px) {
  .ttb-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ttb-stat {
    min-height: 270px;
  }

  /* Reset desktop borders */
  .ttb-stat:not(:nth-child(3n)) {
    border-right: 0;
  }

  .ttb-stat:nth-child(-n + 3) {
    border-bottom: 0;
  }

  /* Tablet vertical dividers */
  .ttb-stat:nth-child(odd) {
    border-right: 1px solid var(--ttb-counter-divider);
  }

  /* Tablet horizontal dividers */
  .ttb-stat:not(:nth-last-child(-n + 2)) {
    border-bottom: 1px solid var(--ttb-counter-divider);
  }
}

/* ---------- Phone: one column ---------- */

@media (max-width: 580px) {
  .ttb-stats-grid {
    grid-template-columns: 1fr;
  }

  .ttb-stat {
    min-height: auto;
    padding: 38px 24px;
  }

  .ttb-stat:nth-child(odd) {
    border-right: 0;
  }

  .ttb-stat:not(:nth-last-child(-n + 2)) {
    border-bottom: 0;
  }

  .ttb-stat:not(:last-child) {
    border-bottom: 1px solid var(--ttb-counter-divider);
  }

  .ttb-stat__description {
    max-width: 30ch;
  }
}

/* ---------- Reduced-motion accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  .ttb-stat__ring {
    transition: none;
  }
}

/* ---------- Footer ---------- */


/* ---------- Responsive Adjustments ---------- */

@media (max-width: 980px) {
	/* Divi tablet and phone adjustments. */
}

@media (max-width: 767px) {
	/* Phone-only adjustments. */
}

@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}
}

/* Hide quantity input on WooCommerce rental products */
.single-product.type-product.product-type-rental .quantity {
    display: none !important;
}

/* WooCommerce Deposits - styling of text */ 
.awcdp-deposits-wrapper .awcdp-deposits-option .awcdp-radio .awcdp-deposits-description
 {
    margin-left: 45px;
    font-size: .9rem !important;
    line-height: 1rem !important;
    color: #d03c6a !important;
    font-weight: 700 !important;
    margin-top: 3px;
}

/* Force hide WooCommerce Deposits full payment option */
body .awcdp-deposits-wrapper li.awcdp-deposits-option:has(input[value="full"]),
body .awcdp-deposits-wrapper li:has(input[value="full"]),
body .awcdp-deposits-wrapper .awcdp_deposit_option_full {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Horizontal, wrapping Service Areas list */
ul.service-areas-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  align-items: center;
  gap: 0.15rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.service-areas-list > li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

ul.service-areas-list > li:not(:last-child)::after {
  content: "•";
  margin: 0 0.25rem;
}

ul.service-areas-list {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
}


/* Homepage - Plastic VS Cardboard */
.et_pb_blurb .packing-benefits {
  list-style-type: disc;
  padding-left: 1.25em;
  line-height: 1.5;
}

.et_pb_blurb .packing-benefits > li {
  margin-bottom: 0.85em;
}

.et_pb_blurb .packing-benefits > li:last-child {
  margin-bottom: 0;
}

/* Homepage V2 — Hero video overlay */

.ttb-pink {
  color: #D03C6A;
}

/* TTB Hero Video Overlay */
.ttb-hero-video {
  position: relative;
  overflow: hidden;
}

/* Background video stays behind overlay */
.ttb-hero-video .et_pb_section_video_bg,
.ttb-hero-video .et_pb_background_video_wrapper,
.ttb-hero-video .et_pb_background_video_wrapper video {
  z-index: 0 !important;
}

/* Gradient overlay */
.ttb-hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    rgba(8, 20, 43, 0.82) 0%,
    rgba(8, 20, 43, 0.68) 22%,
    rgba(8, 20, 43, 0.30) 42%,
    rgba(8, 20, 43, 0.08) 58%,
    rgba(8, 20, 43, 0.00) 72%
  );
}

/* Keep text/content above overlay */
.ttb-hero-video .et_pb_row,
.ttb-hero-video .et_pb_column,
.ttb-hero-video .et_pb_module {
  position: relative;
  z-index: 2;
} 