/* ============================================================
   SEOnerdSwitzerland — Main Stylesheet
   Brand: #5CE1E6 (blue) | #FF914D (orange) | #FFE762 (yellow)
   Fonts: Prompt Bold/Light (titles/body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;700&display=swap');

/* --- CSS Custom Properties ---------------------------------- */
:root {
  --blue:    #5CE1E6;
  --orange:  #FF914D;
  --yellow:  #FFE762;
  --dark:    #222222;
  --mid:     #555555;
  --light:   #f7f7f7;
  --white:   #ffffff;

  --font-title: 'Prompt', Arial, sans-serif;
  --font-body:  'Prompt', Arial, sans-serif;

  --radius: 8px;
  --max-width: 1100px;
  --spacing: 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 1.05rem;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }

p  { margin-bottom: 1rem; max-width: 68ch; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 700; }

/* --- Layout Helpers ----------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

.section {
  padding: 5rem var(--spacing);
}

.section--alt {
  background: var(--light);
}

.section--blue   { background: var(--blue); }
.section--yellow { background: var(--yellow); }
.section--orange { background: var(--orange); color: var(--white); }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

.btn--primary   { background: var(--orange); color: var(--white); }
.btn--secondary { background: var(--blue);   color: var(--dark);  }
.btn--yellow    { background: var(--yellow); color: var(--dark);  }
.btn--outline   { background: transparent; border: 2px solid var(--dark); color: var(--dark); }

/* --- Navigation -------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--yellow);
  padding: 0 var(--spacing);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 48px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
  text-decoration: none;
}

/* "Join on Meetup" nav button — override hover so it's accessible (not same orange as btn) */
.nav-links .nav-meetup-btn:hover {
  opacity: 0.82;
  color: var(--white);
  border-bottom-color: transparent;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 3px solid var(--yellow);
    padding: 1rem 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.75rem var(--spacing); border-bottom: none; }
}

/* --- Hero -------------------------------------------------- */
.hero {
  background: var(--yellow);
  padding: 5rem var(--spacing) 4rem;
  position: relative;
  overflow: hidden;
}

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

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 { margin-bottom: 1.2rem; }
.hero-text p  { font-size: 1.15rem; max-width: 52ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image img {
  border-radius: var(--radius);
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
/* alias for dual-image hero */
.hero-images img { display: block; }

/* Decorative dots */
.hero-dots {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.hero-dots span {
  border-radius: 50%;
  display: block;
}
.dot-1 { width: 18px; height: 18px; background: var(--orange); }
.dot-2 { width: 26px; height: 26px; background: var(--blue); }
.dot-3 { width: 14px; height: 14px; background: var(--dark); }

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
}

/* --- Stats Strip -------------------------------------------- */
.stats {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem var(--spacing);
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 2.4rem;
  font-family: var(--font-title);
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-item span { font-size: 0.95rem; opacity: 0.85; }

/* --- Cards -------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* 2-column variant for speaker perks section */
.cards--2col {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 600px) {
  .cards--2col { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 5px solid var(--blue);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.card--orange { border-left-color: var(--orange); }
.card--yellow { border-left-color: var(--yellow); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* --- Sponsor Packages --------------------------------------- */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.package {
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  position: relative;
  overflow: hidden;
}

.package--bicycle { border-top: 6px solid var(--blue); }
.package--pony    { border-top: 6px solid var(--orange); }
.package--rocket  { border-top: 6px solid var(--yellow); background: var(--dark); color: var(--white); }
.package--rocket h3 { color: var(--yellow); }
.package--rocket li { color: var(--white); }

.package-price {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
}
.package--bicycle .package-price { color: var(--blue); }
.package--pony    .package-price { color: var(--orange); }
.package--rocket  .package-price { color: var(--yellow); }

.package ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.package li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.package li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--orange);
}
.package--rocket li::before { color: var(--yellow); }

/* --- Speaker Grid ------------------------------------------- */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.speaker-card {
  text-align: center;
}
.speaker-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--yellow);
}
.speaker-card .name  { font-weight: 700; margin-bottom: 0.2rem; }
.speaker-card .title { font-size: 0.9rem; color: var(--mid); }

/* --- Events ------------------------------------------------- */
.events-list { list-style: none; padding: 0; }
.event-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e5e5;
}
.event-item:last-child { border-bottom: none; }

.event-date {
  background: var(--yellow);
  border-radius: var(--radius);
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.1;
}
.event-date .day   { font-size: 1.8rem; display: block; }
.event-date .month { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.event-info h3 { margin-bottom: 0.25rem; }
.event-info p  { margin: 0; color: var(--mid); font-size: 0.95rem; }

.event-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.tag--upcoming { background: var(--blue); color: var(--dark); }
.tag--past     { background: #e5e5e5; color: var(--mid); }

/* --- CTA Banner -------------------------------------------- */
.cta-banner {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 4rem var(--spacing);
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { margin: 0 auto 2rem; max-width: 55ch; font-size: 1.1rem; }

/* --- Contact ----------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h3 { margin-bottom: 1rem; color: var(--orange); }
.contact-info p a { color: var(--orange); }

.organizer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.organizer img {
  width: 72px;
  height: 72px;
  min-height: 72px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--blue);
}
.organizer-info .name  { font-weight: 700; }
.organizer-info .role  { font-size: 0.9rem; color: var(--mid); }

/* --- Page Header (inner pages) ----------------------------- */
.page-header {
  background: var(--yellow);
  padding: 4rem var(--spacing) 3rem;
  position: relative;
  overflow: hidden;
}
.page-header--orange { background: var(--orange); }
.page-header--orange h1,
.page-header--orange p { color: var(--white); }
.page-header--orange::after { background: var(--white); }

.page-header--blue { background: var(--blue); }

.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p  { font-size: 1.15rem; max-width: 60ch; }

/* --- Testimonials ------------------------------------------ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-left: 5px solid var(--yellow);
}

.testimonial-stars {
  color: var(--orange);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--mid);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0;
  color: var(--dark);
}

/* --- Event Gallery ----------------------------------------- */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--mid);
  background: var(--light);
}

/* --- Video embed ------------------------------------------- */
.video-grid { display: flex; flex-direction: column; gap: 1rem; max-width: 700px; }

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* --- Muted / inactive card --------------------------------- */
.card--muted {
  border-left-color: #ccc;
  opacity: 0.65;
}

.badge-inactive {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background: #e0e0e0;
  color: var(--mid);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 0.4rem;
}

/* --- Packages row layout ----------------------------------- */
.packages--row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .packages--row { grid-template-columns: 1fr; }
}

/* Override rocket package: no dark background */
.package--rocket {
  border-top: 6px solid var(--blue);
  background: var(--white);
  color: var(--dark);
}
.package--rocket h3 { color: var(--dark); }
.package--rocket li { color: var(--dark); }
.package--rocket .package-price { color: var(--blue); }


/* --- Footer ------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem var(--spacing) 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand img { height: 44px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; max-width: 36ch; }

.footer-links h4 {
  color: var(--yellow);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a  { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-social { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.85rem;
  transition: background 0.2s;
}
.social-link:hover { background: var(--orange); text-decoration: none; color: var(--white); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* --- Organizer Cards (home page) --------------------------- */
.organizers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.organizer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 5px solid var(--blue);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  overflow: hidden;
}

.organizer-card:nth-child(2) { border-left-color: var(--orange); }

.organizer-photo {
  width: 120px;
  height: 120px;
  min-height: 120px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 4px solid var(--blue);
}
.organizer-card:nth-child(2) .organizer-photo { border-color: var(--orange); }

.organizer-info { min-width: 0; }
.organizer-info h3 { margin-bottom: 0.2rem; }
.organizer-region { color: var(--mid); font-size: 0.9rem; margin-bottom: 0.5rem; }
.organizer-info p:last-child { margin: 0; }

@media (max-width: 600px) {
  .organizer-card { flex-direction: column; align-items: center; text-align: center; }
}

/* --- Hero Images (dual layout) ----------------------------- */
.hero-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.hero-img--top    { height: 220px; max-height: 220px; object-position: center top; }
.hero-img--bottom { height: 200px; max-height: 200px; object-position: center top; }

@media (max-width: 800px) {
  .hero-images { order: -1; }
  .hero-img--top    { max-height: 200px; }
  .hero-img--bottom { max-height: 180px; }
}

/* Hero figcaptions — smaller text */
.hero-images figcaption {
  font-size: 0.72rem;
  color: var(--mid);
  margin-top: -0.25rem;
  padding: 0 0.25rem;
}

/* --- Utility ----------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }

.highlight { background: var(--yellow); padding: 0 0.3em; border-radius: 3px; }

/* --- Prose (markdown content) ------------------------------ */
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { max-width: 72ch; }
.prose a { color: var(--orange); text-decoration: underline; }

/* --- Code of Conduct accordion-style items ----------------- */
.faq-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 1.25rem 0;
}
.faq-item h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.faq-item p { margin: 0; color: var(--mid); }

/* --- Past Events Accordion --------------------------------- */
.accordion-year {
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 0.25rem;
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
  text-align: left;
}

.accordion-trigger:hover { color: var(--orange); }

.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.accordion-year[open] .accordion-icon,
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  padding-bottom: 1rem;
}

.accordion-events {
  list-style: none;
  padding: 0;
}

.accordion-event-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.accordion-event-item:last-child { border-bottom: none; }

/* --- Full-width Photo Gallery ------------------------------ */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.photo-gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.photo-gallery-item:hover img { transform: scale(1.03); }

.photo-gallery-item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--mid);
  background: var(--light);
}

/* --- Recording link (inline in accordion events) ----------- */
.recording-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.recording-link:hover { text-decoration: underline; }

/* --- Recordings list --------------------------------------- */
.recordings-list {
  list-style: none;
  padding: 0;
  max-width: 680px;
}
.recordings-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.95rem;
}
.recordings-list li:last-child { border-bottom: none; }
.recordings-list a { color: var(--orange); }
.recordings-list a:hover { text-decoration: underline; }
.recording-year {
  font-size: 0.8rem;
  color: var(--mid);
  white-space: nowrap;
  flex-shrink: 0;
}
