/* index.css — refreshed UI, section differentiation, improved cards & spacing */

:root{
  --bg: #f9fafb;
  --page-max: 1200px;
  --text: #0b1220;
  --muted: #54606a;
  --accent: #0f766e;
  --accent-2: #14b8a594;
  --card: #ffffff;
  --glass: rgba(255,255,255,0.72);
  --shadow-soft: 0 8px 28px rgba(2,6,23,0.06);
  --shadow-strong: 0 26px 60px rgba(2,6,23,0.08);
}

/* ---------- Reset & global ---------- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin:0;
   background-color: #f0faf9;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  font-size:16px;
}

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }

/* reduce huge whitespace between sections while keeping breathing room */
.section { padding: 44px 0; }

/* section alternation: soft tinted backgrounds for every other section (excluding hero) */
main > section:not(.hero):nth-of-type(odd) { background: transparent; }
main > section:not(.hero):nth-of-type(even) { background: linear-gradient(180deg, rgba(15,119,110,0.02), transparent 60%); }

/* ---------- Section titles (consistent & prominent) ---------- */
.section-title {
  font-size: 2.0rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 18px;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* underline accent bar under titles */
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin: 14px auto 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(15,119,110,0.08);
  opacity: .95;
}

/* small subtitle / lead spacing */
.lead { color: var(--muted); max-width: 760px; margin: 6px auto 18px; text-align:center; }

/* ---------- HERO (kept, but improved spacing & contrast) ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 56px 0 10px;
  overflow: hidden;
}

.hero-content {
  display:flex;
  align-items:center;
  gap: 36px;
  padding: 12px 0 36px;
}

.hero-text { flex:1; }
.hero-tag { display:inline-block; font-weight:700; opacity:.85; letter-spacing:.02em; }
.hero-text h1 { margin: 10px 0 12px; font-size: 2.8rem; line-height:1.04; font-weight:800; }
.highlight { background: rgba(255,255,255,0.16); padding: 4px 10px; border-radius:6px; }

.hero-subtitle { font-size:1.05rem; max-width:520px; opacity:.95; margin-bottom:18px; }

/* hero CTAs */
.hero-buttons { display:flex; gap:12px; margin-bottom:18px; }
.btn {
  padding: 12px 18px;
  border-radius: 10px;
  font-weight:700;
  text-decoration:none;
  display:inline-block;
  cursor:pointer;
}
.btn.primary {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 12px 30px rgba(2,6,23,0.06);
}
.btn.secondary {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

/* subtle hero image styling */
.hero-image { flex:1; display:flex; justify-content:center; align-items:center; }
.hero-image img { width:100%; max-width:520px; border-radius:16px; box-shadow: 0 30px 60px rgba(2,6,23,0.18); }

/* ---------- GRID UTILITIES ---------- */
.grid { display:grid; gap:24px; }

/* ---------- CATEGORIES (cards) ---------- */
.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  align-items: stretch;
  margin-top: 12px;
}

.category-card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.category-card img { width:100%; height:170px; object-fit:cover; border-radius:10px; box-shadow: 0 10px 30px rgba(2,6,23,0.04); }
.category-card h3 { margin:0; font-size:1.08rem; color: #0f2f2a; }
.category-card p { margin:0; color:var(--muted); font-size:0.96rem; }

.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); }

/* ---------- FEATURED PRODUCTS (single row card grid) ---------- */
.featured-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: 12px;
  margin-bottom: 6px;
}

.product-card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  display:flex;
  flex-direction:column;
  min-height: 260px;
  box-shadow: var(--shadow-soft);
  transition: transform .26s ease, box-shadow .26s ease;
  border: 1px solid rgba(11,18,32,0.03);
}

.product-card img { width:100%; height:170px; object-fit:cover; display:block; border-bottom: 1px solid rgba(11,18,32,0.04); }
.product-info { padding: 14px; margin-top: auto; text-align:center; }
.product-info h4 { margin:6px 0 0; font-size:1.03rem; color: #0f2f2a; }

/* product hover */
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-strong); }

/* SEE ALL CTA tile — slightly larger presence */
.see-all-feature {
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, #fbfffe, #ffffff);
  border-radius: 14px;
  padding: 20px;
  border: 1px dashed rgba(15,119,110,0.08);
  min-height: 260px;
}

.see-all-inner { text-align:center; max-width: 320px; }
.see-all-inner h4 { margin: 6px 0 6px; font-size:1.05rem; font-weight:800; color: #0f2f2a; }
.see-all-inner p { margin:0; color:var(--muted); font-size:0.95rem; line-height:1.45; }
.see-all-btn {
  margin-top:12px;
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  color:#fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  font-weight:700;
  text-decoration:none;
  box-shadow: 0 12px 30px rgba(15,119,110,0.12);
}

/* ---------- SERVICES (glassy cards, improved CTA) ---------- */
.services-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:20px;
  align-items:stretch;
  margin-top: 12px;
}

.service-card {
  position:relative;
  background: linear-gradient(180deg, var(--glass), rgba(255,255,255,0.84));
  border-radius: 14px;
  padding: 22px;
  min-height: 220px;
  display:flex;
  flex-direction:column;
  gap:12px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  border: 1px solid rgba(11,18,32,0.03);
  transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease;
}

.service-icon {
  width:64px; height:64px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(15,119,110,0.10), rgba(20,184,166,0.04));
  box-shadow: 0 8px 18px rgba(2,6,23,0.04);
  font-size:22px; color:var(--accent);
}

.service-card h4 { margin:6px 0 0; text-align:center; font-weight:700; color:#0f2f2a; }
.service-card p { margin:0; color:var(--muted); text-align:center; }

.service-cta {
  margin-top:auto;
  display:inline-block;
  text-align:center;
  width:100%;
  padding:12px;
  border-radius:10px;
  font-weight:700;
  color:var(--accent);
  background: rgba(15,119,110,0.03);
  border:1px solid rgba(15,119,110,0.08);
  text-decoration:none;
}

/* hover for services */
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); }
.service-card:hover .service-icon { transform: translateY(-6px) scale(1.04); transition: .28s; }

/* ---------- NEWSLETTER (kept prominent) ---------- */
.newsletter-box {
  background: linear-gradient(180deg, rgba(15,119,110,0.95), rgba(20,184,166,0.95));
  color: #fff;
  padding: 36px;
  border-radius: 12px;
  text-align:center;
  box-shadow: 0 20px 50px rgba(15,119,110,0.08);
  max-width: 820px;
  margin: 0 auto;
}
.newsletter-box h3 { margin:0 0 6px; color:#fff; font-size:1.2rem; }
.newsletter-box p { margin:0 0 12px; color: rgba(255,255,255,0.9); }
.newsletter-box input {
  padding:12px 14px; border-radius:10px; border:none; width:320px; max-width:100%; margin-right:10px;
}

/* ---------- Sticky social logos (same style as other pages) ---------- */
.sticky-social{
  position:fixed;
  right:24px;
  bottom:120px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:900;
}

.sticky-social .sticky-icon{
  width:48px;
  height:48px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ffffff;
  text-decoration:none;
  box-shadow:0 12px 26px rgba(0,0,0,0.35);
  border:2px solid #ffffff;
  transition:transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* platform colours */
.sticky-social .sticky-wa{background:#25D366;}
.sticky-social .sticky-ig{background:#E1306C;}
.sticky-social .sticky-fb{ background:#1877F2; }  /* Facebook */

.sticky-social .sticky-icon:hover{
  transform:translateY(-3px) scale(1.03);
  opacity:0.96;
  box-shadow:0 16px 30px rgba(0,0,0,0.4);
}

@media (max-width: 640px){
  .sticky-social{
    right:16px;
    bottom:90px;
  }
}

/* ---------- small utilities & responsive ---------- */
.muted { color:var(--muted); }
.btn.ghost { background:transparent; border:1px solid rgba(11,18,32,0.06); color:var(--text); }

/* spacing fixes: ensure sections don't collapse with big gaps */
#featured-products { padding-bottom: 18px; margin-bottom: 6px; }

/* responsive tweaks */
@media (max-width: 980px) {
  .hero-content { flex-direction:column; text-align:center; padding-bottom: 24px; }
  .hero-text h1 { font-size:2.2rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 200px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero-text h1 { font-size:1.8rem; }
  .categories-grid, .featured-grid, .services-grid { grid-template-columns: 1fr; gap:18px; }
  .section { padding: 28px 0; }
  .section-title::after { width: 48px; height:5px; }
  .hero-image img { max-width:420px; }
  .newsletter-box input { width: 100%; margin-bottom:8px; }
  .newsletter-box input + .btn.primary { width:100%; display:block; }
  .see-all-feature { order: 999; } /* keep CTA last on small screens */
}

/* accessibility focus visuals */
a:focus, button:focus { outline: 3px solid rgba(20,184,166,0.12); outline-offset:4px; border-radius:6px; }

/* keep visuals crisp on retina */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
