.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px){
  .container{ padding: 0 32px; }
}

section{
  padding: 48px 0;
}
@media (min-width: 768px){
  section{ padding: 80px 0; }
}

/* HEADER */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h-mobile);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  z-index: var(--z-header);
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.is-scrolled{
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.site-header__inner{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand-mark{
  width: 36px; height: 36px;
  color: var(--accent);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.brand-mark svg{ width: 100%; height: 100%; }
.brand-name{
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: .005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tag{
  display: block;
  font-family: var(--ff-ui);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
}

.nav-desktop{
  display: none;
}
@media (min-width: 768px){
  .site-header{ height: var(--header-h); }
  .nav-desktop{
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav-desktop a{
    font-family: var(--ff-ui);
    font-size: .92rem;
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
  }
  .nav-desktop a::after{
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -2px;
    height: 1px;
    background: var(--accent);
    transition: right var(--t-base);
  }
  .nav-desktop a:hover::after{ right: 0; }
  .header-cta{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--accent);
    color: var(--text-inverse);
    border-radius: 999px;
    font-family: var(--ff-ui);
    font-weight: 500;
    font-size: .92rem;
    text-decoration: none;
  }
  .header-cta:hover{ background: var(--accent-2); color: var(--text-inverse); }
}

/* Hide header CTA + nav-desktop on mobile (the CTA is replaced by FAB) */
@media (max-width: 767px){
  .nav-desktop, .header-cta{ display: none !important; }
}

main{ padding-top: var(--header-h-mobile); }
@media (min-width: 768px){ main{ padding-top: var(--header-h); } }

/* FOOTER */
.site-footer{
  background: var(--surface-dark);
  color: var(--text-inverse);
  padding: 48px 0 24px;
  margin-top: 0;
}
.site-footer h3, .site-footer h4{ color: var(--text-inverse); font-family: var(--ff-display); font-weight: 500; }
.site-footer p, .site-footer li, .site-footer a{ color: color-mix(in srgb, var(--text-inverse) 78%, transparent); }
.site-footer a:hover{ color: var(--text-inverse); }
.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 768px){
  .footer-grid{ grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
}
.footer-brand p{ margin-top: 12px; font-size: .94rem; line-height: 1.6; }
.footer-block h4{ font-size: 1.05rem; margin-bottom: 14px; }
.footer-block ul{ display: flex; flex-direction: column; gap: 10px; font-size: .94rem; }
.footer-block li{ display: flex; align-items: center; gap: 10px; }
.footer-block svg{ width: 16px; height: 16px; color: var(--accent-soft); flex-shrink: 0; }
.footer-bottom{
  border-top: 1px solid color-mix(in srgb, var(--text-inverse) 14%, transparent);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: color-mix(in srgb, var(--text-inverse) 58%, transparent);
}
.footer-bottom a{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--text-inverse) 32%, transparent);
}
