/* Global Styles */
:root {
  --primary-color: #4a4a4a;
  --secondary-color: #e63946;
  --light-color: #f1faee;
  --dark-color: #1d3557;
  --gray-color: #a8a8a8;
  --footer-color: #333;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--primary-color);
  background-color: #fff;
}

a {
  text-decoration: none;
  color: var(--dark-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #c1121f;
  transform: translateY(-2px);
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  margin-right: 10px;
}

.logo h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--dark-color);
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 20px;
}

.nav-menu a {
  font-weight: 500;
  font-size: 16px;
  padding: 5px 10px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--secondary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center 90px; /* Position the background to start below the navbar */
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  text-align: left;
  color: #fff;
  position: relative;
  padding-top: 90px; /* Add padding to account for fixed header */
}

/* Page Banner Hero (inner pages) */
.hero[style*="height: 75vh"] {
  padding-top: 90px; /* Padding to account for the fixed header */
  background-attachment: fixed; /* Ensure fixed background on inner pages */
  background-position: center bottom; /* Prioritize showing the bottom of the image */
  background-size: cover; /* Ensure the image covers the entire hero section */
}

/* Ensure hero content is properly positioned below the navigation bar */
.hero[style*="height: 75vh"] .hero-content {
  padding-top: 30px; /* Add additional padding to the content to prevent it from being hidden behind the nav bar */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}


.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-left: 50px;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 15px;
  font-family: var(--font-heading);
}

.section-title p {
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
}

/* Services Section */
.services {
  background-color: #f9f9f9;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark-color);
  font-family: var(--font-heading);
}

.service-content p {
  margin-bottom: 15px;
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  font-family: var(--font-heading);
}

.about-content p {
  margin-bottom: 15px;
}

/* Philosophy Section */
.philosophy {
  background-color: #f9f9f9;
}

.philosophy-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.philosophy-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  font-family: var(--font-heading);
}

.philosophy-content p {
  margin-bottom: 15px;
}

.philosophy-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-color);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: bold;
  color: var(--dark-color);
}

/* Contact Section */
.contact {
  background-color: #fff;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  font-family: var(--font-heading);
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-info ul {
  margin-bottom: 20px;
}

.contact-info li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  font-family: var(--font-heading);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-main);
}

.form-group textarea {
  height: 150px;
}

/* Footer */
footer {
  background-color: var(--footer-color);
  color: #fff;
  padding: 50px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ddd;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: #fff;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .header-container {
    padding: 10px 20px;
  }

  .logo img {
    height: 50px;
  }

  .logo h1 {
    font-size: 1.2rem;
  }
  

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    flex-direction: column;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }

  .hero {
    height: 80vh;
    padding-top: 80px; /* Adjust padding for smaller screens */
    background-position: center 80px; /* Position the background to start below the navbar on mobile */
    background-attachment: fixed; /* Maintain fixed background on mobile */
  }
  
  .hero[style*="height: 75vh"] {
    padding-top: 80px; /* Reduce padding to show more of the top of the image on mobile */
    background-attachment: fixed; /* Maintain fixed background on mobile for inner pages */
    background-position: center bottom; /* Prioritize showing the bottom of the image on mobile */
    background-size: cover; /* Ensure the image covers the entire hero section */
  }
  
  .hero[style*="height: 75vh"] .hero-content {
    padding-top: 30px; /* Add additional padding to the content on mobile as well */
  }

  .hero-content {
    margin-left: 20px;
    margin-right: 20px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-container,
  .philosophy-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-img,
  .philosophy-img {
    order: -1;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}
