/*
 * Bogey Hound Website Styles
 *
 * A custom stylesheet crafted to deliver a premium yet playful
 * experience for the Bogey Hound golf‑lifestyle brand. The
 * palette, typography and layout choices reflect a sophisticated
 * aesthetic while retaining a sense of fun and approachability.
 */

/* Colour and typography variables */
:root {
  --primary: #0C3B2E;     /* deep forest green */
  --secondary: #F5F3E0;   /* warm beige */
  --accent: #D4A373;      /* soft gold */
  --dark: #1A1F4B;        /* navy tone for text */
  --light: #F8F8F8;       /* off‑white page background */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

/* Global resets */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/* Navigation header */
header {
  background-color: var(--primary);
  padding: 0.5rem 2rem;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header nav .logo {
  display: flex;
  align-items: center;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
}

header nav .logo img {
  height: 40px;
  width: 40px;
  margin-right: 0.5rem;
}

header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

header nav ul li {
  margin-left: 1rem;
}

header nav ul li a {
  color: white;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
  width: 100%;
}

/* Hero section */
.hero {
  position: relative;
  padding: 6rem 2rem;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Dark overlay on hero background */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 59, 46, 0.5);
  pointer-events: none;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--dark);
}

.btn-primary:hover {
  background-color: var(--dark);
  color: var(--accent);
}

.btn-secondary {
  background-color: var(--primary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: var(--dark);
}

/* Generic section wrapper */
.section {
  padding: 4rem 2rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* Product grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.product-card .content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.product-card p {
  flex-grow: 1;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.product-card .btn {
  align-self: flex-start;
}

/* Seasons section */
.seasons {
  background-color: var(--secondary);
  padding: 4rem 2rem;
  text-align: center;
}

.seasons h2 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.seasons p {
  max-width: 700px;
  margin: 0.5rem auto 2rem;
  font-size: 1rem;
  color: var(--dark);
}

.seasons .btn {
  padding: 0.75rem 1.5rem;
}

/* About preview section on home page */
.about-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.about-preview img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}

.about-preview .text {
  max-width: 500px;
}

.about-preview h2 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-preview p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--dark);
}

/* Newsletter */
.newsletter {
  background-color: var(--dark);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.newsletter h3 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.newsletter p {
  margin-bottom: 1.5rem;
}

.newsletter form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter input[type="email"] {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  flex: 1 0 200px;
}

.newsletter input[type="submit"] {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  background-color: var(--accent);
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
}

.newsletter input[type="submit"]:hover {
  background-color: var(--primary);
  color: white;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  padding: 2rem;
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

footer .social-icons {
  margin-bottom: 1rem;
}

footer .social-icons a {
  color: white;
  margin: 0 0.5rem;
  font-size: 1.2rem;
}

footer .social-icons a:hover {
  color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .section h2 {
    font-size: 2rem;
  }
  .products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .about-preview {
    flex-direction: column;
  }
}