/* ============================================================
   HANDLIN ENTERPRISES — shared.css
   Used by index.html, services.html, contact.html
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Barlow:wght@300;400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --navy:    #0a1628;
  --mid:     #122040;
  --blue:    #1a4fa0;
  --sky:     #2e8fd4;
  --ice:     #a8d8f0;
  --white:   #f5f8ff;
  --gold:    #f0a500;
  --goldlt:  #ffc93c;
  --gray:    #8a9bb0;
  --dark:    #04091a;
  --nav-h:   60px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: 'Barlow', sans-serif; background: var(--navy); color: var(--white); overflow-x: hidden; }
a { text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ════════════════════════════════════════
   NAV
   ════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(10,22,40,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46,143,212,0.18);
  transition: background 0.3s;
}
#nav.scrolled { background: rgba(10,22,40,0.99); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: var(--nav-h);
  max-width: 1400px; margin: 0 auto;
}

/* Logo */
.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.65rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  display: inline-flex; align-items: baseline; gap: 1px;
  color: var(--white); transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo .dot { color: var(--gold); }

/* Desktop links */
.nav-links {
  display: flex; align-items: center; margin-left: auto;
}
.nav-links a {
  display: flex; align-items: center;
  padding: 0 16px; height: var(--nav-h);
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ice); transition: color 0.2s; position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 2px; background: var(--gold); border-radius: 2px 2px 0 0;
}

/* Search icon */
.nav-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-left: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--ice); transition: color 0.2s;
}
.nav-search-btn:hover { color: var(--gold); }
.nav-search-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Search flyout */
.nav-search-wrap { position: relative; display: flex; align-items: center; }
.nav-search-box {
  position: absolute; top: calc(100% + 14px); right: 0; width: 280px;
  background: rgba(10,22,40,0.98);
  border: 1px solid rgba(46,143,212,0.2); border-top: 2px solid var(--sky);
  border-radius: 0 0 6px 6px; box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  padding: 12px 14px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
}
.nav-search-wrap.open .nav-search-box {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-search-box form { display: flex; }
.nav-search-box input {
  flex: 1; padding: 9px 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(46,143,212,0.25); border-right: none;
  border-radius: 4px 0 0 4px; color: var(--white); font-family: 'Barlow', sans-serif;
  font-size: 16px; outline: none;
}
.nav-search-box input::placeholder { color: #3a5068; }
.nav-search-box input:focus { border-color: var(--sky); background: rgba(46,143,212,0.07); }
.nav-search-box button {
  padding: 9px 14px; background: var(--blue);
  border: 1px solid rgba(46,143,212,0.25); border-left: none;
  border-radius: 0 4px 4px 0; color: var(--ice); cursor: pointer; display: flex; align-items: center;
  transition: background 0.2s;
}
.nav-search-box button:hover { background: var(--sky); color: #fff; }
.nav-search-box button svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 8px; margin-left: 4px;
  background: none; border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block; width: 100%; height: 2px; background: var(--ice);
  border-radius: 2px; transform-origin: center;
  transition: transform 0.25s, opacity 0.2s, background 0.2s;
}
.nav-burger:hover span { background: var(--gold); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.nav-mobile {
  display: none; flex-direction: column;
  overflow: hidden; max-height: 0;
  background: rgba(7,12,24,0.99);
  border-top: 1px solid rgba(46,143,212,0.12);
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.nav-mobile.open { max-height: 80vh; }
.nav-mobile a {
  display: flex; align-items: center; min-height: 48px;
  padding: 0 6%;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ice); border-bottom: 1px solid rgba(46,143,212,0.08);
  transition: color 0.15s, background 0.15s;
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--gold); background: rgba(46,143,212,0.05); }
.nav-mobile-search { padding: 12px 6% 16px; }
.nav-mobile-search form { display: flex; }
.nav-mobile-search input {
  flex: 1; padding: 11px 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(46,143,212,0.22); border-right: none;
  border-radius: 4px 0 0 4px; color: var(--white); font-family: 'Barlow', sans-serif;
  font-size: 16px; outline: none;
}
.nav-mobile-search input::placeholder { color: #3a5068; }
.nav-mobile-search button {
  padding: 11px 16px; background: var(--blue);
  border: 1px solid rgba(46,143,212,0.22); border-left: none;
  border-radius: 0 4px 4px 0; color: var(--ice); cursor: pointer;
  display: flex; align-items: center; transition: background 0.2s;
}
.nav-mobile-search button:hover { background: var(--sky); color: #fff; }
.nav-mobile-search button svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ════════════════════════════════════════
   PAGE HERO BANNER (used on inner pages)
   ════════════════════════════════════════ */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, #0d1e38 55%, #091828 100%);
  padding: 110px 6% 68px; min-height: 300px; display: flex; align-items: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 90% at 90% 50%, rgba(26,79,160,.28) 0%, transparent 65%),
    radial-gradient(ellipse 35% 55% at 5% 80%,  rgba(46,143,212,.12) 0%, transparent 60%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle 1.5px at 50% 50%, rgba(168,216,240,.16) 0%, transparent 100%);
  background-size: 40px 40px; opacity: .28;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 700px; }
.page-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.page-kicker::before { content: ''; display: inline-block; width: 22px; height: 2px; background: var(--gold); flex-shrink: 0; }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 900; text-transform: uppercase;
  line-height: .93; color: var(--white); margin-bottom: 16px;
}
.page-hero h1 span { color: var(--sky); }
.page-hero p {
  font-size: clamp(.94rem, 2vw, 1.05rem); font-weight: 300; line-height: 1.75;
  color: var(--ice); opacity: .9; max-width: 520px;
}

/* ════════════════════════════════════════
   SECTION LABEL + TITLE (reused)
   ════════════════════════════════════════ */
.sec-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.sec-label::before { content: ''; display: inline-block; width: 22px; height: 2px; background: var(--gold); flex-shrink: 0; }
.sec-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; text-transform: uppercase;
  line-height: .95; letter-spacing: -.01em; color: var(--white);
}

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px; border-radius: 4px;
  font-family: 'Barlow', sans-serif; font-weight: 800; font-size: .95rem;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--gold); color: var(--navy);
  box-shadow: 0 4px 20px rgba(240,165,0,.35);
  transition: background .2s, transform .2s, box-shadow .2s;
  min-height: 50px;
}
.btn-gold:hover { background: var(--goldlt); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(240,165,0,.45); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px; border-radius: 4px;
  font-family: 'Barlow', sans-serif; font-weight: 700; font-size: .95rem;
  letter-spacing: .06em; text-transform: uppercase;
  border: 2px solid var(--sky); color: var(--sky);
  transition: background .2s, transform .2s;
  min-height: 50px;
}
.btn-outline:hover { background: rgba(46,143,212,.1); transform: translateY(-2px); }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
footer {
  background: #030810;
  border-top: 1px solid rgba(46,143,212,.12);
  padding: 60px 5% 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 52px; max-width: 1280px; margin: 0 auto 48px;
}
.footer-brand p {
  font-size: .88rem; color: var(--gray); line-height: 1.7; margin-top: 14px; max-width: 300px;
}
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: var(--gray); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact p { font-size: .88rem; color: var(--gray); margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; }
.footer-contact strong { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: var(--gray);
  max-width: 1280px; margin: 0 auto;
}
.footer-bottom a { color: var(--sky); }

/* ════════════════════════════════════════
   RESPONSIVE — NAV
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links, .nav-search-wrap { display: none !important; }
  .nav-burger, .nav-mobile { display: flex !important; }
  .nav-inner { padding: 0 4%; }
}
@media (max-width: 480px) {
  .nav-logo { font-size: 1.4rem; }
  :root { --nav-h: 56px; }
}

/* ════════════════════════════════════════
   RESPONSIVE — FOOTER
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ════════════════════════════════════════
   RESPONSIVE — PAGE HERO
   ════════════════════════════════════════ */
@media (max-width: 600px) {
  .page-hero { padding: 90px 5% 52px; min-height: 0; }
}