/* ==============================================================
   PBC GLOBAL STYLES
   phillipbroylesconsulting.com

   Design authority: landing page aesthetic
   Font strategy:
     DM Sans  — all UI, headlines, body copy
     Inter    — PBC logo wordmark only (weight 300)
   ============================================================== */

/* ── Google Fonts ─────────────────────────────────────────────
   DM Sans: 300–800 + italic 400 (full UI range)
   Inter:   300 only (logo mark)
────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Inter:wght@300&display=swap');


/* ── Design Tokens ────────────────────────────────────────────
   Single source of truth for all colors, type, and layout.
   Landing page palette is the standard.
────────────────────────────────────────────────────────────── */
:root {
  /* Colors — dark surfaces */
  --navy:         #0B0F1C;
  --navy-deep:    #070A14;
  --navy-card:    #131929;
  --navy-border:  #1D2640;

  /* Colors — light surfaces */
  --cream:        #F3F0E8;
  --cream-border: #E0D9CC;
  --white:        #FFFFFF;

  /* Accent */
  --blue:         #1A6BFF;
  --blue-hover:   #0052E0;
  --blue-faint:   #EEF3FF;

  /* Status */
  --green:        #16A34A;
  --green-faint:  #DCFCE7;
  --red:          #E5484D;

  /* Text */
  --text-dark:    #FFFFFF;
  --text-light:   #0B0F1C;
  --muted-dark:   #7E8BA3;
  --muted-light:  #5A6070;

  /* Typography */
  --font:         'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-logo:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --nav-h:        72px;
  --max:          1160px;
  --px:           1.5rem;

  /* Shape */
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.18);
}


/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.7;
}

img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}


/* ── Section Wrappers ──────────────────────────────────────── */
.dark  { background: var(--navy);  color: var(--text-dark); }
.light { background: var(--cream); color: var(--text-light); }

section { padding: 5.5rem 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
}


/* ── Typography ────────────────────────────────────────────── */
h1 {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-family: var(--font);
  font-size: clamp(2rem, 3.8vw, 3.125rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.022em;
}

h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}


/* ── PBC Logo SVG ──────────────────────────────────────────── */
/* Applied to the inline SVG in nav and footer.
   The SVG <text> element uses font-family="Inter, sans-serif"
   so Inter (loaded above at weight 300) renders the wordmark. */
.logo-svg {
  height: 32px;
  width: auto;
  display: block;
  color: currentColor;
}

.footer-logo-svg {
  height: 28px;
  width: auto;
  display: block;
  color: currentColor;
}


/* ── Nav Base (shared shell) ───────────────────────────────── */
/* Full nav implementation (links, hamburger, etc.)
   is page-specific. Only the shared shell is here.
   Note: display/alignment is NOT set here because pages use different
   inner containers (.nav-wrap vs .nav-inner). Each page sets display
   on its own inner wrapper. */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

/* Landing page uses .nav-wrap for layout */
#nav .nav-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

#nav.scrolled {
  background: rgba(11, 15, 28, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--navy-border);
}

/* Homepage uses nav--solid state when scrolled past hero */
#nav.nav--solid {
  background: var(--white);
  box-shadow: 0 1px 0 #E2E8F0, 0 4px 20px rgba(0,0,0,0.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  color: var(--white);
  transition: opacity 0.2s ease;
}

.nav-logo:hover { opacity: 0.85; }


/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease, opacity 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

/* Blue fill — primary CTA */
.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover  { background: var(--blue-hover); transform: translateY(-1px); }
.btn-blue:active { transform: none; }

/* Ghost on dark — secondary on dark backgrounds */
.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.5); }

/* Ghost on light — secondary on cream/white backgrounds */
.btn-outline-light {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--cream-border);
}
.btn-outline-light:hover { border-color: #cfc4b2; }

/* Navy fill — used on light sections */
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: #1A2035; transform: translateY(-1px); }


/* ── Availability Badge ────────────────────────────────────── */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-faint);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 100px;
  padding: 0.3125rem 0.75rem;
}

.avail-badge .dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}


/* ── Form Fields (base) ────────────────────────────────────── */
.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-light);
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text-light);
  transition: border-color 0.18s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-light);
  opacity: 0.6;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--blue);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

/* Custom select arrow */
.select-wrap { position: relative; }

.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted-light);
  pointer-events: none;
}

/* Form submit button */
.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease;
}

/* Form trust note */
.form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.form-trust span {
  font-size: 0.75rem;
  color: var(--muted-light);
  text-align: center;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}

.form-success h3 {
  color: var(--text-light);
  margin-bottom: 0.625rem;
  font-size: 1.125rem;
}

.form-success p {
  font-size: 0.9375rem;
  color: var(--muted-light);
}

.form-success .checkmark {
  width: 52px; height: 52px;
  background: var(--green-faint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.form-success .checkmark svg {
  width: 24px; height: 24px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ── Footer Base ───────────────────────────────────────────── */
#footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-border);
  padding: 3.5rem 0 2.5rem;
}

.footer-logo {
  display: block;
  margin-bottom: 0.875rem;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-dark);
  max-width: 260px;
  line-height: 1.65;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a,
.footer-contact a {
  font-size: 0.9375rem;
  color: var(--muted-dark);
  font-weight: 500;
  transition: color 0.18s;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.875rem;
  border-top: 1px solid var(--navy-border);
  margin-top: 1.875rem;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a:hover { color: rgba(255, 255, 255, 0.6); }


/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}


/* ── Utilities ─────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: rgba(26, 107, 255, 0.2);
  color: var(--blue);
}


/* ── Animations ────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes phraseSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes phraseSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
