/*
 * style.css for Island Scents landing page
 *
 * The palette draws from the warm sands and cool waters of the
 * Caribbean.  Typography blends a playful script for the logo with a
 * clean sans‑serif for body text.  Layouts are responsive, making
 * generous use of flexbox and CSS grid to adapt to mobile and
 * desktop screens alike.
 */

/* Reset a few basic elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #05384f;
  background-color: #f2fafb;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: #05384f;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}

p {
  margin-bottom: 1.2em;
  color: #044f5a;
  max-width: 48rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8em 2em;
  border-radius: 3rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

.btn-primary {
  background-color: #ffe69a;
  color: #05384f;
}

.btn-primary:hover {
  background-color: #ffd669;
}

.btn-secondary {
  background-color: #05384f;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #021f27;
}

/* Navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.8rem;
  color: #05384f;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  /* leave breathing room between logo and first link */
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #05384f;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f09132;
}

/* Hero Section */
.hero {
  background: linear-gradient(150deg, #86d3e3 0%, #bff1f4 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 5rem;
  position: relative;
}

.hero-content {
  flex: 1 1 400px;
  text-align: left;
  padding: 2rem;
  max-width: 550px;
}

.hero-content h1 {
  margin-bottom: 0.5rem;
}

.hero-content p {
  margin-bottom: 1.5rem;
  color: #05384f;
  max-width: 30rem;
}

.hero-image {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Products Section */
.products {
  padding: 4rem 1rem;
  background-color: #fdfcf7;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: #05384f;
}

.product-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background-color: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
}

.product-card h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #05384f;
}

.product-card p {
  padding: 0 1rem;
  font-size: 0.95rem;
  color: #355f6b;
}

/* About Section */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 1rem;
  background-color: #eaf7fa;
}

.about-content {
  flex: 1 1 400px;
  max-width: 600px;
  padding: 1rem 2rem;
}

.about-content h2 {
  text-align: left;
}

.about-image {
  flex: 1 1 350px;
  max-width: 500px;
  padding: 1rem;
  text-align: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* CTA Section */
.cta {
  background-color: #05384f;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}

.cta h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta p {
  color: #e4eef1;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.btn-cta {
  background-color: #f5c762;
  color: #05384f;
}

.btn-cta:hover {
  background-color: #f0b33b;
}

/* Footer */
.footer {
  background-color: #021f27;
  color: #9cc3ca;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
}

.footer p {
  color: #9cc3ca;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    margin-top: 0.5rem;
  }
  .hero {
    padding: 2rem 1rem 3rem;
  }
  .hero-content,
  .hero-image {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }
  .hero-content p {
    max-width: 100%;
  }
  .about-content,
  .about-image {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }
  .about-content h2 {
    text-align: center;
  }
}