/* ==========================================
   LABBIES CONTRACTING & CLEANING SERVICE
   Official Style Sheet (Expert Mobile & Responsive)
   ========================================== */

:root {
  --primary: #2e7d32; 
  --secondary: #1b5e20;
  --accent: #ffd700;
  --light-bg: #fdfdfd;
  --glass: rgba(27, 94, 32, 0.96);
  --dark: #0a0a0a;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: #fff;
  color: var(--dark);
  line-height: 1.8;
  overflow-x: hidden;
  padding-top: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

/* --- NAVIGATION BAR --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary);
  padding: 10px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: none;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: 36px;
  margin-right: 10px;
  border-radius: 6px;
  object-fit: contain;
}

.logo-text {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.25;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  padding: 5px;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), 
              url('https://images.unsplash.com/photo-1603712725038-e9334ae8f39f?w=1600&auto=format&fit=crop&q=80');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 100px 5% 40px 5%;
  margin-top: 0;
}

.hero-content {
  max-width: 900px;
  animation: fadeInUp 0.9s ease;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 22px;
  line-height: 1.15;
  color: #ffffff;
}

.hero-content p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  margin-bottom: 38px;
  color: #e0e0e0;
}

.btn-group {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 38px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.35s;
  font-size: 1rem;
  display: inline-block;
  cursor: pointer;
}

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

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: white;
  color: var(--dark);
}

/* --- SECTIONS --- */
section {
  padding: 90px 8%;
}

.section-title {
  text-align: center;
  margin-bottom: 55px;
}

.section-title h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--secondary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--accent);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* --- CEO SPEECH SECTION --- */
.speech-section {
  background: var(--light-bg);
  display: flex;
  justify-content: center;
}

.leadership-card {
  background: #fff;
  border-radius: 20px;
  padding: 45px 55px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  width: 100%;
}

.speech-content blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-style: italic;
  color: var(--primary);
  margin-bottom: 20px;
  border-left: 5px solid var(--accent);
  padding-left: 20px;
}

.speech-content h4 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.speech-content .role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.speech-content p.desc {
  color: #555;
  font-size: 1rem;
}

/* --- ABOUT US SECTION --- */
.about-section {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.about-content {
  flex: 1;
  min-width: 280px;
}

.about-content h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.about-image {
  flex: 1;
  min-width: 280px;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* --- SERVICES GRID --- */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.35s ease;
  border: 1px solid #eee;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.service-img {
  height: 230px;
  overflow: hidden;
  background: #f1f5f9;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.08);
}

.service-body {
  padding: 28px 22px;
  text-align: center;
}

.service-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* --- WHY HIRE US --- */
.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-item {
  display: flex;
  gap: 18px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.feature-item i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-top: 4px;
  width: 30px;
}

.feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.feature-item p {
  color: #666;
  font-size: 0.95rem;
}

.why-image-wrapper {
  position: relative;
  width: 100%;
  height: 440px;
}

.why-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.floating-card {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: white;
  padding: 24px 28px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 230px;
  text-align: center;
  animation: float 4s ease-in-out infinite;
}

.floating-card h3 {
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 800;
}

.floating-card p {
  font-size: 0.88rem;
  color: #666;
}

/* --- MANAGEMENT TEAM --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.team-card {
  background: #fff;
  padding: 25px 18px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.team-card:hover {
  transform: scale(1.03);
}

.team-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px auto;
  border: 3px solid var(--primary);
  background: #eee;
}

.team-card h3 {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.team-card p {
  font-size: 0.88rem;
  color: #666;
}

/* --- STATS SECTION --- */
.stats-section {
  background: var(--secondary);
  color: white;
  display: flex;
  justify-content: space-around;
  padding: 70px 8%;
  flex-wrap: wrap;
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-item h2 {
  font-size: 3.2rem;
  color: var(--accent);
}

/* --- PRICING --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.price-box {
  padding: 45px 25px;
  background: white;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #eee;
  transition: 0.3s;
}

.price-box.popular {
  border: 2px solid var(--primary);
  transform: scale(1.03);
  background: #f0fdf4;
}

.price-box h3 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.price-box .cost {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}

/* --- BRANDS --- */
#brands {
  background-color: #ffffff;
  padding: 60px 8%;
  text-align: center;
}

.brands-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2e7d32;
  padding: 22px 40px;
  background: #f9f9f9;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  animation: float 4s ease-in-out infinite;
  min-width: 250px;
}

.brand-item i {
  font-size: 2rem;
  color: #2e7d32;
}

.brand-item:hover {
  transform: translateY(-8px) scale(1.04);
  background: #2e7d32;
  color: #fff;
  box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
}

.brand-item:hover i {
  color: #ffffff;
}

/* --- BRANCHES --- */
#branches {
  background: #f4f7f6;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.branch-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-img-wrapper {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #e2e8f0;
}

.branch-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.branch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.branch-card:hover .branch-img-wrapper img {
  transform: scale(1.12);
}

.branch-info {
  padding: 18px;
  text-align: center;
}

.branch-info h3 {
  color: #2e7d32;
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.branch-info p {
  color: #666;
  font-size: 0.9rem;
}

/* --- FAQ --- */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 22px;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: 0.35s ease-out;
  background: #fafafa;
}

/* --- MAILBOX --- */
.mailbox-container {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-top: 8px solid #2e7d32;
}

.design-mailbox .input-group {
  margin-bottom: 20px;
  text-align: left;
}

.design-mailbox label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.design-mailbox input,
.design-mailbox select,
.design-mailbox textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.design-mailbox input:focus,
.design-mailbox textarea:focus {
  border-color: #2e7d32;
  outline: none;
  background-color: #f1f8e9;
}

.send-btn {
  width: 100%;
  padding: 15px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.send-btn:hover {
  background-color: #1b5e20;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--primary);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  text-decoration: none;
  font-size: 1rem;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* --- FOOTER --- */
footer {
  background: var(--dark);
  color: #ccc;
  padding: 80px 8% 35px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 45px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #aaa;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 25px;
  text-align: center;
  font-size: 0.88rem;
  color: #777;
}

/* --- KEYFRAMES & REVEALS --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- EXPERT MOBILE RESPONSIVE CONTROL --- */
@media (max-width: 992px) {
  section {
    padding: 60px 5%;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-image-wrapper {
    height: 360px;
  }

  .floating-card {
    position: relative;
    right: 0;
    bottom: 0;
    margin: -35px auto 0 auto;
    width: 85%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 10px 5%;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background-color: #1b5e20;
    padding: 30px 0;
    gap: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    padding-top: 80px;
    min-height: 520px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .leadership-card {
    padding: 30px 20px;
  }

  .speech-content blockquote {
    font-size: 1.35rem;
  }

  .stats-section {
    flex-direction: column;
    gap: 25px;
    padding: 50px 5%;
  }

  .floating-card {
    margin-top: -30px;
    width: 90%;
    padding: 18px 20px;
  }

  .floating-card h3 {
    font-size: 1.8rem;
  }

  .mailbox-container {
    padding: 25px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 0.88rem;
  }

  .btn {
    width: 100%;
    padding: 14px 24px;
  }

  .price-box.popular {
    transform: none;
  }
}
