/*
 * Floragram website stylesheet
 *
 * This CSS defines the layout and styling for the Floragram landing page. It uses modern
 * CSS features such as flexbox, grid and CSS variables to ensure a responsive design
 * without relying on external frameworks. Feel free to adjust the colours and spacing
 * variables below to suit your brand aesthetic.
 */

/* Global variables */
:root {
  --primary-color: #e0b2c7; /* soft rose pink */
  --secondary-color: #f7f2f5; /* light blush background */
  --accent-color: #a57299; /* plum accent */
  --text-color: #333333;
  --heading-font: 'Arial', sans-serif;
  --body-font: 'Arial', sans-serif;
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
}

nav .nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav .nav-list li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav .nav-list li a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  height: 90vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px; /* account for fixed header */
}

.hero-overlay {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  text-align: center;
}

.hero-text h2 {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.hero-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

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

/* About Section */
.about {
  padding: 4rem 0;
  background-color: var(--secondary-color);
}

.about h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  text-align: center;
  line-height: 1.6;
}

/* Products Section */
.products {
  padding: 4rem 0;
}

.products h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card h3 {
  margin-top: 1rem;
  font-size: 1.3rem;
  color: var(--accent-color);
}

.product-card p {
  padding: 0 1rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Contact Section */
.contact {
  background-color: var(--secondary-color);
  padding: 4rem 0;
}

.contact-container {
  text-align: center;
}

.contact h2 {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.contact p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-info {
  list-style: none;
  display: inline-block;
  text-align: left;
  font-size: 1rem;
  margin-top: 1rem;
}

.contact-info li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: #f0e7ee;
  padding: 1rem 0;
  text-align: center;
}

.footer-container p {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
  .hero-text h2 {
    font-size: 1.8rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
}