/*
 * Smokey Towels Website Styles
 *
 * This stylesheet defines a simple, responsive layout and color palette
 * inspired by the Smokey Towels logo.  Colors are drawn from the
 * burnt‑orange and dark‑green tones in the brand mark.  The design
 * emphasises readability and warmth while keeping the layout clean.
 */

/* Base variables */
:root {
  --color-dark: #2f3a33; /* dark green/gray background */
  --color-primary: #e37926; /* burnt orange accent */
  --color-light: #f8f5f0; /* very light background for cards */
  --color-text: #2a2a2a; /* dark grey for body text */
  --color-muted: #777; /* muted text */
  --max-content-width: 1100px;
  --header-height: 64px;
  font-family: Arial, Helvetica, sans-serif;
}

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

/* Navigation */
header {
  background-color: var(--color-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 10;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 48px;
  width: auto;
  margin-right: 12px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
  transition: color 0.2s ease;
}

header nav a:hover {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  background-image: url("campfire_hero.png");
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #fdfdfd;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

/* Sections */
section {
  padding: 60px 20px;
}

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

.intro {
  text-align: center;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.intro p {
  max-width: 750px;
  margin: 0 auto;
  color: var(--color-muted);
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

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

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

.product-card img.icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  filter: invert(18%) sepia(61%) saturate(605%) hue-rotate(17deg)
    brightness(92%) contrast(88%);
  /* This filter recolors the icon to match the primary color */
}

.product-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: var(--color-dark);
}

.product-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.product-card .price {
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.product-card .btn-secondary {
  display: inline-block;
  padding: 10px 22px;
  background-color: var(--color-dark);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.product-card .btn-secondary:hover {
  background-color: #1e2822;
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: #ccc;
  padding: 40px 20px;
  text-align: center;
}

footer p {
  margin: 8px 0;
  font-size: 0.9rem;
}

footer a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-dark);
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form button {
  background-color: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: #c6641e;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  header nav a {
    margin-left: 12px;
    font-size: 0.9rem;
  }
}

/* Mobile Navigation Enhancements */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background-color: var(--color-dark);
    padding: 10px 0;
  }

  header nav a {
    margin: 10px 0;
    text-align: center;
    font-size: 1.1rem;
  }

  header nav.active {
    display: flex;
  }
}
