/* CrowdEvents — Global Stylesheet
   Design: Bold editorial, warm palette, angled sections
   Palette: Coral #D4654A, Charcoal #2D2D2D, Gold #E8A838, Cream #FFF8F0
   Typography: Bitter (headings), Source Sans 3 (body)
*/

@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

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

:root {
  --coral: #D4654A;
  --coral-dark: #B84D35;
  --charcoal: #2D2D2D;
  --gold: #E8A838;
  --cream: #FFF8F0;
  --cream-dark: #F5EDE0;
  --brown-light: #8C7A6B;
  --brown: #5C4A3A;
  --white: #FFFFFF;
  --text: #2D2D2D;
  --text-light: #6B6157;
  --heading-font: 'Bitter', Georgia, serif;
  --body-font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1120px;
  --radius: 6px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); }

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

/* ---- HEADER / NAV ---- */

.site-header {
  background: var(--charcoal);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

/* ---- HERO ---- */

.hero {
  background:
    linear-gradient(135deg, rgba(45,45,45,0.95) 0%, rgba(45,45,45,0.85) 100%),
    repeating-conic-gradient(rgba(212,101,74,0.03) 0% 25%, transparent 0% 50%) 0 0 / 60px 60px;
  padding: 80px 0 120px;
  position: relative;
  color: var(--white);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 30%, rgba(232,168,56,0.06) 100%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 680px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-sub {
  padding: 60px 0 0;
  color: var(--white);
  background: var(--charcoal);
  position: relative;
}

.hero-sub::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-sub h1 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-sub p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  padding-bottom: 80px;
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

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

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-gold:hover {
  background: #D49A2E;
  color: var(--charcoal);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--cream-dark);
}

.btn-outline-dark:hover {
  border-color: var(--charcoal);
}

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- SECTIONS ---- */

section { padding: 80px 0; }
.section-cream { background: var(--cream); }

.section-angled {
  position: relative;
  background: var(--cream);
}

.section-angled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.section-angled::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.section-title {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ---- PILLARS (3 col) ---- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(45,45,45,0.08);
}

.pillar-header {
  padding: 28px 24px 20px;
  color: var(--white);
}

.pillar-card:nth-child(1) .pillar-header { background: var(--coral); }
.pillar-card:nth-child(2) .pillar-header { background: var(--charcoal); }
.pillar-card:nth-child(3) .pillar-header { background: var(--gold); color: var(--charcoal); }

.pillar-header h3 {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 700;
}

.pillar-body {
  padding: 24px;
}

.pillar-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.65;
}

/* ---- STATS ---- */

.stats-band {
  background: var(--charcoal);
  padding: 56px 0;
  position: relative;
}

.stats-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.stats-band::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.stat-item h3 {
  font-family: var(--heading-font);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ---- TESTIMONIALS ---- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-card cite {
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-light);
  font-weight: 600;
}

/* ---- EVENT GRID ---- */

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  transition: box-shadow 0.2s;
}

.event-card:hover {
  box-shadow: 0 4px 24px rgba(45,45,45,0.08);
}

.event-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}

.event-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.03) 10px,
    rgba(255,255,255,0.03) 20px
  );
}

.event-card:nth-child(6n+1) .event-banner { background: var(--coral); }
.event-card:nth-child(6n+2) .event-banner { background: var(--charcoal); }
.event-card:nth-child(6n+3) .event-banner { background: var(--gold); color: var(--charcoal); }
.event-card:nth-child(6n+4) .event-banner { background: #4A7C6F; }
.event-card:nth-child(6n+5) .event-banner { background: #6B5B8A; }
.event-card:nth-child(6n+6) .event-banner { background: #3D6B8E; }

.event-body {
  padding: 20px;
}

.event-body h3 {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.event-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

/* ---- SERVICES ---- */

.services-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.service-item:nth-child(even) {
  direction: rtl;
}

.service-item:nth-child(even) > * {
  direction: ltr;
}

.service-visual {
  height: 280px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.service-item:nth-child(1) .service-visual { background: var(--coral); }
.service-item:nth-child(2) .service-visual { background: var(--charcoal); }
.service-item:nth-child(3) .service-visual { background: var(--gold); color: var(--charcoal); }

.service-content h3 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.service-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.65;
}

.service-content ul {
  list-style: none;
  margin-top: 16px;
}

.service-content li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 5px 0 5px 20px;
  position: relative;
}

.service-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---- BLOG ---- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.blog-card {
  padding: 28px;
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.2s;
}

.blog-card:nth-child(even) {
  border-left-color: var(--gold);
}

.blog-card:hover {
  box-shadow: 0 4px 24px rgba(45,45,45,0.06);
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--brown-light);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--coral); }

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Blog post */

.post-header {
  padding: 0 0 32px;
}

.post-header h1 {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  max-width: 720px;
}

.post-meta-block {
  font-size: 0.85rem;
  color: var(--brown-light);
  margin-top: 10px;
}

.post-body {
  max-width: 720px;
  padding-bottom: 80px;
}

.post-body h2 {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 36px;
  margin-bottom: 14px;
}

.post-body p {
  margin-bottom: 16px;
  color: var(--text);
}

.post-body ul, .post-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.post-body li { margin-bottom: 6px; }

.post-body blockquote {
  border-left: 4px solid var(--coral);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-light);
  font-style: italic;
}

/* ---- TEAM GRID ---- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.team-member:nth-child(4n+1) .team-avatar { background: var(--coral); }
.team-member:nth-child(4n+2) .team-avatar { background: var(--charcoal); }
.team-member:nth-child(4n+3) .team-avatar { background: var(--gold); color: var(--charcoal); }
.team-member:nth-child(4n+4) .team-avatar { background: #4A7C6F; }

.team-member h4 {
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
}

.team-member p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ---- CONTACT / FORM ---- */

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--body-font);
  font-size: 0.9rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
}

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

.contact-details h3 {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
  margin-top: 24px;
}

.contact-details h3:first-child { margin-top: 0; }

.contact-details p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

/* ---- CTA BAND ---- */

.cta-band {
  background: var(--coral);
  padding: 64px 0;
  text-align: center;
  position: relative;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.cta-band h2 {
  font-family: var(--heading-font);
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}

/* ---- IMAGE BAND ---- */

.img-band {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.img-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.img-band .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.img-band .overlay h2 {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  max-width: 520px;
}

.img-band .overlay p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* ---- FOOTER ---- */

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .logo {
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  display: block;
  padding: 4px 0;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}

/* ---- LEGAL ---- */

.legal-body {
  max-width: 720px;
  padding: 60px 0 80px;
}

.legal-body h1 {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--brown-light);
  margin-bottom: 36px;
}

.legal-body h2 {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-body p, .legal-body li {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-body ul { padding-left: 20px; margin-bottom: 16px; }

/* ---- 404 ---- */

.error-page {
  text-align: center;
  padding: 140px 24px;
}

.error-page h1 {
  font-family: var(--heading-font);
  font-size: 7rem;
  font-weight: 700;
  color: var(--cream-dark);
  line-height: 1;
}

.error-page p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 12px 0 28px;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .pillars,
  .testimonials,
  .events-grid { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-split { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 1fr; }
  .service-item:nth-child(even) { direction: ltr; }
  .blog-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: 2.4rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--charcoal);
    padding: 16px 24px;
    gap: 14px;
    z-index: 50;
  }
  .nav-toggle { display: block; }

  .hero { padding: 48px 0 100px; }
  .hero h1 { font-size: 2rem; }
  section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
