/* ══════════════════════════════════════════════════════════════
   WiredToClose.com — Shared Stylesheet v1.0
   Covers: variables, fonts, header, nav, footer, utilities
   Page-specific styles stay in each page's own <style> block
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --orange:      #FF6C2C;
  --orange-lt:   #FFF3ED;
  --teal:        #236A95;
  --teal-lt:     #EBF4FA;
  --dark:        #1a4f70;
  --dark2:       #174461;
  --dark3:       #1e5278;
  --mid:         #4A5568;
  --light:       #F7F6F2;
  --white:       #FFFFFF;
  --gold:        #FFDD7F;
  --green:       #2E7D32;
  --green-lt:    #E8F5E9;
  --text:        #1a1a2e;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-d: var(--font-display);
  --font-b: var(--font-body);
  --font-m: var(--font-mono);
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --max-w:     1280px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); min-height: 100vh; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════════════════════
   SITE HEADER
   ══════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.site-hdr-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 13px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.site-logo-mark img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
}

.site-wordmark {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -.2px;
}

.site-wordmark span { color: var(--orange); }

.site-hdr-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hdr-badge {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  border: 2px solid rgba(255,135,83,.5);
  border-radius: 20px;
  padding: 4px 10px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.hdr-back {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.hdr-back:hover { color: #fff; }

.hdr-partner-logo {
  height: 34px;
  width: auto;
  border-radius: 5px;
}

.hdr-cta {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.hdr-cta:hover { background: #e55c20; }

.hdr-page-label {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-left: 2px;
}

/* ══════════════════════════════════════════════════════════════
   SITE FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
}

.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .site-logo { margin-bottom: 14px; }

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul li a:hover { color: #fff; }

.site-footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 32px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer-bottom p { font-size: 12px; color: rgba(255,255,255,.25); }
.site-footer-bottom a { color: var(--orange); text-decoration: none; }

.footer-tagline {
  font-size: 11px;
  color: rgba(255,255,255,.15);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════ */
.wtc-container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 12px 24px; border-radius: var(--radius);
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #e55c20; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--teal);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: var(--radius);
  text-decoration: none; border: 2px solid var(--teal); cursor: pointer;
  transition: all .2s;
}
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-hdr-inner { padding: 12px 16px; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 32px 16px; }
  .site-footer-bottom { padding: 16px; flex-direction: column; align-items: flex-start; }
  .wtc-container { padding: 0 16px; }
}

@media (max-width: 600px) {
  .hdr-badge { display: none; }
  .site-wordmark { font-size: 15px; }
  .hdr-partner-logo { height: 28px; }
}
/* ═══════════════════════════════════════════════════════
   NAV DROPDOWN
   Add this block to styles.css
═══════════════════════════════════════════════════════ */

/* Upgrade the hdr-right to flex for alignment */
.site-hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nav list reset for standard pages */
.site-hdr-right .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Base nav item -- position relative needed for dropdown */
.site-hdr-right .nav-links > li {
  position: relative;
}

/* All nav links */
.site-hdr-right .nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.site-hdr-right .nav-links > li > a:hover {
  color: white;
  background: rgba(255,255,255,0.07);
}

/* Dropdown trigger arrow */
.nav-has-dropdown > a::after {
  content: '▾';
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s, opacity 0.2s;
  margin-left: 2px;
}

.nav-has-dropdown:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* The dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: rgba(23, 68, 97, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

/* Small arrow pointer */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(23,68,97,0.98);
  border-left: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Show on hover */
.nav-has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown links */
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

/* Active page highlight */
.nav-dropdown a.nav-current {
  color: var(--orange);
  background: rgba(255,108,44,0.08);
}

.nav-dropdown a.nav-current:hover {
  background: rgba(255,108,44,0.14);
}

/* Dropdown icon */
.nav-dropdown-icon {
  font-size: 14px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* Divider inside dropdown */
.nav-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 8px;
}

/* CTA button in nav */
.nav-cta {
  background: var(--orange) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: none;
  transition: background 0.2s !important;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #E55A1C !important;
  color: white !important;
}

/* hdr-back link for pages without full nav */
.hdr-back {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
  padding: 8px 12px;
  border-radius: 8px;
}

.hdr-back:hover {
  color: white;
  background: rgba(255,255,255,0.07);
}

/* hdr-badge -- orange pill page label */
.hdr-badge {
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Mobile -- hamburger menu */
@media (max-width: 900px) {
  .site-hdr-right .nav-links { display: none !important; }
  .nav-dropdown { display: none !important; }
  .hamburger { display: flex !important; }
}

/* ═══════════════════════════════════════════════════════
   HAMBURGER BUTTON + MOBILE NAV DRAWER
   Shared across all standard pages
═══════════════════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 300;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  background: rgba(23,68,97,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  padding: 32px 24px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mobile-nav.open { display: flex !important; }

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
}

.mobile-nav a:hover,
.mobile-nav a:active {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(255,255,255,0.1);
}

.mobile-nav a.mobile-nav-current {
  color: var(--orange);
  background: rgba(255,108,44,0.08);
}

.mobile-nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 12px 0;
}

.mobile-nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 8px 20px 4px;
}
