/* ============ Global ============ */
:root {
  --brand: #4ac524;
  --brand-dark: #3aa31c;
  --bg: #f4f4f9;
  --text: #333;
  --nav: #333;
  --card: #fff;
}

* { box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a { text-decoration: none; color: inherit; }

/* Header / Nav */
header { background: var(--nav); padding: 20px; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-logo img { height: 40px; }
.nav-phone a { color: #fff; font-weight: bold; font-size: 18px; }

nav ul { list-style: none; margin: 0; padding: 0; }
nav ul li { display: inline-block; margin: 0 15px; position: relative; }
nav ul li a {
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  transition: color .3s;
}
nav ul li a:hover { color: var(--brand); }

.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 170px;
  background: var(--nav);
  padding: 8px 0;
  border-radius: 6px;
  z-index: 10;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 16px;
  transition: color .3s;
}
.dropdown-menu li a:hover { color: var(--brand); background: transparent; }

/* Splash */
#splash-screen {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease;
}
#splash-screen img { width: 200px; animation: zoom-in 1.2s ease; }
#splash-screen.fade-out { opacity: 0; pointer-events: none; }
@keyframes zoom-in { from { transform: scale(.8); opacity: 0 } to { transform: scale(1); opacity: 1 } }

/* Categories (home buttons) */
#categories {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
  background: #e9ecef;
}
.button-container {
  display: flex;
  justify-content: space-between;
  width: 60%;
  gap: 20px;
}
.category-btn {
  display: block;
  width: 30%;
  padding: 20px;
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-size: 1.2em;
  border-radius: 8px;
  transition: background .3s, transform .2s;
}
.category-btn:hover { background: var(--brand-dark); transform: translateY(-3px); }

/* Section Styles */
section {
  padding: 50px;
  background: #fff;
  margin: 20px 0;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
section h2 { font-size: 2.5em; color: #000; margin-bottom: 20px; }
section h3 { color: #000; margin: 0 0 10px; }
section p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 20px auto;
  line-height: 1.6;
}

/* About – Intro Side-by-Side */
.about-image-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.about-image-text img { max-width: 40%; border-radius: 8px; }
.about-image-text p { flex: 1; text-align: left; }

/* About – Values */
#values .values-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}
#values .value {
  flex: 1 1 260px;
  max-width: 340px;
  padding: 20px;
  background: #f9f9f9;
  border: 2px solid var(--brand);
  border-radius: 10px;
  transition: transform .3s;
}
#values .value:hover { transform: translateY(-5px); }
#values .value h3 { color: var(--brand); }

/* About – Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  padding: 0;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--brand);
  top: var(--line-top, 60px);
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  box-shadow:
    0 0 12px rgba(74, 197, 36, 0.45),
    0 0 24px rgba(74, 197, 36, 0.25);
  border-radius: 2px;
}
.timeline-item { position: relative; width: 50%; padding: 20px 30px; box-sizing: border-box; }
.timeline-item.left { left: 0; text-align: left; margin-bottom: -40px; }
.timeline-item.right { left: 50%; text-align: left; margin-bottom: -40px; }
.timeline-item .content { position: relative; background: #fff; padding: 15px; border-radius: 8px; border: 2px solid var(--brand); }
.timeline-item h4 { margin: 0 0 10px; color: var(--brand); }
.timeline-item .content::before {
  content: '';
  position: absolute;
  top: 10px;
  width: 14px; height: 14px;
  background: var(--brand);
  border: 3px solid #fff; border-radius: 50%; z-index: 1;
  box-shadow: 0 0 8px rgba(74,197,36,0.6), 0 0 16px rgba(74,197,36,0.3);
}
.timeline-item.left .content::before { right: -40px; }
.timeline-item.right .content::before { left: -40px; }

/* Support Page */
.support-options {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 30px; margin-top: 30px;
}
.support-group {
  flex: 1 1 260px; max-width: 320px;
  background: #f9f9f9; border: 2px solid var(--brand);
  border-radius: 10px; padding: 20px; text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.support-group:hover { transform: translateY(-4px); box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
.support-group h3 { color: var(--brand); margin-bottom: 15px; font-size: 1.2em; }
.support-btn {
  display: block; margin: 10px 0; padding: 12px; background: var(--brand);
  color: #fff; border-radius: 8px; font-weight: bold; transition: background 0.3s, transform 0.2s;
}
.support-btn:hover { background: var(--brand-dark); transform: translateY(-3px); }

/* Contact – Buttons */
.contact-options {
  display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin: 20px 0;
}
.contact-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  border-radius: 8px; font-size: 1.1em; font-weight: bold; color: #fff;
  transition: background .3s, transform .2s;
}
.contact-btn i { font-size: 1.2em; }
.contact-btn:hover { transform: translateY(-3px); }
.contact-btn.phone { background: var(--brand); }
.contact-btn.phone:hover { background: var(--brand-dark); }
.contact-btn.email { background: #28a745; }
.contact-btn.email:hover { background: #1e7e34; }
.contact-btn.whatsapp { background: #25d366; }
.contact-btn.whatsapp:hover { background: #1ebe5d; }
.contact-btn.messenger { background: #0084FF; }
.contact-btn.messenger:hover { background: #006fd6; }
.contact-btn.facebook { background: #1877F2; }
.contact-btn.facebook:hover { background: #145dbf; }

/* Contact – Hours */
.hours {
  margin: 30px auto; max-width: 600px; text-align: left;
  background: #f9f9f9; padding: 20px; border: 1px solid #ddd; border-radius: 8px;
}
.hours-table {
  width: 100%; max-width: 500px; margin: 15px auto 0; border-collapse: collapse; font-size: 1.05em;
}
.hours-table td { padding: 8px 12px; border-bottom: 1px solid #ddd; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { font-weight: bold; text-align: left; }
.hours-table td:last-child { text-align: right; color: #000; }

/* Contact – Closures */
.closures {
  margin: 30px auto; max-width: 600px; text-align: left;
  background: #fff8f8; padding: 20px; border: 1px solid #f1c0c0; border-radius: 8px;
}
.closures ul { list-style: none; margin: 15px 0 0; padding: 0; }
.closures li { margin: 8px 0; font-size: 1.05em; }
.closures strong { color: #000; }

/* Contact – Map */
#map {
  height: 400px; width: 100%;
  border: 2px solid #ccc; border-radius: 8px; margin-top: 20px; overflow: hidden;
}

/* Footer */
footer {
  background: #333; color: #fff; text-align: center; padding: 15px 0; font-size: .9em;
}

/* ===== Home Users page ===== */
.hu-hero {
  background: #fff; max-width: 1000px; margin: 20px auto; padding: 40px 30px;
  border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
.hu-cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px;
}
.hu-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.hu-outline:hover { background: var(--brand); color: #fff; }

#hu-services .hu-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  max-width: 1000px; margin: 0 auto;
}
.hu-card {
  background: #f9f9f9; border: 2px solid var(--brand); border-radius: 10px;
  padding: 18px; text-align: left; transition: transform .25s ease, box-shadow .25s ease;
}
.hu-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,0.1); }
.hu-card h3 { color: var(--brand); margin: 0 0 8px; font-size: 1.15em; }

#hu-pricing .hu-price-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px;
  max-width: 1000px; margin: 20px auto 0;
}
.hu-price {
  background: #fff; border: 2px solid var(--brand); border-radius: 10px;
  padding: 18px; text-align: center;
}
.hu-price h3 { margin: 0 0 8px; color: var(--brand); }
.hu-price-amount { font-size: 1.8em; font-weight: bold; margin: 6px 0; }
.hu-price-note { color: #555; font-size: .95em; }
.hu-small { font-size: .9em; color: #555; max-width: 1000px; margin: 10px auto 0; }

#hu-projects .hu-gallery {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px;
}
.hu-shot { background: #fff; border: 1px solid #ddd; border-radius: 10px; overflow: hidden; text-align: left; }
.hu-shot img { display: block; width: 100%; height: 180px; object-fit: cover; }
.hu-shot figcaption { padding: 10px 12px; font-size: .98em; }

#hu-testimonials .hu-testimonials {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px;
}
.hu-quote {
  background: #fff; border: 2px solid var(--brand); border-radius: 10px; padding: 16px 18px; text-align: left;
}
.hu-quote p { margin: 0 0 10px; }
.hu-quote footer { color: #555; }

/* ===== Reviews label + panel (updated) ===== */
.reviews-label {
  max-width: 1000px;
  margin: 0 auto 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9em;
  color: #555;
  text-align: center;
}

/* Padded white panel (no border/shadow) for both modes */
.reviews-box {
  max-width: 1000px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
}

/* Static testimonials: vertical rhythm + clean footers */
.hu-testimonials { display: flex; flex-direction: column; gap: 20px; }
.hu-quote { text-align: left; font-style: italic; line-height: 1.6; margin: 0; padding: 0 0 10px; border-bottom: 1px solid #eee; }
.hu-quote:last-child { border-bottom: none; padding-bottom: 0; }
.hu-quote footer { font-style: normal; color: #333; background: none; display: block; margin-top: 6px; padding: 0; font-weight: 600; text-align: right; }
.hu-quote p::before { content: "“"; color: var(--brand, #4ac524); font-size: 1.2em; }
.hu-quote p::after { content: "”"; color: var(--brand, #4ac524); font-size: 1.2em; }

/* Ensure widgets don't overflow panel */
.reviews-box * { max-width: 100%; box-sizing: border-box; }

/* Responsive */
@media (max-width:768px){
  nav { justify-content: center; }
  .nav-logo, nav ul, .nav-phone { width: 100%; text-align: center; }
  nav ul li { margin: 6px 10px; }

  .button-container { flex-direction: column; width: 92%; gap: 12px; }
  .category-btn { width: 100%; padding: 18px; }

  #values .values-container { gap: 16px; }
  #values .value { flex: 1 1 100%; max-width: none; }

  .about-image-text { flex-direction: column; text-align: center; }
  .about-image-text img { max-width: 100%; }

  .timeline::after { left: 20px; top: var(--line-top, 20px); }
  .timeline-item {
    width: 100%; left: 0 !important; text-align: left;
    margin-bottom: 20px !important; padding: 12px 15px 12px 50px;
  }
  .timeline-item.right { left: 0 !important; }
  .timeline-item .content { margin: 0; }
  .timeline-item .content::before { left: -40px; top: 10px; }

  .support-options { flex-direction: column; gap: 20px; }
  .support-group { max-width: 100%; }

  #hu-services .hu-grid,
  #hu-pricing .hu-price-grid,
  #hu-projects .hu-gallery,
  #hu-testimonials .hu-testimonials {
    grid-template-columns: repeat(1, minmax(0,1fr));
  }
  .hu-shot img { height: 200px; }

  #map { height: 280px; }
}
@media (max-width:420px){
  #map { height: 240px; }
}
/* --- Reviews tweaks (Trustmary gap + static clipping) --- */

/* 1) Reduce gap between label and widget */
.reviews-label { margin-bottom: 6px; }                 /* was ~10px */
.reviews-box { padding: 20px 20px 24px; }              /* slightly lighter top padding */

/* Some embeds add their own top margins—neutralize the first child */
#tm-widget > :first-child { margin-top: 0 !important; }

/* 2) Ensure Trustmary content fits nicely in the panel */
#tm-widget, #tm-widget * { max-width: 100%; box-sizing: border-box; }

/* 3) Static testimonials: ensure clean spacing and no “clipped” edges */
#hu-testimonials .hu-testimonials {
  display: flex !important;          /* override any earlier grid */
  flex-direction: column;
  gap: 18px;                         /* tidy vertical rhythm */
}

#hu-testimonials .hu-quote {
  background: transparent;           /* rely on panel bg */
  border: none;                      /* remove old green box borders */
  padding: 0;                        /* reset */
  text-align: left;
  line-height: 1.6;
}

/* Soft divider between quotes without clipping */
#hu-testimonials .hu-quote + .hu-quote {
  border-top: 1px solid #eee;
  padding-top: 12px;
}

/* Reviewer line: readable, not grey-boxed */
#hu-testimonials .hu-quote footer {
  background: none;
  color: #333;
  font-weight: 600;
  margin-top: 6px;
  text-align: right;
  padding: 0;
}

/* Keep the decorative quotes but avoid overflow/clipping */
#hu-testimonials .hu-quote p { margin: 0; overflow: visible; }
#hu-testimonials .hu-quote p::before,
#hu-testimonials .hu-quote p::after { font-size: 1.2em; color: var(--brand); }

/* 4) Mobile: tighten panel a touch */
@media (max-width: 768px) {
  .reviews-box { padding: 18px 16px 22px; }
}
/* --- Static testimonials: tidy two-column layout --- */
#hu-testimonials .hu-testimonials {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

#hu-testimonials .hu-quote {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px 18px;
  text-align: left;
  line-height: 1.6;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

#hu-testimonials .hu-quote p {
  margin: 0 0 10px;
  overflow: visible;
}

#hu-testimonials .hu-quote footer {
  background: none;
  color: #333;
  font-weight: 600;
  margin-top: 6px;
  text-align: right;
  padding: 0;
}

#hu-testimonials .hu-quote p::before,
#hu-testimonials .hu-quote p::after {
  font-size: 1.2em;
  color: var(--brand);
}

/* Stack to one column on mobile */
@media (max-width: 768px) {
  #hu-testimonials .hu-testimonials {
    grid-template-columns: 1fr;
  }
}
