/*
 * Global stylesheet for the BarbersClub website.
 *
 * The design uses warm, dark colours reminiscent of a wood‑panelled salon.
 * Headings are set in Playfair Display to evoke elegance while body text
 * uses Open Sans for readability. A responsive layout ensures the site
 * looks good on both desktop and mobile screens. Sections are spaced
 * generously for a relaxed, inviting feel. If you wish to adjust the
 * colour palette or typography later, you can edit the CSS variables
 * defined at the top of this file.
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* CSS variables for easy theme customisation */
:root {
  --color-primary: #2c1c15; /* dark wood */
  --color-secondary: #bfa07a; /* warm gold */
  --color-accent: #8a6740; /* accent for buttons */
  --color-light: #f5f0e6; /* light background */
  --color-muted: #9d8c7b; /* muted text */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Open Sans', sans-serif;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-top: 0;
}

/* Navigation */
nav {
  background-color: var(--color-primary);
  color: var(--color-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav li {
  margin-left: 1rem;
}

nav a {
  color: var(--color-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* Hero section */
.hero {
  position: relative;
  background: url('images/barbersclub_hero.png') no-repeat center/cover;
  color: var(--color-light);
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 28, 21, 0.6); /* dark overlay */
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--color-light);
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-light);
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-weight: 600;
  transition: background 0.2s;
}

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

/* Section styling */
section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

section:nth-child(even) {
  background-color: #fdfaf6;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* Two column layout */
.two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.two-columns img {
  flex: 1 1 40%;
  max-width: 100%;
  border-radius: 8px;
}

.two-columns div {
  flex: 1 1 55%;
}

/* Products */
.product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.product img {
  flex: 1 1 300px;
  max-width: 100%;
  border-radius: 8px;
}

.product-description {
  flex: 2 1 400px;
}

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

.testimonial {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Blog list styles */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-item {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog-item small {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
}

#toggle-posts-btn {
  display: inline-block;
  margin-top: 1rem;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial h4 {
  margin: 0;
  font-weight: 600;
  color: var(--color-accent);
}

/* Contact section */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-details div {
  flex: 1 1 300px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
}

.contact-form button {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background-color: var(--color-accent);
  color: var(--color-light);
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: var(--color-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  nav li {
    margin: 0.5rem 0;
  }
  .two-columns,
  .product,
  .contact-details {
    flex-direction: column;
  }
}