/* ============================================================
   QAMCON '26 — Executive academic theme
   Espresso & champagne-gold design system
   ============================================================ */

:root {
  --bg-0: #1a110c;
  --bg-1: #241810;
  --bg-soft: #1d130d;
  --bg-card: #22160d;
  --bg-deep: #160e09;

  --gold: #d4af37;
  --gold-soft: #c5a86d;
  --gold-faint: rgba(212, 175, 55, 0.22);
  --ivory: #faf4e8;
  --cream: #e8ddd0;
  --sepia: #36271d;

  --muted: rgba(232, 221, 208, 0.62);
  --border: rgba(212, 175, 55, 0.24);
  --border-strong: rgba(212, 175, 55, 0.5);

  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #c5a86d 100%);
  --gradient-bg: linear-gradient(180deg, #1a110c 0%, #241810 60%, #1a110c 100%);

  --font-title: "Montserrat", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;

  --radius: 14px;
  --nav-top-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(197, 168, 109, 0.08), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(212, 175, 55, 0.06), transparent 55%),
    var(--gradient-bg);
  background-attachment: fixed;
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ivory);
  line-height: 1.16;
}

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

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

/* ---------- Typography helpers ---------- */

.gold-text {
  color: var(--gold);
}

.cream-text {
  color: var(--ivory);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: none;
  margin: 22px auto;
}

.gold-rule.left {
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 22px 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--bg-deep);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover {
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.42);
}

.btn-ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--ivory);
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 0 1px var(--gold);
}

/* ---------- Brand lockup (QAMCON '26) ---------- */

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--ivory);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand img {
  display: block;
  max-width: 100%;
  height: auto;
}

.nav-top .brand {
  width: clamp(150px, 16vw, 190px);
}

.footer-about .brand {
  width: min(230px, 100%);
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 14, 9, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-strong);
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 6px;
}

.nav-top .signet {
  width: clamp(44px, 5vw, 56px);
  height: auto;
  opacity: 0.92;
}

.nav-top .signet.right {
  margin-left: auto;
}

.nav-main {
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  padding: 6px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--ivory);
  background: rgba(212, 175, 55, 0.08);
}

.nav-links a.active {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.09);
  box-shadow: inset 0 -1px 0 var(--gold);
}

.nav-register {
  padding: 11px 22px;
  font-size: 0.66rem;
  margin-left: 12px;
  flex-shrink: 0;
}

.nav-mobile-cta {
  display: none;
}

/* ---------- Hero (landing) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 90px 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../assets/qamc.png") center 22% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to top, #1a110c 0%, rgba(26, 17, 12, 0) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.emblem {
  position: relative;
  width: min(360px, 74vw);
  aspect-ratio: 1;
  margin: 46px auto 0;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.emblem::before,
.emblem::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.emblem::before {
  inset: 9px;
}

.emblem::after {
  inset: 17px;
  border-color: rgba(212, 175, 55, 0.18);
}

.emblem-core {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 12%;
}

.emblem-core .brand {
  width: min(230px, 60%);
}

.emblem-tag {
  font-family: var(--font-title);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.emblem-building {
  position: absolute;
  bottom: 11%;
  left: 50%;
  transform: translateX(-50%);
  width: 74%;
  opacity: 0.5;
  pointer-events: none;
}

.hero-sub {
  margin-top: 38px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  line-height: 2;
}

.hero-tag {
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-date {
  margin-top: 22px;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero .gold-rule {
  max-width: 420px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-meta {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 74px;
}

.hero-meta .stat {
  flex: 1 1 0;
  min-width: 150px;
  padding: 22px 14px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.hero-meta .stat + .stat {
  border-left: 1px solid var(--border);
}

.hero-meta .stat b {
  display: block;
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.hero-meta .stat span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.swoosh {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.swoosh-left {
  left: 0;
  bottom: 0;
  width: min(360px, 30vw);
}

.swoosh-right {
  right: 0;
  bottom: 0;
  width: min(360px, 30vw);
  transform: scaleX(-1);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 84px 0 0;
  background:
    radial-gradient(640px 340px at 85% -10%, rgba(212, 175, 55, 0.1), transparent 60%),
    radial-gradient(560px 360px at 5% 10%, rgba(197, 168, 109, 0.07), transparent 55%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 78px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  margin: 20px 0 16px;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 620px;
  margin: 0 auto;
}

.page-hero .building-band {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -2px;
  width: min(900px, 92%);
  opacity: 0.55;
  z-index: 1;
}

/* ---------- Sections ---------- */

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 660px;
  margin-bottom: 46px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  letter-spacing: 0.05em;
  margin-top: 14px;
}

.section-head p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1rem;
}

/* ---------- Wireframes / cards ---------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.04), transparent 40%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}

.card h3 {
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.card ul li {
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.card ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  margin-top: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  color: var(--gold);
}

.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.num-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
}

/* ---------- Banner box (ambassadors) ---------- */

.banner-box {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 22px 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 26px 0 10px;
  background: rgba(212, 175, 55, 0.05);
  flex-wrap: wrap;
}

.banner-box .banner-line {
  flex: 1 1 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.banner-box .banner-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.banner-box .banner-text {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.8vw, 0.86rem);
  color: var(--ivory);
  white-space: nowrap;
}

/* ---------- Abstract Publication highlight ---------- */

.pub-box {
  max-width: 820px;
  margin: 46px auto 44px;
  padding: 30px 34px 28px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.03) 55%), var(--bg-card);
  text-align: center;
}

.pub-box .pub-badge {
  display: inline-block;
  padding: 7px 18px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--gradient-gold);
  color: var(--bg-deep);
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.pub-box p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.pub-box p + p {
  margin-top: 12px;
}

.pub-box .pub-tagline {
  margin-top: 18px;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Table ---------- */

.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  min-width: 560px;
}

th, td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

th {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

tbody tr:last-child td {
  border-bottom: none;
}

td {
  color: var(--muted);
}

td:first-child {
  color: var(--cream);
  font-weight: 500;
}

/* ---------- Forms ---------- */

.form-card {
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.04), transparent 40%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 720px;
}

.form-card h3 {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 9px;
  color: var(--gold-soft);
}

input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--ivory);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder, textarea::placeholder {
  color: rgba(232, 221, 208, 0.35);
}

select option {
  background: var(--bg-deep);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 16px;
}

/* ---------- Team ---------- */

.team-row {
  margin-bottom: 60px;
}

.team-row:last-child {
  margin-bottom: 0;
}

.team-pill {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-strong);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.team-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
}

.member {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.member:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.member-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold);
  margin: 0 auto 18px;
  box-shadow: inset 0 0 0 4px var(--bg-deep), inset 0 0 0 5px var(--border);
}

.member h4 {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.member .role {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.member .dept {
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 10px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}

.contact-list .c-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-list .c-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list b {
  display: block;
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 3px;
}

.contact-list span {
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-word;
}

.contact-list a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--gold);
}

.contact-list .c-icon svg circle:last-child {
  fill: currentColor;
  stroke: none;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 86px 0;
  background:
    radial-gradient(600px 300px at 50% 140%, rgba(212, 175, 55, 0.16), transparent 65%),
    var(--bg-soft);
  border-block: 1px solid var(--border);
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 32px;
  font-size: 1rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-strong);
  padding: 0 0 30px;
}

.footer-building {
  text-align: center;
  padding: 30px 0 6px;
  opacity: 0.6;
}

.footer-building img {
  width: min(720px, 90%);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr 1.25fr;
  gap: 40px;
  padding: 40px 0 36px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.footer h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-about p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-signets {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.footer-signets img {
  width: 42px;
  height: 42px;
  opacity: 0.85;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-links a::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  vertical-align: middle;
}

.footer-contact {
  list-style: none;
  display: grid;
  gap: 13px;
}

.footer-contact li {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.footer-contact .f-icon {
  flex-shrink: 0;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.f-numbers {
  display: grid;
  gap: 2px;
}

.copy-phone {
  cursor: pointer;
  width: fit-content;
  transition: color 0.15s;
}

.copy-phone:hover,
.copy-phone:focus-visible {
  color: var(--gold-soft);
}

.copy-phone.copied {
  color: var(--gold);
}

.footer-bottom strong {
  color: var(--gold);
  font-weight: 600;
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social a:first-child svg circle:last-child {
  fill: currentColor;
  stroke: none;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-3, .grid-2, .grid-4, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 34px;
  }

  /* ---- Header: single clean row on tablet/mobile ---- */
  .nav-top {
    position: relative;
    padding: 10px 0 9px;
  }

  .nav-top .signet {
    width: 42px;
  }

  /* keep the QAMCON '26 lockup perfectly centred between the logos */
  .navbar .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
  }

  .navbar .brand::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.25s ease;
  }

  .navbar .brand.open::after {
    transform: translateY(-35%) rotate(-135deg);
  }

  .nav-main {
    border-top: 0;
  }

  .nav-inner {
    padding: 0;
  }

  .nav-register {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 5% 18px;
    background: rgba(20, 13, 9, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
    z-index: 90;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li + li {
    border-top: 1px solid rgba(212, 175, 55, 0.12);
  }

  .nav-links a {
    padding: 15px 14px;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    border-radius: 0;
  }

  .nav-links a.active {
    background: rgba(212, 175, 55, 0.06);
    box-shadow: inset 3px 0 0 var(--gold);
  }

  .nav-mobile-cta {
    display: block;
    padding: 16px 0 0;
    border-top: none !important;
  }

  .nav-mobile-cta .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 28px 24px;
  }

  /* ---- Hero stats: tidy 2x2 grid ---- */
  .hero-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 56px;
  }

  .hero-meta .stat {
    border: 1px solid var(--border);
    padding: 18px 12px;
  }

  .hero-meta .stat + .stat {
    border-left: none;
    border-top: none;
  }

  .hero-meta .stat:first-child,
  .hero-meta .stat:nth-child(3) {
    border-left: 0;
  }

  .hero-meta .stat:nth-child(-n + 2) {
    border-top: 0;
  }

  .hero-meta .stat b {
    font-size: 1.5rem;
  }

  .page-hero .container {
    padding-bottom: 62px;
  }

  /* ---- Hero backdrop: match the emblem circle's framing (~50% of photo) ---- */
  .hero::before {
    background-size: 170% auto;
    background-position: center 25%;
  }
}

@media (max-width: 520px) {
  .section, .cta-band {
    padding: 58px 0;
  }

  .nav-top {
    padding: 9px 0 8px;
  }

  .nav-top .signet {
    width: 36px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-sub {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    line-height: 2.2;
  }

  .hero-tag {
    font-size: 0.95rem;
  }

  .hero .gold-rule {
    max-width: 280px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: min(320px, 100%);
  }

  .emblem {
    width: min(300px, 82vw);
    margin-top: 34px;
  }

  .emblem-tag {
    font-size: 0.46rem;
    letter-spacing: 0.16em;
  }

  .emblem-building {
    bottom: 9%;
    width: 78%;
  }

  .pub-box {
    margin-top: 70px;
    padding: 26px 22px 24px;
  }

  .eyebrow {
    letter-spacing: 0.3em;
  }

  .btn {
    padding: 13px 22px;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
  }

  .banner-box {
    gap: 0;
  }

  .banner-box .banner-line {
    display: none;
  }

  .banner-box .banner-text {
    white-space: normal;
    font-size: 0.6rem;
    letter-spacing: 0.24em;
    line-height: 1.8;
  }

  th, td {
    padding: 13px 16px;
    font-size: 0.85rem;
  }

  .card {
    padding: 24px 22px;
  }

  .card h3 {
    font-size: 0.95rem;
  }

  .member {
    padding: 24px 18px;
  }

  .contact-list li {
    padding: 16px 18px;
  }

  .team-pill {
    letter-spacing: 0.2em;
    padding: 7px 14px;
  }

  .footer-grid {
    padding-top: 30px;
    margin-top: 12px;
  }
}

/* ---------- Home emblem (mobile): no circles, enlarged, moved up ---------- */

@media (max-width: 960px) {
  .hero {
    padding-top: 24px;
  }

  .emblem {
    border: 0;
    width: 100%;
    max-width: 94vw;
    margin: 0 auto 0;
    transform: translate(2%, -25%);
  }

  .emblem::before,
  .emblem::after {
    display: none;
  }

  .emblem-core {
    padding: 0 4%;
    gap: 12px;
  }

  .emblem-core .brand {
    width: min(92vw, 560px);
  }

  .emblem-tag {
    display: none;
  }

  .emblem-building {
    display: none;
  }
}

/* ---------- Home emblem (desktop): no circles, raised tagline, enlarged logo ---------- */

@media (min-width: 961px) {
  .hero .eyebrow {
    margin-top: -90px;
  }

  .emblem {
    position: relative;
    width: min(560px, 80vw);
    aspect-ratio: auto;
    margin: 15px auto 0;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .emblem::before,
  .emblem::after {
    content: none;
  }

  .emblem-core {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
  }

  .emblem-core .brand {
    width: min(517px, 80vw);
  }

  .emblem-building {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    width: min(400px, 70vw);
    opacity: 0.5;
    pointer-events: none;
  }
}