/* Llanrumney Community Notice — shared styles
   Leaflet-inspired: near-black background, orange-red accent, bold white type */

:root {
  --bg: #141414;
  --bg-panel: #1c1c1c;
  --accent: #ff4400;
  --accent-dark: #d63a00;
  --white: #ffffff;
  --gray: #c9c9c9;
  --gray-dim: #8f8f8f;
  --border: rgba(255,255,255,0.12);
  --max-width: 1100px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: #0d0d0d;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.brand-title span {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.welsh-flag {
  width: 40px;
  height: 26px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
  object-fit: cover;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--white);
}

/* ---------- Hamburger toggle (mobile) ---------- */

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 6px;
  width: 44px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle .bars {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  nav.main-nav {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  nav.main-nav.nav-open {
    max-height: 320px;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
  }

  nav.main-nav a {
    display: block;
    padding: 12px 14px;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, #111 0%, #161616 100%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero .eyebrow {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 20px;
  max-width: 820px;
}

.hero h1 em {
  font-style: normal;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 680px;
  margin: 0 0 28px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 0.9rem;
  padding: 14px 26px;
  border-radius: 6px;
  transition: transform 0.12s, background 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: #111; }

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

section { padding: 56px 0; }

.section-alt { background: var(--bg-panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

h2.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.section-kicker {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  margin: 0 0 8px;
}

.section-intro {
  color: var(--gray);
  max-width: 720px;
  margin: 0 0 36px;
  font-size: 1.05rem;
}

/* ---------- Numbered cards ---------- */

.numbered-list { display: grid; gap: 28px; }

.numbered-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
}

.circle-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.numbered-item h3 {
  margin: 4px 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.numbered-item p {
  margin: 0;
  color: var(--gray);
}

/* ---------- Cards grid (home highlights) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card .circle-num { width: 44px; height: 44px; font-size: 1rem; margin-bottom: 14px; }

.card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; }
.card p { margin: 0; color: var(--gray); font-size: 0.95rem; }

/* ---------- Callout / CTA ---------- */

.callout {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.callout h2 { margin: 0 0 6px; font-size: 1.6rem; font-weight: 800; }
.callout p { margin: 0; color: rgba(255,255,255,0.9); }

.callout .btn-outline { border-color: var(--white); }
.callout .btn-outline:hover { background: var(--white); color: var(--accent-dark); }

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-card h3 { margin: 0 0 2px; font-size: 1.1rem; font-weight: 800; }
.contact-card .role { color: var(--accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; display: block; }
.contact-card p { margin: 4px 0; color: var(--gray); font-size: 0.95rem; }
.contact-card a { color: var(--white); font-weight: 700; text-decoration: none; }
.contact-card a:hover { color: var(--accent); }

/* ---------- Resource list ---------- */

.resource-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.resource-item .tag {
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.resource-item .resource-body { flex: 1; min-width: 200px; }
.resource-item h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; }
.resource-item p { margin: 0 0 10px; color: var(--gray); }

.resource-item.resource-video {
  align-items: flex-start;
}

.video-embed {
  width: 220px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.video-embed video {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

@media (max-width: 560px) {
  .video-embed { width: 100%; max-width: 260px; margin: 0 auto; }
}

.note-box {
  background: rgba(255,68,0,0.08);
  border: 1px solid rgba(255,68,0,0.35);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--gray);
  font-size: 0.92rem;
  margin: 24px 0;
}
.note-box strong { color: var(--white); }

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

.site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-tagline {
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  color: var(--white);
}

.footer-meta {
  color: var(--gray-dim);
  font-size: 0.85rem;
}

/* ---------- Utility ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .numbered-item { grid-template-columns: 48px 1fr; }
  .circle-num { width: 44px; height: 44px; font-size: 0.95rem; }
}
