/*
 * Mandi Irene Life Coaching Website Stylesheet
 *
 * This file defines the overall look and feel for the life coaching
 * website. It uses modern CSS techniques such as flexbox, grid and
 * CSS variables to create a responsive layout that adapts to
 * different screen sizes. Colors were selected to align with
 * Mandi's brand palette of purple, green and pink, creating a
 * calming yet empowering aesthetic. Feel free to adjust the
 * variables at the top of the file to fine‑tune the colour scheme
 * or typography.
 */

/* Colour and typography variables */
:root {
  /* Primary purple colour used for the header and footers */
  --primary-color: #7c3a91;
  /* Secondary green used for primary calls to action */
  --secondary-color: #2ecc71;
  /* Accent pink used for secondary buttons and highlights */
  --accent-color: #e91e63;
  /* Light background colour for sections */
  --light-color: #f7f2f9;
  /* Dark text colour for high contrast */
  --dark-color: #333333;
  /* Global font family (loaded via Google Fonts in HTML) */
  --font-family: 'Poppins', Arial, sans-serif;
}

/* Reset some default browser styles */
* {
  box-sizing: border-box;
}

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

/* Header and navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--primary-color);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
}

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

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero section */
.hero {
  /* Use the portrait as a background and overlay a dark gradient for readability */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('portrait.jpeg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 120px 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Button styles */
.button {
  background: var(--secondary-color);
  color: #ffffff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s ease;
}

.button:hover {
  background: #27ae60;
}

.button.secondary {
  background: var(--accent-color);
}

.button.secondary:hover {
  background: #c2185b;
}

/* Generic section styling */
.section {
  padding: 60px 20px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
  font-weight: 600;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Services grid */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
}

.service-card p {
  margin-bottom: 10px;
}

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

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 16px;
  font-family: var(--font-family);
}

.contact-form button {
  width: 100%;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 12px;
  font-size: 18px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #692a82;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  .services {
    flex-direction: column;
    align-items: center;
  }
  nav ul li {
    margin-left: 10px;
  }
}