/* =============================================
   Powering Together Lancaster
   Brand Colours:
   #ffffff  – Background 1
   #faf6f1  – Background 2 (warm off-white)
   #32620e  – Main highlight (headings)
   #a4d066  – Secondary highlight (buttons)
   ============================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-1: #ffffff;
  --bg-2: #faf6f1;
  --green-dark: #32620e;
  --green-light: #a4d066;
  --green-hover: #8abb50;
  --text: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--green-dark);
}

.logo-wrapper {
  position: relative;
  display: inline-block;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-lancaster {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 6px;
  border-radius: 3px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--green-light);
  color: var(--green-dark);
}

.btn-primary:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(164, 208, 102, 0.4);
}

.btn-nav {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-nav:hover {
  background: var(--green-hover);
  color: var(--green-dark) !important;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ── Hero ── */

.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-1) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.cta-card {
  background: var(--bg-1);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--green-light);
}

.cta-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.cta-card h2 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.cta-card p {
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ── Sections ── */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-2);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 48px;
}

.section-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 24px;
}

/* ── Grid Cards (Is This For You) ── */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-1);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Steps (How It Works) ── */

.step-card {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Register Form ── */

.register-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-1);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.form-section {
  margin-bottom: 32px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.required {
  color: #d32f2f;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-1);
}

.form-group input:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(164, 208, 102, 0.2);
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text);
}

.checkbox-label input,
.radio-label input {
  margin-top: 3px;
  accent-color: var(--green-dark);
}

.checkbox-label a {
  color: var(--green-dark);
  text-decoration: underline;
}

/* ── Map ── */

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  display: block;
}

/* ── Partners ── */

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo {
  background: var(--bg-1);
  border-radius: var(--radius);
  padding: 32px 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 200px;
  min-height: 100px;
}

.partner-logo img {
  max-height: 80px;
  max-width: 160px;
  object-fit: contain;
}

.partner-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* ── SVPP Section ── */

.svpp-content {
  max-width: 900px;
}

.svpp-intro {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text);
  line-height: 1.6;
}

.svpp-intro strong {
  color: var(--green-dark);
}

.svpp-graphic {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 40px;
  border-radius: var(--radius);
}

.svpp-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.svpp-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-2);
  padding: 24px;
  border-radius: var(--radius);
}

.svpp-step-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.svpp-step p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── FAQs ── */

.faqs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.faqs-header .section-title {
  margin-bottom: 0;
  text-align: left;
}

.faq-search input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: inherit;
  width: 260px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-1);
}

.faq-search input:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(164, 208, 102, 0.2);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--green-dark);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--green-dark);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.hidden {
  display: none;
}

/* ── Privacy Policy ── */

.privacy-policy {
  padding-top: 120px;
}

.privacy-policy h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--green-dark);
}

.privacy-policy h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.privacy-policy p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.privacy-policy ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.privacy-policy li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.privacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.privacy-header .section-title {
  margin-bottom: 0;
}

#editor {
  min-height: 400px;
  background: #fff;
}

.editor-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-secondary {
  background: var(--text-muted);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  opacity: 0.85;
}

/* ── Footer ── */

.footer {
  background: var(--green-dark);
  color: var(--text-white);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-contact h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-contact a {
  color: var(--green-light);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-links a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copy p {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-1);
    flex-direction: column;
    padding: 0 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease, visibility 0s 0.35s;
  }

  .nav-links.open {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    padding: 16px 24px 24px;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease, visibility 0s 0s;
  }

  .nav-links li {
    padding: 8px 0;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 32px;
  }

  .register-form {
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .faqs-header {
    flex-direction: column;
    align-items: stretch;
  }

  .faqs-header .section-title {
    text-align: center;
  }

  .faq-search input {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-card {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .partners-grid {
    flex-direction: column;
  }

  .partner-logo {
    min-width: unset;
    width: 100%;
  }
}
