/*
 * Global styles for The Parent Lab website
 * Uses the colour palette and typography specified by the client.
 */
/* Import Nata Sans from Google Fonts. This modern sans-serif will be used site‑wide */
@import url('https://fonts.googleapis.com/css2?family=Nata+Sans:wght@400;700&display=swap');

/* CSS variables for easy colour management */
:root {
  /* Calm modern colour palette */
  --deep-teal: #014D4E;      /* primary anchor for headers, nav and key accents */
  --soft-sand: #E6D9C6;      /* secondary backgrounds and contrast sections */
  --ivory: #F9F7F3;          /* main page background */
  --clay: #C17767;           /* accent colour for links and primary buttons */
  --pale-sage: #C5D6C2;      /* secondary buttons and subtle highlights */
  --text-dark: #1E1E1E;      /* near-black for body text */

  /* Backwards‑compatible variables used throughout the stylesheet */
  --teal: var(--deep-teal);
  --gold: var(--clay);
  --navy: var(--text-dark);
  --light: var(--ivory);
  --grey: var(--soft-sand);
  --dark: var(--text-dark);
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  /* Apply Nata Sans across the body text */
  font-family: 'Nata Sans', Arial, sans-serif;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--light);
}

h1, h2, h3, h4 {
  /* Use Nata Sans for all headings */
  font-family: 'Nata Sans', Arial, sans-serif;
  margin-top: 0;
  color: var(--navy);
}

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

/* Navigation bar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--teal);
  color: var(--light);
  padding: 0.8rem 1.6rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo a {
  /* Make the logo link a flex container so the image and text align horizontally */
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  gap: 0.5rem;
}

/* Style for the logo image in the navigation */
.nav-logo {
  height: 40px;
  width: auto;
}

/* Style for the logo in the footer */
.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 0.5rem;
}
.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--light);
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.nav-links a:hover {
  background-color: var(--teal);
  color: var(--light);
}

/* Hero section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  color: var(--light);
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  /* Ensure the site title in the hero section is clearly readable over the background */
  color: #FFFFFF;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--gold); /* clay accent for primary calls to action */
  color: var(--light);           /* white text for contrast on clay buttons */
  padding: 0.75rem 1.4rem;
  border-radius: 30px;
  font-weight: 700;
  transition: background-color 0.3s, transform 0.3s;
}
.btn-primary:hover {
  background-color: #B6695C; /* slightly darker clay on hover */
  transform: translateY(-2px);
}

/* Section containers */
section {
  padding: 3rem 1.5rem;
}
section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}
/* Underline accent for section headings */
section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--gold);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* The Need section */
.need-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.need-item {
  max-width: 260px;
  text-align: center;
}
.need-item i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--teal);
}
.need-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.need-item p {
  font-size: 0.95rem;
  color: var(--dark);
}

/* Inner page hero sections (About, Events etc.) */
.inner-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  color: var(--light);
  text-align: center;
}

.inner-hero .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.inner-hero .inner-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

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

/* Event card */
.event-card {
  background-color: var(--grey);
  border-left: 5px solid var(--teal);
  padding: 1.5rem;
  margin: 0 auto;
  max-width: 600px;
  border-radius: 6px;
  text-align: left;
}
.event-card .event-date {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.event-card h3 {
  margin: 0;
}
.event-card p {
  margin: 0.5rem 0 1rem;
}

/* Testimonials */
.testimonials blockquote {
  font-style: italic;
  margin: 1rem auto;
  max-width: 600px;
  padding: 0 1rem;
  position: relative;
  color: var(--dark);
}
.testimonials blockquote::before, .testimonials blockquote::after {
  content: '\201C';
  font-size: 3rem;
  color: var(--gold);
  position: absolute;
  opacity: 0.3;
}
.testimonials blockquote::before {
  top: -10px;
  left: -10px;
}
.testimonials blockquote::after {
  content: '\201D';
  bottom: -10px;
  right: -10px;
}

/* Join banner */
.join-banner {
  background-color: var(--teal);
  color: var(--light);
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.join-banner h2 {
  color: var(--light);
}
.join-banner form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.join-banner input[type="email"] {
  padding: 0.75rem;
  border: none;
  border-radius: 30px;
  flex: 1 1 220px;
}
.join-banner button {
  cursor: pointer;
  border: none;
}

/* Footer */
footer {
  background-color: var(--navy);
  color: var(--light);
  text-align: center;
  padding: 2rem 1rem;
}
footer a {
  color: var(--gold);
  margin: 0 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    gap: 0.5rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .need-items {
    flex-direction: column;
    align-items: center;
  }
  .event-card {
    padding: 1rem;
  }
}