/*
 * Core stylesheet for the Infused Co. landing page.
 *
 * The design embraces simplicity while maintaining a sense of intrigue. A light
 * colour palette and generous spacing make the content approachable, and a
 * background motif taken from the circular logo subtly reinforces the brand.
 */

/* Colour and font variables for easy theming */
:root {
  --primary-colour: #1c1c1c;
  --accent-colour: #836d4c;
  --background-colour: #f8f8f4;
  --text-colour: #333333;
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

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

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

/* Container used to align content and limit width */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  height: 40px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav a {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--primary-colour);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Hero section with background motif */
.hero {
  position: relative;
  min-height: 80vh;
  background-image: url('images/alternative1.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

/* Dark overlay over the hero background for contrast */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero p {
  font-size: 1.3rem;
  color: #f8f8f4;
}

/* Section styling */
.section {
  padding: 80px 0;
}

.section h2 {
  font-family: var(--heading-font);
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-colour);
  text-align: center;
}

.section p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Contact list styling */
.contact-list {
  list-style: none;
  margin: 20px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-list a {
  color: var(--accent-colour);
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--primary-colour);
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav ul {
    gap: 10px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .section {
    padding: 60px 0;
  }
  .section h2 {
    font-size: 1.8rem;
  }
}