/* style.css - StrongRoot Website Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #fefef7;
  color: #1f2a1e;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* color theme: blackish (#1e2a1e, #232323) + light yellow (#f8f0d5, #f5e56b) */
:root {
  --dark: #1a2419;      /* blackish green */
  --dark-soft: #2f3a2e;
  --yellow-light: #fcf6e0;
  --yellow-accent: #f5da7a;
  --yellow-btn: #f3ce5e;
  --text-light: #fefcf0;
}

/* fixed header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--dark);
  color: var(--yellow-light);
  padding: 0.7rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.2s;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 250px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
}

.logo-img-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: #f5da7a;
  color: #1e2a1e;
}

.logo-text {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--yellow-accent);
}

.logo-text span { 
  color: #faf1d6; 
  font-weight: 300; 
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: #fefae0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.nav-menu a:hover {
  border-bottom-color: var(--yellow-accent);
  color: var(--yellow-accent);
}

/* mobile navigation */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--yellow-light);
}

/* main content padding for fixed header */
.main-content {
  margin-top: 90px;
}

/* sections general */
section {
  padding: 3.5rem 5%;
  scroll-margin-top: 90px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  margin-bottom: 2rem;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70%;
  height: 4px;
  background: var(--yellow-accent);
  border-radius: 4px;
}

/* hero */
.hero {
  background: linear-gradient(110deg, #1f2a1e 30%, #3f4e3a 100%);
  color: var(--yellow-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-bottom: 6px solid var(--yellow-accent);
}

.hero-content {
  flex: 1 1 300px;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 800;
}

.hero-content .slogan {
  font-size: 1.8rem;
  color: var(--yellow-accent);
  font-style: italic;
  margin: 15px 0 10px;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 20px 0;
}

.btn-estimate {
  background: var(--yellow-accent);
  color: #1e2a1e;
  padding: 16px 36px;
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  border-radius: 60px;
  box-shadow: 0 8px 0 #b3953b;
  cursor: pointer;
  transition: 0.1s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-estimate:active { 
  transform: translateY(5px); 
  box-shadow: 0 3px 0 #b3953b; 
}

.hero-image {
  flex: 1 1 300px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 30px 30px 30px 30px;
  box-shadow: 20px 20px 0px #f5da7a;
  transition: transform 0.4s;
}

.hero-image img:hover { 
  transform: scale(1.01) rotate(0.5deg); 
}

/* service cards slider gallery - UPDATED for 2 columns on desktop */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Exactly 2 columns on desktop */
  gap: 2rem;
  margin-top: 2rem;
}

/* Mobile: 1 column */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
}

/* Optional: For very large screens, you can keep 2 columns but with max-width */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(400px, 500px)); /* Controlled width on large screens */
    justify-content: center; /* Center the grid if it doesn't take full width */
  }
}

.service-card {
  background: #fffef8;
  border-radius: 28px;
  padding: 1.8rem 1rem 1.8rem 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: 1px solid #ece3c9;
  transition: all 0.3s;
  width: 100%; /* Ensure cards take full width of grid cell */
}

.service-card:hover { 
  transform: scale(1.02); 
  box-shadow: 0 20px 30px rgba(0,0,0,0.1); 
}

.card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0.7rem 0 1rem;
  text-align: center;
}

/* image slider inside each card */
.slider-container {
  position: relative;
  width: 100%;
  height: 400px; /* Slightly increased height for better visibility on desktop */
  overflow: hidden;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px #f5e1a4;
}

/* Adjust slider height for mobile */
@media (max-width: 768px) {
  .slider-container {
    height: 170px;
  }
}

.slider-images {
  display: flex;
  width: 100%;
  height: 100%;
  animation: none; /* controlled by JS */
  transition: transform 0.5s ease-in-out;
}

.slider-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.service-tag {
  background: var(--yellow-accent);
  color: #1e2a1e;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

/* reviews google card */
.reviews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}

.review-item {
  background: #fffcf0;
  border-left: 8px solid var(--yellow-accent);
  padding: 1.8rem;
  border-radius: 30px;
  max-width: 320px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.02);
  transition: 0.3s;
}

.review-item i { 
  color: #f5b342; 
  font-size: 1.2rem; 
}

.review-item p { 
  margin: 0.8rem 0; 
  font-style: italic; 
}

.review-author { 
  font-weight: 700; 
  color: var(--dark); 
}

/* contact form + WhatsApp */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  background: var(--yellow-light);
  border-radius: 50px;
  padding: 3rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.contact-form {
  flex: 2 1 300px;
}

.contact-info {
  flex: 1 1 250px;
  background: var(--dark);
  color: var(--yellow-light);
  padding: 2rem;
  border-radius: 40px;
}

.input-group {
  margin-bottom: 1.2rem;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0d6bb;
  border-radius: 60px;
  font-size: 1rem;
  outline: none;
  transition: 0.2s;
}

.input-group input:focus, .input-group textarea:focus {
  border-color: var(--yellow-accent);
}

.btn-wa {
  background: #25D366;
  color: white;
  border: none;
  padding: 1rem 2.2rem;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 5px 0 #128C7E;
  width: 100%;
}

.btn-wa i { 
  margin-right: 10px; 
}

.btn-wa:active { 
  transform: translateY(5px); 
  box-shadow: none; 
}

.wa-direct {
  background: #25D366;
  color: white;
  border-radius: 60px;
  padding: 1rem 2rem;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  margin-top: 1rem;
  text-align: center;
}

/* floating whatsapp button */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 25px;
  background: #25D366;
  color: white;
  font-size: 2rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: 0.3s;
  text-decoration: none;
}

.wa-float:hover { 
  transform: scale(1.1); 
  background: #20b859; 
}

/* footer */
.footer {
  background: var(--dark);
  color: #f5e8c7;
  text-align: center;
  padding: 2.5rem 5% 1.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
}

.social-icons a {
  color: #fae37f;
  font-size: 2rem;
  transition: 0.2s;
}

.social-icons a:hover { 
  color: white; 
  transform: scale(1.1); 
}

.footer-contact p { 
  margin: 0.3rem; 
  font-size: 1.1rem; 
}

.footer a { 
  color: #f5da7a; 
  text-decoration: none; 
}

/* responsiveness */
@media (max-width: 800px) {
  .menu-toggle { 
    display: block; 
  }
  
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0 0.5rem;
  }
  
  .nav-menu.active { 
    display: flex; 
  }
  
  .header { 
    justify-content: space-between; 
  }
  
  .logo-area { 
    width: auto; 
  }
}

@media (max-width: 600px) {
  .hero-content h1 { 
    font-size: 2.3rem; 
  }
  
  .section-title { 
    font-size: 2rem; 
  }
}

/* animation on scroll (simple fade) */
.fadein {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}

.fadein.visible {
  opacity: 1;
  transform: translateY(0);
}