/* ================================================================
   NBE — Premium Light Homepage  |  style.css
   Ultra-clean · Glassmorphism · Micro-interactions · Mobile-first
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design tokens ── */
:root {
  /* Brand */
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-400: #4ade80;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --nbe:       #2e7d32;
  --nbe-dark:  #1b5e20;

  /* Neutrals */
  --white:     #ffffff;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-300:  #d1d5db;
  --gray-400:  #9ca3af;
  --gray-500:  #6b7280;
  --gray-700:  #374151;
  --gray-900:  #111827;

  /* Surfaces */
  --bg:        #f0fdf4;
  --surface:   rgba(255,255,255,0.72);
  --surface-s: rgba(255,255,255,0.92);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 24px 56px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.05);
  --shadow-green: 0 20px 48px rgba(46,125,50,0.22), 0 6px 16px rgba(46,125,50,0.12);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Motion */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    180ms;
  --dur-base:    280ms;
  --dur-slow:    480ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }

body {
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* ================================================================
   BACKGROUND MESH — full-page animated gradient blobs
   ================================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 15%, rgba(134,239,172,0.30) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 80%, rgba(74,222,128,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(240,253,244,0.90) 0%, transparent 100%);
  animation: meshDrift 18s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0%   { transform: scale(1) translateY(0); }
  100% { transform: scale(1.08) translateY(-20px); }
}

/* ================================================================
   STICKY HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0 20px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(46,125,50,0.10);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), var(--shadow-xs);
  animation: headerReveal var(--dur-slow) var(--ease-out) both;
}

@keyframes headerReveal {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.site-header__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
}

.site-logo {
  height: auto;
  width: clamp(190px, 52vw, 260px);
  object-fit: contain;
  display: block;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 20px 28px;
  animation: contentRise 0.7s var(--ease-out) 0.1s both;
}

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

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
  border: 1px solid var(--green-200);
}

.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--nbe);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

.hero__title {
  font-size: clamp(22px, 6.5vw, 34px);
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.hero__title span {
  color: var(--nbe);
  position: relative;
  display: inline-block;
}

/* animated underline on title span */
.hero__title span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 3px;
  background: var(--nbe);
  border-radius: var(--r-full);
  animation: underlineGrow 0.9s var(--ease-out) 0.6s both;
}

@keyframes underlineGrow {
  from { width: 0; }
  to   { width: 100%; }
}

.hero__sub {
  font-size: clamp(13px, 3.5vw, 15px);
  color: var(--gray-500);
  font-weight: 400;
  line-height: 1.7;
}

/* ── Green divider after hero ── */
.hero__divider {
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--nbe), #4ade80);
  border-radius: var(--r-full);
  margin: 20px 0 0;
}

/* ================================================================
   SERVICE CARDS GRID
   ================================================================ */
.services {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 4px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Individual card ── */
.scard {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-lg);
  padding: 24px 20px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.8);
  overflow: hidden;
  transition:
    transform   var(--dur-base) var(--ease-spring),
    box-shadow  var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-in-out);
  /* staggered entrance */
}

.scard:nth-child(1) { animation: cardSlide 0.65s var(--ease-out) 0.20s both; }
.scard:nth-child(2) { animation: cardSlide 0.65s var(--ease-out) 0.35s both; }
.scard:nth-child(3) { animation: cardSlide 0.65s var(--ease-out) 0.50s both; }

@keyframes cardSlide {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* top accent stripe — animated color sweep */
.scard::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--nbe-dark) 0%,
    #4ade80 40%,
    var(--nbe) 80%,
    var(--nbe-dark) 100%
  );
  background-size: 300% 100%;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  animation: stripeScroll 5s linear infinite;
  opacity: 0.75;
  transition: opacity var(--dur-base) var(--ease-out);
}

.scard:hover::before  { opacity: 1; }

@keyframes stripeScroll {
  0%   { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* shimmer overlay on hover */
.scard::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg,
    rgba(255,255,255,0)   0%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0)   100%
  );
  background-size: 250% 100%;
  background-position: -100% 0;
  transition: background-position 0.55s var(--ease-out);
  pointer-events: none;
}

.scard:hover::after { background-position: 200% 0; }

/* hover lift */
.scard:hover,
.scard:focus-visible {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-green);
  border-color: rgba(46,125,50,0.25);
  outline: none;
}

/* tap / active */
.scard:active { transform: scale(0.975); box-shadow: var(--shadow-xs); }

/* ── Card image container ── */
.scard__img-wrap {
  flex-shrink: 0;
  width: clamp(76px, 22vw, 98px);
  height: clamp(76px, 22vw, 98px);
  border-radius: var(--r-md);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-spring);
}

.scard:hover .scard__img-wrap {
  transform: scale(1.08) rotate(-2deg);
}

.scard__img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
}

/* ── Card text block ── */
.scard__body {
  flex: 1;
  min-width: 0;
}

.scard__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--nbe);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--r-full);
  padding: 2px 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.scard__title {
  font-size: clamp(16px, 4.8vw, 20px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 5px;
  line-height: 1.3;
  transition: color var(--dur-fast);
}

.scard:hover .scard__title { color: var(--nbe); }

.scard__desc {
  font-size: clamp(11.5px, 3.2vw, 13px);
  color: var(--gray-400);
  line-height: 1.6;
  font-weight: 400;
}

/* ── Arrow chip ── */
.scard__arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-50);
  border: 1.5px solid var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background    var(--dur-base) var(--ease-out),
    border-color  var(--dur-base) var(--ease-out),
    transform     var(--dur-base) var(--ease-spring);
}

.scard__arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--nbe);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--dur-fast);
}

.scard:hover .scard__arrow {
  background: var(--nbe);
  border-color: var(--nbe);
  transform: translateX(-4px) scale(1.12);
}

.scard:hover .scard__arrow svg { stroke: #fff; }

/* ================================================================
   BOTTOM TRUST BAR
   ================================================================ */
.trust-bar {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: contentRise 0.7s var(--ease-out) 0.65s both;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  text-align: center;
}

.trust-icon {
  font-size: 22px;
  line-height: 1;
}

.trust-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-200);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: linear-gradient(135deg, var(--nbe-dark) 0%, var(--nbe) 60%, #388e3c 100%);
  padding: 22px 20px;
  text-align: center;
  overflow: hidden;
}

/* decorative circles */
.site-footer::before,
.site-footer::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255,255,255,0.06);
}
.site-footer::before {
  width: 140px; height: 140px;
  bottom: -50px; right: -40px;
}
.site-footer::after {
  width: 90px; height: 90px;
  top: -30px; left: -20px;
}

.site-footer__text {
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 400;
  line-height: 1.7;
}

.site-footer__brand {
  display: block;
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (min-width: 560px) {
  .services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .scard:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 400px) {
  .hero { padding: 28px 16px 20px; }
  .services { padding: 0 12px 32px; gap: 12px; }
  .scard { padding: 18px 14px 16px; gap: 14px; }
  .scard__img-wrap { width: 68px; height: 68px; }
  .trust-bar { flex-wrap: wrap; gap: 12px; }
  .trust-divider { display: none; }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::before { animation: none; }
}
