/* =========================================================
   1. RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   2. BASE
========================================================= */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #ffffff;
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =========================================================
   3. LAYOUT / UTILITIES
========================================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 25px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: 2rem;
  color: #1f3d2b;
  margin-bottom: 10px;
}

.section-heading p {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

.cards,
.features,
.footer-content,
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

/* =========================================================
   4. BUTTONS
========================================================= */
.btn {
  display: inline-block;
  background-color: #d98e04;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn:hover {
  background-color: #b97500;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #fff;
  color: #1f3d2b;
}

.btn-nav {
  margin-left: 10px;
}

/* =========================================================
   5. HEADER / NAVIGATION
========================================================= */
.header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  padding: 20px 0;
}

.logo {
  width: 10rem;
  height: 10rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.nav-links a {
  color: #333;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links .active {
  color: #1f3d2b;
}

/* =========================================================
   6. HERO SECTIONS
========================================================= */
.hero,
.hero2 {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  background: url("../Assets/HeroBanner/HeroHome.png") center/cover no-repeat;
}

.hero2 {
  background: url("../Assets/HeroBanner/servicehero.png") center/cover no-repeat;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

.hero2 .hero-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  margin: 0 auto;
}

.hero .hero-content {
  max-width: 700px;
}

.hero2 .hero-content {
  max-width: 850px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero2 .hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.hero2 .hero-content p {
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 25px;
  color: #f1f1f1;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================================
   7. CARDS / FEATURES
========================================================= */
.card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.card-image img {
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  color: #1f3d2b;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card-content p {
  color: #666;
}

.feature-box {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.feature-box h3 {
  color: #1f3d2b;
  margin-bottom: 12px;
}

.feature-box p {
  color: #666;
}

/* =========================================================
   8. HOMEPAGE SECTIONS
========================================================= */
.services-preview {
  background-color: #f8f7f3;
}

.why-us {
  background-color: #f5f3ef;
}

.google-reviews {
  background-color: #f5f3ef;
}

.seo-intro {
  background-color: #fff;
}

.seo-intro .section-heading {
  margin-bottom: 0;
}

.seo-intro .section-heading p {
  max-width: 850px;
  font-size: 1.02rem;
  line-height: 1.8;
}

/* =========================================================
   9. GOOGLE REVIEWS
========================================================= */
.reviews-grid {
  gap: 20px;
}

.review-card {
  background: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 22px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  min-height: 340px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
}

.review-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #87a94c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}

.review-meta {
  min-width: 0;
}

.review-author {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2f3f2f;
  margin-bottom: 4px;
}

.review-author a:hover {
  color: #d98e04;
}

.review-date {
  font-size: 0.9rem;
  color: #777;
}

.review-google {
  width: 30px;
  height: 30px;
}

.review-google img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.review-stars {
  color: #d4a12c;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin: 10px 0 16px;
  text-align: center;
}

.review-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Loading shimmer */
.loading-card {
  pointer-events: none;
}

.shimmer-circle,
.shimmer-line {
  background: #eee;
  position: relative;
  overflow: hidden;
}

.shimmer-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  flex-shrink: 0;
}

.shimmer-line {
  height: 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.shimmer-line.short {
  width: 100px;
}

.shimmer-line.tiny {
  width: 60px;
}

.shimmer-line.full {
  width: 100%;
}

.shimmer-line.medium {
  width: 70%;
}

.shimmer-line.stars-line {
  width: 80px;
  height: 14px;
}

.shimmer-circle::after,
.shimmer-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  animation: shimmer 1.4s infinite;
}

/* =========================================================
   10. GALLERY
========================================================= */
.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  white-space: nowrap;
}

.gallery-scroll img {
  height: 320px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  background: #f5f5f5;
  padding: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-scroll img:hover {
  transform: scale(1.03);
}

.gallery-scroll::-webkit-scrollbar {
  height: 10px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: #e5e5e5;
  border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: #1f3d2b;
  border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
  background: #d98e04;
}

.gallery-scroll::-webkit-scrollbar-button:single-button:horizontal:decrement,
.gallery-scroll::-webkit-scrollbar-button:single-button:horizontal:increment {
  display: none;
  width: 0;
  height: 0;
}

/* =========================================================
   11. CONTACT PAGE
========================================================= */
.contact-intro {
  background: #ffffff;
}

.contact-section {
  background: #f8f7f3;
}

.contact-info-box,
.contact-form-box {
  background: #fff;
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.contact-info-box h2,
.contact-form-box h2 {
  font-size: 1.8rem;
  color: #1f3d2b;
  margin-bottom: 15px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-info-item h3 {
  color: #1f3d2b;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}

.form-group label {
  font-weight: 600;
  color: #1f3d2b;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #222;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d98e04;
  box-shadow: 0 0 0 3px rgba(217, 142, 4, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .btn {
  border: none;
  cursor: pointer;
  align-self: flex-start;
  padding: 14px 28px;
}

/* Validation icons */
.input-icon {
  position: absolute;
  right: 14px;
  top: 40px;
  font-size: 1.2rem;
  pointer-events: none;
}

.form-group.success .input-icon::after {
  content: "✔";
  color: #16a34a;
}

.form-group.error .input-icon::after {
  content: "✖";
  color: #dc2626;
}

.form-group.error label {
  color: #b91c1c;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.error-message {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #dc2626;
}

/* Submit state */
.form-submit-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 10px;
}

.submit-btn {
  position: relative;
  min-width: 180px;
  min-height: 52px;
  border: none;
  cursor: pointer;
}

.submit-btn:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.btn-loader {
  display: none;
  width: 40px;
  height: 14px;
  position: relative;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-loader {
  display: inline-block;
  animation: drive 1s linear infinite;
  font-size: 2rem;
}

.form-status {
  display: none;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.form-status.success {
  display: block;
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #86efac;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* =========================================================
   12. CTA
========================================================= */
.cta {
  background-color: #1f3d2b;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta-content p {
  max-width: 700px;
  margin: 0 auto 25px;
  color: #e2e2e2;
}

/* =========================================================
   13. FOOTER
========================================================= */
.footer {
  background-color: #111;
  color: #ddd;
  padding-top: 50px;
}

.footer-content {
  padding-bottom: 30px;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer p,
.footer li {
  margin-bottom: 10px;
  color: #ccc;
}

.footer a:hover {
  color: #d98e04;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #2a2a2a;
  padding: 20px 0;
  font-size: 0.95rem;
  color: #aaa;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons img {
  width: 4rem;
  height: 4rem;
  transition: 0.3s ease;
  cursor: pointer;
}

.social-icons img:hover {
  transform: scale(1.2);
}

/* =========================================================
   14. ANIMATIONS
========================================================= */
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drive {
  0% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(-5px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   15. RESPONSIVE - TABLET
========================================================= */
@media (min-width: 768px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-links {
    justify-content: flex-end;
    gap: 25px;
  }

  .cards,
  .features,
  .footer-content,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid .review-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   16. RESPONSIVE - SMALL LAPTOP
========================================================= */
@media (min-width: 992px) {
  .hero {
    min-height: 90vh;
  }

  .cards,
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .social-icons img {
    width: 6rem;
    height: 6rem;
  }

  /* Homepage services: center last card when only 4 cards */
  .services-preview .card:last-child:nth-child(4) {
    grid-column: 2 / 3;
  }

  /* Services page: center last two cards in 8-card layout */
  .services-page-preview .cards {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }

  .services-page-preview .card:nth-last-child(2) {
    grid-column: 1 / 2;
    transform: translateX(50%);
  }

  .services-page-preview .card:last-child {
    grid-column: 2 / 3;
    transform: translateX(50%);
  }
}

/* =========================================================
   17. RESPONSIVE - LARGE DESKTOP
========================================================= */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-grid .review-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .social-icons img {
    width: 8rem;
    height: 8rem;
  }
}




