

/* Nav + Footer styles for non-template pages */
:root {
  --navy: #071D3E;
  --navy-deep: #020c1f;
  --navy-mid: #0a2347;
  --gold: #B38F3F;
  --gold-light: #E4C46A;
  --gold-glow: rgba(179, 143, 63, .4);
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --text: #0f172a;
  --radius: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
.nav {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), 1200px);
  padding: 14px 20px;
  background: rgba(2, 12, 31, .92);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 100px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 44px; width: auto; }
.nav-links {
  display: none;
  gap: 36px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}
.nav-links a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.nav-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.nav-links a:hover { color: var(--gold-light); }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-cta {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px;
  background: transparent; border: 1.5px solid var(--gold);
  color: var(--gold-light); font-weight: 800; font-size: 13px;
  text-decoration: none; transition: all .3s;
}
.nav-cta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.nav-cta:hover { background: rgba(179,143,63,.12); border-color: var(--gold-light); color: var(--white); }

/* Footer */
.footer { position: relative; z-index: 2; padding: 80px 0 32px; background: var(--navy-deep); color: rgba(255,255,255,.5); font-size: 13px; }
.footer .container { width: min(calc(100% - 40px), 1200px); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand img { height: 36px; margin-bottom: 20px; }
.footer-info { font-size: 13px; line-height: 2; color: rgba(255,255,255,.45); }
.footer-info a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-info a:hover { color: var(--gold-light); }
.footer-col h4 { font-size: 13px; font-weight: 800; color: var(--white); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: rgba(255,255,255,.45); text-decoration: none; font-size: 13px; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.06); flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.3); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .footer-brand { grid-column: 1 / -1; } }

/* SWELL header/footer hidden when custom nav/footer present */
.l-header, .l-fixHeader, .l-footer, .l-footer__widgetArea { display: none !important; }

/* Body padding for fixed nav */
body { padding-top: 80px; }

/* Space for fixed nav on content pages */
.l-content, .l-mainContent, #content {
  margin-top: 80px;
}

/* Ensure top spacing on all non-template pages */
.l-topTitleArea {
  margin-top: 80px !important;
}
body:not([class*="page-template-page-"]) .l-content {
  margin-top: 0 !important;
}

/* Breadcrumb for single posts (match template pages) */
.custom-breadcrumb {
  position: relative;
  z-index: 2;
  padding: 120px 0 0;
  font-size: 13px;
}
.custom-breadcrumb .l-container {
  max-width: 100%;
  padding: 0;
}
.custom-breadcrumb a {
  color: var(--gray-400, #94a3b8);
  text-decoration: none;
  transition: color .3s;
}
.custom-breadcrumb a:hover {
  color: var(--navy, #071D3E);
}
.custom-breadcrumb span {
  color: var(--navy, #071D3E);
  font-weight: 600;
}
.custom-breadcrumb .sep {
  margin: 0 10px;
  color: var(--gray-400, #94a3b8);
}

/* Footer grid responsive for wp_footer injected footer */
@media (max-width: 768px) {
  .tkw-single-cta div[style*="display:flex"] {
    flex-direction: column;
    align-items: center;
  }
}

/* Single post: l-content bottom spacing */
.single .l-content,
.single #content {
  margin-bottom: 60px;
}

/* Single post: remove content margin-top (breadcrumb handles spacing) */
.single .l-content,
.single #content {
  margin-top: 0 !important;
}

/* Single post: remove l-content padding-top (SWELL default override) */
.single .l-content {
  padding-top: 0 !important;
}

/* ===== Single Post Title & Meta ===== */
.single .c-postTitle {
  margin-bottom: 24px;
}
.single .c-postTitle__ttl {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: #071D3E;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.single .c-postTitle__date {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #94a3b8;
}

/* Category badge */
.single .c-categoryList__link {
  display: inline-block;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff !important;
  background: linear-gradient(135deg, #B38F3F, #C8A655) !important;
  border-radius: 100px;
  text-decoration: none;
}
.single .c-categoryList__link:hover {
  opacity: .85;
}

/* Post times */
.single .p-articleMetas__times {
  margin-top: 8px;
}
.single .c-postTimes__posted,
.single .c-postTimes__modified {
  font-size: 12px;
  color: #94a3b8;
}

/* Meta area */
.single .p-articleMetas.-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  margin-bottom: 32px;
}

/* Hide title date */
.single .c-postTitle__date.u-thin {
  display: none !important;
}

/* Hide category list ::before */
.single .c-categoryList::before {
  display: none !important;
}

/* Category list align left */
.single .p-articleMetas__termList.c-categoryList {
  margin-left: 50%;
  padding-left: 50%;
  text-align: left;
}

/* Category pill navy */
.single .c-categoryList__link {
  background: #071D3E !important;
}

/* Category pill larger */
.single .c-categoryList__link {
  padding: 6px 20px !important;
  font-size: 13px !important;
}

/* Single post h2: navy background only, no border lines */
.single .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
  display: none !important;
}

/* Column taxonomy list: match post category style */
.single .c-taxList__link {
  display: inline-block;
  padding: 6px 20px !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff !important;
  background: #071D3E !important;
  border-radius: 100px;
  text-decoration: none;
}
.single .c-taxList__link:hover {
  opacity: .85;
}
.single .c-taxList::before {
  display: none !important;
}
.single .p-articleMetas__termList.c-taxList {
  margin-left: 50%;
  padding-left: 50%;
}

/* Single post h2: navy bg with shadow (match column style) */
.single .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
  padding: 1rem 2rem !important;
  color: #fff !important;
  background: #071d3e !important;
  box-shadow: 5px 5px 0 #CDD3DB !important;
}


/* ===== Mega Menu ===== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.nav-dropdown__trigger::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.nav-dropdown__trigger::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-top: -2px;
  transition: transform .3s;
}
.nav-dropdown:hover .nav-dropdown__trigger::after {
  transform: rotate(-135deg);
}
.nav-dropdown:hover .nav-dropdown__trigger {
  color: var(--gold-light);
}

/* Mega menu panel */
.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 28px 48px; white-space: nowrap;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
  opacity: 0;
  visibility: hidden;
  transition: all .3s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  z-index: 99;
}
.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Menu items */
.nav-dropdown__menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy, #071D3E);
  text-decoration: none;
  border-radius: 12px;
  transition: all .25s ease;
  position: relative;
}
.nav-dropdown__menu a::before {
  content: none !important;
}
.nav-dropdown__menu a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--gold, #B38F3F);
  transition: width .3s ease;
  margin-top: 2px;
}
.nav-dropdown__menu a:hover {
  
  color: var(--gold, #B38F3F);
}
.nav-dropdown__menu a:hover::after {
  width: 100%;
}

/* Service number label */
.nav-dropdown__menu a .mega-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold, #B38F3F);
  opacity: .7;
}

/* Hover bridge: invisible area between trigger and menu */
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}



/* ===== NAV SCROLL STATE ===== */
/* TOP page: transparent nav before scroll */
.page-template-page-top .nav:not(.scrolled) {
  background: transparent !important;
  backdrop-filter: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.nav.scrolled {
  background: rgba(2, 12, 31, .92);
  backdrop-filter: blur(20px) saturate(1.4);
  border-color: rgba(255, 255, 255, .06);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  z-index: 201;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  overflow: hidden;
  inset: 0;
  z-index: 200;
  background: rgba(2, 12, 31, .96);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  display: flex;
}
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mobile-menu__inner a {
  color: rgba(255, 255, 255, .8);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: color .3s;
}
.mobile-menu__inner a:hover {
  color: var(--gold-light);
}
.mobile-menu__cta {
  margin-top: 12px;
  padding: 14px 40px;
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  color: var(--gold-light) !important;
  font-weight: 800;
}

/* ===== MOBILE NAV RESPONSIVE ===== */
@media (max-width: 767px) {
  html, body {
    overflow-x: clip !important;
  }
  .nav {
    width: calc(100% - 16px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 8px !important;
    padding: 10px 16px !important;
    z-index: 300 !important;
  }
  .nav-logo {
    height: 32px !important;
  }
  .nav-hamburger {
    display: flex !important;
  }
  .nav-cta {
    display: none !important;
  }
  .nav-links {
    display: none !important;
  }
  .pc-only {
    display: none !important;
  }
  .custom-breadcrumb {
    padding-top: 80px !important;
  }
}

/* SP/PC display helpers */
.sp-only { display: none; }
@media (max-width: 767px) {
  .sp-only { display: inline !important; }
  .pc-only { display: none !important; }
}
