/* =============================================
   PEREGRINE PROTECTION — Design System 2026
   Open / Editorial layout — no content cards
   ============================================= */

:root {
  --pp-teal:  #018190;
  --pp-green: #265e52;
  --pp-deep:  #133830;
  --pp-ink:   #0f282e;
  --pp-steel: #385058;
  --pp-mist:  #e9f1ef;
  --pp-bg:    #f0f4f5;
  --pp-rule:  rgba(190, 218, 214, 0.65);
  --pp-glow:  rgba(1, 129, 144, 0.38);
  --t: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   BASE
   ============================================= */

body {
  font-family: 'Source Sans 3', Arial, sans-serif;
  background: var(--pp-bg);
  background-image:
    radial-gradient(ellipse 1100px 600px at 0% 0%, rgba(1, 129, 144, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 800px 600px at 100% 100%, rgba(38, 94, 82, 0.04) 0%, transparent 60%);
  color: var(--pp-ink);
  min-height: 100vh;
}

h1, h2, h3, h4, h5,
.navbar-brand,
.topbar {
  font-family: 'Rajdhani', 'Source Sans 3', sans-serif;
  letter-spacing: 0.01em;
}

/* =============================================
   TOPBAR
   ============================================= */

.topbar-wrap {
  background: linear-gradient(90deg, #09202a 0%, #0e3a44 50%, #09202a 100%);
  color: #d0e8eb;
  border-bottom: 1px solid rgba(1, 129, 144, 0.22);
}

.topbar {
  font-size: 0.81rem;
  letter-spacing: 0.03em;
  color: #9fcdd0;
}

.topbar strong {
  color: #d0e8eb;
}

/* =============================================
   SITE HEADER / NAV
   ============================================= */

.site-header {
  background: rgba(240, 244, 245, 0.94);
  border-color: transparent !important;
  box-shadow: 0 1px 0 var(--pp-rule), 0 4px 20px rgba(12, 38, 46, 0.05);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow var(--t);
}

.site-header.scrolled {
  box-shadow: 0 1px 0 rgba(1, 129, 144, 0.16), 0 8px 32px rgba(12, 38, 46, 0.1);
}

.site-brand {
  color: var(--pp-ink);
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
  color: var(--pp-teal);
}

.site-logo {
  height: 44px;
  width: auto;
  display: block;
}

.navbar-nav .nav-link {
  color: var(--pp-deep);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.55rem 0.72rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--t);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.72rem;
  right: 0.72rem;
  height: 2px;
  background: var(--pp-teal);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--t);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--pp-teal);
}

.nav-cta {
  background: var(--pp-teal) !important;
  color: #fff !important;
  border-radius: 2rem !important;
  padding: 0.38rem 1.1rem !important;
  font-size: 0.9rem !important;
  margin-left: 0.4rem;
  box-shadow: 0 4px 14px var(--pp-glow);
  transition: background var(--t), box-shadow var(--t), transform var(--t) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover,
.nav-cta:focus {
  background: #0a6b76 !important;
  box-shadow: 0 6px 22px var(--pp-glow) !important;
  transform: translateY(-1px);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  border-radius: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--t);
}

.btn-primary {
  --bs-btn-bg: var(--pp-teal);
  --bs-btn-border-color: var(--pp-teal);
  --bs-btn-hover-bg: #0a6b76;
  --bs-btn-hover-border-color: #0a6b76;
  --bs-btn-active-bg: var(--pp-deep);
  --bs-btn-active-border-color: var(--pp-deep);
  box-shadow: 0 4px 16px rgba(1, 129, 144, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(1, 129, 144, 0.44);
  transform: translateY(-1px);
}

.btn-outline-primary {
  --bs-btn-color: var(--pp-teal);
  --bs-btn-border-color: var(--pp-teal);
  --bs-btn-hover-bg: var(--pp-teal);
  --bs-btn-hover-border-color: var(--pp-teal);
  --bs-btn-active-bg: var(--pp-deep);
  --bs-btn-active-border-color: var(--pp-deep);
}

.btn-outline-light:hover,
.btn-outline-primary:hover {
  transform: translateY(-1px);
}

main {
  min-height: 56vh;
}

/* =============================================
   HERO
   ============================================= */

/* Pull the hero section flush against the header by cancelling main's padding */
.hero-section {
  margin-top: -1.5rem; /* cancel main py-4 */
  margin-left: calc(-1 * var(--bs-gutter-x, 0px));
  margin-right: calc(-1 * var(--bs-gutter-x, 0px));
}

@media (min-width: 768px) {
  .hero-section {
    margin-top: -3rem; /* cancel main py-md-5 */
  }
}

.hero-shell {
  background: linear-gradient(135deg, #091e23 0%, #0c3540 40%, #124550 70%, #185558 100%);
  border-radius: 0;
  padding: 4.5rem 0 3.5rem;
  color: #ecf8f7;
  overflow: hidden;
  position: relative;
}

.hero-shell > .container {
  position: relative;
  z-index: 1;
}

.hero-watermark {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  height: 80%;
  max-height: 340px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  object-fit: contain;
  /* filter: brightness(10); */
}

.hero-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 640px 480px at 85% -15%, rgba(1, 210, 230, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 400px 350px at -5% 115%, rgba(38, 94, 82, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-shell::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  top: -200px;
  right: -140px;
  background: radial-gradient(circle, rgba(1, 200, 225, 0.09) 0%, transparent 65%);
  animation: hero-orb 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hero-orb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-28px, 28px) scale(1.12); }
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  color: #72cdd2;
  background: rgba(1, 129, 144, 0.18);
  border: 1px solid rgba(1, 129, 144, 0.32);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  margin-bottom: 0.7rem;
}

.hero-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ee0e6;
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  line-height: 1.0;
  margin: 0 0 1rem;
  background: linear-gradient(140deg, #ffffff 0%, #b5e6ea 55%, #72cdd2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.hero-lead {
  color: #c4e2e5;
  font-size: 1.07rem;
  max-width: 55ch;
  margin-bottom: 1.5rem;
  line-height: 1.68;
}

.hero-stats {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.73rem;
  color: #80c8cc;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.hero-quick {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  padding: 1.3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-quick h2 {
  font-size: 1rem;
  color: #eaffff;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.hero-quick p {
  margin-bottom: 0.5rem;
  color: #b2d9dc;
  font-size: 0.92rem;
}

.hero-media {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(4, 16, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.11);
  position: relative;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9, 30, 35, 0.42) 100%);
  pointer-events: none;
}

/* =============================================
   PAGE HERO (inner pages) — full-width, flush with header
   ============================================= */

.page-hero-section {
  margin-top: -1.5rem; /* cancel main py-4 */
}

@media (min-width: 768px) {
  .page-hero-section {
    margin-top: -3rem; /* cancel main py-md-5 */
  }
}

.page-hero {
  background: linear-gradient(135deg, #091e23 0%, #0d3840 45%, #134a52 100%);
  border-radius: 0;
  padding: 3.5rem 0 2.5rem;
  color: #e8f6f5;
  position: relative;
  overflow: hidden;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 520px 320px at 90% 50%, rgba(1, 200, 225, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #72cdd2;
  background: rgba(1, 129, 144, 0.18);
  border: 1px solid rgba(1, 129, 144, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.78rem;
  margin-bottom: 0.7rem;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  margin-bottom: 0.55rem;
  position: relative;
}

.page-hero-desc {
  color: #bad8dc;
  max-width: 62ch;
  font-size: 1.03rem;
  line-height: 1.62;
  margin-bottom: 0;
  position: relative;
}

.page-hero .breadcrumb {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 0;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: #7abcc0;
  text-decoration: none;
  font-size: 0.86rem;
}

.page-hero .breadcrumb-item.active {
  color: #d4eef0;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: #4e9296;
}

/* =============================================
   OPEN SECTION BLOCKS
   — no background, no border, no shadow
   — hairline rule does the separation work
   ============================================= */

.section-block {
  margin-top: 2.5rem;
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--pp-rule);
}

.section-block h2 {
  color: var(--pp-deep);
  font-size: 1.65rem;
  margin-bottom: 1rem;
}

.section-intro {
  color: #3d5c62;
  max-width: 70ch;
  margin-bottom: 1.25rem;
  line-height: 1.68;
  font-size: 1.03rem;
}

/* =============================================
   FEATURE / STAT ITEMS
   — open rows separated by hairline rules
   — no background, no border-radius, no shadow
   ============================================= */

.stat-grid,
.sector-grid {
  display: grid;
  gap: 0;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sector-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.sector-card {
  border: none;
  border-top: 1px solid var(--pp-rule);
  border-radius: 0;
  background: none;
  padding: 1.5rem 1rem 1.5rem 0;
  transition: border-color var(--t);
  position: relative;
}

/* right-column items get left padding for the gutter */
.stat-grid .stat-card:nth-child(even),
.sector-grid .sector-card:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--pp-rule);
}

/* Teal top-accent slides in on hover */
.stat-card::before,
.sector-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--pp-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.stat-card:hover,
.sector-card:hover {
  border-color: rgba(1, 129, 144, 0.28);
}

.stat-card:hover::before,
.sector-card:hover::before {
  transform: scaleX(1);
}

/* Feature number — large, typographic, decorative */
.feature-icon {
  display: block;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--pp-teal);
  opacity: 0.45;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.stat-card h3,
.sector-card h3 {
  color: var(--pp-deep);
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.stat-card p,
.sector-card p {
  margin: 0;
  color: #486068;
  font-size: 0.93rem;
  line-height: 1.58;
}

/* =============================================
   TRUST BAND
   ============================================= */

.trust-band {
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--pp-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(19, 56, 48, 0.18);
}

.logo-placeholder {
  display: inline-block;
  border: 1px solid rgba(19, 56, 48, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.9rem;
  font-size: 0.84rem;
  color: var(--pp-steel);
}

/* Override inline trust band styles for the open design */
.trust-band > div:first-child > div:first-child {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pp-deep) !important;
  line-height: 1.2;
}

.trust-band > div:first-child > div:last-child {
  color: var(--pp-steel) !important;
}

.trust-band .d-flex > div > div:first-child {
  color: var(--pp-deep) !important;
}

.trust-band .d-flex > div > div:last-child {
  color: var(--pp-steel) !important;
}

.trust-band .trust-divider {
  background: rgba(19, 56, 48, 0.15) !important;
}

/* =============================================
   IMAGE / PLACEHOLDER GRIDS
   ============================================= */

.placeholder-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-placeholder {
  min-height: 190px;
  border-radius: 0.75rem;
  border: 1px dashed #9bc3bf;
  background: linear-gradient(145deg, #f3fbfb, #e5eeed);
  color: #406068;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  padding: 1rem;
}

.content-photo {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

/* =============================================
   SPLIT SECTIONS — open, no container
   ============================================= */

.split-section {
  margin-top: 0;
  padding: 2.5rem 0;
  border-top: 1px solid var(--pp-rule);
}

.split-media {
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 40, 48, 0.12);
}

/* =============================================
   BAND PRIMARY — solid dark section
   Negative margins so it sits full-width in container
   ============================================= */

.band-primary {
  margin-top: 2.5rem;
  margin-left: calc(-1 * var(--bs-gutter-x, 0.75rem));
  margin-right: calc(-1 * var(--bs-gutter-x, 0.75rem));
  padding: 2.75rem calc(2rem + var(--bs-gutter-x, 0.75rem));
  background: linear-gradient(135deg, #0a2830 0%, #0d4050 45%, #0f5060 100%);
  color: #e6f6f6;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.band-primary::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 400px;
  border-radius: 50%;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(1, 200, 225, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.band-primary h2,
.band-primary h3 {
  color: #fff;
  position: relative;
}

.band-primary .section-intro {
  color: rgba(230, 246, 246, 0.8);
  position: relative;
}

/* Open feature items on dark background */
.band-primary .stat-card,
.band-primary .sector-card {
  border-top-color: rgba(255, 255, 255, 0.1);
  background: none;
}

.band-primary .stat-card::before,
.band-primary .sector-card::before {
  background: #4de0e4;
}

.band-primary .stat-card:nth-child(even),
.band-primary .sector-card:nth-child(even) {
  border-left-color: rgba(255, 255, 255, 0.1);
}

.band-primary .stat-card:hover,
.band-primary .sector-card:hover {
  border-color: rgba(77, 224, 228, 0.25);
}

.band-primary .stat-card h3,
.band-primary .sector-card h3 {
  color: #a8e0e4;
}

.band-primary .stat-card p,
.band-primary .sector-card p {
  color: #c0e0e3;
}

.band-primary .feature-icon {
  color: #4de0e4;
  opacity: 0.5;
}

/* =============================================
   CONTACT
   ============================================= */

.contact-panel {
  border: none;
  border-top: 1px solid var(--pp-rule);
  border-radius: 0;
  background: none;
  padding: 2rem 0;
}

.contact-banner {
  margin-top: -0.5rem;
  padding: 0.4rem 0 0;
}

.contact-banner-inner {
  border-radius: 1.2rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #091e23 0%, #0c3540 40%, #134a52 70%, #185558 100%);
  color: #e8f6f5;
  position: relative;
  overflow: hidden;
}

.contact-banner-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 300px at 80% 50%, rgba(1, 200, 225, 0.11) 0%, transparent 70%);
  pointer-events: none;
}

.contact-banner-title {
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
  position: relative;
  font-size: 2.4rem;
}

.contact-banner .breadcrumb-item,
.contact-banner .breadcrumb-item a {
  color: #9bcdd0;
  text-decoration: none;
}

.contact-banner .breadcrumb-item.active {
  color: #fff;
}

.contact-banner .breadcrumb-item + .breadcrumb-item::before {
  color: #5e9ea3;
}

.contact-shell {
  margin-top: 2rem;
}

.contact-form-panel .form-control,
.contact-form-panel .form-select {
  border: 1px solid #b8d6d3;
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  transition: border-color var(--t), box-shadow var(--t);
}

.contact-form-panel .form-control:focus,
.contact-form-panel .form-select:focus {
  border-color: var(--pp-teal);
  box-shadow: 0 0 0 3px rgba(1, 129, 144, 0.1);
}

.contact-details-panel {
  background: none;
}

.contact-map-wrap {
  border: 1px solid #bbd8d5;
  border-radius: 0.75rem;
  overflow: hidden;
}

.contact-map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 210px;
  border: 0;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: linear-gradient(180deg, #0d2a31 0%, #091e24 100%);
  color: #c4e2e5;
  border-top: 1px solid rgba(1, 129, 144, 0.16);
}

.site-footer a {
  color: #a4d5d8;
  text-decoration: none;
  transition: color var(--t);
}

.site-footer a:hover,
.site-footer a:focus {
  color: #fff;
  text-decoration: underline;
}

.footer-title {
  color: #fff;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.footer-links li + li {
  margin-top: 0.4rem;
}

.footer-bottom {
  background: rgba(5, 14, 17, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.55fr 1fr;
    align-items: end;
    gap: 2.5rem;
  }

  .hero-shell {
    padding: 6rem 0 5rem;
  }

  .sector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* In 3-col grids the 3rd item also needs a left border */
  .sector-grid .sector-card:nth-child(3n) {
    padding-left: 1.5rem;
    border-left: 1px solid var(--pp-rule);
  }

  .band-primary .sector-card:nth-child(3n) {
    border-left-color: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 575.98px) {
  .site-logo {
    height: 34px;
  }

  .navbar-brand {
    max-width: calc(100% - 3.5rem);
  }

  .hero-shell {
    padding: 2.5rem 0 2rem;
  }

  .stat-grid,
  .sector-grid {
    grid-template-columns: 1fr;
  }

  /* In single-column, no left border needed */
  .stat-grid .stat-card:nth-child(even),
  .sector-grid .sector-card:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }

  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 2rem 0;
  }

  .hero-stats {
    gap: 1rem;
  }

  .band-primary {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
