/* sorchaoneill.ie - personal landing page
   Loaded alongside style.css; only used by the root index.html. */

.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.home-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.home-header .brand {
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-text);
}
.home-header nav ul {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.home-header nav a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.home-header nav a:hover { background: var(--color-surface-alt); color: var(--color-text); }

/* Profile hero */
.profile-hero {
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-bg) 85%);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 0;
}
.profile-hero .wrap {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-surface);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.profile-intro { flex: 1; min-width: 260px; }

.party-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.party-badge:hover { transform: translateY(-2px); }
.party-badge img {
  display: block;
  width: 170px;
  height: auto;
}
.profile-intro .eyebrow {
  display: inline-block;
  /* fixed dark purple, not the mode-dependent --color-primary var - see
     .campaign-cta comment below and style.css's .skip-link comment */
  background: #3f1f66;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.profile-intro h1 { margin-bottom: 0.4rem; }
.profile-intro p.lede { font-size: 1.1rem; color: var(--color-text-muted); max-width: 55ch; margin-bottom: 0; }

/* Who I am */
.bio-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.bio-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}
.bio-list .bio-icon {
  flex-shrink: 0;
  width: 1.6rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.5;
}
.bio-list .bio-text strong { display: block; color: var(--color-text); }
.bio-list .bio-text span { color: var(--color-text-muted); font-size: 0.92rem; }

/* Campaign CTA card */
.campaign-cta {
  /* fixed dark purple, not the mode-dependent --color-primary-dark var, which
     flips to a *lighter* purple in dark mode and would kill contrast against
     the white text below */
  background: #3f1f66;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.campaign-cta .cta-text { flex: 1; min-width: 240px; }
.campaign-cta .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.campaign-cta h2 { color: #fff; border: none; margin: 0 0 0.5rem; padding: 0; }
.campaign-cta p { color: rgba(255,255,255,0.85); margin: 0; max-width: 55ch; }
.campaign-cta .btn-accent { flex-shrink: 0; }

/* Contact */
.contact-block { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.contact-block .btn { flex-shrink: 0; }

@media (max-width: 640px) {
  .profile-hero .wrap { flex-direction: column; text-align: center; }
  .profile-intro p.lede { max-width: none; }
  .campaign-cta { flex-direction: column; text-align: center; }
}
