/* Dualverse unified footer. Load after style.css / studio.css / homepage.css.
   Outer element = full-bleed dark ground only (no borders, no padding-inline).
   Inner frame = the one shared column; every rule lives on a direct child of it,
   so the top and bottom rules are the same length and share the logo/column edges. */

.site-footer{
  --sf-ground:#292c53;
  --sf-text:#e9e9f4;
  --sf-muted:#b4b6d2;
  --sf-rule:rgba(233,233,244,.18);
  --sf-coral:#f09a88;
  display:block;
  width:100%;
  margin:0;
  padding:0;
  border:0;
  background:var(--sf-ground);
  color:var(--sf-text);
  font-family:'Source Sans 3',sans-serif;
  font-size:1rem;
  line-height:1.5;
}

.site-footer-inner{
  max-width:var(--page-frame,1464px);
  width:100%;
  margin-inline:auto;
  padding-inline:var(--page-gutter,clamp(20px,5vw,72px));
  box-sizing:border-box;
}

/* Top row: logo + tagline. Rule sits below it, spanning the frame. */
.site-footer-top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 32px;
  padding-block:clamp(36px,4vw,52px) clamp(24px,2.6vw,32px);
  border-bottom:1px solid var(--sf-rule);
}
.site-footer-brand{
  display:inline-flex;
  align-items:center;
  padding:6px 0;
  text-decoration:none;
}
.site-footer-brand img{
  display:block;
  width:176px;
  max-width:100%;
  height:auto;
  /* Blue SVG rendered white for contrast on the dark ground. */
  filter:brightness(0) invert(1);
}
.site-footer-tagline{
  margin:0;
  font-family:Manrope,sans-serif;
  font-size:clamp(1.05rem,1.3vw,1.25rem);
  font-weight:500;
  letter-spacing:-.015em;
  line-height:1.35;
  color:var(--sf-text);
}

/* Link groups */
.site-footer-groups{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:28px 32px;
  padding-block:clamp(24px,2.8vw,36px) clamp(28px,3.2vw,40px);
}
.site-footer-group{min-width:0}
.site-footer .site-footer-heading{
  margin:0 0 8px;
  font-family:Manrope,sans-serif;
  font-size:1rem;
  font-weight:650;
  letter-spacing:.09em;
  line-height:1.4;
  text-transform:uppercase;
  color:var(--sf-muted);
}
.site-footer-list{
  list-style:none;
  margin:0;
  padding:0;
}
.site-footer-list li{margin:0}
.site-footer-list a{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding-block:2px;
  font-size:1rem;
  line-height:1.35;
  overflow-wrap:break-word;
}

/* Bottom row: rule above it, spanning the frame (same length as top rule). */
.site-footer-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:4px 24px;
  padding-block:14px 22px;
  border-top:1px solid var(--sf-rule);
  font-size:1rem;
  color:var(--sf-muted);
}
.site-footer-copy{margin:0}
.site-footer-email{
  display:inline-flex;
  align-items:center;
  min-height:44px;
}

/* Link states (override global a / a:hover / :focus-visible from style.css) */
.site-footer a{
  color:var(--sf-text);
  text-decoration:none;
}
.site-footer-bottom a{color:var(--sf-muted)}
.site-footer a:hover{
  color:#fff;
  text-decoration:underline;
  text-decoration-color:var(--link-underline);
  text-underline-offset:3px;
}
.site-footer-brand:hover{text-decoration:none}
.site-footer a:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
  border-radius:2px;
}

/* Tablet: 2 balanced columns */
@media (max-width:1050px){
  .site-footer-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Phone: 2 columns */
@media (max-width:640px){
  .site-footer-top{flex-direction:column;align-items:flex-start;gap:8px}
  .site-footer-brand img{width:156px}
  .site-footer-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}
  .site-footer-list a{font-size:1rem}
}

/* Very narrow (≤360, incl. 320): keep 2 columns, tighter gap; bottom stacks */
@media (max-width:360px){
  .site-footer-groups{gap:20px 14px}
  .site-footer-list a{font-size:1rem}
  .site-footer-bottom{flex-direction:column;align-items:flex-start;gap:0}
}
