/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* Navigation */
/* Apply legacy nav styles ONLY to non-Bootstrap navs */
nav:not(.navbar) {
  background-color: #333;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav:not(.navbar) .logo { color:#fff; font-size:1.2rem; font-weight:bold; }

nav:not(.navbar) ul {
  list-style: none;
  display: none;
  flex-direction: column;
  background-color: #333;
  width: 100%;
  padding: 10px 0;
  position: absolute;
  top: 60px;
  left: 0;
  z-index: 999;
}
nav:not(.navbar) ul.show { display: flex; }
nav:not(.navbar) ul li { margin: 10px; }

nav:not(.navbar) ul li a {
  background-color: #444;
  color: #fff;
  font-weight: bold;
  padding: 15px;
  margin: 5px auto;
  display: block;
  text-align: center;
  text-decoration: none;
  width: 200px;
  border-radius: 5px;
  transition: background-color .3s ease;
}
nav:not(.navbar) ul li a:hover { background-color:#555; }

nav:not(.navbar) .menu-toggle {
  display:block;
  font-size:24px;
  color:#fff;
  cursor:pointer;
  position:absolute;
  right:20px;
  top:15px;
}



.menu-toggle {
  display: block; /* always show */
  font-size: 24px;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 15px;
}
@media (max-width: 600px) {
  .google-reviews {
    padding: 15px;
  }

  .google-reviews .quote {
    font-size: 0.95rem;
  }

  .google-reviews .author {
    font-size: 0.9rem;
  }
}
.menu-toggle:hover {
  color: #007BFF;
}
/

/*@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 10px;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 0 0 12px 0;
    width: 100%;
  }

  nav ul li a span {
    width: 100%;
    text-align: center;
  }
}*/

/* Hero Section */
.hero {
  background-image: url('../img/hero-background.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 20px;
  text-align: center;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 6px #000;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px #000;
}

.cta-button {
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  border: none;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.cta-button:hover {
  background-color: #0056b3;
}

/* Layout Containers */
.content-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Features and Services */
.features, .services, .residential, .why-choose {
  display: flex;
  gap: 30px;
  justify-content: space-evenly; /* previously: space-around */
  flex-wrap: wrap;
  padding: 40px 20px;
  background: #f9f9f9;
}

.feature-box, .service-box, .residential-box, .why-box {
  background: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  width: 25%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.feature-box:hover,
.service-box:hover,
.residential-box:hover,
.why-box:hover {
  transform: translateY(-5px);
}

.feature-icon img,
.service-icon img,
.residential-icon img {
  margin-bottom: 10px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}
@media screen and (max-width: 1024px) {
  .feature-box,
  .service-box,
  .residential-box,
  .why-box {
    width: 45%; /* 2 per row */
  }
}

@media screen and (max-width: 600px) {
  .feature-box,
  .service-box,
  .residential-box,
  .why-box {
    width: 90%; /* Full width with margin */
  }
}

/* Learn More Link */
.learn-more {
  display: inline-block;
  margin-top: 10px;
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.learn-more:hover {
  text-decoration: underline;
}
.google-reviews {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  text-align: center;
}

.google-reviews .location-note {
  font-weight: bold;
  color: #007BFF;
  margin-bottom: 10px;
}

.google-reviews .review {
  margin-bottom: 20px;
}

.google-reviews .quote {
  font-style: italic;
  color: #333;
}

.google-reviews .author {
  font-weight: bold;
  margin-top: 5px;
  color: #555;
}

.google-reviews .see-more {
  display: inline-block;
  margin-top: 15px;
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.google-reviews .see-more:hover {
  text-decoration: underline;
}
.google-reviews .hidden {
  display: none;
}
.map-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}

.map-container {
  flex: 1 1 400px;
  max-width: 500px;
}
.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}


/* Contact Form */
.contact-form {
  padding: 50px 20px;
  text-align: center;
  background-color: #fff;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #0056b3;
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 20px;
  text-align: center;
}
footer .social-links {
  margin-top: 10px;
  text-align: center;
}

footer .social-links a {
  margin: 0 10px;
  display: inline-block;
}

footer .social-links img {
  width: 26px;
  height: 26px;
  transition: opacity 0.3s ease;
}

footer .social-links img:hover {
  opacity: 0.7;
}
/* Blog Layout */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 40px 20px;
  background-color: #fff;
  color: #333;
}

/* Individual Blog Preview */
.blog-preview {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.blog-preview:hover {
  transform: translateY(-5px);
}

.blog-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.blog-preview h2 {
  font-size: 1.3rem;
  margin: 10px 0 5px;
}

.blog-preview h2 a {
  color: #007BFF;
  text-decoration: none;
}

.blog-preview h2 a:hover {
  text-decoration: underline;
}

.blog-preview .date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.blog-preview p {
  font-size: 1rem;
  color: #444;
}

.read-more {
  color: #007BFF;
  font-weight: bold;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
}

.read-more:hover {
  text-decoration: underline;
}

/* Blog Post Content */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #fff;
  color: #333;
}

.blog-post h2 {
  margin-top: 30px;
  color: #007BFF;
}

.blog-post ul {
  padding-left: 1.5rem;
  margin: 10px 0 20px;
}

.blog-post ul li {
  margin-bottom: 10px;
}

/* Fix navigation link color */

#link-preview-form {
  display: flex;
  gap: 10px;
  margin: 20px;
}

.link-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  margin: 15px;
  max-width: 500px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.link-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.link-card h3 {
  margin-top: 10px;
  font-size: 1.1rem;
}

.link-card p {
  font-size: 0.95rem;
  color: #444;
}
/* Dashboard styling */
body.dashboard-page {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

.dashboard {
  max-width: 800px;
  margin: 60px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  padding: 30px;
}

.dashboard h1 {
  text-align: center;
  color: #333;
}

.dashboard form input,
.dashboard form button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.dashboard button {
  background-color: #007BFF;
  color: white;
  cursor: pointer;
}

.dashboard .message {
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
}
/* Admin login form enhancements */
.dashboard input[type="text"],
.dashboard input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.dashboard input[type="text"]:focus,
.dashboard input[type="password"]:focus {
  border-color: #007BFF;
  outline: none;
  box-shadow: 0 0 5px rgba(0,123,255,0.2);
}

.dashboard button {
  background-color: #007BFF;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.dashboard button:hover {
  background-color: #0056b3;
}

/* Enhance message feedback */
.dashboard .message {
  text-align: center;
  font-weight: bold;
  color: red;
  margin-top: 10px;
}
/* === Subscribe Section === */
.subscribe-section {
  background: #f5f5f5;
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  margin: 3rem auto;
  max-width: 600px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

.subscribe-section h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #1E3A8A;
}

.subscribe-section p {
  color: #444;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* === Subscribe Form === */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

/* Email input */
.subscribe-form input[type="email"] {
  width: 100%;
  max-width: 400px;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.subscribe-form input[type="email"]:focus {
  border-color: #0077ff;
  outline: none;
}

/* Submit Button */
.subscribe-form button {
  background-color: #2e86de;
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
  background-color: #1b4f72;
}

/* reCAPTCHA alignment */
.recaptcha-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

/* === Mobile Optimizations === */
@media screen and (max-width: 480px) {
  .subscribe-section {
    padding: 1.5rem 1rem;
    margin: 2rem 1rem;
  }

  .subscribe-section h2 {
    font-size: 1.5rem;
  }

  .subscribe-section p {
    font-size: 1rem;
  }

  .subscribe-form input[type="email"],
  .subscribe-form button {
    width: 100%;
    max-width: 100%;
  }
}



/* Existing styles remain unchanged */

.fab-desktop {
  display: none;
}

@media screen and (min-width: 769px) {
  .fab-desktop {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 40%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
  }

  .fab-desktop a {
    background: #1E3A8A;
    color: white;
    padding: 10px 12px;
    margin: 4px 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    gap: 6px;
  }

  .fab-desktop a i {
    font-size: 16px;
  }

  .fab-desktop a .label {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .fab-desktop a:hover .label {
    opacity: 1;
    max-width: 120px;
  }

  .fab-desktop a:hover {
    padding-right: 20px;
    background: #3B82F6;
  }
}

.floating-bar {
  position: fixed;
  top: 35%;
  right: 0;
  transform: translateY(-50%);
  background: #1E3A8A;
  border-radius: 8px 0 0 8px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.floating-bar a {
  color: #fff;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.floating-bar a i {
  margin-right: 6px;
  font-size: 16px;
}

.floating-bar .label {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  font-size: 14px;
  transition: max-width 0.3s ease, opacity 0.3s ease;
}

.floating-bar a:hover .label {
  opacity: 1;
  max-width: 120px;
}

/* 📱 Mobile optimization */
@media (max-width: 768px) {
  .floating-bar {
    display: none;
  }
}

.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.fab-toggle {
  background: #1E3A8A;
  color: #fff;
  font-size: 28px;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.fab-toggle.open {
  transform: rotate(45deg);
}

.fab-menu {
  display: none;
  flex-direction: column;
  margin-bottom: 10px;
  align-items: flex-end;
}

.fab-menu a {
  background: #1E3A8A;
  color: #fff;
  text-decoration: none;
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.fab-menu a i {
  margin-right: 8px;
}

.fab-container.open .fab-menu {
  display: flex;
}

/* Hide by default */
.fab-mobile {
  display: none;
}

/* Show on screens narrower than 768px */
@media screen and (max-width: 768px) {
  .fab-mobile {
    display: block;
  }
}

@media screen and (max-width: 480px) {
  .fab-toggle {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .fab-menu a {
    font-size: 13px;
    padding: 6px 10px;
  }
}
/* Style the form container */
form {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* Inputs and textarea */
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  border-color: #0077ff;
  outline: none;
}

/* Button */
form button {
  background-color: #0077ff;
  color: #fff;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #005bb5;
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
/* ==== Bootstrap grid fix: kill old flex widths on sections/cards ==== */
.features, .services, .residential, .why-choose {
  display: block;         /* stop forcing flex layout */
  gap: 0;                 /* Bootstrap handles spacing via .row.g-4 */
  padding: 40px 20px;     /* keep your padding */
  background: inherit;    /* keep your backgrounds */
}

/* Cards should fill their Bootstrap columns */
.feature-box, .service-box, .residential-box, .why-box {
  width: 100% !important;     /* override old 25%/45%/90% widths */
  max-width: none !important; /* in case any max-width slipped in */
}

/* Remove old responsive widths */
@media screen and (max-width: 1024px) {
  .feature-box, .service-box, .residential-box, .why-box { width: 100% !important; }
}
@media screen and (max-width: 600px) {
  .feature-box, .service-box, .residential-box, .why-box { width: 100% !important; }
}
/* ==== Bootstrap grid fix: kill old flex widths on sections/cards ==== */
.features, .services, .residential, .why-choose {
  display: block;         /* stop forcing flex layout */
  gap: 0;                 /* Bootstrap handles spacing via .row.g-4 */
  padding: 40px 20px;     /* keep your padding */
  background: inherit;    /* keep your backgrounds */
}

/* Cards should fill their Bootstrap columns */
.feature-box, .service-box, .residential-box, .why-box {
  width: 100% !important;     /* override old 25%/45%/90% widths */
  max-width: none !important; /* in case any max-width slipped in */
}

/* Remove old responsive widths */
@media screen and (max-width: 1024px) {
  .feature-box, .service-box, .residential-box, .why-box { width: 100% !important; }
}
@media screen and (max-width: 600px) {
  .feature-box, .service-box, .residential-box, .why-box { width: 100% !important; }
}
<style>
  .page-hero{position:relative;min-height:420px;display:grid;place-items:center}
  .page-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.55)}
  .page-hero .hero-content{position:relative;z-index:1}
</style>
