/* ===== Base Styling (Desktop Default - No Change) ===== */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: #fcf5ec;
  color: #333;
}

header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 10%;
  max-width: 1800px;
  margin: 0 auto;

}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links a {
  justify-content:space-between;
  margin: 0 12px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #dba8e2;
}

.section {
  padding: 4rem 12.5%;
  max-width: 1498px;
  margin: 0 auto;
}

.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
}

.card {
  width: 100%;
  max-width: 1200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  text-align: left;
}

.card a[download] {
  background: #dba8e2;
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s;
}

.card a[download]:hover {
  background: #c78ed3;
}

footer {
  text-align: center;
  padding: 1.5rem 0;
  background: #fafafa;
  color: #777;
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* ===== Responsive Design ===== */

/* Tablets (up to 1024px) */
@media (max-width: 1024px) {
  nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .section {
    padding: 3rem 6%;
  }

  .section img {
    width: 100%;
    height: auto;
  }

  h2 {
    font-size: 2.3rem !important;
  }
}

/* Mobiles (up to 768px) */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 10px;
  }

  .section {
    padding: 2.5rem 5%;
  }

  h2 {
    font-size: 2rem !important;
    text-align: center !important;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.5rem;
  }

  .card {
    width: 100%;
    padding: 15px;
  }

  .card img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .card a[download] {
    display: inline-block;
    width: auto;
    font-size: 0.9rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 1rem 0;
  }
}

/* Extra Small Devices (below 480px) */
@media (max-width: 480px) {
  nav {
    align-items: center;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  h2 {
    font-size: 1.6rem !important;
  }

  .card {
    text-align: left;
  }

  footer {
    font-size: 0.75rem;
  }
}

/* 🌐 Default hamburger hidden */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #dba8e2;
}

/* Mobile view styling */
@media (max-width: 768px) {

  nav {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 50px;
    border-radius: 8px;
    padding: 10px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
    color: #333;
    font-size: 16px;
  }

  /*.nav-links a:last-child {
    border-bottom: none;
  }*/

  /* Hide the Calm Companion button nav on mobile */
  nav[style*="margin-right"] {
    display: none !important;
  }
}


