/*
 * Global Stylesheet for the 4 People Ihr Coiffeur website
 *
 * The design uses a restrained colour palette based on dark charcoal
 * backgrounds and warm golden accents to create an elegant and inviting
 * atmosphere. A modern sans‑serif typeface provides excellent
 * readability while subtle transitions bring the interface to life.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Colour palette */
:root {
  --primary-color: #B4975A;    /* warm gold used for highlights and buttons */
  --secondary-color: #2C2C2C;  /* dark charcoal background */
  --background-color: #F8F8F8;/* light background for contrast */
  --text-color: #333333;      /* default text colour */
  --light-text: #f5f5f5;      /* text colour on dark backgrounds */
  --link-hover: #D8C38A;      /* lighter gold for hover states */
}

/* Reset some basic defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

a:hover, a:focus {
  color: var(--link-hover);
}

/* Navigation bar */
nav {
  width: 100%;
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 600;
}

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

nav ul li {
  position: relative;
}

nav ul li a {
  color: var(--light-text);
  font-weight: 500;
}

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

/* Hero section */
.hero {
  height: 80vh;
  /* Use the generated decorative image as a backdrop. A semi‑transparent
   * overlay darkens the image slightly for better text contrast. */
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--link-hover);
}

/* Section containers */
section {
  padding: 4rem 2rem;
}

section.dark {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

section.light {
  background-color: var(--background-color);
  color: var(--text-color);
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.service-card p {
  font-size: 0.95rem;
}

/* Team section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--primary-color);
}

.team-member h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.team-member p {
  font-size: 0.9rem;
}

/* Opening hours */
.hours-table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.hours-table tr:nth-child(even) {
  background-color: rgba(0,0,0,0.03);
}

.hours-table th {
  background-color: var(--secondary-color);
  color: var(--light-text);
  font-weight: 500;
}

/* Contact section */
.contact-info {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.contact-item {
  flex: 1 1 250px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

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

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--light-text);
  text-align: center;
  padding: 1.5rem 1rem;
}

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

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

form label {
  font-weight: 500;
}

form input,
form select,
form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

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

form button:hover {
  background-color: var(--link-hover);
}

/* Map iframe responsive */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}