/* ============================================================
   NigaTips — Habesha Gold Design System
   Clean white/cream, Ethiopian flag green + gold, Lalibela cross
   motif, trustworthy utility-tool aesthetic.
   ============================================================ */

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

:root {
  --bg:         #FAFAF7;
  --surface:    #FFFFFF;
  --surface2:   #F4F4EF;
  --surface3:   #EAEAE3;
  --border:     rgba(30,60,20,0.10);
  --border-md:  rgba(30,60,20,0.18);

  --green:      #1B7A3A;
  --green-dim:  rgba(27,122,58,0.10);
  --gold:       #C8860A;
  --gold-dim:   rgba(200,134,10,0.12);
  --gold-soft:  #F5A623;
  --red-eth:    #B01E1E;

  --text:       #1A1A14;
  --text-dim:   #8A8A72;
  --text-mid:   #4A4A38;

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow: 0 4px 20px rgba(30,60,20,0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.25; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 99px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,250,247,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: 1100px; margin: 0 auto; padding: 15px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--green); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; color: var(--text); }
.brand-name small { display: block; font-size: 10px; font-weight: 500; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--text-mid); font-size: 13.5px; font-weight: 500; padding: 8px 14px; border-radius: 99px; transition: all .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); background: var(--green-dim); text-decoration: none; }
.nav-burger { display: none; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-size: 16px; color: var(--text); }

/* ── Hero ── */
.hero { padding: 56px 22px 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: '✞'; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 200px; opacity: 0.025; pointer-events: none; color: var(--gold); }
.hero-badge { display: inline-block; background: var(--green-dim); color: var(--green); border: 1px solid rgba(27,122,58,0.2); border-radius: 99px; padding: 5px 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); color: var(--text); max-width: 620px; margin: 0 auto 14px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { font-size: 15px; color: var(--text-dim); max-width: 480px; margin: 0 auto 28px; line-height: 1.7; }
.hero-search input {
  width: 100%; max-width: 500px; padding: 15px 22px; background: var(--surface);
  border: 1.5px solid var(--border-md); border-radius: 99px; font-size: 14px;
  font-family: 'Inter', sans-serif; color: var(--text); outline: none;
  box-shadow: var(--shadow); transition: border-color .2s;
}
.hero-search input:focus { border-color: var(--green); }
.hero-search input::placeholder { color: var(--text-dim); }

/* ── Ad slots ── */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px dashed var(--border-md); border-radius: var(--r-md);
  color: var(--text-dim); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  overflow: hidden; margin: 28px 0;
}
.ad-leaderboard { min-height: 90px; }
.ad-rectangle { min-height: 250px; max-width: 336px; margin-left: auto; margin-right: auto; }
.ad-banner { min-height: 90px; }

/* ── Section header ── */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 28px 0 0; }
.section-head h2 { font-size: 22px; color: var(--text); }
.tool-count { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(200,134,10,0.2); border-radius: 99px; padding: 4px 14px; font-size: 12px; font-weight: 700; }

/* ── Tools grid ── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 14px; padding-bottom: 12px; }
.tool-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px; text-decoration: none; color: var(--text); transition: all .2s;
  box-shadow: var(--shadow);
}
.tool-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(27,122,58,0.10); text-decoration: none; }
.tool-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.tool-info { flex: 1; min-width: 0; }
.tool-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.tool-info p { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.tool-arrow { color: var(--green); font-size: 16px; margin-top: 2px; flex-shrink: 0; }

.no-results { text-align: center; padding: 40px; color: var(--text-dim); font-size: 14px; }

/* ── About strip ── */
.about-strip { margin: 28px auto; }
.about-strip-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 32px; display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.about-strip-inner h2 { font-size: 22px; margin-bottom: 10px; }
.about-strip-inner p { font-size: 14px; color: var(--text-dim); line-height: 1.7; max-width: 540px; }
.about-stats { display: flex; gap: 24px; flex-shrink: 0; }
.astat { text-align: center; }
.astat span { display: block; font-size: 26px; font-weight: 800; color: var(--green); font-family: 'Space Grotesk', sans-serif; }
.astat { font-size: 12px; color: var(--text-dim); }

/* ── Tool page layout ── */
.tool-page { max-width: 760px; margin: 0 auto; padding: 36px 22px 80px; flex: 1; }
.tool-page-header { margin-bottom: 28px; }
.tool-page-header .back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.tool-page-header .back:hover { color: var(--green); text-decoration: none; }
.tool-page-header h1 { font-size: 30px; margin-bottom: 6px; }
.tool-page-header p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.tool-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px; }
.field-group { margin-bottom: 18px; }
.field-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif; }
.field-input {
  width: 100%; padding: 13px 16px; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--r-md); font-size: 15px; font-family: 'Inter', sans-serif; color: var(--text);
  outline: none; transition: border-color .2s;
}
.field-input:focus { border-color: var(--green); background: var(--surface); }
select.field-input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238A8A72' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.btn-convert {
  width: 100%; padding: 15px; background: var(--green); color: #fff; border: none;
  border-radius: var(--r-md); font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; transition: all .2s; margin-top: 4px;
}
.btn-convert:hover { background: #155C2C; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(27,122,58,0.25); }
.result-box {
  background: var(--green-dim); border: 1.5px solid rgba(27,122,58,0.2); border-radius: var(--r-md);
  padding: 20px; margin-top: 20px; text-align: center; display: none;
}
.result-box .result-value { font-size: 26px; font-weight: 800; color: var(--green); font-family: 'Space Grotesk', sans-serif; margin-bottom: 4px; }
.result-box .result-label { font-size: 12px; color: var(--text-dim); }
.result-box .copy-btn { margin-top: 12px; padding: 8px 20px; background: var(--green); color: #fff; border: none; border-radius: 99px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* ── Info cards ── */
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; }
.info-card h3 { font-size: 16px; margin-bottom: 10px; color: var(--text); }
.info-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }
.info-card ul { margin: 8px 0 0 18px; color: var(--text-dim); font-size: 13.5px; line-height: 1.8; }

/* ── Content pages ── */
.content-page { max-width: 720px; margin: 0 auto; padding: 48px 22px 80px; flex: 1; }
.content-page h1 { font-size: 32px; margin-bottom: 10px; }
.content-page .updated { color: var(--text-dim); font-size: 12px; margin-bottom: 32px; }
.content-page h2 { font-size: 18px; color: var(--green); margin: 28px 0 10px; }
.content-page p { font-size: 14.5px; color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; max-width: 680px; }
.content-page ul { margin: 0 0 14px 20px; color: var(--text-mid); font-size: 14.5px; line-height: 1.8; }
.content-page a { color: var(--green); }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; max-width: 460px; margin-top: 20px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); margin-top: auto; background: var(--surface); padding: 40px 22px 28px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.footer-grid > div > p { font-size: 13px; color: var(--text-dim); line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-mid); font-size: 13.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--green); text-decoration: none; }
.footer-bottom { max-width: 1100px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--text-dim); font-size: 12px; }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 22px 16px; flex-direction: column; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; align-items: center; justify-content: center; }
  .hero { padding: 40px 22px 28px; }
  .about-strip-inner { flex-direction: column; gap: 20px; }
  .about-stats { justify-content: center; }
  .tool-page, .content-page { padding: 24px 16px 60px; }
  .tool-box { padding: 20px; }
}
