/* =========================================================
   Hibiscus Coast Naturists — main stylesheet
   ========================================================= */

/* ---------- root variables ---------- */
:root {
  --teal:       #2a7f72;
  --teal-dark:  #1d5c52;
  --teal-light: #3aaa98;
  --sand:       #f5ede0;
  --sand-dark:  #e8d9c5;
  --coral:      #d9614c;
  --coral-light:#e8856e;
  --white:      #ffffff;
  --charcoal:   #2c2c2c;
  --mid-grey:   #6b7280;
  --light-grey: #f9fafb;
  --font-body:  'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-head:  'Playfair Display', Georgia, serif;
  --transition: 0.3s ease;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

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

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--charcoal);
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--mid-grey);
  max-width: 600px;
}

/* ---------- layout helpers ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 90px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42,127,114,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.btn-coral:hover {
  background: #c0503c;
  border-color: #c0503c;
  color: var(--white);
  transform: translateY(-2px);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  transition: all var(--transition);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
  padding: 0.4rem 0;
}

#navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 156px;
  height: 156px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo .logo-icon img {
  width: 156px;
  height: 156px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-logo .logo-text {
  line-height: 1.2;
}

.nav-logo .logo-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--charcoal);
  transition: color var(--transition);
}

.nav-logo .logo-text span {
  font-size: 2.16rem;
  color: var(--mid-grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#navbar:not(.scrolled) .nav-logo .logo-text strong { color: var(--white); }
#navbar:not(.scrolled) .nav-logo .logo-text span { color: rgba(255,255,255,0.7); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color var(--transition);
}

#navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.9); }
#navbar:not(.scrolled) .nav-links a:hover { color: var(--white); }
.nav-links a:hover { color: var(--teal); }

.nav-cta { margin-left: 0.5rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
  display: block;
}
#navbar.scrolled .hamburger span { background: var(--charcoal); }

/* =========================================================
   HERO
   ========================================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right, rgba(20,80,70,0.72) 0%, rgba(10,40,60,0.55) 60%, rgba(0,0,0,0.35) 100%),
    url('img/hero-bg.jpg') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 140px 1.5rem 100px;
  max-width: 780px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 0.35rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.95);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-content h1 em {
  font-style: italic;
  color: #a8dbd4;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 3rem;
  z-index: 1;
}

.hero-stat {
  text-align: center;
  color: var(--white);
}
.hero-stat .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.scroll-indicator {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}
.scroll-indicator svg { color: rgba(255,255,255,0.6); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =========================================================
   ABOUT
   ========================================================= */
#about { background: var(--white); }

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

.about-img-accent img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.about-text { padding-left: 1rem; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.value-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal-dark);
}

.value-chip .dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =========================================================
   WHY NATURISM
   ========================================================= */
#why { background: var(--light-grey); }

.why-header { text-align: center; margin-bottom: 3rem; }
.why-header .section-subtitle { margin: 0 auto; }

.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--teal);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  background: rgba(42,127,114,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.7rem;
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.benefit-card p {
  font-size: 0.92rem;
  color: var(--mid-grey);
  line-height: 1.65;
}

/* =========================================================
   ACTIVITIES
   ========================================================= */
#activities { background: var(--white); }

.activities-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.activity-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 160px;
  cursor: pointer;
}

/* Compact height when no image has loaded */
.activity-card:has(img:not([src])) {
  aspect-ratio: unset;
  height: 160px;
}

.activity-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover img { transform: scale(1.07); }

.activity-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,60,50,0.90) 0%, rgba(20,60,50,0.25) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--white);
}

.activity-overlay h4 {
  font-size: 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.activity-overlay p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

/* =========================================================
   LOCATION
   ========================================================= */
#location { background: var(--sand); }

.location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 380px;
  background: #d4e8e4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.location-detail .icon {
  width: 44px;
  height: 44px;
  background: rgba(42,127,114,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.location-detail h4 {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  margin-bottom: 0.25rem;
}

.location-detail p {
  font-size: 0.9rem;
  color: var(--mid-grey);
}

/* =========================================================
   MEMBERSHIP
   ========================================================= */
#join { background: var(--teal); position: relative; overflow: hidden; }

#join::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

#join::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.join-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.join-text h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.join-text p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.membership-tiers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.tier-card:hover { background: rgba(255,255,255,0.20); }

.tier-card.featured {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
}

.tier-info h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
}

.tier-info p {
  color: rgba(255,255,255,0.7);
  font-size: 0.83rem;
  margin-top: 0.2rem;
}

.tier-price {
  text-align: right;
  flex-shrink: 0;
}

.tier-price .amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.tier-price .period {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}

/* =========================================================
   FAQ
   ========================================================= */
#faq { background: var(--light-grey); }

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.5rem;
  align-items: start;
}

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 1rem;
  user-select: none;
}

.faq-question:hover { color: var(--teal); }

.faq-question .arrow {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--teal);
  font-size: 1.2rem;
}

.faq-item.open .faq-question .arrow { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 1.4rem 1.1rem;
  font-size: 0.92rem;
  color: var(--mid-grey);
  line-height: 1.7;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 0.9rem;
}

.faq-item.open .faq-answer { display: block; }

/* =========================================================
   CONTACT
   ========================================================= */
#contact { background: var(--white); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--light-grey);
  border-radius: var(--radius);
  padding: 2.25rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,127,114,0.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--mid-grey);
  margin-bottom: 1.25rem;
}

.form-check input { width: auto; margin-top: 3px; }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #1a2e28;
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-text span { color: rgba(255,255,255,0.5); }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: rgba(255,255,255,0.6);
}

.footer-col h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--teal-light); }

.nfnz-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.07);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  margin-top: 1rem;
  display: inline-flex;
}
.nfnz-badge:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  section { padding: 65px 0; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,46,40,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; color: var(--white) !important; }
  .nav-cta .btn { font-size: 1.1rem; }
  #closeNav { display: block !important; }

  .grid-2, .about-values, .activities-intro,
  .join-inner, .contact-inner, .faq-inner,
  .location-inner, .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .about-img-accent { display: none; }

  .hero-stats { gap: 1.5rem; }

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

  .footer-grid { gap: 2rem; }
}

@media (max-width: 540px) {
  .grid-4, .activity-grid, .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .about-values { grid-template-columns: 1fr; }
  .tier-card { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .tier-price { text-align: left; }
}

/* =========================================================
   INNER CONTENT PAGES  (privacy.php, conduct.php, legal.php)
   ========================================================= */

.inner-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: 190px 0 55px;
  text-align: center;
  color: var(--white);
}

.inner-hero .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.9rem;
}
.inner-hero .breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition);
}
.inner-hero .breadcrumb a:hover { color: var(--white); }
.inner-hero .breadcrumb span { margin: 0 0.4rem; }

.inner-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.inner-hero .page-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0.5rem auto 0;
  line-height: 1.6;
}

.inner-hero .updated {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
  display: block;
}

/* Content wrapper */
.content-page {
  padding: 65px 0 90px;
  background: var(--white);
}

.content-layout {
  max-width: 800px;
  margin: 0 auto;
}

/* Table of contents */
.content-toc {
  background: var(--light-grey);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.75rem;
  font-size: 0.88rem;
}

.content-toc h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 0.7rem;
}

.content-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}

.content-toc li { margin-bottom: 0.3rem; }
.content-toc a { color: var(--teal); font-weight: 500; }
.content-toc a:hover { color: var(--teal-dark); }

/* Prose typography */
.content-layout h2 {
  font-size: 1.45rem;
  margin: 2.75rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  color: var(--teal-dark);
  scroll-margin-top: 100px;
}

.content-layout h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-layout h3 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin: 1.5rem 0 0.45rem;
  color: var(--charcoal);
}

.content-layout p {
  color: #4b5563;
  margin-bottom: 1rem;
  font-size: 0.97rem;
  line-height: 1.85;
}

.content-layout ul,
.content-layout ol {
  color: #4b5563;
  font-size: 0.97rem;
  line-height: 1.85;
  margin: 0.4rem 0 1rem 1.4rem;
}

.content-layout li { margin-bottom: 0.35rem; }

.content-layout a { color: var(--teal); }
.content-layout a:hover { color: var(--teal-dark); }

.content-layout a.btn,
.content-layout a.btn:hover { color: var(--white); }

.content-layout strong { color: var(--charcoal); font-weight: 600; }

/* Highlighted call-out box */
.info-box {
  background: rgba(42,127,114,0.07);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.2rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  color: var(--teal-dark);
  line-height: 1.7;
}

.warning-box {
  background: rgba(217,97,76,0.07);
  border-left: 3px solid var(--coral);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.2rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  color: #8b3320;
  line-height: 1.7;
}

/* Conduct principle cards */
.conduct-principle {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--light-grey);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.conduct-principle .cp-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1;
}

.conduct-principle h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--charcoal);
}

.conduct-principle p {
  font-size: 0.88rem;
  color: var(--mid-grey);
  margin: 0;
  line-height: 1.6;
}

/* Legal definition table */
.def-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
}

.def-table th {
  text-align: left;
  padding: 0.6rem 0.9rem;
  background: var(--light-grey);
  font-weight: 700;
  color: var(--charcoal);
  border-bottom: 2px solid #e5e7eb;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.def-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #f0f0f0;
  color: #4b5563;
  vertical-align: top;
  line-height: 1.6;
}

.def-table td:first-child { font-weight: 600; color: var(--charcoal); white-space: nowrap; }

/* Page-switcher pills at bottom of content pages */
.page-nav {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  background: var(--light-grey);
  color: var(--charcoal);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}

.page-nav a:hover {
  background: var(--teal);
  color: var(--white);
}

@media (max-width: 680px) {
  .content-toc ol { columns: 1; }
}

/* =========================================================
   JOIN FORM (join-form.php)
   ========================================================= */
.join-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.join-section-heading {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--teal-dark);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sand-dark);
}

.join-section-heading:first-of-type { margin-top: 0; }

.join-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.join-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

.join-field label,
.join-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.req { color: var(--coral); margin-left: 0.1rem; }

.join-opt {
  font-weight: 400;
  color: var(--mid-grey);
  font-size: 0.8rem;
}

.join-field input[type="text"],
.join-field input[type="email"],
.join-field input[type="tel"],
.join-field select,
.join-field textarea {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--charcoal);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.join-field input:focus,
.join-field select:focus,
.join-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,127,114,0.12);
}

.join-field textarea { resize: vertical; min-height: 80px; }

.join-hint {
  font-size: 0.8rem;
  color: var(--mid-grey);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Radios */
.join-radios {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.join-radio {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.join-radio input { width: 16px; height: 16px; accent-color: var(--teal); cursor: pointer; }

/* Checkboxes grid */
.join-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}

.join-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.join-checkbox input { width: 16px; height: 16px; accent-color: var(--teal); cursor: pointer; flex-shrink: 0; }

/* Consent */
.join-consent {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--light-grey);
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.join-consent-label {
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  color: var(--charcoal) !important;
  cursor: pointer;
}

.join-consent-label a { color: var(--teal); }

/* Submit */
.join-btn {
  margin-top: 1.5rem;
  padding: 0.85rem;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
  text-align: center;
  display: block;
  text-decoration: none;
}

.join-btn:hover { background: var(--teal-dark); color: var(--white); }

/* Flash messages */
.join-msg {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.join-msg-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Success / error state boxes */
.join-success-box,
.join-error-box {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--light-grey);
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
}

.join-success-icon,
.join-error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.join-success-box h2,
.join-error-box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.join-success-box p,
.join-error-box p {
  color: var(--mid-grey);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .join-row { grid-template-columns: 1fr; }
  .join-checkboxes { grid-template-columns: 1fr 1fr; }
}
