/* public/css/style.css */
:root {
  --primary-color: #1e3a8a; /* Navy Blue */
  --primary-hover: #1e40af;
  --secondary-color: #0f172a;
  --accent-color: #25d366; /* WhatsApp Green */
  --accent-hover: #128c7e;
  --bg-light: #f8fafc;
  --text-main: #334155;
  --text-muted: #64748b;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --radius: 8px;
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul {
  list-style: none;
}

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

.text-center {
  text-align: center;
}
.mt-20 {
  margin-top: 20px;
}
.mt-30 {
  margin-top: 30px;
}
.mt-40 {
  margin-top: 40px;
}
.pb-40 {
  padding-bottom: 40px;
}
.bg-light {
  background-color: var(--bg-light);
}
.m-auto {
  margin-right: auto;
  margin-left: auto;
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--secondary-color);
  line-height: 1.2;
  margin-bottom: 15px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
p {
  margin-bottom: 15px;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-main);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #0f172a !important;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--white) !important;
}

.btn-secondary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white) !important;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.125rem;
}

.center-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* --- Header & Navigation --- */
.main-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo strong {
  color: var(--secondary-color);
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: var(--text-main);
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
}

/* Hamburger Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-menu-btn .bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  background-color: var(--bg-light);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.local-hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* --- Services Section --- */
.services,
.about-preview,
.locations,
.local-details {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  contain: layout style paint;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* --- Features List (Local Pages) --- */
.features-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: var(--bg-light);
  padding: 25px;
  border-radius: var(--radius);
  align-items: center;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  background: var(--white);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

/* --- About Preview --- */
.check-list {
  margin-top: 20px;
}
.check-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 5px;
  font-weight: 600;
}

/* --- Locations Tags --- */
.locations-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.location-tag {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.location-tag:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* --- Testimonial --- */
.testimonial {
  padding: 60px 0;
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stars {
  color: #fbbf24;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-main);
}

.testimonial-author {
  display: block;
  margin-top: 15px;
  font-weight: 700;
}

/* --- Equipments Section --- */
.equipments {
  padding: 80px 0;
}
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.equip-card {
  text-align: center;
}
.equip-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  border: 1px solid var(--border-color);
  contain: layout style paint;
}
.equip-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

/* --- Reviews Grid --- */
.reviews {
  padding: 60px 0;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.reviewer-initial {
  width: 40px;
  height: 40px;
  background: #4285f4;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}
.review-header h4 {
  margin-bottom: 0;
  font-size: 1rem;
  color: #333;
}
.review-text {
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
}

.cta-section h2,
.cta-section p {
  color: var(--white);
}

/* --- Footer --- */
.main-footer {
  background-color: var(--secondary-color);
  color: #cbd5e1;
  padding-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.main-footer h3,
.main-footer h4 {
  color: var(--white);
  margin-bottom: 20px;
}

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

.main-footer a {
  color: #cbd5e1;
}

.main-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

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

.footer-bottom {
  background-color: #020617;
  padding: 20px 0;
  text-align: center;
  font-size: 0.875rem;
}

.footer-phone a {
  color: var(--accent-color);
  font-size: 1.25rem;
  font-weight: 700;
}

/* --- Floating WhatsApp --- */
.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}

.wa-icon-container {
  display: flex;
}

.wa-tooltip {
  position: absolute;
  right: 80px;
  background-color: var(--white);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  white-space: nowrap;
}

.floating-wa:hover .wa-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Company Data Form */
.company-data-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}
.data-list li {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
.data-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* --- Responsive (Mobile First to Desktop) --- */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .feature-item {
    flex-direction: row;
    text-align: left;
  }

  .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-text {
    text-align: left;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .center-buttons {
    justify-content: center;
  }
}

/* Mobile Menu Logic */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border-color);
    display: none;
    z-index: 999;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav ul li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
  }

  h1 {
    font-size: 2rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* --- Gallery Styles --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.gallery-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  contain: layout style paint;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Gallery Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item img {
    height: 220px;
  }
}

/* --- Neighborhoods Section --- */
.local-neighborhoods {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.local-neighborhoods h2 {
  margin-bottom: 10px;
}

.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 25px;
}

.neighborhoods-grid li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.neighborhoods-grid li:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.neighborhood-pin {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.neighborhoods-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (min-width: 768px) {
  .neighborhoods-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .neighborhoods-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Map Section --- */
.local-map {
  padding: 60px 0;
}

.local-map h2 {
  margin-bottom: 20px;
}

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 350px;
}

/* --- FAQ Section --- */
.local-faq {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.local-faq h2 {
  margin-bottom: 25px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-color);
}

.faq-item[open] {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--secondary-color);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  transition: var(--transition);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 0;
}
