/* ═══════════════════════════════════════════════════════════════
   PragmaSafe — Brand CSS
   Built from PragmaSafe_Style_Spec_v2.1 & Website Brief
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --midnight:     #2F3B52;
  --plum:         #5B3A6E;
  --gold:         #C7AA7D;
  --rose:         #C4879A;
  --ivory:        #FAF6F3;
  --white:        #FFFFFF;
  --rose-10:      rgba(196, 135, 154, 0.10);
  --midnight-20:  rgba(47, 59, 82, 0.20);

  --font-h1:      'Poppins', sans-serif;
  --font-h2:      'Raleway', sans-serif;
  --font-body:    'Lato', sans-serif;
  --font-quote:   'Playfair Display', serif;

  --max-text:     720px;
  --max-layout:   1200px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--midnight);
  background: var(--ivory);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  body { line-height: 1.6; }
}

/* ── Typography ────────────────────────────────────────────── */
h1, .h1 {
  font-family: var(--font-h1);
  font-weight: 700;
  color: var(--midnight);
}
h1.hero-title { font-size: 3rem; }
h1.section-title { font-size: 2.25rem; }

h2, .h2 {
  font-family: var(--font-h2);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--plum);
}

h3, .h3 {
  font-family: var(--font-h2);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--midnight);
}

p, li, td, label { font-family: var(--font-body); }

.pull-quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--plum);
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 48px 0;
}

.gold-divider {
  width: 80px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 16px 0 24px 0;
}
.gold-divider-thin {
  width: 60px;
  height: 0.5px;
  background: var(--gold);
  border: none;
  margin: 12px 0 20px 0;
}

.text-column {
  max-width: var(--max-text);
}

/* ── Colour utility classes ────────────────────────────────── */
.text-midnight  { color: var(--midnight) !important; }
.text-plum      { color: var(--plum) !important; }
.text-gold      { color: var(--gold) !important; }
.text-ivory     { color: var(--ivory) !important; }
.text-white     { color: var(--white) !important; }

.bg-midnight    { background-color: var(--midnight) !important; }
.bg-plum        { background-color: var(--plum) !important; }
.bg-ivory       { background-color: var(--ivory) !important; }
.bg-white       { background-color: var(--white) !important; }
.bg-rose-tint   { background-color: var(--rose-10) !important; }

/* ── Sections ──────────────────────────────────────────────── */
.ps-section {
  padding: 96px 0;
}
@media (max-width: 768px) {
  .ps-section { padding: 48px 0; }
  h1.hero-title { font-size: 2rem; }
  h1.section-title { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
}

/* ── Navbar ────────────────────────────────────────────────── */
.ps-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--midnight-20);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.ps-navbar .navbar-brand img {
  height: 48px;
}
.ps-navbar .nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--midnight);
  padding: 8px 14px !important;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.ps-navbar .nav-link:hover,
.ps-navbar .nav-link.active {
  color: var(--plum);
}
.ps-navbar .nav-link.active {
  font-weight: 600;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary-ps {
  background: var(--midnight);
  color: var(--white);
  font-family: var(--font-h2);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-primary-ps:hover {
  background: var(--plum);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(47, 59, 82, 0.25);
}

.btn-secondary-ps {
  background: var(--plum);
  color: var(--white);
  font-family: var(--font-h2);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary-ps:hover {
  background: var(--midnight);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91, 58, 110, 0.25);
}

.btn-outline-ps {
  background: transparent;
  color: var(--white);
  font-family: var(--font-h2);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 32px;
  border: 2px solid var(--white);
  border-radius: 4px;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-ps:hover {
  background: var(--white);
  color: var(--plum);
}

/* ── Hero sections ─────────────────────────────────────────── */
.ps-hero {
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}
.ps-hero.bg-plum h1,
.ps-hero.bg-midnight h1 {
  color: var(--white);
}
.ps-hero .hero-sub {
  font-size: 1.2rem;
  max-width: 600px;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .ps-hero { padding: 72px 0 60px; }
}

/* ── Cards ─────────────────────────────────────────────────── */
.ps-card {
  background: var(--white);
  border: 1px solid var(--midnight-20);
  border-radius: 8px;
  padding: 40px 32px;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ps-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(47, 59, 82, 0.12);
}
.ps-card h3 {
  margin-bottom: 16px;
}
.ps-card .card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-10);
  border-radius: 8px;
  margin-bottom: 24px;
  color: var(--plum);
  font-size: 1.4rem;
}

/* Dark cards (on plum/midnight bg) */
.ps-card-dark {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 40px 32px;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ps-card-dark:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.12);
}
.ps-card-dark h3 {
  color: var(--white);
  margin-bottom: 16px;
}
.ps-card-dark p {
  color: rgba(255,255,255,0.85);
}
.ps-card-dark .card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(199, 170, 125, 0.2);
  border-radius: 8px;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 1.4rem;
}

/* ── Credibility badges ────────────────────────────────────── */
.badge-ps {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--midnight-20);
  border-radius: 32px;
  padding: 10px 24px;
  font-family: var(--font-h2);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--midnight);
  margin: 6px 4px;
  transition: all 0.2s;
}
.badge-ps:hover {
  border-color: var(--gold);
  color: var(--plum);
}

/* ── Numbered statements ───────────────────────────────────── */
.numbered-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.numbered-item .num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h1);
  font-weight: 700;
  font-size: 1.2rem;
}
.numbered-item p {
  margin-bottom: 0;
  flex: 1;
}

/* ── Forms ──────────────────────────────────────────────────── */
.ps-form .form-control {
  height: 48px;
  border: 1px solid var(--midnight-20);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--midnight);
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ps-form .form-control:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 2px rgba(91, 58, 110, 0.2);
}
.ps-form textarea.form-control {
  min-height: 120px;
  height: auto;
}
.ps-form .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--midnight);
}
.ps-form .mb-field {
  margin-bottom: 24px;
}

/* ── Footer ────────────────────────────────────────────────── */
.ps-footer {
  background: var(--plum);
  color: var(--white);
  padding: 72px 0 0;
  font-size: 0.875rem;
}
.ps-footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.ps-footer a:hover {
  color: var(--gold);
}
.ps-footer h5 {
  font-family: var(--font-h2);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.ps-footer .footer-logo img {
  height: 56px;
  margin-bottom: 16px;
}
.ps-footer .footer-tagline {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.ps-footer .footer-mission {
  color: var(--gold);
  font-family: var(--font-h2);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.ps-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 48px;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.ps-footer .newsletter-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 4px 0 0 4px;
  padding: 10px 14px;
  font-size: 0.875rem;
  height: 42px;
}
.ps-footer .newsletter-input::placeholder {
  color: rgba(255,255,255,0.4);
}
.ps-footer .newsletter-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.15);
}
.ps-footer .newsletter-btn {
  background: var(--gold);
  color: var(--midnight);
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 10px 18px;
  font-family: var(--font-h2);
  font-weight: 600;
  font-size: 0.8rem;
  height: 42px;
  transition: background 0.2s;
}
.ps-footer .newsletter-btn:hover {
  background: var(--white);
}

/* ── Expertise grid ────────────────────────────────────────── */
.expertise-category {
  margin-bottom: 48px;
}
.expertise-category h3 {
  color: var(--plum);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.expertise-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--midnight-20);
}
.expertise-item:last-child {
  border-bottom: none;
}
.expertise-item strong {
  color: var(--midnight);
  font-family: var(--font-h2);
  font-weight: 600;
}

/* ── Insight cards ─────────────────────────────────────────── */
.insight-card {
  background: var(--white);
  border: 1px solid var(--midnight-20);
  border-radius: 8px;
  padding: 32px;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(47, 59, 82, 0.1);
}
.insight-card .insight-date {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.insight-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.insight-card .insight-tags span {
  display: inline-block;
  background: var(--rose-10);
  color: var(--plum);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  margin-right: 6px;
  margin-top: 12px;
}

/* ── Service detail ────────────────────────────────────────── */
.service-detail-block {
  margin-bottom: 40px;
}
.service-detail-block h3 {
  color: var(--plum);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* ── Animations ────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Flash messages ────────────────────────────────────────── */
.ps-flash {
  background: rgba(91, 58, 110, 0.08);
  border: 1px solid var(--plum);
  border-radius: 8px;
  padding: 16px 24px;
  color: var(--plum);
  font-weight: 600;
  margin-bottom: 32px;
}

/* ── Decorative SVG elements ───────────────────────────────── */
.hero-decoration {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
}
@media (max-width: 992px) {
  .hero-decoration { display: none; }
}

/* ── "Coming soon" badge ───────────────────────────────────── */
.coming-soon-badge {
  display: inline-block;
  background: var(--rose-10);
  color: var(--plum);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
