/*
 * Purple Poncho Club — Fluid Purple Theme
 *
 * This stylesheet is crafted from scratch to bring a polished, editorial
 * feel to the Purple Poncho Club website. Drawing inspiration from
 * Squarespace’s Forma fluid demo and the minimalist travel blogs like
 * Salt in Our Hair, it uses generous white space, a flexible grid
 * system and a refined purple colour palette. Large headings and
 * simplified layouts guide the reader’s eye, while soft rounded
 * shapes and gentle shadows add warmth. Every section adapts
 * gracefully on smaller screens.
 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}

/* Colour palette
 *
 * A sophisticated purple scheme inspired by high‑end travel blogs and 
 * modern Squarespace templates. Primary tones lean deeper and more
 * saturated for contrast while backgrounds remain soft and off‑white.
 */
:root {
  --primary: #6b3299;   /* rich royal purple used for accents and headings */
  --secondary: #8b4dbb; /* mid‑tone purple for hover states */
  --background: #faf6ff;/* very pale lilac for page background */
  --surface: #ffffff;   /* white for cards and panels */
  --text: #30214d;      /* dark eggplant for body copy */
  --muted: #6c5a88;     /* muted purple for subheadings and captions */
  --accent: #e5d9f5;    /* light lavender used on hover and subtle fills */
}

/* Typography */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.8rem; line-height: 1.2; }
h3 { font-size: 1.6rem; line-height: 1.3; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

/* Navigation bar */
/* Navigation bar
 *
 * A floating header that blends into the page. The left side contains
 * the wordmark; the right side presents navigation items as subtle
 * pill buttons. A gentle blur ensures legibility over the hero.
 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}
.logo-img {
  height: 56px;
  width: auto;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-links a:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Hero section
 *
 * The first look of the site is big and immersive: the hero occupies
 * most of the initial viewport. A large organic image shape floats
 * on the right while an inviting heading and description occupy
 * the left. On smaller screens the elements stack gracefully.
 */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 7rem; /* account for fixed nav */
  max-width: 1400px;
  margin: 0 auto;
  gap: 4rem;
}

/* Image container uses a generous border radius to create an organic blob */
.hero-snippet {
  flex: 1.2;
  order: 2;
  position: relative;
  min-height: 500px;
  border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.hero-snippet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text-area {
  flex: 1;
  order: 1;
  max-width: 600px;
}
.hero-headline {
  color: var(--primary);
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-subheadline {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.cta {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background 0.3s ease, transform 0.3s ease;
}
.cta:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
    gap: 2rem;
    text-align: center;
  }
  .hero-snippet {
    order: 1;
    width: 100%;
    min-height: 300px;
    border-radius: 30% 30% 20% 20%;
  }
  .hero-text-area {
    order: 2;
  }
  .hero-headline {
    font-size: 3rem;
  }
  .cta {
    padding: 0.8rem 1.5rem;
  }
}

/* Section wrapper
 *
 * Each section is centered and constrained to a comfortable
 * width. We apply generous padding and unify heading styling.
 */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
}

/* Adventure posts grid */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.post {
  background-color: var(--surface);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.post .category {
  background-color: var(--secondary);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.35rem 0.8rem;
  border-radius: 12px;
  margin: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post h3 {
  font-size: 1.4rem;
  margin: 0 1rem 0.6rem;
  color: var(--text);
}
.post p {
  font-size: 0.95rem;
  margin: 0 1rem 1.5rem;
  color: var(--muted);
  flex-grow: 1;
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.event {
  background-color: var(--surface);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}
.event h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.event-date {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

/* Values */
.value-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}
.value {
  background-color: var(--surface);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.value-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 1.2rem;
}

/* Founders */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}
.founder {
  background-color: var(--surface);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.founder-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Join section */
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}
.join-form input,
.join-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--accent);
  border-radius: 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background-color: #ffffff;
}
.join-form textarea {
  resize: vertical;
}
.join-form button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  margin-top: 0.5rem;
}
.join-form button:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}
.join-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Socials */
#socials {
  text-align: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  margin-top: 1rem;
  transition: color 0.3s ease;
}
.social-link i {
  font-size: 1.4rem;
}
.social-link:hover {
  color: var(--secondary);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.9rem;
}

/* Utility: decorative images positioning (optional) */
.decor {
  display: none;
}

/* Post detail page styling (post.html) */
.post-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.post-detail img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.post-detail .category {
  background-color: var(--secondary);
  color: #fff;
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.post-detail h1 {
  margin-bottom: 1rem;
}
.post-detail p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

/* Admin-only sections should be hidden unless unlocked via JS */
.admin-only {
  display: none;
}