/* =====================================================================
   DH Talent Partners — GLOBAL STYLESHEET
   Shared across all pages (loaded via includes/header.php).
   Page-specific styles live inline in each page.
   ===================================================================== */

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

:root {
  --navy:        #0E1F35;
  --navy-mid:    #162840;
  --navy-light:  #1E3552;
  --gold:        #C9A84C;
  --gold-light:  #E3C37A;
  --gold-pale:   #F5EDD6;
  --gold-dark:   #8A6E22;   /* accessible gold for text/links on light backgrounds (WCAG AA) */
  --charcoal:    #2C3E50;
  --white:       #FFFFFF;
  --off-white:   #F8F6F1;
  --text-muted:  #616E7C;   /* darkened for WCAG AA (4.5:1) on white/off-white */
  --border:      rgba(201,168,76,0.25);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --container:    1200px;
  --pad:          clamp(1.5rem, 5vw, 4rem);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--navy); background: var(--white); line-height: 1.6; }

/* === UTILITY === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.gold { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* === BUTTONS (shared across pages) === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* === SECTION HELPERS (shared across pages) === */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-eyebrow-line { width: 2rem; height: 1px; background: var(--gold); }
.section-eyebrow-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.section-h2 em { font-style: italic; color: var(--gold); }
.section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.check-list { list-style: none; margin-bottom: 2rem; }
.check-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gold-pale);
  font-size: 0.92rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.check-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-pale);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 9l3.5 3.5L14 6' stroke='%23C9A84C' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* === TOP BAR === */
.topbar {
  background: var(--navy);
  padding: 0.5rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}
.topbar a { color: var(--gold-light); text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar-links { display: flex; gap: 1.5rem; align-items: center; }
.topbar-contact { display: flex; gap: 1.5rem; }

/* === HEADER === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(14,31,53,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  position: relative;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.logo-img {
  display: block;
  height: 70px;
  width: auto;
}
@media (max-width: 768px) {
  .logo-img { height: 55px; }
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.logo-name span { color: var(--gold); }
.logo-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.main-nav { display: flex; gap: 0.25rem; align-items: center; }
.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--navy); background: var(--gold-pale); }
.main-nav a.is-active { color: var(--navy); background: var(--gold-pale); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 0.55rem 1.1rem !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* === MOBILE NAV TOGGLE (hidden on desktop) === */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.footer-logo-name span { color: var(--gold); }
.footer-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-about { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-address p { font-size: 0.88rem; line-height: 1.8; }
.footer-address a { color: var(--gold-light); text-decoration: none; }
.footer-address a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.footer-credit { color: rgba(255,255,255,0.55); }
.footer-heart { color: #FF5C8A; font-size: 0.95em; }
.footer-credit a { color: var(--gold-light); text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: var(--white); }

/* === RESPONSIVE (shared: header + footer) === */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .topbar-contact { display: none; }

  /* Hamburger replaces the horizontal nav */
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(14,31,53,0.12);
    padding: 0.5rem var(--pad) 1.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
  }
  .main-nav.is-open {
    max-height: 85vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }
  .main-nav a {
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid var(--gold-pale);
    border-radius: 0;
  }
  .main-nav a:last-child { border-bottom: none; }
  .nav-cta {
    margin-top: 0.85rem;
    text-align: center;
    padding: 0.9rem 1.1rem !important;
  }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 480px) {
  .topbar { justify-content: center; text-align: center; }
  .topbar-links { gap: 1rem; font-size: 0.72rem; }
  .logo-name { font-size: 1.45rem; }
  .footer-bottom { font-size: 0.72rem; }
  .footer-address p { font-size: 0.85rem; }
}


/* === COOKIE CONSENT BANNER (Pulse) === */
.cc{position:fixed;z-index:1500;background:var(--navy);color:#fff;box-shadow:0 -4px 24px rgba(14,31,53,.18);font-size:.9rem}
.cc--light{background:var(--off-white);color:var(--navy);border:1px solid var(--border)}
.cc--bottom-bar{left:0;right:0;bottom:0}
.cc--top-bar{left:0;right:0;top:0;box-shadow:0 4px 24px rgba(14,31,53,.18)}
.cc--bottom-left,.cc--bottom-right{bottom:20px;width:min(400px,calc(100vw - 32px));border-radius:8px}
.cc--bottom-left{left:20px}
.cc--bottom-right{right:20px}
.cc__main{max-width:var(--container);margin:0 auto;padding:1rem var(--pad);display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap}
.cc--bottom-left .cc__main,.cc--bottom-right .cc__main{flex-direction:column;align-items:stretch;padding:1.25rem}
.cc__text{flex:1;min-width:220px}
.cc__heading{display:block;font-weight:600;margin-bottom:.25rem;font-size:.98rem}
.cc__text p{margin:0;color:inherit;opacity:.9;line-height:1.5}
.cc__text a{color:inherit;text-decoration:underline}
.cc__actions{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.cc__btn{font:inherit;font-size:.8rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:.65rem 1.15rem;border-radius:3px;cursor:pointer;border:1px solid transparent;transition:all .2s}
.cc__btn--accept{background:var(--gold);color:var(--navy);border-color:var(--gold)}
.cc__btn--accept:hover{background:var(--gold-light);border-color:var(--gold-light)}
.cc__btn--ghost{background:transparent;color:currentColor;border-color:currentColor;opacity:.85}
.cc__btn--ghost:hover{opacity:1}
.cc__panel{max-width:var(--container);margin:0 auto;padding:0 var(--pad) 1.25rem}
.cc--bottom-left .cc__panel,.cc--bottom-right .cc__panel{padding:0 1.25rem 1.25rem}
.cc__cat{padding:.6rem 0;border-top:1px solid rgba(255,255,255,.15)}
.cc--light .cc__cat{border-top-color:var(--border)}
.cc__cat-row{display:flex;align-items:center;gap:.6rem;font-weight:600}
.cc__cat-tag{font-weight:400;opacity:.7;font-size:.8rem}
.cc__cat-desc{margin:.25rem 0 0 1.75rem;opacity:.8;font-size:.82rem}
.cc__panel-actions{padding-top:.75rem}
@media (max-width:620px){
  .cc__main{flex-direction:column;align-items:stretch}
  .cc__actions{flex-direction:column}
  .cc__btn{width:100%}
}
