/* Up2Date — branded header & footer (theme-template pages) */
.u2ds-header, .u2ds-footer {
  --navy: #0D3C55; --cyan: #1395BA; --teal: #106988; --orange: #F16D22; --orange-d: #D85F17; --sky: #A7D7EB;
  font-family: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif; line-height: 1.5; box-sizing: border-box;
}
.u2ds-header *, .u2ds-footer * { box-sizing: border-box; }
.u2ds-header a, .u2ds-footer a { text-decoration: none; }

/* header */
.u2ds-header { position: sticky; top: 0; z-index: 9990; background: rgba(7, 26, 38, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(167, 215, 235, .14); color: #fff; }
body.admin-bar .u2ds-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .u2ds-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .u2ds-header { top: 0; } }
.u2ds-bar { max-width: 1320px; margin: 0 auto; padding: 0 22px; height: 74px; display: flex; align-items: center; gap: 18px; }
.u2ds-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; flex: 0 0 auto; }
.u2ds-brand img { width: 52px; height: auto; display: block; }
.u2ds-brand b { display: block; font-family: 'Space Grotesk', 'Cairo', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .2px; line-height: 1.15; }
.u2ds-brand small { display: block; color: var(--sky); font-size: 12px; line-height: 1.2; }
.u2ds-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.u2ds-nav a { color: #DCEFF7 !important; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background .2s, color .2s; white-space: nowrap; }
.u2ds-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.u2ds-nav .u2ds-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--orange); color: #fff !important; font-weight: 800; margin-inline-start: 8px; box-shadow: 0 8px 20px rgba(241, 109, 34, .35); }
.u2ds-nav .u2ds-cta:hover, .u2ds-nav .u2ds-cta.on { background: var(--orange-d); }
.u2ds-nav .u2ds-cta svg { width: 14px; height: 14px; fill: currentColor; }
.u2ds-tools { display: flex; align-items: center; gap: 8px; }
.u2ds-ib { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(167, 215, 235, .22); background: rgba(255, 255, 255, .04); color: #fff !important; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; transition: .2s; }
.u2ds-ib:hover { background: rgba(255, 255, 255, .1); border-color: rgba(167, 215, 235, .45); }
.u2ds-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.u2ds-burger { display: none; flex-direction: column; gap: 4px; padding: 0; width: 42px; }
.u2ds-burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.u2ds-header.open .u2ds-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.u2ds-header.open .u2ds-burger span:nth-child(2) { opacity: 0; }
.u2ds-header.open .u2ds-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .u2ds-burger { display: inline-flex; }
  .u2ds-nav { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: rgba(7, 26, 38, .98); border-bottom: 1px solid rgba(167, 215, 235, .14); display: none; margin: 0; }
  .u2ds-header.open .u2ds-nav { display: flex; }
  .u2ds-nav a { padding: 12px 14px; font-size: 16px; }
  .u2ds-nav .u2ds-cta { justify-content: center; margin: 8px 0 0; }
  .u2ds-tools { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  .u2ds-bar { padding: 0 14px; height: 66px; gap: 10px; }
  .u2ds-brand img { width: 44px; }
  .u2ds-brand small { display: none; }
  .u2ds-acc span { display: none; }
  .u2ds-acc { padding: 0; width: 42px; }
}

/* footer */
.u2ds-footer { background: #04121A; color: #93B4C3; margin-top: 0; }
.u2ds-fgrid { max-width: 1320px; margin: 0 auto; padding: 56px 22px 34px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.u2ds-footer h4 { color: #fff; font-size: 16px; font-weight: 800; margin: 4px 0 14px; font-family: inherit; }
.u2ds-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.u2ds-footer li a { color: #93B4C3 !important; font-size: 14.5px; transition: color .2s; }
.u2ds-footer li a:hover { color: #fff !important; }
.u2ds-fbrand p { margin: 14px 0 16px; font-size: 14.5px; max-width: 340px; color: #93B4C3; }
.u2ds-wa { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #04121A !important; font-weight: 800; padding: 9px 16px; border-radius: 12px; font-size: 14.5px; }
.u2ds-wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.u2ds-hubs li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid rgba(167, 215, 235, .12); border-radius: 12px; }
.u2ds-hubs b { color: #DCEFF7; font-size: 14px; font-weight: 700; }
.u2ds-hubs span { font-family: 'Space Grotesk', 'Cairo', sans-serif; color: var(--sky); font-size: 18px; font-weight: 700; }
.u2ds-fbottom { max-width: 1320px; margin: 0 auto; padding: 18px 22px 26px; border-top: 1px solid rgba(167, 215, 235, .1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.u2ds-fbottom b { color: var(--orange); }
@media (max-width: 900px) { .u2ds-fgrid { grid-template-columns: 1fr 1fr; } .u2ds-fbrand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .u2ds-fgrid { grid-template-columns: 1fr; padding-top: 40px; } }
