/* ==========================================================================
   TOP BAR
   ========================================================================== */
.pdm-topbar {
  background: var(--pdm-ink);
  color: #E7F2EA;
  font-size: 0.8rem;
}
.pdm-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.5rem;
}
.pdm-topbar-msg { margin: 0; opacity: 0.85; }
.pdm-topbar-links { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.pdm-topbar-links a { color: #E7F2EA; }
.pdm-topbar-links a:hover { color: var(--pdm-green-light); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.pdm-header {
  background: var(--pdm-card);
  border-bottom: 1px solid var(--pdm-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.pdm-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1rem;
}
.pdm-branding img {
  display: block;
  max-height: 60px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pdm-logo-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--pdm-ink) !important;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.pdm-logo-fallback span { font-size: 0.6rem; letter-spacing: 0.14em; color: var(--pdm-teal-dark); font-weight: 600; }

.pdm-primary-nav { flex: 1; }
.pdm-menu {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.pdm-menu a { color: var(--pdm-ink); }
.pdm-menu a:hover { color: var(--pdm-green); }

.pdm-header-actions { display: flex; align-items: center; gap: 1.25rem; }
.pdm-search {
  display: flex;
  align-items: center;
  background: var(--pdm-paper);
  border: 1px solid var(--pdm-line);
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
}
.pdm-search-type {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pdm-ink-soft);
  outline: none;
  cursor: pointer;
  padding-right: 0.25rem;
  max-width: 108px;
}
.pdm-search-divider {
  width: 1px;
  height: 18px;
  background: var(--pdm-line);
  margin: 0 0.6rem;
  flex-shrink: 0;
}
.pdm-search input {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  width: 220px;
  outline: none;
}
.pdm-search button {
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pdm-ink-soft);
  padding: 0.3rem;
}
.pdm-search button:hover { color: var(--pdm-green-dark); }

.pdm-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--pdm-ink) !important;
}
.pdm-cart-count {
  position: absolute;
  top: -6px; right: -10px;
  background: var(--pdm-green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}

/* ==========================================================================
   MOBILE NAV: hamburger toggle + off-canvas drawer
   Hidden entirely on desktop; the drawer takes over .pdm-primary-nav
   below the 960px breakpoint (see RESPONSIVE section at the bottom).
   ========================================================================== */
.pdm-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--pdm-line);
  border-radius: var(--radius-sm);
  background: var(--pdm-card);
  cursor: pointer;
}
.pdm-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--pdm-ink);
  transition: transform .2s ease, opacity .2s ease;
}
body.pdm-nav-open .pdm-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.pdm-nav-open .pdm-menu-toggle span:nth-child(2) { opacity: 0; }
body.pdm-nav-open .pdm-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pdm-drawer-head,
.pdm-drawer-account,
.pdm-menu-close { display: none; }

.pdm-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 39, 31, 0.5);
  z-index: 45;
  opacity: 0;
  transition: opacity .2s ease;
}

.pdm-category-nav { background: var(--pdm-mint); border-top: 1px solid var(--pdm-line); position: relative; z-index: 40; }
.pdm-category-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0.55rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  flex-wrap: wrap;
  /* No overflow-x:auto here on purpose: any "overflow" other than visible
     on this bar clips its children to its own thin height — including the
     flyout .sub-menu panels below, which need to pop out past it. If you
     have too many top-level categories to fit one row, they'll wrap to a
     second line instead of scrolling. */
}
.pdm-category-menu a { color: var(--pdm-green-dark); white-space: nowrap; }
.pdm-category-menu a:hover { color: var(--pdm-teal-dark); }

/* ------------------------------------------------------------------------
   Multi-level flyout submenus.
   Build the nesting in Appearance > Menus by dragging an item slightly
   right, under the item above it — WordPress then wraps it in its own
   nested <ul class="sub-menu">, as many levels deep as you like. This CSS
   turns each nested <ul> into a panel: the 1st level drops down below the
   top bar, every level after that flies out to the right of its parent.
   ------------------------------------------------------------------------ */
.pdm-category-menu li { position: relative; }

.pdm-category-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--pdm-card);
  border: 1px solid var(--pdm-line);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -20px rgba(18,39,31,0.28);
  display: none;
  z-index: 50;
}
/* Every level after the first flies out to the right of its parent item,
   instead of dropping down again. */
.pdm-category-menu .sub-menu .sub-menu { top: -1px; left: 100%; margin-left: 2px; }

.pdm-category-menu .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.1rem;
  color: var(--pdm-ink);
  font-weight: 500;
}
/* Arrow on any item that itself has a further submenu. */
.pdm-category-menu .menu-item-has-children > a::after {
  content: '\203A'; /* › */
  font-weight: 700;
  color: var(--pdm-ink-soft);
}
.pdm-category-menu > .menu-item-has-children > a::after { display: none; } /* no arrow on the top-bar items themselves */

.pdm-category-menu .sub-menu li:hover > a,
.pdm-category-menu .sub-menu li.is-open > a {
  background: var(--pdm-green);
  color: #fff;
}
.pdm-category-menu .sub-menu li:hover > a::after,
.pdm-category-menu .sub-menu li.is-open > a::after { color: #fff; }

/* Open on hover (mouse/trackpad) and on keyboard focus. */
.pdm-category-menu li:hover > .sub-menu,
.pdm-category-menu li.is-open > .sub-menu,
.pdm-category-menu li:focus-within > .sub-menu {
  display: block;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.pdm-breadcrumbs { margin: 1.25rem 0; font-size: 0.8rem; }
.pdm-breadcrumbs ol { list-style: none; display: flex; gap: 0.4rem; padding: 0; margin: 0; color: var(--pdm-ink-soft); }
.pdm-breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 0.4rem; color: var(--pdm-line); }

/* ==========================================================================
   HERO
   ========================================================================== */
.pdm-hero { padding-block: clamp(2.5rem, 6vw, 5rem); background: linear-gradient(180deg, var(--pdm-mint) 0%, var(--pdm-paper) 100%); }
.pdm-hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.pdm-hero-copy h1 { margin-top: 0.6rem; }
.pdm-hero-copy p { max-width: 44ch; color: var(--pdm-ink-soft); font-size: 1.05rem; }
.pdm-hero-cta { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* Full-bleed hero photo mode — set once a Homepage Hero photo is uploaded
   in the Customizer. The photo covers the entire section (not just a side
   panel), with a dark gradient scrim behind the text so it stays readable,
   and the CTA button sits directly on top of the photo. */
.pdm-hero.has-hero-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  padding-block: clamp(3.5rem, 10vw, 7rem);
}
.pdm-hero.has-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,39,31,0.88) 0%, rgba(18,39,31,0.6) 50%, rgba(18,39,31,0.18) 100%);
}
.pdm-hero.has-hero-photo .pdm-hero-inner {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr;
}
.pdm-hero.has-hero-photo .pdm-hero-copy { max-width: 640px; }
.pdm-hero.has-hero-photo .badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--pdm-green-light);
}
.pdm-hero.has-hero-photo h1 { color: #fff; }
.pdm-hero.has-hero-photo .pdm-hero-copy p { color: #E7F0EA; }

/* Hero credential panel — dark ink background matching the brand logo,
   built around the real founding year rather than decorative imagery.
   This is the trust anchor of the homepage. Only shown as a fallback
   when no hero photo has been uploaded yet. */
.pdm-hero-credential {
  position: relative;
  background: var(--pdm-ink);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(18, 39, 31, 0.5);
}
.pdm-credential-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 15% 20%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 75% 15%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 40% 70%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 90% 80%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 10% 85%, #fff 0 2px, transparent 3px);
  background-size: 220px 220px;
}
.pdm-credential-year {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  background: linear-gradient(90deg, var(--pdm-green-light), var(--pdm-teal-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pdm-credential-label {
  position: relative;
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B9CFC1;
  margin-top: 0.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.pdm-credential-list {
  position: relative;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.pdm-credential-list li { padding-left: 1.6rem; position: relative; }
.pdm-credential-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.3em;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--pdm-green), var(--pdm-teal));
}

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.pdm-trust-strip { padding-block: 2rem; background: var(--pdm-card); }
.pdm-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.pdm-trust-item { display: flex; flex-direction: column; gap: 0.3rem; }
.pdm-trust-item strong { font-family: var(--font-display); color: var(--pdm-teal-dark); }
.pdm-trust-item span { font-size: 0.85rem; color: var(--pdm-ink-soft); }

/* ==========================================================================
   SECTION SCAFFOLDING
   ========================================================================== */
.pdm-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.pdm-mint-bg { background: var(--pdm-mint); }
.pdm-sky-bg { background: var(--pdm-sky); }
.pdm-featured-section {
  background: var(--pdm-card);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--pdm-green), var(--pdm-teal)) 1;
}
.pdm-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.75rem; }
.pdm-section-head a { font-weight: 600; font-size: 0.9rem; }

/* Category grid */
.pdm-category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.pdm-category-card { text-align: center; }
.pdm-category-thumb {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: #fff center/cover no-repeat;
  border: 1px solid var(--pdm-line);
  margin-bottom: 0.6rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pdm-category-card:hover .pdm-category-thumb { transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(18,39,31,0.3); }
.pdm-category-name { font-size: 0.8rem; font-weight: 600; color: var(--pdm-ink); }

.pdm-section-head--center { flex-direction: column; align-items: center; text-align: center; gap: 0; }

.pdm-brand-carousel { position: relative; }
.pdm-brand-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.5rem 0.25rem 0.75rem;
}
.pdm-brand-track::-webkit-scrollbar { display: none; }
.pdm-brand-card { flex: 0 0 auto; width: 130px; text-align: center; scroll-snap-align: start; }
.pdm-brand-thumb {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: #fff center/65% no-repeat;
  border: 1px solid var(--pdm-line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pdm-brand-card:hover .pdm-brand-thumb { transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(18,39,31,0.3); }
.pdm-brand-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pdm-teal-dark);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdm-carousel-arrow {
  position: absolute;
  top: 60px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--pdm-line);
  background: rgba(255,255,255,0.92);
  color: var(--pdm-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 16px -8px rgba(18,39,31,0.35);
}
.pdm-carousel-arrow:hover { background: var(--pdm-green); color: #fff; border-color: var(--pdm-green); }
.pdm-carousel-arrow--prev { left: 0.25rem; }
.pdm-carousel-arrow--next { right: 0.25rem; }

.pdm-carousel-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.5rem; }
.pdm-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--pdm-line);
  cursor: pointer;
}
.pdm-carousel-dot.is-active { background: var(--pdm-ink); }

/* B2B / B2C split */
.pdm-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pdm-split-card { padding: 2.25rem; border-radius: var(--radius-lg); }
.pdm-split-b2b { background: var(--pdm-ink); color: #fff; }
.pdm-split-b2b h3, .pdm-split-b2b p { color: #fff; }
.pdm-split-b2c { background: var(--pdm-card); border: 1px solid var(--pdm-line); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.pdm-footer { background: var(--pdm-ink); color: #CFE3D6; padding-top: 3rem; }
.pdm-footer-grid { display: block; padding-bottom: 2rem; }

.pdm-footer-about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  column-gap: 3rem;
  align-items: start;
  max-width: 760px;
}
.pdm-footer-about img {
  display: block;
  max-height: 42px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  grid-column: 1;
  grid-row: 1;
}
.pdm-footer-about p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 1rem;
  grid-column: 1;
  grid-row: 2;
}

.pdm-footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; grid-column: 2; grid-row: 1; }
.pdm-footer-contact li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; opacity: 0.9; }
.pdm-footer-contact svg { flex-shrink: 0; margin-top: 0.15em; color: var(--pdm-green-light); }
.pdm-footer-contact a { color: #CFE3D6; }
.pdm-footer-contact a:hover { color: var(--pdm-green-light); }

.pdm-footer-social { display: flex; gap: 0.6rem; margin-top: 0.9rem; grid-column: 2; grid-row: 2; }
.pdm-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #CFE3D6;
  transition: background .15s ease, color .15s ease;
}
.pdm-footer-social a:hover { background: var(--pdm-green); color: #fff; }

.pdm-footer h4 { color: #fff; font-size: 0.95rem; }
.pdm-footer a { color: #CFE3D6; }
.pdm-footer a:hover { color: var(--pdm-green-light); }
.pdm-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.25rem; font-size: 0.8rem; }
.pdm-footer-bottom-inner { display: flex; justify-content: space-between; }
.pdm-footer-menu { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }

/* WhatsApp floating button */
.pdm-whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--pdm-green);
  box-shadow: 0 12px 24px -8px rgba(18,39,31,0.4);
  z-index: 50;
}
.pdm-whatsapp-float::after {
  content: '💬';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-size: 1.4rem;
}

/* ==========================================================================
   GENERIC CONTENT PAGES
   ========================================================================== */
.pdm-content-main { padding-block: 2rem 4rem; }
.pdm-page-content { max-width: 70ch; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .pdm-hero-inner { grid-template-columns: 1fr; }
  .pdm-hero-credential { order: -1; }
  .pdm-category-grid { grid-template-columns: repeat(3, 1fr); }
  .pdm-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .pdm-split-grid { grid-template-columns: 1fr; }

  /* Hamburger takes over from the inline menu */
  .pdm-menu-toggle { display: flex; order: 3; }

  .pdm-primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(320px, 85vw);
    background: var(--pdm-card);
    box-shadow: -12px 0 32px -12px rgba(18, 39, 31, 0.35);
    z-index: 46;
    padding: 1.25rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  body.pdm-nav-open .pdm-primary-nav { transform: translateX(0); }

  .pdm-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--pdm-line);
  }
  .pdm-drawer-title { font-family: var(--font-display); font-weight: 700; }
  .pdm-menu-close {
    display: block;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--pdm-mint);
    border-radius: 999px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--pdm-ink);
  }

  .pdm-menu {
    flex-direction: column;
    gap: 0;
    font-size: 1rem;
  }
  .pdm-menu li { border-bottom: 1px solid var(--pdm-line); }
  .pdm-menu a { display: block; padding: 0.9rem 0.25rem; }

  .pdm-drawer-account {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--pdm-line);
    font-weight: 600;
  }

  body.pdm-nav-open .pdm-nav-overlay { display: block; opacity: 1; }
  body.pdm-nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .pdm-header-inner { flex-wrap: wrap; }
  .pdm-search input { width: 140px; }
  .pdm-category-grid { grid-template-columns: repeat(2, 1fr); }
  .pdm-footer-about { display: block; max-width: none; }
  .pdm-footer-contact,
  .pdm-footer-social { margin-top: 1.1rem; }
  .pdm-footer-bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
