/* Nucircle shared styles */
:root {
  --bg:        #F4EFE7;
  --bg-card:   #FBF8F2;
  --bg-soft:   #EFE9DE;
  --ink:       #111111;
  --ink-soft:  #2A2A2A;
  --ink-mute:  #5B5B5B;
  --line:      #D9D3C4;
  --mustard:   #D9A441;
  --sage:      #B4C4A8;
  --sky:       #A8C8D8;
  --terracotta:#C1553D;
  --terracotta-deep:#8F3E2C;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 6rem 0; }
@media (max-width: 768px) { section { padding: 4rem 0; } }

/* SKIP LINK — accessibility */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg-card);
  padding: 0.8rem 1.2rem;
  z-index: 1000;
  font-weight: 600;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* TOP BANNER */
.top-banner {
  background: var(--ink);
  color: var(--bg-card);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 500;
}
.top-banner a { color: inherit; text-decoration: underline; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nav-links {
  display: flex; gap: 1.8rem; align-items: center;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-cta {
  background: var(--ink);
  color: var(--bg-card) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: #000; color: var(--bg-card) !important; }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg-card);
}
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg-card); }
.btn-wa {
  background: #25D366;
  color: #fff;
}
.btn-wa:hover { background: #1FB955; transform: translateY(-1px); }

/* HEADINGS */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.02;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.italic { font-style: italic; font-weight: 400; }

/* SECTION HEAD */
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head .label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  margin-bottom: 1rem;
}
.section-head p {
  font-size: 1.08rem;
  color: var(--ink-mute);
  max-width: 560px;
}

/* CARDS */
.card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--line);
}

/* GROUPS GRID */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
@media (max-width: 680px) {
  .groups-grid { grid-template-columns: 1fr; }
}
.group-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.group-card h3 {
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
}
.group-card p {
  color: var(--ink-mute);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.group-card .group-cta {
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.95rem;
}


/* NAV GROUP DROPDOWN */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group-btn {
  background: none; border: none; padding: 0;
  font-family: inherit; font-size: inherit; color: var(--ink);
  cursor: pointer; display: flex; align-items: center; gap: 0.25rem;
  font-weight: 500;
}
.nav-group-btn:hover { color: var(--terracotta); }
.nav-group-menu {
  display: none;
  position: absolute; top: calc(100% + 0.75rem); left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.5rem; min-width: 230px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10); z-index: 200;
  flex-direction: column; gap: 0.1rem;
}
.nav-group:hover .nav-group-menu,
.nav-group:focus-within .nav-group-menu { display: flex; }
.nav-group-menu a {
  padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.92rem;
  color: var(--ink); display: block; white-space: nowrap; font-weight: 400;
}
.nav-group-menu a:hover { background: rgba(0,0,0,0.04); color: var(--terracotta); }

/* EVENT CARD */
.event-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: block;
}
.event-banner {
  padding: 0.9rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex; justify-content: space-between; align-items: center;
}
.event-banner.featured { background: var(--ink); color: var(--bg-card); }
.event-banner.upcoming { background: var(--sky); color: var(--ink); }
.event-body { padding: 2rem 1.8rem 2rem; }
.event-date {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.event-card h3 {
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  margin-bottom: 0.8rem;
}
.event-where {
  color: var(--ink-mute);
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
  line-height: 1.55;
}
.event-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.event-meta div { display: flex; flex-direction: column; }
.event-meta .lbl {
  font-size: 0.72rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.event-meta .v {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

/* FORM */
.form-shell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.4rem 2rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}
.form-row { margin-bottom: 1.2rem; }
.form-shell label,
.form-shell legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.form-shell input[type="text"],
.form-shell input[type="email"],
.form-shell input[type="tel"],
.form-shell textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--bg);
  color: var(--ink);
}
.form-shell input:focus,
.form-shell textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
  border-color: var(--terracotta);
}
.form-shell textarea { resize: vertical; min-height: 100px; }
.radio { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; }
.radio input { accent-color: var(--terracotta); }

/* FLOATING WHATSAPP */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  background: #25D366;
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* FOOTER */
.footer {
  background: var(--ink);
  color: var(--bg-card);
  padding: 4rem 0 2rem;
}
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
@media (max-width: 800px) { .footer .wrap { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.footer a { color: var(--bg-card); opacity: 0.75; display: block; padding: 0.25rem 0; font-size: 0.95rem; }
.footer a:hover { opacity: 1; color: var(--mustard); }
.footer-brand { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; margin-bottom: 0.6rem; }
.footer-tag { opacity: 0.7; font-size: 0.95rem; max-width: 320px; }
.footer-bottom {
  max-width: var(--max-w); margin: 3rem auto 0; padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between;
  font-size: 0.85rem; opacity: 0.6;
  flex-wrap: wrap; gap: 1rem;
}

/* PAGE HEADER (used on sub-pages) */
.page-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.page-hero .label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  margin-bottom: 1.4rem;
}
.page-hero .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.5;
}

/* QUOTE BLOCK */
.quote-block {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.6rem 2rem;
  border: 1px solid var(--line);
  text-align: center;
  max-width: 720px;
  margin: 2rem auto;
}
.quote-block blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1rem;
}
.quote-block cite {
  font-size: 0.95rem;
  color: var(--ink-mute);
  font-style: normal;
  font-weight: 500;
}

/* PROSE BLOCK */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.prose h2, .prose h3 { color: var(--ink); margin: 2rem 0 1rem; }
.prose h3 { font-size: 1.5rem; }
.prose p { margin-bottom: 1.2rem; }
.prose ul { list-style: none; padding: 0; }
.prose ul li {
  padding: 0.8rem 0 0.8rem 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.prose ul li:before {
  content: "";
  position: absolute;
  left: 0.4rem; top: 1.4rem;
  width: 8px; height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
}

/* TICK LIST */
.tick-list { list-style: none; padding: 0; }
.tick-list li {
  padding: 0.7rem 0 0.7rem 2.4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 1rem;
  color: var(--ink);
}
.tick-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 20px; height: 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--bg-card);
}
.tick-list li.done { color: var(--ink-mute); }
.tick-list li.done:before {
  background: var(--sage);
  border-color: var(--sage);
}
.tick-list li.done:after {
  content: "";
  position: absolute;
  left: 5px; top: 12px;
  width: 10px; height: 5px;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
}
.tick-list .group-head {
  padding: 1.6rem 0 0.4rem;
  border-bottom: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tick-list .group-head:before, .tick-list .group-head:after { display: none; }

/* COLOUR BAND SECTIONS */
.band-mustard { background: var(--mustard); }
.band-sage { background: var(--sage); }
.band-sky { background: var(--sky); }
.band-terracotta { background: var(--terracotta); color: var(--bg-card); }
.band-terracotta h2, .band-terracotta p { color: var(--bg-card); }
.band-terracotta .btn-primary { background: var(--bg-card); color: var(--ink); }
.band-terracotta .btn-primary:hover { background: #fff; }
