/* ========================================= */
/* CSS Reset - A good practice for all projects */
/* ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========================================= */
/* General Styles (Updated for warmer feel) */
/* ========================================= */
:root {
  --primary-color: #2e8b57; /* Deep green for warmth */
  --accent-color: #d4af37; /* Gold/yellow accent */
  --secondary-color: #555;
  --light-bg-color: #f8f4e3; /* Soft off-white */
  --dark-bg-color: #36454f; /* Charcoal gray */
  --text-color: #4a4a4a; /* Dark gray for body text */
  --light-text-color: #fff;
  --font-family-sans: "Montserrat", sans-serif; /* Clean, friendly font */
  --font-family-serif: "Playfair Display", serif; /* Elegant heading font */
  --container-width: 1140px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-text-color);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

h1,
h2,
h3 {
  font-family: var(--font-family-serif);
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark-bg-color);
  text-align: center;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-align: center;
}

.bg-light {
  background-color: var(--light-bg-color);
}

.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-nav-cta {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 10px 20px;
  border-radius: 5px;
  border: 2px solid transparent;
}

.btn-nav-cta:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ========================================= */
/* Header & Navigation (Final Version) */
/* ========================================= */
.navbar {
  background-color: var(--light-text-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* Prevents wrapping on smaller screens */
}

.logo {
  font-family: var(--font-family-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-bg-color);
  flex-shrink: 0; /* Prevents the logo from shrinking */
}

.navbar nav {
  display: flex;
  align-items: center;
}

.navbar nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar nav ul li {
  margin-left: 25px;
}

.navbar nav a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar nav a:hover {
  color: var(--primary-color);
}

.btn-nav-cta {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 10px 20px;
  border-radius: 5px;
  border: 2px solid transparent;
  margin-left: 25px;
  flex-shrink: 0;
}

.btn-nav-cta:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.mobile-only-button {
  display: none; /* Hide the mobile button by default */
}

/* ========================================= */
/* Media Queries for Responsiveness (Final Version) */
/* ========================================= */
@media (max-width: 768px) {
  .navbar .container {
    padding: 0 15px; /* Adjust padding for mobile screens */
    flex-wrap: nowrap; /* Ensure it doesn't wrap on mobile */
  }

  .navbar nav ul {
    display: none; /* Hide the menu links on mobile */
  }

  .desktop-only {
    display: none !important; /* Hide the desktop button on mobile */
  }

  .mobile-only-button {
    display: block; /* Show the mobile button */
    font-size: 14px;
    padding: 8px 12px;
    margin-left: auto; /* Pushes the button to the right */
  }

  .logo {
    flex-grow: 0;
  }
}
.btn,
a,
button {
  z-index: 9999 !important;
  position: relative !important;
  pointer-events: auto !important;
}
/* ========================================= */
/* Hero Section */
/* ========================================= */
.hero-section {
  background: url("../images/hero-bg.jpg") no-repeat center center/cover;
  color: var(--light-text-color);
  text-align: center;
  padding: 150px 0;
  position: relative;
}

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

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1,
.hero-content p {
  color: var(--light-text-color);
}

/* ========================================= */
/* About Section */
/* ========================================= */
.section-padding h2 {
  margin-bottom: 40px;
}

/* ========================================= */
/* Office Gallery */
/* ========================================= */
.section-description {
  max-width: 600px;
  margin: 0 auto 40px;
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* ========================================= */
/* Services Section */
/* ========================================= */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.service-card {
  background-color: var(--light-text-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.service-card .service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-family: var(--font-family-sans);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark-bg-color);
}

.service-card p {
  font-size: 1rem;
  color: var(--secondary-color);
  text-align: center;
}

/* ========================================= */
/* Testimonials Section */
/* ========================================= */
.grid-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--light-text-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.testimonial-name {
  font-weight: 600;
  color: var(--primary-color);
}

.testimonial-date {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.star-rating {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-color);
  text-align: left;
}

/* ========================================= */
/* Contact Section */
/* ========================================= */
.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-cta {
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 30px;
}

.contact-cta p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.contact-cta .btn {
  width: auto;
  min-width: 200px;
  background-color: #fff;
  color: var(--primary-color);
}

.contact-cta .btn:hover {
  background-color: #000;
  color: #fff;
}

form {
  background-color: var(--light-text-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

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

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

.form-group textarea {
  resize: vertical;
}

form button[type="submit"] {
  width: 100%;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* ========================================= */
/* Footer */
/* ========================================= */
.footer {
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
  padding: 40px 0;
  font-size: 0.9rem;
  text-align: center;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer p {
  margin: 5px 0;
  text-align: center;
}

.footer-contact {
  text-align: center;
  margin: 20px 0;
}

.footer-contact p {
  margin: 5px 0;
}

.footer-contact a {
  color: var(--light-text-color);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact i {
  margin-right: 8px;
}

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

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

.footer nav a {
  color: var(--light-text-color);
  text-decoration: none;
}

/* ========================================= */
/* Media Queries for Responsiveness */
/* ========================================= */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }
  .navbar .logo {
    flex-grow: 1;
  }

  /* --- FIX: Hide only the menu links and the toggle button --- */
  .navbar nav ul,
  .menu-toggle {
    display: none;
  }

  /* --- FIX: Show the mobile-only button and force it into place --- */
  .navbar nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
  }
  .mobile-only-button {
    display: block !important;
  }
  .desktop-only {
    display: none !important;
  }
  /* --- End Fix --- */

  .hero-section {
    padding: 100px 0;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 2rem;
  }
  .section-padding {
    padding: 60px 0;
  }
  p {
    font-size: 1rem;
  }

  .footer .container {
    flex-direction: column;
  }
  .footer nav {
    margin-top: 15px;
  }
  .footer nav ul {
    flex-direction: column;
  }
  .footer nav li {
    margin: 5px 0;
  }
}
