/* ============================================================
   Second Career Training — Hello Elementor Child Theme
   Scoped styles for: skip link, top banner, sticky header,
   desktop/mobile navigation, focus states, and dark footer.
   ============================================================ */

:root {
  --sct-red: #D80621;
  --sct-red-dark: #A30416;
  --sct-red-deep: #7C0210;
  --sct-ink: #17171C;
  --sct-ink-2: #43434C;
  --sct-muted: #67676F;
  --sct-line: #E9E6E2;
  --sct-paper: #FFFFFF;
  --sct-wash: #FAF8F6;
  --sct-footer-bg: #26374A;
  --sct-max-width: 1180px;
  --sct-gutter: clamp(20px, 4vw, 32px);
  --sct-head-h: 72px;
  --sct-radius-pill: 999px;
  --sct-radius-card: 16px;
  --sct-radius-input: 12px;
  --sct-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- utilities & accessibility ---------- */

.sct-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sct-wrap {
  max-width: var(--sct-max-width);
  margin-inline: auto;
  padding-inline: var(--sct-gutter);
}

.sct-content-anchor {
  display: block;
  height: 0;
  outline: none;
}

.sct-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: var(--sct-radius-pill);
  background: var(--sct-red);
  color: var(--sct-paper);
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.sct-skip-link:focus {
  left: 16px;
  outline: 2px solid var(--sct-paper);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--sct-red);
}

.sct-topbar :focus-visible,
.sct-site-head :focus-visible,
.sct-footer :focus-visible {
  outline: 2px solid var(--sct-red);
  outline-offset: 3px;
  border-radius: 4px;
}

.sct-topbar :focus-visible {
  outline-color: var(--sct-paper);
}

/* ---------- red utility top banner ---------- */

.sct-topbar {
  background: var(--sct-red);
  color: var(--sct-paper);
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  line-height: 1.4;
}

.sct-topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 9px;
  flex-wrap: wrap;
}

.sct-topbar-note {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--sct-paper);
}

.sct-topbar-note i {
  font-size: 1.1em;
  flex: none;
}

.sct-topbar-link {
  color: var(--sct-paper);
  text-decoration: none;
}

.sct-topbar-link:hover,
.sct-topbar-link:focus-visible {
  text-decoration: underline;
}

.sct-topbar-contact {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  margin-left: auto;
}

.sct-topbar-contact a,
.sct-topbar-contact-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sct-paper);
  text-decoration: none;
  opacity: 0.96;
  white-space: nowrap;
}

.sct-topbar-contact a:hover,
.sct-topbar-contact a:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

.sct-topbar-contact i {
  font-size: 1.05em;
  flex: none;
}

/* ---------- main sticky header & desktop nav ---------- */

.sct-site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sct-line);
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.admin-bar .sct-site-head {
  top: 32px;
}

.sct-head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--sct-head-h);
}

.sct-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
  color: var(--sct-ink);
}

.sct-brand--logo img {
  display: block;
  max-height: 44px;
  width: auto;
}

.sct-brand-leaf {
  width: 30px;
  height: 30px;
  color: var(--sct-red);
  flex: none;
}

.sct-brand-name {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sct-ink);
}

.sct-brand-name--light {
  color: var(--sct-paper);
}

.sct-nav {
  margin-left: auto;
}

.sct-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.sct-nav-list li {
  position: relative;
  margin: 0;
}

.sct-nav-list a {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sct-ink-2);
  padding-block: 6px;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.25s var(--sct-ease);
}

.sct-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--sct-red);
  border-radius: 2px;
  transition: right 0.3s var(--sct-ease);
}

.sct-nav-list a:hover,
.sct-nav-list .current-menu-item > a,
.sct-nav-list .current_page_item > a {
  color: var(--sct-ink);
}

.sct-nav-list a:hover::after,
.sct-nav-list .current-menu-item > a::after,
.sct-nav-list .current_page_item > a::after {
  right: 0;
}

.sct-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  padding: 8px 0;
  background: var(--sct-paper);
  border: 1px solid var(--sct-line);
  border-radius: var(--sct-radius-input);
  box-shadow: 0 14px 36px rgba(23, 23, 28, 0.09);
  list-style: none;
  z-index: 60;
}

.sct-nav-list li:hover > .sub-menu,
.sct-nav-list li:focus-within > .sub-menu {
  display: block;
}

.sct-nav-list .sub-menu a {
  display: block;
  padding: 9px 16px;
}

.sct-nav-list .sub-menu a::after {
  display: none;
}

.sct-head-actions {
  display: none;
  align-items: center;
  gap: 12px;
  flex: none;
}

.sct-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  line-height: 1;
  padding: 6px;
  color: var(--sct-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* ---------- mobile navigation panel ---------- */

.sct-mobile-nav {
  border-top: 1px solid var(--sct-line);
  background: var(--sct-paper);
  padding: 16px var(--sct-gutter) 24px;
}

.sct-mobile-nav[hidden] {
  display: none;
}

.sct-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sct-mobile-nav-list li {
  margin: 0;
}

.sct-mobile-nav-list a {
  display: block;
  padding: 12px 4px;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--sct-line);
  color: var(--sct-ink-2);
  text-decoration: none;
}

.sct-mobile-nav-list a:hover,
.sct-mobile-nav-list .current-menu-item > a,
.sct-mobile-nav-list .current_page_item > a {
  color: var(--sct-red);
}

.sct-mobile-nav-list .sub-menu {
  list-style: none;
  margin: 0;
  padding-left: 16px;
}

/* ---------- dark footer ---------- */

.sct-footer {
  position: relative;
  overflow: hidden;
  background: var(--sct-footer-bg);
  color: rgba(255, 255, 255, 0.78);
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.sct-foot-skyline {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(62%, 900px);
  height: auto;
  pointer-events: none;
  opacity: 0.9;
}

.sct-footer-in {
  position: relative;
  z-index: 1;
  padding-block: clamp(44px, 6vw, 64px) 0;
}

.sct-foot-top {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.sct-foot-cols-1 {
  grid-template-columns: 1fr;
}

.sct-foot-cols-2 {
  grid-template-columns: 1.3fr 1fr;
}

.sct-foot-cols-3 {
  grid-template-columns: 1.3fr 1fr 1fr;
}

.sct-foot-cols-4 {
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

.sct-foot-brand p {
  margin-top: 14px;
  font-size: 0.95rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.68);
}

.sct-footer-social {
  margin-top: 20px;
}

.sct-footer-social .wp-block-social-links {
  gap: 10px;
  margin: 0;
  padding: 0;
}

.sct-footer-social .wp-social-link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--sct-paper);
  transition: background-color 0.25s var(--sct-ease), border-color 0.25s var(--sct-ease);
}

.sct-footer-social .wp-social-link:hover,
.sct-footer-social .wp-social-link:focus-within {
  background: var(--sct-red);
  border-color: var(--sct-red);
  color: var(--sct-paper);
}

.sct-footer-heading,
.sct-foot-col h2,
.sct-foot-col h3,
.sct-foot-col h4 {
  color: var(--sct-paper);
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.sct-foot-col p {
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.74);
}

.sct-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.sct-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.sct-contact-item i {
  color: var(--sct-red);
  font-size: 1.15rem;
  line-height: 1;
  height: calc(0.94rem * 1.55);
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  flex: none;
}

.sct-foot-col .sct-contact-item a {
  padding-block: 0;
  line-height: 1.55;
}

.sct-foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sct-foot-col li {
  margin: 0;
}

.sct-foot-col a {
  display: inline-block;
  padding-block: 5px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition: color 0.2s var(--sct-ease);
}

.sct-foot-col a:hover,
.sct-foot-col a:focus-visible {
  color: var(--sct-paper);
  text-decoration: underline;
}

.sct-footer-widget + .sct-footer-widget {
  margin-top: 22px;
}

.sct-foot-nav {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sct-foot-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sct-foot-nav-list a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.sct-foot-nav-list a:hover,
.sct-foot-nav-list a:focus-visible {
  color: var(--sct-paper);
  text-decoration: underline;
}

.sct-foot-bottom {
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- responsive breakpoints ---------- */

@media (max-width: 1120px) {
  .sct-nav {
    display: none;
  }

  .sct-head-actions {
    display: flex;
  }
}

@media (max-width: 960px) {
  .sct-foot-cols-3,
  .sct-foot-cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 782px) {
  .admin-bar .sct-site-head {
    top: 46px;
  }
}

@media (max-width: 620px) {
  .sct-topbar-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .sct-topbar-contact {
    margin-left: 0;
    gap: 6px 16px;
  }

  .sct-foot-cols-2,
  .sct-foot-cols-3,
  .sct-foot-cols-4 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sct-nav-list a,
  .sct-nav-list a::after,
  .sct-foot-col a,
  .sct-footer-social .wp-social-link {
    transition: none;
  }
}
