/* =========================================================
   MAWAWA SOLUTIONS — Design Tokens
   Black / Gold / Green / White, blueprint-and-skyline motif
   ========================================================= */
:root{
  --black: #0B0C0A;
  --charcoal: #17190F;
  --charcoal-2: #1F2216;
  --gold: #D4A72C;
  --gold-light: #F2C94C;
  --green: #1E7A3D;
  --green-dark: #14532A;
  --white: #FAFAF7;
  --cream: #F3EFE4;
  --ink: #17190F;
  --line: rgba(212,167,44,0.18);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 4px;
  --container: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; line-height:1.08; letter-spacing:-0.01em; }
p{ margin:0; }
.wrap{ max-width: var(--container); margin:0 auto; padding:0 24px; }
.mono{ font-family: var(--font-mono); letter-spacing: 0.02em; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* Blueprint grid texture, used behind dark hero/sections */
.blueprint{
  background-color: var(--black);
}

/* Skyline divider echoing the logo mark */
.skyline{
  height: 46px;
  background: var(--black);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100" preserveAspectRatio="none"><path d="M0,100 L0,60 L40,60 L40,30 L80,30 L80,60 L120,60 L120,10 L150,10 L150,45 L190,45 L190,60 L230,60 L230,20 L260,20 L260,60 L310,60 L310,40 L340,40 L340,60 L390,60 L390,15 L420,15 L420,60 L470,60 L470,35 L500,35 L500,60 L560,60 L560,5 L595,5 L595,60 L650,60 L650,30 L680,30 L680,60 L730,60 L730,20 L765,20 L765,60 L820,60 L820,45 L850,45 L850,60 L900,60 L900,10 L935,10 L935,60 L990,60 L990,35 L1020,35 L1020,60 L1080,60 L1080,25 L1110,25 L1110,60 L1200,60 L1200,100 Z"/></svg>') center/cover no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100" preserveAspectRatio="none"><path d="M0,100 L0,60 L40,60 L40,30 L80,30 L80,60 L120,60 L120,10 L150,10 L150,45 L190,45 L190,60 L230,60 L230,20 L260,20 L260,60 L310,60 L310,40 L340,40 L340,60 L390,60 L390,15 L420,15 L420,60 L470,60 L470,35 L500,35 L500,60 L560,60 L560,5 L595,5 L595,60 L650,60 L650,30 L680,30 L680,60 L730,60 L730,20 L765,20 L765,60 L820,60 L820,45 L850,45 L850,60 L900,60 L900,10 L935,10 L935,60 L990,60 L990,35 L1020,35 L1020,60 L1080,60 L1080,25 L1110,25 L1110,60 L1200,60 L1200,100 Z"/></svg>') center/cover no-repeat;
}
.skyline.flip{ transform: rotate(180deg); }

/* =============== HEADER =============== */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:44px; width:44px; border-radius:50%; }
.brand-name{ color: var(--white); font-family: var(--font-display); font-size:1.05rem; letter-spacing:0.04em; }
.brand-name span{ color: var(--gold-light); }
.nav-links{ display:flex; gap:32px; }
.nav-links a{
  color: var(--cream); font-size:0.92rem; font-weight:500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-links a:hover{ color: var(--gold-light); border-color: var(--gold); }
.nav-cta{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--gold); color: var(--black); font-weight:700;
  padding: 10px 18px; border-radius: var(--radius); font-size:0.88rem;
  border:1px solid var(--gold);
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover{ background: var(--gold-light); transform: translateY(-1px); }
.nav-toggle{ display:none; }

/* =============== HERO =============== */
.hero{ padding: 76px 0 64px; position:relative; overflow:hidden; }
.hero .wrap{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  color: var(--gold-light); font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform:uppercase;
  border:1px solid var(--line); padding:6px 12px; border-radius: 20px;
  margin-bottom: 22px;
}
.eyebrow::before{ content:""; width:6px; height:6px; background:var(--green); border-radius:50%; }
.hero h1{ color: var(--white); font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom:20px; }
.hero h1 em{ font-style:normal; color: var(--gold-light); }
.hero p.lead{ color: rgba(250,250,247,0.72); font-size:1.08rem; max-width: 480px; margin-bottom: 32px; }

/* Toggle: Find a Fundi / Buy Materials */
.finder{
  background: var(--charcoal); border:1px solid var(--line); border-radius: var(--radius);
  padding: 6px; display:inline-flex; margin-bottom:18px;
}
.finder button{
  font-family: var(--font-mono); font-size:0.82rem; letter-spacing:0.03em;
  background: transparent; border:none; color: rgba(250,250,247,0.6);
  padding: 10px 18px; border-radius: 3px; cursor:pointer;
  transition: background .15s ease, color .15s ease;
}
.finder button.active{ background: var(--gold); color: var(--black); font-weight:700; }

.search-box{
  display:flex; background: var(--white); border-radius: var(--radius); overflow:hidden;
  border: 1px solid var(--line);
}
.search-box input{
  flex:1; border:none; padding:16px 18px; font-family: var(--font-body); font-size:0.96rem; outline:none;
}
.search-box button{
  background: var(--green); color: var(--white); border:none; padding: 0 24px;
  font-weight:700; font-size:0.9rem; cursor:pointer; transition: background .15s ease;
}
.search-box button:hover{ background: var(--green-dark); }

.hero-stats{ display:flex; gap:28px; margin-top:34px; }
.hero-stats div{ color: var(--white); }
.hero-stats strong{ display:block; font-family: var(--font-display); font-size:1.5rem; color: var(--gold-light); }
.hero-stats span{ font-size:0.78rem; color: rgba(250,250,247,0.6); }

.hero-art{
  border:1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: var(--charcoal);
  display:flex; align-items:center; justify-content:center;
}
.hero-art img{ width: 220px; }

/* =============== SECTION SHELL =============== */
section{ padding: 80px 0; }
.section-head{ max-width: 620px; margin-bottom: 44px; }
.section-head .eyebrow{ color: var(--green-dark); border-color: rgba(30,122,61,0.25); }
.section-head .eyebrow::before{ background: var(--green); }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section-head p{ color: #52564A; font-size:1.02rem; }
.on-dark .section-head h2{ color: var(--white); }
.on-dark .section-head p{ color: rgba(250,250,247,0.65); }

/* =============== HOW IT WORKS =============== */
.steps{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.step{
  background: var(--cream); border:1px solid rgba(23,25,15,0.08); border-radius: var(--radius);
  padding: 28px; position:relative;
}
.step .num{
  font-family: var(--font-mono); color: var(--gold); font-size:0.8rem;
  border:1px solid var(--gold); display:inline-block; padding:2px 8px; border-radius:20px; margin-bottom:16px;
}
.step h3{ font-size:1.1rem; margin-bottom:10px; }
.step p{ color:#52564A; font-size:0.94rem; }

/* =============== TRADE BADGES =============== */
.trades{ display:flex; flex-wrap:wrap; gap:14px; }
.trade-badge{
  display:flex; align-items:center; gap:10px;
  background: var(--black); color: var(--white); border-radius: var(--radius);
  padding: 14px 20px; border:1px solid var(--line); flex: 1 1 200px;
  transition: border-color .15s ease, transform .15s ease;
}
.trade-badge:hover{ border-color: var(--gold); transform: translateY(-2px); }
.trade-badge .dot{ width:8px; height:8px; border-radius:50%; background: var(--gold); flex-shrink:0; }
.trade-badge span.name{ font-weight:600; font-size:0.95rem; }
.trade-badge span.count{ font-family: var(--font-mono); font-size:0.72rem; color: rgba(250,250,247,0.5); display:block; }

/* =============== FUNDI CARDS =============== */
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.fundi-card{
  border:1px solid rgba(23,25,15,0.1); border-radius: var(--radius); overflow:hidden;
  background: var(--white); transition: box-shadow .15s ease, transform .15s ease;
}
.fundi-card:hover{ box-shadow: 0 10px 28px rgba(23,25,15,0.1); transform: translateY(-3px); }
.fundi-top{
  background: var(--charcoal); padding:20px; display:flex; gap:14px; align-items:center;
  cursor: pointer; transition: background .15s ease;
}
.fundi-top:hover{ background: var(--charcoal-2); }
.fundi-avatar{
  width:52px; height:52px; border-radius:50%; background: var(--gold);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display);
  color: var(--black); font-weight:700; font-size:1.1rem; flex-shrink:0;
}
.fundi-top h3{ color: var(--white); font-size:1rem; }
.fundi-top .trade{ color: var(--gold-light); font-size:0.8rem; font-family: var(--font-mono); }
.fundi-body{ padding:20px; }
.fundi-body .meta{ display:flex; justify-content:space-between; font-size:0.85rem; color:#52564A; margin-bottom:14px; }
.badge-verified{
  display:inline-flex; align-items:center; gap:5px; background: rgba(30,122,61,0.1); color: var(--green-dark);
  font-size:0.72rem; font-weight:700; padding:4px 9px; border-radius:20px; margin-bottom:14px;
}
.badge-verified::before{ content:"✓"; }
.fundi-body a.contact{
  display:block; text-align:center; background: var(--green); color:var(--white);
  padding:11px; border-radius: var(--radius); font-weight:700; font-size:0.88rem;
}
.fundi-body a.contact:hover{ background: var(--green-dark); }

/* =============== MATERIALS =============== */
.materials-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.material-card{
  border:1px solid rgba(23,25,15,0.1); border-radius: var(--radius); padding:20px;
  background: var(--white);
}
.material-card .icon{
  width:44px; height:44px; border-radius:8px; background: var(--cream);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px; font-size:1.3rem;
}
.material-photo{
  width:100%; height:130px; object-fit:cover; border-radius: var(--radius); margin-bottom:14px;
}
.material-card h3{ font-size:0.98rem; margin-bottom:6px; }
.material-card .seller{ font-size:0.78rem; color:#767a6b; margin-bottom:10px; }
.material-card .price{ font-family: var(--font-mono); color: var(--green-dark); font-weight:700; font-size:1.02rem; }
.material-card .stock{ font-size:0.72rem; color: var(--gold); font-family: var(--font-mono); margin-top:4px; }
.material-card .buy-btn{
  display:block; text-align:center; background: var(--green); color: var(--white);
  padding:10px; border-radius: var(--radius); font-weight:700; font-size:0.85rem;
  margin-top:16px; transition: background .15s ease;
}
.material-card .buy-btn:hover{ background: var(--green-dark); }

/* =============== SUBSCRIBE / JOIN =============== */
.join{ background: var(--green-dark); position:relative; }
.join .wrap{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
.join h2{ color: var(--white); font-size: clamp(1.7rem,3vw,2.2rem); margin-bottom:16px; }
.join p{ color: rgba(250,250,247,0.78); margin-bottom:26px; }
.plan-list{ display:flex; flex-direction:column; gap:10px; margin-bottom:28px; }
.plan-list li{ display:flex; gap:10px; color: var(--white); font-size:0.94rem; align-items:flex-start; }
.plan-list li::before{ content:"—"; color: var(--gold-light); flex-shrink:0; }
.btn-gold{
  display:inline-flex; background: var(--gold); color: var(--black); font-weight:700;
  padding: 14px 26px; border-radius: var(--radius); font-size:0.95rem; border:none; cursor:pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn-gold:hover{ background: var(--gold-light); transform: translateY(-1px); }
.plan-card{
  background: var(--black); border:1px solid rgba(212,167,44,0.3); border-radius: var(--radius);
  padding: 32px;
}
.plan-card .price-row{ display:flex; align-items:baseline; gap:8px; margin-bottom:6px; }
.plan-card .price-row strong{ font-family: var(--font-display); font-size:2.1rem; color: var(--gold-light); }
.plan-card .price-row span{ color: rgba(250,250,247,0.55); font-size:0.85rem; }
.plan-card .tag{ color: var(--cream); font-size:0.85rem; margin-bottom:22px; display:block; }
.plan-card ul{ display:flex; flex-direction:column; gap:12px; margin-bottom:26px; }
.plan-card ul li{ color: var(--white); font-size:0.9rem; display:flex; gap:10px; }
.plan-card ul li::before{ content:"✓"; color: var(--green); font-weight:700; }

/* =============== TESTIMONIAL / TRUST =============== */
.trust-strip{ background: var(--cream); }
.trust-strip .wrap{ display:grid; grid-template-columns: repeat(4,1fr); gap:24px; text-align:center; }
.trust-strip strong{ display:block; font-family:var(--font-display); font-size:2rem; color: var(--green-dark); }
.trust-strip span{ font-size:0.82rem; color:#52564A; }

/* =============== CONTACT =============== */
.contact .wrap{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; }
.contact-form{ display:flex; flex-direction:column; gap:14px; }
.contact-form input, .contact-form select, .contact-form textarea{
  padding:13px 14px; border:1px solid rgba(23,25,15,0.15); border-radius: var(--radius);
  font-family: var(--font-body); font-size:0.94rem; background: var(--white); color: var(--ink);
}
.contact-form textarea{ resize:vertical; min-height:110px; }
.contact-info{ display:flex; flex-direction:column; gap:22px; }
.contact-info .item{ display:flex; gap:14px; }
.contact-info .item .ic{
  width:40px; height:40px; border-radius:50%; background: var(--black); color: var(--gold-light);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:1rem;
}
.contact-info h4{ font-size:0.98rem; margin-bottom:3px; }
.contact-info p{ color:#52564A; font-size:0.9rem; }

/* =============== FUNDI PROFILE PAGE =============== */
.profile-hero{ background: var(--black); padding: 48px 0; }
.profile-hero .wrap{ display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.profile-avatar-lg{
  width:88px; height:88px; border-radius:50%; background: var(--gold);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display);
  color: var(--black); font-weight:700; font-size:1.8rem; flex-shrink:0;
}
.profile-hero h1{ color: var(--white); font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom:6px; }
.profile-hero .trade-line{ color: var(--gold-light); font-family: var(--font-mono); font-size:0.95rem; margin-bottom:10px; }
.profile-hero .meta-row{ display:flex; gap:18px; flex-wrap:wrap; color: rgba(250,250,247,0.7); font-size:0.9rem; }
.profile-actions{ margin-left:auto; display:flex; gap:12px; flex-wrap:wrap; }
.back-link{ display:inline-block; color: var(--gold-light); font-family: var(--font-mono); font-size:0.82rem; margin-bottom:18px; }
.back-link:hover{ text-decoration:underline; }

.gallery-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
.gallery-item{
  aspect-ratio: 4/3; border-radius: var(--radius); border:1px solid rgba(23,25,15,0.1);
  background: linear-gradient(135deg, var(--cream), #E8E2D0);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  color:#8a8c7d; font-size:0.8rem;
}
.gallery-item .ph-icon{ font-size:1.8rem; }
.gallery-grid img.gallery-photo{
  aspect-ratio: 4/3; border-radius: var(--radius); border:1px solid rgba(23,25,15,0.1);
  width:100%; height:100%; object-fit:cover;
}

.about-block{ max-width:680px; }
.about-block p{ color:#52564A; font-size:1rem; margin-bottom:14px; }

.review-card{
  border:1px solid rgba(23,25,15,0.1); border-radius: var(--radius); padding:20px; background: var(--white);
  margin-bottom:14px;
}
.review-card .stars{ color: var(--gold); font-family: var(--font-mono); font-size:0.85rem; margin-bottom:8px; }
.review-card p{ color:#3a3c31; font-size:0.94rem; margin-bottom:8px; }
.review-card .who{ color:#767a6b; font-size:0.8rem; font-family: var(--font-mono); }

.review-form{
  border:1px solid rgba(23,25,15,0.1); border-radius: var(--radius); padding:26px;
  background: var(--cream); margin-top:26px;
}
.review-form h3{ font-size:1.05rem; margin-bottom:6px; }
.review-form .hint{ color:#767a6b; font-size:0.82rem; margin-bottom:18px; }
.star-picker{ display:flex; gap:6px; margin-bottom:18px; }
.star-picker button{
  background:none; border:none; font-size:1.6rem; cursor:pointer; color:#ccc6b0;
  padding:0; line-height:1; transition: color .1s ease, transform .1s ease;
}
.star-picker button.filled{ color: var(--gold); }
.star-picker button:hover{ transform: scale(1.12); }
.review-form input, .review-form textarea{
  width:100%; padding:12px 14px; border:1px solid rgba(23,25,15,0.15); border-radius: var(--radius);
  font-family: var(--font-body); font-size:0.92rem; background: var(--white); color: var(--ink);
  margin-bottom:14px; box-sizing:border-box;
}
.review-form textarea{ resize:vertical; min-height:90px; }
.review-form .note{ font-size:0.76rem; color:#8a8c7d; margin-top:10px; }

/* =============== FOOTER =============== */
footer{ background: var(--black); padding: 48px 0 24px; }
footer .wrap{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:36px; }
.foot-brand img{ height:40px; margin-bottom:14px; border-radius: 50%; }
.foot-brand p{ color: rgba(250,250,247,0.55); font-size:0.86rem; max-width:260px; }
footer h5{ color: var(--gold-light); font-size:0.82rem; letter-spacing:0.06em; text-transform:uppercase; margin-bottom:16px; font-family: var(--font-mono); }
footer ul{ display:flex; flex-direction:column; gap:10px; }
footer a{ color: rgba(250,250,247,0.65); font-size:0.9rem; }
footer a:hover{ color: var(--gold-light); }
.foot-bottom{
  border-top:1px solid var(--line); padding-top:20px; display:flex; justify-content:space-between;
  color: rgba(250,250,247,0.45); font-size:0.8rem; flex-wrap:wrap; gap:10px;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 900px){
  .nav-links{ display:none; }
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-art{ order:-1; }
  .steps, .grid-3{ grid-template-columns:1fr; }
  .materials-grid{ grid-template-columns: repeat(2,1fr); }
  .join .wrap{ grid-template-columns:1fr; }
  .trust-strip .wrap{ grid-template-columns: repeat(2,1fr); gap:32px; }
  .contact .wrap{ grid-template-columns:1fr; }
  footer .wrap{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .materials-grid{ grid-template-columns: 1fr; }
  .hero-stats{ flex-wrap:wrap; gap:20px; }
  footer .wrap{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior:auto !important; }
}
