@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Poppins:wght@600;700&display=swap');

/* =========================
   Design Tokens
   ========================= */
:root {
  --color-primary:    #1E2D49;
  --color-primary-dk: #162238;
  --color-accent:     #FF9900;
  --color-background: #F9FAFB;
  --color-text:       #2E2E2E;
  --color-card:       #E6ECF2;
  --color-muted:      #5a6478;
  --color-border:     rgba(30,45,73,0.10);

  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 12px rgba(30,45,73,0.06);
  --shadow-md:  0 6px 24px rgba(30,45,73,0.10);
  --shadow-lg:  0 16px 48px rgba(30,45,73,0.14);
}

/* =========================
   Base
   ========================= */
body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-primary);
}

nav {
  background-color: var(--color-primary);
  color: #fff;
}

/* =========================
   Buttons
   ========================= */
button, .btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-accent);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #fff;
}

/* =========================
   Cards (global)
   ========================= */
.card {
  background-color: var(--color-card);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
}

/* =========================
   Navbar layout
   ========================= */
.custom-navbar-container {
  max-width: 100vw;
  width: 100%;
}

.top-full {
  width: 100vw;
  min-height: 0px;
  padding: 0;
  margin: 0;
}

.navbar-full {
  width: 100vw;
  min-height: 50px;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  border-radius: 0;
}

/* =========================
   Carousel arrows
   ========================= */
.custom-arrow {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.custom-arrow i { color: #fff; }

.carousel-control-prev { left: 16px; }
.carousel-control-next { right: 16px; }

@media (max-width: 576px) {
  .custom-arrow           { width: 36px; height: 36px; }
  .carousel-control-prev  { left: 8px; }
  .carousel-control-next  { right: 8px; }
}

/* =========================
   Town buttons
   ========================= */
.cpda-town-btn {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ed4c1c;
  border: 2px solid #ed4c1c;
  background: #fff;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(232,76,28,0.07);
  padding: 0.75rem 1.2rem;
}
.cpda-town-btn:hover,
.cpda-town-btn:focus {
  background: #ed4c1c;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(232,76,28,0.15);
}

/* =========================
   Navbar dropdown
   ========================= */
.navbar .dropdown-menu {
  border: 1px solid rgba(30,45,73,0.12);
  border-radius: 14px;
  padding: 0.5rem;
  min-width: 240px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: all 0.18s ease;
}

.navbar .dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.navbar .dropdown-item {
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-primary);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: rgba(255,153,0,0.12);
  color: var(--color-primary);
}

.navbar .dropdown-toggle::after {
  margin-left: 0.4rem;
  transform: translateY(1px);
  border-top-color: rgba(30,45,73,0.7);
}

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}

/* =========================
   About Us page
   ========================= */

/* Section rhythm */
.cpda-section {
  padding: 5rem 0;
  background: var(--color-background);
}

.cpda-section.alt {
  background: #eef1f7;
}

/* Section titles */
.cpda-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cpda-subtitle {
  max-width: 860px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.75;
}

/* Quote / gradient banner — override Bootstrap blue with brand navy */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dk) 100%) !important;
}

.bg-gradient-primary p {
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.92);
}

/* ── Timeline ── */
.cpda-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 2.5rem;
  border-left: 2px solid var(--color-border);
  margin-top: 2rem;
}

.cpda-timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}

.cpda-timeline__item:last-child {
  padding-bottom: 0;
}

.cpda-timeline__marker {
  position: absolute;
  left: -3.25rem;
  top: 0.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 3px solid #eef1f7;
  box-shadow: var(--shadow-sm);
}

/* Timeline markers on white-background sections need white border */
.cpda-section:not(.alt) .cpda-timeline__marker {
  border-color: var(--color-background);
}

.cpda-timeline__body h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.45rem;
}

.cpda-timeline__body p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.72;
  margin: 0;
}

/* ── Why CPDA Matters — icon pill cards ── */
.cpda-why-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}

.cpda-why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cpda-why-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.cpda-why-card:hover .cpda-why-card__icon {
  background: var(--color-accent);
}

.cpda-why-card__label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.4;
}

/* ── Sticky jump bar ── */
.cpda-jumpbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.cpda-jumpbar .btn {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-weight: 600;
}

/* =========================
   Footer
   ========================= */
.cpda-footer {
  position: relative;
  z-index: 2;
  background: #111827;
  color: #e5e7eb;
  font-family: var(--font-body);
  padding: 3rem 0 0;
}

.cpda-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top row */
.cpda-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding-bottom: 2.5rem;
  align-items: flex-start;
}

/* Brand column */
.cpda-footer__brand {
  flex: 1 1 260px;
  max-width: 320px;
}

.cpda-footer__brand-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cpda-footer__brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.cpda-footer__brand-tagline {
  font-size: 0.8rem;
  font-style: italic;
  color: #9ca3af;
  letter-spacing: 0.03em;
}

.cpda-footer__blurb {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #9ca3af;
  margin-bottom: 1.75rem;
}

/* Logos — uniform row */
.cpda-footer__logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
}

.cpda-footer__logo-wrap {
  width: 70px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 6px;
  transition: background 0.2s;
  overflow: hidden;
}

.cpda-footer__logo-wrap:hover {
  background: rgba(255,255,255,0.15);
}

.cpda-footer__logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Nav links — no box, no background, no border */
.cpda-footer__nav {
  flex: 1 1 400px;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.cpda-footer__col {
  min-width: 120px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.cpda-footer__heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
  margin: 0 0 1rem;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.cpda-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cpda-footer__list li {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cpda-footer__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: #d1d5db !important;
  text-decoration: none !important;
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.cpda-footer__link:hover,
.cpda-footer__link:focus {
  color: #ffffff !important;
  transform: translateX(3px);
  text-decoration: none !important;
}

/* Divider */
.cpda-footer__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 0;
}

/* Bottom row */
.cpda-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 0 1.5rem;
}

.cpda-footer__copyright {
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.cpda-footer__muted { color: #4b5563; }

.cpda-footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cpda-footer__backtotop {
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}

.cpda-footer__backtotop:hover { color: #d1d5db; }

.cpda-footer__admin {
  font-size: 0.75rem;
  color: #4b5563;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 4px;
  padding: 2px 8px;
  transition: color 0.15s, border-color 0.15s;
}

.cpda-footer__admin:hover {
  color: #9ca3af;
  border-color: rgba(255,255,255,0.25);
}

/* Footer responsive */
@media (max-width: 640px) {
  .cpda-footer__top    { flex-direction: column; gap: 2rem; }
  .cpda-footer__brand  { max-width: 100%; }
  .cpda-footer__nav    { gap: 1.5rem; }
  .cpda-footer__bottom { flex-direction: column; align-items: flex-start; }
}