/* ═══════════════════════════════════════════════════════════
   CLARITY SYSTEMS BRAND — shared stylesheet v2
   Includes: social icons, nav LinkedIn, footer socials
═══════════════════════════════════════════════════════════ */

:root {
  --navy:    #0B1928;
  --navy-2:  #0E2035;
  --navy-3:  #142842;
  --gold:    #C9A84C;
  --gold-2:  #E8C97A;
  --gold-3:  rgba(201,168,76,0.10);
  --gold-bd: rgba(201,168,76,0.22);
  --cream:   #FAFAF7;
  --warm:    #F2EFE8;
  --warm-2:  #E8E4DB;
  --white:   #FFFFFF;
  --dark:    #1A1A2E;
  --mid:     #4A5568;
  --lite:    #5C6673;
  --teal:    #3D7A7A;
  --danger:  #C0392B;
  --gold-ink: #8A6D24;
  --border:  rgba(0,0,0,0.07);
  --rad:     12px;
  --rad-sm:  6px;
  --rad-lg:  20px;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
  --mono:    'DM Mono', 'Courier New', monospace;
  --max:     1300px;
  --li-blue: #0A66C2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 72px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,250,247,0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
nav.scrolled { border-bottom-color: var(--warm-2); box-shadow: 0 1px 24px rgba(11,25,40,.07); }
.nav-logo { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: .02em; color: var(--navy); text-decoration: none; }
.nav-logo em { font-style: normal; color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { font-size: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--mid); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active { font-weight: 600; }

/* LinkedIn pill in nav */
.nav-li {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(10,102,194,0.08); border: 1px solid rgba(10,102,194,0.2);
  color: var(--li-blue); font-size: 15px; font-weight: 600; letter-spacing: .05em;
  padding: 7px 14px; border-radius: 30px; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.nav-li:hover { background: rgba(10,102,194,0.15); border-color: rgba(10,102,194,0.4); }
.nav-li svg { width: 14px; height: 14px; fill: var(--li-blue); flex-shrink: 0; }

.nav-cta { background: var(--gold) !important; color: var(--navy) !important; font-weight: 700 !important; font-size: 18px !important; padding: 11px 24px; border-radius: var(--rad-sm); transition: background .2s !important; }
.nav-cta:hover { background: var(--gold-2) !important; }

/* ── MOBILE NAV ──────────────────────────────────────────── */
.nav-mobile { display: none; background: none; border: none; cursor: pointer; padding: 12px; margin: -12px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--navy); }
.nav-mobile svg rect { transition: transform .2s, opacity .2s; transform-origin: center; }
.nav-mobile[aria-expanded="true"] .bar1 { transform: translateY(5.5px) rotate(45deg); }
.nav-mobile[aria-expanded="true"] .bar2 { opacity: 0; }
.nav-mobile[aria-expanded="true"] .bar3 { transform: translateY(-5.5px) rotate(-45deg); }

.nav-mobile-panel {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0;
  background: var(--cream);
  border-top: 1px solid var(--warm-2);
  border-bottom: 1px solid var(--warm-2);
  padding: 8px 24px 20px;
  list-style: none;
  flex-direction: column;
  z-index: 99;
  box-shadow: 0 18px 32px rgba(11,25,40,.1);
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel li { width: 100%; }
.nav-mobile-panel a {
  display: block;
  font-size: 16.5px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase;
  color: var(--mid); text-decoration: none;
  padding: 14px 2px;
  border-bottom: 1px solid var(--warm-2);
}
.nav-mobile-panel li:last-child a { border-bottom: none; }
.nav-mobile-panel a.active { color: var(--navy); font-weight: 600; }
.nav-mobile-panel a.nav-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 20px !important;
  border-radius: var(--rad-sm);
}

/* ── SOCIAL ICONS ────────────────────────────────────────── */
.social-links { display: flex; align-items: center; gap: 10px; }

.social-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform .2s, background .2s;
  flex-shrink: 0;
}
.social-icon:hover { transform: translateY(-2px); }
.social-icon svg { width: 16px; height: 16px; }

.social-icon.li { background: rgba(10,102,194,0.12); border: 1px solid rgba(10,102,194,0.22); }
.social-icon.li svg { fill: var(--li-blue); }
.social-icon.li:hover { background: rgba(10,102,194,0.22); }

/* On dark bg */
.social-icon.li-dark { background: rgba(10,102,194,0.15); border: 1px solid rgba(10,102,194,0.3); }
.social-icon.li-dark svg { fill: #5B9BD5; }
.social-icon.li-dark:hover { background: rgba(10,102,194,0.28); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--navy);
  font-family: var(--sans); font-size: 15.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--rad-sm); border: none; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn-gold:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn-gold svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; transition: transform .2s; }
.btn-gold:hover svg { transform: translateX(4px); }

.btn-navy { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: var(--white); font-size: 16.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 14px 28px; border-radius: var(--rad-sm); text-decoration: none; transition: background .2s, transform .2s; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-1px); }

.btn-outline { display: inline-flex; align-items: center; gap: 10px; color: var(--dark); font-size: 16.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 13px 26px; border: 1.5px solid var(--warm-2); border-radius: var(--rad-sm); text-decoration: none; transition: border-color .2s, color .2s; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 16.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 13px 26px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--rad-sm); text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.btn-ghost:hover { border-color: var(--gold-bd); color: var(--gold-2); background: var(--gold-3); }
.btn-ghost svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; transition: transform .2s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ── SECTION SHARED ──────────────────────────────────────── */
.sec { padding: 108px 72px; }
.sec-inner { max-width: var(--max); margin: 0 auto; }

.eyebrow { font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.eyebrow::after { content: ''; height: 1px; width: 48px; background: var(--gold-bd); }

.sec-hl { font-family: var(--serif); font-size: clamp(30px,3.2vw,48px); font-weight: 300; line-height: 1.1; color: var(--dark); }
.sec-hl-light { font-family: var(--serif); font-size: clamp(30px,3.2vw,48px); font-weight: 300; line-height: 1.1; color: var(--white); }

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero { background: var(--navy); padding: 140px 72px 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(201,168,76,0.06), transparent 60%); }
.page-hero-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.page-hero-eyebrow { font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.page-hero-eyebrow::after { content: ''; height: 1px; width: 48px; background: var(--gold-bd); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(40px,5vw,72px); font-weight: 300; line-height: 1.07; color: var(--white); margin-bottom: 24px; }
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero-sub { font-size: 16px; font-weight: 300; line-height: 1.78; color: rgba(255,255,255,.5); max-width: 620px; }

/* ── CARDS ───────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--rad); padding: 36px 30px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.card:hover { border-color: var(--gold-bd); box-shadow: 0 8px 32px rgba(11,25,40,.09); transform: translateY(-2px); }

/* ── BADGES ──────────────────────────────────────────────── */
.badge-gold { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-3); border: 1px solid var(--gold-bd); padding: 6px 14px; border-radius: 30px; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.badge-txt { font-size: 16px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }

/* ── FORM ────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 15.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.form-ctrl { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--rad-sm); padding: 13px 16px; font-family: var(--sans); font-size: 19px; font-weight: 400; color: var(--white); outline: none; width: 100%; transition: border-color .2s, background .2s; }
.form-ctrl::placeholder { color: rgba(255,255,255,.55); }
.form-ctrl:focus { border-color: var(--gold-bd); background: var(--gold-3); }
select.form-ctrl { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select.form-ctrl option { background: var(--navy); color: var(--white); }
textarea.form-ctrl { resize: vertical; min-height: 120px; }
.form-note { font-size: 16.5px; color: rgba(255,255,255,.55); line-height: 1.6; margin-top: 10px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: #060F18; padding: 60px 72px 36px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.05); margin-bottom: 26px; }
.f-logo { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.f-logo em { font-style: normal; color: var(--gold); }
.f-title { font-size: 16px; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.58); margin-bottom: 16px; }
.f-sub { font-size: 16.5px; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 20px; }

/* Footer social row */
.f-social { display: flex; align-items: center; gap: 10px; }
.f-social-label { font-size: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-right: 4px; }

/* LinkedIn connect button in footer */
.f-li-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,102,194,0.12); border: 1px solid rgba(10,102,194,0.28);
  color: #5B9BD5; font-size: 15px; font-weight: 600; letter-spacing: .06em;
  padding: 8px 14px; border-radius: 30px; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.f-li-btn:hover { background: rgba(10,102,194,0.22); border-color: rgba(10,102,194,0.45); }
.f-li-btn svg { width: 13px; height: 13px; fill: #5B9BD5; }

.f-nav-title { font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.f-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.f-links a { font-size: 16.5px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.f-links a:hover { color: var(--gold); }
.f-right { display: flex; flex-direction: column; align-items: flex-end; }
.footer-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--gold-3); border: 1px solid var(--gold-bd); padding: 11px 18px; border-radius: 30px; margin-bottom: 16px; }
.f-tagline { font-size: 16px; color: rgba(255,255,255,.55); line-height: 1.65; text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.f-copy { font-size: 16px; color: rgba(255,255,255,.5); letter-spacing: .03em; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.stagger.visible > *:nth-child(1) { opacity:1;transform:none;transition-delay:.00s }
.stagger.visible > *:nth-child(2) { opacity:1;transform:none;transition-delay:.07s }
.stagger.visible > *:nth-child(3) { opacity:1;transform:none;transition-delay:.14s }
.stagger.visible > *:nth-child(4) { opacity:1;transform:none;transition-delay:.21s }
.stagger.visible > *:nth-child(5) { opacity:1;transform:none;transition-delay:.28s }
.stagger.visible > *:nth-child(6) { opacity:1;transform:none;transition-delay:.35s }
.stagger.visible > *:nth-child(7) { opacity:1;transform:none;transition-delay:.42s }
.stagger.visible > *:nth-child(8) { opacity:1;transform:none;transition-delay:.49s }

/* ── SHARED NAV + FOOTER PARTIALS ────────────────────────── */
/* LinkedIn SVG icon path (used inline across files) */

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  nav, footer, .page-hero { padding-left: 48px; padding-right: 48px; }
  .sec { padding-left: 48px; padding-right: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .f-right { align-items: flex-start; }
  .f-tagline { text-align: left; }
}
@media (max-width: 1320px) {
  .nav-links { display: none; }
  .nav-li span { display: none; }
  .nav-mobile { display: flex; }
}
@media (max-width: 720px) {
  nav, footer, .page-hero { padding-left: 24px; padding-right: 24px; }
  .sec { padding-left: 24px; padding-right: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .f-right { align-items: flex-start; }
}
