:root {
  --phc-green: #2E6838;
  --phc-green-mid: #3F7652;
  --phc-green-dark: #1B5B3F;
  --phc-gold: #BFA14A;
  --phc-slate: #607E90;
  --phc-off-white: #F4F4F4;
  --phc-warm-white: #FAF9F5;
  --phc-light-gray: #E1E1E1;
  --phc-white: #FFFFFF;
  --phc-text-dark: #141413;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: "DM Sans", sans-serif;
  color: var(--phc-green);
  background: var(--phc-warm-white);
  font-weight: 300;
  line-height: 1.5;
  font-size: 20px;
}
h1, h2, h3, .display {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  font-weight: 700;
  line-height: 1.03;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--phc-green);
  color: var(--phc-white);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 17px;
  padding: 16px 34px;
  border: 0;
  border-radius: 4px;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--phc-green-mid); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--phc-white);
  color: var(--phc-white);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--phc-green);
  color: var(--phc-green);
}
.btn-outline:hover { background: var(--phc-green); color: var(--phc-white); }
.btn-white { background: var(--phc-gold); color: var(--phc-white); border: 2px solid var(--phc-gold); }
.btn-white:hover { background: var(--phc-white); color: var(--phc-green); border-color: var(--phc-white); }

/* EYEBROW */
.eyebrow {
  font-family: "DM Sans";
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--phc-gold);
  margin-bottom: 20px;
}

/* ========================================
   NAV — white background, green text
   ======================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--phc-white);
  border-bottom: 1px solid var(--phc-light-gray);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo img {
  height: 34px;
  width: auto;
  display: block;
}
.navlinks {
  display: flex;
  gap: 32px;
  align-items: center;
}
.navlinks a {
  color: var(--phc-green);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .4px;
  transition: color .15s;
}
.navlinks a:hover,
.navlinks a.active {
  color: var(--phc-green-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.navlinks a.cta {
  background: var(--phc-green);
  color: var(--phc-white);
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
}
.navlinks a.cta:hover {
  background: var(--phc-green-mid);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  background: var(--phc-green-dark);
  background-size: cover;
  background-position: center 40%;
  color: var(--phc-white);
}
.hero .wrap { padding: 118px 32px; }
.hero-box { max-width: 820px; }
.hero h1 { font-size: clamp(32px, 5vw + 12px, 60px); color: var(--phc-white); margin-bottom: 26px; }
.hero p.lead {
  font-size: 21px;
  font-weight: 300;
  max-width: 680px;
  margin-bottom: 38px;
  color: rgba(255,255,255,.93);
}
.hero .btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========================================
   SECTION UTILITIES
   ======================================== */
.section { padding: 88px 0; }
.section-sm { padding: 64px 0; }
.bg-white { background: var(--phc-white); }
.bg-warm { background: var(--phc-warm-white); }
.bg-off { background: var(--phc-off-white); }
.bg-green { background: var(--phc-green); color: var(--phc-white); }
.bg-green h2, .bg-green h3 { color: var(--phc-white); }
.text-center { text-align: center; }

/* ========================================
   AGENCIES PREVIEW (Home)
   ======================================== */
.agencies-preview h2 { font-size: clamp(28px, 3.5vw + 8px, 42px); margin-bottom: 14px; }
.agencies-preview .sub {
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--phc-text-dark);
}
.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}
.brand-card-wide {
  background: var(--phc-white);
  border: 1px solid var(--phc-light-gray);
  border-radius: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}
.brand-card-logo {
  width: 260px;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 36px;
  border-right: 1px solid var(--phc-light-gray);
  align-self: stretch;
}
.brand-card-wide { min-height: 120px; }
.brand-card-logo img { max-height: 58px; max-width: 180px; width: auto; }
.brand-card-info {
  flex: 1;
  padding: 24px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}
.brand-card-info .tag {
  font-size: 15px;
  color: var(--phc-text-dark);
  letter-spacing: .2px;
}
.brand-card-info .website-btn {
  display: inline-block;
  flex-shrink: 0;
  font-family: "DM Sans";
  font-weight: 500;
  font-size: 13px;
  color: var(--phc-white);
  background: var(--phc-green);
  padding: 12px 20px;
  border-radius: 4px;
  letter-spacing: .3px;
  transition: background .15s;
  white-space: nowrap;
}
.brand-card-info .website-btn:hover { background: var(--phc-green-mid); }

/* LOGO CAROUSEL */
.logo-carousel {
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid var(--phc-light-gray);
  border-bottom: 1px solid var(--phc-light-gray);
  margin: 40px 0;
}
.logo-track {
  display: flex;
  gap: 64px;
  align-items: center;
  animation: scroll-logos 25s linear infinite;
  width: max-content;
}
.logo-track img {
  height: 48px;
  width: auto;
  opacity: 0.7;
  transition: opacity .2s;
  flex-shrink: 0;
}
.logo-track img:hover { opacity: 1; }
.logo-track a { display: flex; align-items: center; flex-shrink: 0; }
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* MAP */
.brand-map { margin-bottom: 48px; }
.brand-map iframe {
  width: 100%;
  height: 480px;
  border: 1px solid var(--phc-light-gray);
  border-radius: 6px;
}

/* LEGEND */
.brand-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
  margin-bottom: 14px;
}
.brand-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans";
  font-size: 14px;
  color: var(--phc-text-dark);
}
.brand-legend .legend-item .swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-legend .legend-item .legend-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========================================
   PARTNER SUPPORT CARDS (Home preview)
   ======================================== */
.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.support-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: default;
}
.support-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.support-card:hover .card-icon {
  color: var(--phc-white);
}
.support-card .card-num {
  font-family: "Barlow Condensed";
  font-size: 34px;
  color: var(--phc-gold);
  margin-bottom: 12px;
}
.support-card .card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--phc-gold);
  transition: color .2s ease;
}
.support-card .card-icon svg {
  width: 100%;
  height: 100%;
}
.support-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.15;
}
.support-card p {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
}

/* ========================================
   WHY PANDO (2-col)
   ======================================== */
.why { background: var(--phc-off-white); }
.why .wrap {
  padding: 88px 32px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.why h2 { font-size: clamp(28px, 3.5vw + 8px, 42px); margin-bottom: 22px; }
.why p { font-size: 20px; color: var(--phc-text-dark); }
.why-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
}

/* ========================================
   PARTNER SUPPORT ACCORDION (Why Pando page)
   ======================================== */
.accordion { border-top: 1px solid var(--phc-light-gray); }
.accordion-item { border-bottom: 1px solid var(--phc-light-gray); }
.accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  padding: 20px 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--phc-text-dark);
  cursor: pointer;
  text-align: left;
}
.accordion-btn:hover { color: var(--phc-green); }
.accordion-btn .icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--phc-text-dark);
  transition: transform .2s;
}
.accordion-item.open .icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 8px;
}
.accordion-item.open .accordion-body { max-height: 500px; padding: 0 8px 18px; }
.accordion-body p { font-size: 15px; color: var(--phc-text-dark); line-height: 1.6; }

/* ========================================
   PROCESS STEPS
   ======================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
}
.step .n {
  font-family: "Barlow Condensed";
  font-size: 44px;
  color: var(--phc-gold);
  margin-bottom: 10px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 15px; color: rgba(255,255,255,.88); }

/* ========================================
   PAGE HEADER (inner pages)
   ======================================== */
.phead {
  background: var(--phc-green);
  color: var(--phc-white);
}
.phead .wrap { padding: 74px 32px 64px; }
.phead .eyebrow { color: var(--phc-gold); }
.phead h1 { font-size: clamp(30px, 4.5vw + 10px, 52px); color: var(--phc-white); margin-bottom: 18px; }
.phead p { font-size: 20px; max-width: 640px; color: rgba(255,255,255,.9); }

/* ========================================
   TEAM SECTION (Why Pando)
   ======================================== */
.team-section { background: var(--phc-warm-white); }
.team-section .wrap { padding: 88px 32px; }
.team-section h2 { font-size: clamp(28px, 3.5vw + 8px, 42px); margin-bottom: 16px; }
.team-section .sub { color: var(--phc-text-dark); margin-bottom: 40px; max-width: 640px; }
.team-photo {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: 6px;
}

/* ========================================
   AGENCIES PAGE
   ======================================== */
.agency-section { padding: 64px 0; }
.agency-section:nth-child(even) { background: var(--phc-off-white); }
.agency-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.agency-info h3 { font-size: 32px; margin-bottom: 12px; }
.agency-info .cities {
  font-size: 15px;
  color: var(--phc-text-dark);
  margin-bottom: 20px;
  letter-spacing: .2px;
}
.agency-info .website-link {
  display: inline-block;
  font-weight: 500;
  font-size: 15px;
  color: var(--phc-green);
  margin-bottom: 20px;
}
.agency-info .website-link:hover { text-decoration: underline; }
.agency-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
}
.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--phc-off-white);
  border: 2px dashed var(--phc-light-gray);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--phc-slate);
  font-family: "DM Sans";
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.coming-soon-card {
  background: var(--phc-white);
  border: 2px dashed var(--phc-light-gray);
  border-radius: 6px;
  padding: 48px;
  text-align: center;
  opacity: 0.7;
}
.coming-soon-card img { max-height: 50px; margin-bottom: 16px; opacity: 0.5; }
.coming-soon-card .label {
  font-family: "DM Sans";
  font-size: 14px;
  color: var(--phc-slate);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ========================================
   CONTACT
   ======================================== */
.contact .wrap {
  padding: 64px 32px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 56px;
}
.contact h2 { font-size: 32px; margin-bottom: 24px; }
.contact label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--phc-text-dark);
  letter-spacing: .3px;
}
.contact input, .contact textarea {
  width: 100%;
  font-family: "DM Sans";
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--phc-light-gray);
  border-radius: 4px;
  margin-bottom: 20px;
  background: var(--phc-white);
  color: var(--phc-text-dark);
  transition: border-color .15s;
}
.contact input:focus, .contact textarea:focus {
  outline: none;
  border-color: var(--phc-green);
}
.contact textarea { min-height: 130px; resize: vertical; }
.contact-sidebar h3 { font-size: 24px; margin-bottom: 20px; }
.contact-sidebar .person { margin-bottom: 24px; }
.contact-sidebar .person strong { font-weight: 500; display: block; margin-bottom: 4px; }
.contact-sidebar .person a, .contact-sidebar .person p {
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
  color: var(--phc-text-dark);
}

/* ========================================
   OUR VALUES (Home)
   ======================================== */
.values-section { background: var(--phc-warm-white); }
.values-section .wrap { padding: 88px 32px; }
.values-header { text-align: center; margin-bottom: 56px; }
.values-header h2 { font-size: clamp(28px, 3.5vw + 8px, 42px); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.values-section .wrap { max-width: 1280px; }
.value-card {
  background: var(--phc-white);
  border: 1px solid var(--phc-light-gray);
  border-left: 4px solid var(--phc-green);
  border-top: 3px solid var(--phc-gold);
  border-radius: 8px;
  padding: 36px 28px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: default;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  border-top-color: var(--phc-green);
}
.value-icon {
  margin-bottom: 18px;
  width: 52px;
  height: 52px;
  background: var(--phc-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.value-card:hover .value-icon {
  background: var(--phc-gold);
  box-shadow: 0 0 0 3px rgba(191,161,74,.3);
}
.value-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--phc-white) !important;
}
.value-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--phc-green);
  transition: color .2s ease;
}
.value-card:hover h3 { color: var(--phc-gold); }
.value-card p {
  font-size: 16px;
  color: var(--phc-text-dark);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ========================================
   FINAL CTA
   ======================================== */
.finalcta-section {
  background: var(--phc-white);
  border-top: 1px solid var(--phc-light-gray);
}
.finalcta { text-align: center; }
.finalcta .wrap { padding: 94px 32px; }
.finalcta h2 { font-size: clamp(28px, 4vw + 8px, 46px); margin-bottom: 18px; color: var(--phc-green); }
.finalcta p { max-width: 560px; margin: 0 auto 32px; color: var(--phc-text-dark); }

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--phc-green);
  color: rgba(255,255,255,.85);
}
footer .wrap {
  padding: 54px 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
footer .logo img { height: 40px; width: auto; margin-bottom: 14px; }
footer a { color: rgba(255,255,255,.85); }
footer .col h4 {
  font-family: "Barlow Condensed";
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--phc-gold);
  margin-bottom: 14px;
}
footer .col p, footer .col a {
  font-size: 15px;
  display: block;
  margin-bottom: 8px;
  padding: 4px 0;
}
.footer-person {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-person strong {
  font-weight: 500;
  font-size: 15px;
}
.footer-person p, .footer-person a {
  font-size: 14px;
  margin-bottom: 0;
}
.footer-headshot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,.4);
  flex-shrink: 0;
}

/* ========================================
   HAMBURGER TOGGLE (hidden on desktop)
   ======================================== */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  z-index: 51;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--phc-green);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .support-cards { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* HAMBURGER MENU */
  .nav-toggle { display: flex; }
  .navlinks {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--phc-white);
    border-bottom: 1px solid var(--phc-light-gray);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    gap: 0;
  }
  .navlinks.open {
    max-height: 400px;
    padding: 16px 32px 24px;
  }
  .navlinks a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--phc-light-gray);
  }
  .navlinks a:last-child { border-bottom: 0; }
  .navlinks a.cta {
    margin-top: 8px;
    text-align: center;
    padding: 14px 24px;
    border-bottom: 0;
  }
  .nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* LAYOUT STACKING */
  .why .wrap { grid-template-columns: 1fr; }
  .agency-card { grid-template-columns: 1fr; }
  .contact .wrap { grid-template-columns: 1fr; }
  .support-cards { grid-template-columns: repeat(2, 1fr); }
  .photo-row-3 { grid-template-columns: 1fr; }

  /* SPACING */
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .wrap { padding-left: 24px; padding-right: 24px; }
  .hero .wrap { padding: 80px 24px; }
  .phead .wrap { padding: 56px 24px 48px; }
  .finalcta .wrap { padding: 64px 24px; }
  .team-section .wrap { padding: 64px 24px; }
  .why .wrap { padding: 64px 24px; }
  footer .wrap { padding: 40px 24px; }

  /* TYPOGRAPHY */
  body { font-size: 18px; }
  .hero p.lead { font-size: 19px; }
  .phead p { font-size: 18px; }
}

@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; }
  .brand-card-wide { flex-direction: column; }
  .brand-card-logo { width: 100%; border-right: none; border-bottom: 1px solid var(--phc-light-gray); padding: 24px; }
  .brand-card-info { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 24px 24px; }
  .brand-map iframe { height: 360px; }
  .support-cards { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  footer .wrap { flex-direction: column; gap: 32px; }
  .brand-legend { flex-wrap: wrap; justify-content: flex-start; }
  .logo-track { gap: 40px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero p.lead { font-size: 17px; }
  .phead p { font-size: 16px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 36px 0; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero .wrap { padding: 56px 16px; }
  .phead .wrap { padding: 44px 16px 36px; }
  .finalcta .wrap { padding: 48px 16px; }
  .team-section .wrap { padding: 48px 16px; }
  .why .wrap { padding: 48px 16px; }
  footer .wrap { padding: 32px 16px; }
  .brand-map iframe { height: 280px; }
  .photo-grid { grid-template-columns: 1fr; }
  .cred-row img { height: 48px; }
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.fade-up { transform: translateY(32px); }
.reveal.slide-left { transform: translateX(-40px); }
.reveal.slide-right { transform: translateX(40px); }
.reveal.scale-in { transform: scale(0.92); }
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}
