/* CSS Variables */
:root {
  --primary-color: #F8F7F3; /* Light beige for main backgrounds */
  --secondary-color: #2F3435; /* Dark gray for navigation and some sections */
  --accent-color: #545454; /* Orange for buttons and highlights */
  --light-blue: #F0F8FF; /* Light blue for Get in Touch section (corrected from light beige) */
  --peach: #FFFFFF; /* White for Convenience section */
  --header-background-image: url("../images/Hero.png"); /* Desktop hero image */
  --header-background-image-mobile: url("../images/Hero-mobile.png"); /* Mobile hero image */
  --darker-secondary: #666666; /* Dark gray for text */
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: "Oswald", sans-serif;
  background-color: var(--primary-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3 {
  font-family: "Lilita One", sans-serif;
  color: var(--darker-secondary); /* Dark gray for contrast */
}

h1 {
  font-size: 2.5rem; /* Mobile-first */
  text-align: center;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  color: var(--darker-secondary); /* Dark gray for contrast */
}

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

nav .logo {
  color: #FFFFFF; /* White text for contrast */
  font-family: "Lilita One", sans-serif;
  font-size: 1.5rem;
}

nav .items {
  display: none;
  flex-direction: column;
  align-items: center;
  background-color: var(--secondary-color);
  width: 100%;
  padding: 1rem 0;
}

nav .items.active {
  display: flex;
}

nav a {
  color: #FFFFFF; /* White text for contrast */
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem;
}

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

.toggle {
  display: block;
  cursor: pointer;
}

.toggle i {
  color: #FFFFFF; /* White icon for contrast */
  font-size: 1.5rem;
}

/* Hero Section */
header {
  background-image: var(--header-background-image); /* Default (desktop) hero image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--light-blue); /* Fallback */
  padding: 6rem 1rem;
  text-align: center;
  margin-top: 3.5rem;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Darkened overlay for better contrast */
  z-index: 1;
}

header h1,
header .book {
  position: relative;
  z-index: 2;
  color: #FFFFFF; /* White text for contrast */
}

header h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header .book {
  background-color: var(--accent-color);
  color: #FFFFFF; /* White text for contrast */
  border-radius: 0.5rem;
  text-decoration: none;
  padding: 0.75rem 2rem;
  display: inline-block;
  margin-top: 2rem;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
}

header .book:hover {
  background-color: var(--secondary-color);
  color: var(--accent-color);
}

/* Convenience Section */
#Convenience {
  background-color: var(--peach); /* White background */
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column; /* Default flex direction */
  align-items: center;
  text-align: center;
}

#Convenience img {
  max-width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

#Convenience .content {
  max-width: 100%;
}

/* Stress-Free Header */
#Stress-Free {
  background-color: var(--primary-color);
  padding: 2rem 1rem;
  text-align: center;
}

/* Services Section */
#Services {
  background-color: var(--primary-color);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

#Services article {
  background-color: var(--primary-color);
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
  width: 100%;
  max-width: 20rem;
}

#Services img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Get in Touch Section */
#get-in-touch {
  background-color: var(--light-blue); /* Light blue background */
  padding: 2rem 1rem;
  text-align: center;
}

#get-in-touch h2 {
  margin-bottom: 1rem;
}

#get-in-touch span {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

#get-in-touch p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--darker-secondary); /* Dark gray for contrast */
}

/* Footer */
#footer {
  background-color: #d3d3d3; /* Light grey */
  color: #FFFFFF; /* White text for contrast */
  padding: 2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#footer img {
  max-width: 7.5rem;
  margin-bottom: 1rem;
}

#footer aside {
  margin-bottom: 1rem;
}

#footer a {
  color: var(--accent-color); /* Orange for links */
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

#footer small {
  color: #FFFFFF; /* White text for contrast */
  opacity: 0.8;
  font-size: 0.875rem;
}

/* Media Queries for Screens 768px and Above */
@media (min-width: 768px) {
  nav .toggle {
    display: none; /* Hide toggle button on larger screens */
  }
  nav .items {
    display: flex;
    flex-direction: row;
    width: auto; /* Reset width to fit content inline */
    padding: 0;
  }

  nav a {
    font-size: 1.1rem;
  }

  header {
    padding: 6rem 2rem;
    min-height: calc(100vh - 3.5rem); /* Adjusted for navigation height */
  }

  h1 {
    font-size: 4rem;
    text-align: center; /* Maintain consistency */
  }

  header .book {
    font-size: 1.25rem;
  }

  #Convenience {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    padding: 3rem 5%;
  }

  #Convenience img {
    max-width: 45%;
    height: auto;
    margin-right: 2rem;
    margin-bottom: 0;
  }

  #Convenience .content {
    max-width: 50%;
    text-align: left;
  }

  #Services {
    flex-direction: row;
    justify-content: space-between;
    padding: 3rem 5%;
    max-width: 1200px; /* Set a maximum width */
    margin: 0 auto; /* Center the content */
  }
}