/*
  Sensitive and Queer: shared site styles
  Loaded on every page. Colours and fonts are set once in :root below,
  so changing a value there updates the whole site.
  Styles used on only one page stay inside that page's <style> block.
*/

:root {
  --sq-pink: #EF476F;
  --sq-pink-dark: #7D0F2E;
  --sq-yellow: #FFD166;
  --sq-mint: #06D6A0;
  --sq-mint-dark: #026B50;
  --sq-blue: #118AB2;
  --sq-blue-dark: #084758;
  --sq-navy: #073B4C;
  --sq-navy-muted: #BFCACE;
  --sq-white: #FFFFFF;
  --sq-surface: #F8F7F7;
  --sq-border-layout: #D4D2D2;
  --sq-text: #393939;
  --sq-text-muted: #6B6B6B;
  --sq-cta: #EF476F;
  --sq-blue-light: #E8F5FA;
  --sq-mint-light: #E8FAF5;
  --sq-pink-light: #FEF0F3;
  --sq-yellow-dark: #7A5A00;
  --sq-yellow-light: #FFFBF0;
  --sq-font: "Inter",system-ui,sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sq-font);
  font-size: 16px;
  color: var(--sq-text);
  background: var(--sq-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sq-white);
  border-bottom: 1px solid var(--sq-border-layout);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--sq-text);
  transition: color .2s;
}

.nav-desktop a:hover {
  color: var(--sq-pink);
}

.nav-desktop .dropdown {
  position: relative;
}

.nav-desktop .dropdown>a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-desktop .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  padding-top: 12px;
}

.nav-desktop .dropdown>a::after {
  content: "▾";
  font-size: 12px;
  color: var(--sq-pink);
  transition: transform .2s;
  display: inline-block;
}

.nav-desktop .dropdown:hover .dropdown-menu {
  display: block;
}

.nav-desktop .dropdown:hover>a::after {
  transform: rotate(180deg);
}

.dropdown-menu-inner {
  background: var(--sq-white);
  border: 1px solid var(--sq-border-layout);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 280px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.dropdown-menu-inner a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 400;
}

.dropdown-menu-inner a:hover {
  background: var(--sq-surface);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 20px;
  background: var(--sq-navy);
  color: var(--sq-white) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background .2s;
}

.nav-cta:hover {
  background: var(--sq-blue-dark);
  color: var(--sq-white) !important;
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icons a {
  color: var(--sq-text-muted);
  transition: color .2s;
}

.social-icons a:hover {
  color: var(--sq-pink);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--sq-text);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--sq-white);
  z-index: 99;
  padding: 2rem;
  overflow-y: auto;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--sq-border-layout);
}

.mobile-nav .sub-links a {
  padding-left: 1rem;
  font-size: 14px;
  font-weight: 400;
  color: var(--sq-text-muted);
}

.mobile-nav details {
  border-bottom: 1px solid var(--sq-border-layout);
}

.mobile-nav details summary {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.mobile-nav details summary::-webkit-details-marker {
  display: none;
}

.mobile-nav details summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 18px;
  color: var(--sq-pink);
  transition: transform .2s;
}

.mobile-nav details[open] summary::after {
  transform: rotate(180deg);
}

.mobile-nav details .sub-links {
  padding-bottom: 8px;
}

.mobile-nav details .sub-links a {
  border-bottom: none;
  padding: 8px 0 8px 1rem;
}

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

  .nav-toggle {
    display: block;
  }
}

.colour-banner-img {
  width: 100%;
  display: block;
  line-height: 0;
  max-height: 38px;
  overflow: hidden;
}

.colour-banner-img img {
  width: 100%;
  height: 38px;
  object-fit: cover;
  display: block;
}

.site-footer {
  background: var(--sq-navy);
  color: var(--sq-white);
  padding: 4rem 2rem 2rem;
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4,1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .footer-logo-img {
  height: 36px;
  width: auto;
  margin-bottom: .75rem;
  filter: brightness(0) invert(1);
}

.footer-brand .footer-tagline {
  font-size: 13px;
  color: var(--sq-navy-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: var(--sq-navy-muted);
  transition: color .2s;
}

.footer-social a:hover {
  color: var(--sq-mint);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-lgbtq-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
}

.footer-lgbtq-badge img {
  height: 40px;
  width: auto;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sq-mint);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--sq-navy-muted);
  padding: 4px 0;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--sq-white);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--sq-navy-muted);
  transition: color .2s;
}

.footer-bottom-links a:hover {
  color: var(--sq-white);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

@media (max-width:768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1/-1;
  }
}

@media (max-width:480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Footer: S&Q logo and LGBTQ+ Owned badge side by side */
.footer-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: .75rem;
}

.footer-logos .footer-lgbtq-badge {
  margin: 0;
  line-height: 0;
}

.footer-logos .footer-lgbtq-badge img {
  height: 50px;
  width: auto;
}

/* Accessibility: skip link and visible keyboard focus */
.skip-link{position:absolute;left:-9999px;top:12px;z-index:2000;background:var(--sq-white,#fff);color:var(--sq-navy,#073B4C);font-weight:600;font-size:15px;padding:12px 20px;border-radius:24px;text-decoration:none}
.skip-link:focus{left:12px}
#content{display:block;height:0;outline:none}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--sq-yellow,#FFD166);outline-offset:2px;box-shadow:0 0 0 6px var(--sq-navy,#073B4C)}
#content:focus-visible{outline:none;box-shadow:none}
