/* General Reset & Basic Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fafafa;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  margin-top: 0.5em;
  font-size: 2.5rem;
}

h2 {
  margin-top: 1em;
  font-size: 2rem;
}

h3 {
  margin-top: 1em;
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.2em;
  font-size: 1rem;
}

/* Links */
a {
  color: #ff4500;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #b22222;
}

/* Buttons */
.button {
  display: inline-block;
  background-color: #ff4500;
  color: #fff;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.button:hover {
  background-color: #b22222;
}

/* Header */
header {
  background: linear-gradient(90deg, #ff4500 0%, #b22222 100%);
  color: #fff;
  padding: 20px 0;
}

.branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.logo {
  width: auto;
  max-height: 60px;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  text-transform: uppercase;
}

/* Navigation */
nav {
  position: relative;
  text-align: center;
  margin-top: 10px;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 25px;
}

/* Desktop Nav Menu */
.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 0.5em 1em;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.nav-menu li {
  margin: 0 15px;
}

.nav-menu a {
  color: #fff;
  font-weight: 600;
  padding: 0.5em 1em;
  border-radius: 20px;
}
.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 120px 20px;
  background: url('background.webp') no-repeat center center / cover;
}

.hero::before {
  content: '';
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* About Section */
.about {
  padding: 60px 0;
  text-align: center;
}

/* Services Section */
.services {
  padding: 60px 0;
}
.service-list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap; /* so items wrap on smaller screens */
  justify-content: center;
  margin-top: 2rem;
}
.service-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 250px; /* flexible items, min width 250px */
  max-width: 350px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

/* Testimonials */
.testimonials {
  padding: 60px 0;
  background-color: #fff;
}
.testimonial-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}
.testimonial-item {
  background-color: #fefefe;
  border-left: 4px solid #ff4500;
  padding: 1.5rem;
  border-radius: 4px;
}
.testimonial-item blockquote {
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial-item figcaption {
  text-align: right;
  font-weight: 600;
}

/* Projects */
.projects {
  padding: 60px 0;
}
.project-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}
.project-item {
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.project-item img {
  width: 100%;
  display: block;
  height: auto;
}

/* Blog */
.blog {
  padding: 60px 0;
}
.blog-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
}
.blog-list article {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.blog-list article a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

/* FAQs */
.faqs {
  padding: 60px 0;
}
.faq-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
.faq-item {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-content p {
  margin: 5px 0;
}
.social-media {
  margin-top: 10px;
}
.social-media a {
  margin: 0 5px;
  display: inline-block;
}
.social-media img {
  width: 24px;
  height: 24px;
}

/* Tablet & Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    z-index: 9999; /* ensures the hamburger toggle is on top */
  }

  /* Make the nav menu a side drawer */
  .nav-menu {
    /* Start hidden */
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    
    /* Adjust the width as you like (250px, 300px, etc.) */
    width: 260px;
    height: 100vh;

    /* Dark background so text is visible */
    background: rgba(0, 0, 0, 0.95);

    /* Slide in from the right */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;

    /* High z-index to ensure it is above other content */
    z-index: 9998;
    
    /* Some padding up top so the content isn't behind the toggle button */
    padding-top: 60px;
  }

  /* When the user clicks the hamburger, add "active" class to slide it in */
  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    margin: 1rem;
    text-align: left;
  }

  .nav-menu a {
    font-size: 1.2rem;
    color: #fff;
    padding: 0.5rem 1rem;
    display: block; /* make each link take up full horizontal space */
  }

  /* Adjust hero padding, etc. if needed */
  .hero {
    padding: 80px 20px;
  }
  .hero h2 {
    font-size: 2rem;
  }

  /* If you have any grid layouts, you can override them to be single-column here */
  .service-list,
  .blog-list,
  .project-list {
    grid-template-columns: 1fr;
  }
}

/* Very Small Screens */
@media (max-width: 480px) {
  /* Optional further tweaks for small screens */
}