/* SouthBridge & H — Senior Executive Search · styles.css */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid #e5e7eb;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f3ee;
  line-height: 1.5;
  margin: 0;
}

img, video, canvas, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
button, input, select, textarea {
  font-family: inherit; font-size: 100%; font-weight: inherit;
  color: inherit; margin: 0; padding: 0; background: none;
}
button { cursor: pointer; }
ol, ul { list-style: none; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }

/* ─── NOISE OVERLAY ─── */
.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* ─── SCROLL STAGE ─── */
.scroll-stage {
  position: relative;
}

.sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #080808;
}

#seq-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Color overlays to match original cream/warm toning */
.overlay-warm-screen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-color: rgba(240, 232, 205, 0.55);
  mix-blend-mode: screen;
}
.overlay-soft-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-color: rgba(218, 228, 190, 0.28);
  mix-blend-mode: soft-light;
}
.overlay-radial {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 252, 235, 0.18) 0%, transparent 65%);
}
.overlay-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: radial-gradient(circle, rgba(50, 65, 30, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ─── HEADER / NAV ─── */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem 0;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  pointer-events: auto;
}

/* ─── SITE LOGO (CSS typography, no images) ────────────────── */
:root {
  --logo-green: #5a6b42;
  --logo-gold:  #b28904;
  --logo-size:  1.5rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: var(--logo-size);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  user-select: none;
}

.site-logo__south,
.site-logo__h {
  color: var(--logo-green);
  letter-spacing: 0.02em;
}

.site-logo__bridge {
  color: var(--logo-green);
  letter-spacing: 0.02em;
  opacity: 0.65;
}

.site-logo__diamond {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--logo-gold);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.35rem;
  flex-shrink: 0;
}

.site-logo__amp {
  display: block;
  transform: rotate(-45deg);
  font-family: "IM Fell English", "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}

.header-rule {
  display: none;
  height: 1.75rem;
  width: 1px;
  background-color: rgba(40, 52, 22, 0.18);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-btn {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  background: none;
  border: none;
  color: rgba(40, 52, 22, 0.6);
  transition: color 0.2s;
  cursor: pointer;
}

.nav-btn:hover { color: rgba(40, 52, 22, 0.9); }

@media (min-width: 768px) {
  .header-rule { display: block; }
  .site-nav { display: flex; }
  .header-inner { gap: 3rem; }
}

/* ─── PROGRESS BAR ─── */
.progress-bar-track {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  height: 1px;
  background-color: rgba(245, 243, 238, 0.06);
}

.progress-bar-fill {
  height: 100%;
  background-color: #5d7555;
  width: 0%;
  transition: none;
}

/* ─── SCROLL HINT ─── */
.scroll-hint {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  transition: opacity 0.5s;
}

.scroll-hint-label {
  font-size: 7px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(40, 52, 22, 0.4);
}

.scroll-hint-line {
  width: 1px;
  height: 1.5rem;
  background: linear-gradient(to bottom, rgba(40, 52, 22, 0.28), transparent);
}

/* ─── LOADING STATE ─── */
.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

.loading-overlay.hidden { opacity: 0; pointer-events: none; }

.loading-text {
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(245, 243, 238, 0.3);
}

/* ─── SECTION TEXT OVERLAY ─── */
.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  pointer-events: none;
  padding: 2rem 2rem 0;
  /* framer-motion animates opacity/transform per section via JS */
}

.section-overlay.align-left  { justify-content: flex-start; }
.section-overlay.align-right { justify-content: flex-end; }

.section-content {
  max-width: 500px;
  pointer-events: auto;
}

.section-tag {
  font-size: 9px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.25rem;
  /* color set inline per theme */
}

.section-tag-rule {
  height: 1px;
  margin-bottom: 1.25rem;
  /* background set inline */
}

.section-headline {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.section-headline .line-normal  { display: block; font-style: normal; }
.section-headline .line-italic  { display: block; font-style: normal; font-weight: 300; }
.section-headline .line-bold    { display: block; font-weight: 800; }
.section-headline .highlight    {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
}

.section-body {
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  /* color set inline */
}

.section-body p { margin-bottom: 0; }
.section-body p + p { margin-top: 0.75rem; }

.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.section-cta:hover {
  border-color: rgba(245, 243, 238, 0.4) !important;
}

.section-cta .arrow {
  transition: transform 0.2s;
}

.section-cta:hover .arrow { transform: translateX(4px); }

/* ─── FOOTER ─── */
.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #2a3d1a;
}

.site-footer .site-logo {
  --logo-green: rgba(255, 255, 255, 0.85);
  --logo-gold: #c49a10;
}

.footer-brand .footer-name {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-bottom: 0.125rem;
}

.footer-brand .footer-powered {
  font-size: 8px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 0.8; }

.footer-copy {
  font-size: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 640px) {
  .site-footer {
    flex-direction: row;
    padding: 1.5rem 3rem;
  }
}

/* ─── CONTACT MODAL ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #0a0c0a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  width: 100%;
  max-width: 500px;
  padding: 2rem 2rem 2.5rem;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-backdrop.open .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.modal-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  color: rgba(245, 243, 238, 0.97);
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(245, 243, 238, 0.45);
  margin-top: 0.5rem;
  max-width: 32rem;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(245, 243, 238, 0.55);
  padding: 0.25rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.modal-close:hover { color: rgba(245, 243, 238, 0.9); }

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: rgba(232, 213, 196, 0.35);
}

.form-optional {
  font-size: 8px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: rgba(232, 213, 196, 0.22);
  margin-left: 0.45rem;
}

.form-input {
  width: 100%;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 0;
  font-size: 14px;
  color: rgba(245, 243, 238, 0.88);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-bottom-color: #5d7555;
}

.form-input::placeholder {
  color: rgba(232, 213, 196, 0.3);
}

textarea.form-input {
  resize: none;
  min-height: 80px;
}

.form-footer {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-disclaimer {
  font-size: 10px;
  color: rgba(245, 243, 238, 0.3);
  letter-spacing: 0.01em;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #5d7555;
  color: rgba(245, 243, 238, 0.97);
  border: none;
  padding: 1rem 2rem;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.form-submit:hover:not(:disabled) { background: rgba(93, 117, 85, 0.85); }
.form-submit:disabled { opacity: 0.5; cursor: default; }

.form-success {
  text-align: center;
  padding: 2rem 0;
}

.form-success .success-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: rgba(245, 243, 238, 0.97);
  margin-bottom: 0.75rem;
}

.form-success .success-body {
  font-size: 14px;
  color: rgba(245, 243, 238, 0.55);
  line-height: 1.65;
}

.form-error {
  font-size: 12px;
  color: #e57373;
  margin-top: -0.5rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section-overlay { transition: none !important; }
  #seq-canvas { display: none; }
  .seq-poster { display: block !important; }
}

.seq-poster {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── MOBILE OVERRIDES ─── */
@media (max-width: 768px) {
  :root {
    --logo-size: 1.2rem;
  }

  .site-logo__diamond {
    width: 1.2rem;
    height: 1.2rem;
  }

  .site-logo__amp {
    font-size: 0.85rem;
  }

  /* Section text anchored to bottom with cream gradient backdrop for legibility */
  .section-overlay {
    align-items: flex-end;
    justify-content: flex-start !important;
    padding: 0 1.25rem 5.5rem;
  }

  .section-overlay::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(
      to top,
      rgba(245, 243, 238, 0.96) 0%,
      rgba(245, 243, 238, 0.88) 25%,
      rgba(245, 243, 238, 0.55) 60%,
      rgba(245, 243, 238, 0) 100%
    );
    z-index: -1;
    pointer-events: none;
  }

  .section-content {
    max-width: 100%;
    text-align: left;
    position: relative;
    z-index: 1;
  }

  /* Reduce typography for mobile */
  .section-headline {
    font-size: clamp(28px, 8.5vw, 42px);
    margin-bottom: 1rem;
  }

  .section-body {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }

  .section-tag {
    font-size: 8px;
    margin-bottom: 0.875rem;
  }

  .section-tag-rule {
    margin-bottom: 0.875rem;
  }

  .section-cta {
    padding: 0.625rem 1.25rem;
    font-size: 11px;
  }

  /* Move scroll hint and progress out of content's way */
  .scroll-hint {
    bottom: 0.75rem;
  }

  .scroll-hint-line {
    height: 1rem;
  }

  /* Header padding tighter on mobile */
  .site-header {
    padding: 1rem 1.25rem 0;
  }
}
