/* styles.css */

/* Import modern font */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* Color & typography variables */
:root {
  --primary: #2a7f62;
  --dark: #333;
  --light: #f9f9f9;
  --gray: #ddd;
  --text: #444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}
a {
  color: white;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* NAV */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease;
  z-index: 1000;
}
.site-header.scrolled {
  position: fixed;
  background: rgba(51, 51, 51, 0.9);
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
}

/* HERO */
.hero {
  height: 100vh;
  background: url("images/hero.jpg") center/cover fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.hero .inner {
  position: relative;
  max-width: 800px;
  padding: 0 1rem;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1;
}
.hero p {
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}
.cta {
  display: inline-block;
  background: #fff;
  color: var(--dark);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* SERVICES */
.services {
  padding: 4rem 0;
}
.services h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 0.5rem;
}
.services-intro {
  text-align: center;
  color: #666;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  text-align: left;
}
.service-card img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.service-card h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin: 1rem 0 0.5rem;
}
.service-card p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.service-card .link {
  font-size: 1rem;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.service-card .link:hover {
  border-color: var(--primary);
}

/* QUOTE CTA */
.quote-cta {
  position: relative;
  background: url("images/quote-cta.jpg") center/cover no-repeat;
  background-size: cover;
  padding: 6rem 0;
  text-align: center;
  color: #fff;
}
.quote-cta .overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.quote-cta .container {
  position: relative;
  z-index: 1;
}
.quote-cta h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}
.quote-cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.btn-quote {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-quote:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ABOUT */
.about {
  padding: 4rem 0;
}
.about h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 2rem;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.about-text {
  flex: 1 1 400px;
}
.about-text p {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.about-text .btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-text .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.about-image {
  flex: 1 1 400px;
}
.about-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* CONTACT */
.contact {
  padding: 4rem 0;
}
.contact h2 {
  font-size: 2.25rem;
  color: var(--dark);
  text-align: center;
  margin-bottom: 2rem;
}
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.form-group.full-width {
  flex: 1 1 100%;
}
.form-group label {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--dark);
}
.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--gray);
  border-radius: 4px;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form button {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-form button:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 3rem 0;
  text-align: center;
}
.footer-contact p,
.footer-nav a {
  font-size: 1rem;
}
.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
  padding: 0;
}
.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
}
.footer-credit {
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .about-content,
  .form-row {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .quote-cta h2 {
    font-size: 2rem;
  }
}

/* ————————————————————————————————————————————
   Header / Navigation
   ———————————————————————————————————————————— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  transition: background-color 0.3s ease;
  background-color: transparent;
  z-index: 1000;
}

.site-header.scrolled {
  position: fixed;
  background-color: rgba(51, 51, 51, 0.9);
}

.nav-container {
  width: 100%;
  max-width: 1200px; /* or whatever your page width is */
  margin: 0 auto; /* center horizontally */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem; /* some side padding */
}

.logo {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.logo-sub {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ————————————————————————————————————————————
   Quote CTA with Background Image + Overlay
   ———————————————————————————————————————————— */
.quote-cta {
  position: relative;
  background: url("images/quote-cta-bg.jpg") center/cover no-repeat;
  /* if you want the image fixed behind scroll: */
  background-attachment: fixed;
  padding: 6rem 0;
  text-align: center;
  color: #fff;
}

.quote-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  /* dark overlay to keep white text legible */
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.quote-cta .container {
  position: relative;
  z-index: 1;
}

/* Button stays the same, but ensure it's on top of overlay */
.btn-quote {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-quote:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
