/*
  Global styles and variables. The colour palette draws inspiration from
  berries and natural tones, creating a friendly yet professional aesthetic.
  Fonts are system defaults for better performance and legibility on a
  variety of devices. Adjust variables to tailor the look to your brand.
*/
:root {
  --colour-primary: #c2185b; /* deep berry pink */
  --colour-secondary: #f48fb1; /* light berry */
  --colour-accent: #6a0572; /* rich purple */
  --colour-light: #fdf4f8; /* very pale pink */
  --colour-dark: #352349; /* dark plum */
  --text-base: #333333;
  --heading-font-size: 2.25rem;
  --subheading-font-size: 1.5rem;
  --body-font-size: 1rem;
  --max-width: 1100px;
  /* height of the fixed navigation bar */
  --navbar-height: 64px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: var(--body-font-size);
  line-height: 1.6;
  color: var(--text-base);
  background-color: var(--colour-light);
  /* Provide space at the top of the page so content doesn't hide behind the fixed navbar */
  padding-top: var(--navbar-height);
}

a {
  color: var(--colour-primary);
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 600;
  color: var(--colour-dark);
  line-height: 1.2;
}

h1 {
  font-size: calc(var(--heading-font-size) + 0.5rem);
}
h2 {
  font-size: var(--heading-font-size);
}
h3 {
  font-size: var(--subheading-font-size);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 70vh;
  color: #ffffff;
  overflow: hidden;
  /* pull the hero up by the height of the navbar so the overlay aligns flush with the top of the page */
  margin-top: calc(-1 * var(--navbar-height));
}
/* Dark overlay to improve contrast of text over background */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.5)
  ),
    url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
  z-index: -1;
}
.hero__content {
  max-width: var(--max-width);
  padding: 0 1rem;
}
.hero__content h1 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.hero__content p {
  color: #fefefe;
  margin-bottom: 1.5rem;
}

/* Generic button styles */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}
.button--primary {
  background-color: var(--colour-accent);
  color: #ffffff;
}
.button--primary:hover,
.button--primary:focus {
  background-color: var(--colour-primary);
  transform: translateY(-2px);
}
.button--secondary {
  background-color: var(--colour-secondary);
  color: #ffffff;
}
.button--secondary:hover,
.button--secondary:focus {
  background-color: var(--colour-primary);
  transform: translateY(-2px);
}

/* Section styling */
.section {
  padding: 4rem 1rem;
}
.section--light {
  background-color: var(--colour-light);
}
.section--dark {
  background-color: var(--colour-accent);
  color: #ffffff;
}
.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section__title {
  margin-bottom: 2rem;
  text-align: center;
}
.section__title--light {
  color: #ffffff;
}
.section__text {
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Services */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.service {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  flex: 1 1 280px;
  max-width: 320px;
}
.service h3 {
  margin-bottom: 0.5rem;
  color: var(--colour-accent);
}
.service p {
  margin: 0;
}

/* Contact form styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto 2rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-row label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.form-row input,
.form-row textarea {
  padding: 0.5rem;
  border: 1px solid #cccccc;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-family: inherit;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--colour-accent);
  outline: none;
}
.contact-details {
  text-align: center;
  line-height: 1.4;
}
.contact-details p {
  margin: 0.3rem 0;
}
.contact-details a {
  color: var(--colour-accent);
}

/* Footer */
.footer {
  background-color: var(--colour-dark);
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  .services {
    flex-direction: column;
    align-items: center;
  }
  .service {
    max-width: 100%;
  }
}

/* Navigation bar styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar__container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.navbar__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--colour-accent);
}

.navbar__menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar__menu li a {
  color: var(--colour-dark);
  font-weight: 500;
  transition: color 0.2s;
}

.navbar__menu li a:hover,
.navbar__menu li a:focus {
  color: var(--colour-primary);
}