/* Shared header + footer for the public site (partials/site-*.html).
   Everything is prefixed sc- so it can sit on top of each page's own CSS. */
:root {
  --sc-navy: #071426;
  --sc-navy-2: #0b2a4a;
  --sc-gold: #fece00;
  --sc-line: rgba(255, 255, 255, .12);
  --sc-text: rgba(255, 255, 255, .86);
  --sc-muted: rgba(255, 255, 255, .58);
  --sc-h: 64px;
}
@media (max-width: 760px) { :root { --sc-h: 58px; } }

.sc-header, .sc-header *, .sc-announce, .sc-announce *, .sc-footer, .sc-footer * { box-sizing: border-box; }
.sc-header, .sc-announce, .sc-footer { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ── Header (fixed; .sc-space holds its place in the page) ── */
.sc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(7, 20, 38, .94);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--sc-line);
}
.sc-space { height: var(--sc-h); }
.sc-inner {
  height: var(--sc-h); max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 40px);
  display: flex; align-items: center; gap: 18px;
}
.sc-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1rem; flex: none; }
.sc-brand img { width: 34px; height: 34px; border-radius: 8px; background: #fff; object-fit: contain; }
.sc-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.sc-nav a {
  color: var(--sc-text); text-decoration: none; font-size: .9rem; font-weight: 600;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.sc-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sc-nav a[aria-current="page"] { color: var(--sc-gold); }
.sc-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.sc-login, .sc-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: .86rem; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.sc-login { color: #fff; border: 1px solid var(--sc-line); background: rgba(255, 255, 255, .06); }
.sc-login:hover { background: rgba(255, 255, 255, .14); }
.sc-cta { color: #0b1b33; background: var(--sc-gold); box-shadow: 0 4px 16px rgba(254, 206, 0, .25); }
.sc-cta:hover { filter: brightness(1.05); }
.sc-header a:focus-visible, .sc-menu-btn:focus-visible, .sc-footer a:focus-visible, .sc-announce a:focus-visible {
  outline: 2px solid var(--sc-gold); outline-offset: 2px;
}

.sc-menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--sc-line);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.sc-menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.sc-menu-open .sc-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sc-menu-open .sc-menu-btn span:nth-child(2) { opacity: 0; }
.sc-menu-open .sc-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sc-menu {
  border-top: 1px solid var(--sc-line); background: var(--sc-navy);
  padding: 10px clamp(14px, 3vw, 40px) 18px;
  max-height: calc(100vh - var(--sc-h)); overflow-y: auto;
}
.sc-menu[hidden] { display: none; }
.sc-menu > a {
  display: flex; align-items: center; min-height: 48px; padding: 0 6px;
  color: var(--sc-text); font-size: 1.02rem; font-weight: 700; text-decoration: none;
  border-bottom: 1px solid var(--sc-line);
}
.sc-menu > a[aria-current="page"] { color: var(--sc-gold); }
.sc-menu-actions { display: grid; gap: 10px; margin-top: 16px; }
.sc-menu-actions .sc-cta, .sc-menu-actions .sc-login { height: 48px; font-size: 1rem; }
.sc-phone { color: var(--sc-muted); text-align: center; font-weight: 700; text-decoration: none; padding: 6px; }

@media (max-width: 1080px) {
  .sc-nav { display: none; }
  .sc-menu-btn { display: inline-flex; }
}
@media (max-width: 600px) {
  .sc-actions .sc-cta { display: none; }   /* in the bar right below, and in the menu */
  .sc-long { display: none; }
  .sc-brand span { font-size: .95rem; }
}

/* ── Announcement bar (scrolls away; the header stays) ── */
.sc-announce {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px clamp(14px, 3vw, 40px);
  background: linear-gradient(90deg, #7c2d12 0%, #c2410c 45%, #ea580c 100%);
  color: #fff; text-align: center;
}
.sc-announce p { margin: 0; font-size: .86rem; font-weight: 600; line-height: 1.4; }
.sc-announce strong { color: #ffe0b8; }
.sc-announce a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; font-size: .82rem; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.sc-announce a:hover { background: rgba(255, 255, 255, .28); }

/* ── Footer ── */
.sc-footer { background: var(--sc-navy); color: var(--sc-muted); border-top: 1px solid var(--sc-line); }
.sc-footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 48px clamp(16px, 3vw, 40px) 28px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.sc-f-brand p { margin: 12px 0 0; font-size: .9rem; line-height: 1.6; max-width: 32ch; }
.sc-f-contact a { color: #fff; font-weight: 700; text-decoration: none; }
.sc-f-addr { font-size: .86rem !important; }
.sc-f-addr strong { color: #fff; }
.sc-f-addr a { color: var(--sc-muted); text-decoration: underline; text-underline-offset: 2px; }
.sc-f-col h2 { margin: 4px 0 12px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.sc-f-col a { display: block; padding: 5px 0; color: var(--sc-muted); font-size: .9rem; text-decoration: none; }
.sc-f-col a:hover, .sc-f-contact a:hover { color: var(--sc-gold); }
.sc-f-bottom {
  max-width: 1280px; margin: 0 auto; padding: 16px clamp(16px, 3vw, 40px) 28px;
  border-top: 1px solid var(--sc-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .78rem;
}
@media (max-width: 900px) { .sc-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sc-footer-inner { grid-template-columns: 1fr; gap: 24px; } }
