/* =========================================================
   HABESHA MARKET — MARKETPLACE UI
   Palette: warm cream + deep teal + amber/coral
   Display font: Sora | Body font: Inter
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{

  /* ---- core palette ---- */
  --ink:        #1a1310;   /* near-black text */
  --paper:      #fff9f1;   /* warm cream page bg */
  --card:       #ffffff;

  --teal-900:   #0b3d39;
  --teal-700:   #0f5c54;
  --teal-500:   #157a6e;

  --amber-600:  #dd8d1c;
  --amber-500:  #f0a531;
  --amber-100:  #fdecd0;

  --coral-500:  #e8604c;

  --muted:      #7a7066;
  --border:     rgba(15,92,84,.14);

  --shadow-sm:  0 4px 14px rgba(11,61,57,.08);
  --shadow-md:  0 14px 34px rgba(11,61,57,.14);
  --shadow-lg:  0 24px 60px rgba(11,61,57,.22);

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  26px;
}

/* =========================================================
   RESET
   ========================================================= */

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

a{ text-decoration:none; color:inherit; }
img{ max-width:100%; display:block; }

h1, h2, h3, h4, h5{
  font-family:'Sora', sans-serif;
  color:var(--ink);
}

:focus-visible{
  outline:3px solid var(--amber-500);
  outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar{
  background:var(--teal-900) !important;
  border-bottom:1px solid rgba(255,255,255,.08);
  padding-top:14px;
  padding-bottom:14px;
}

.navbar-brand{
  font-family:'Sora', sans-serif;
  font-weight:800;
  font-size:1.6rem;
  color:var(--amber-500) !important;
  letter-spacing:-.02em;
}

.nav-link{
  color:#f1ece2 !important;
  font-weight:600;
  font-size:.95rem;
}

.nav-link:hover{ color:var(--amber-500) !important; }


/* =========================================================
   HERO
   ========================================================= */

/* =========================================================
   HERO
========================================================= */

.hero{
  position:relative;
  min-height:85vh;

  background:
linear-gradient(
  rgba(11,61,57,.35),
  rgba(11,61,57,.25)
),
  url("../images/hero.png");  

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  padding:90px 0 70px;
  overflow:hidden;
  display:flex;
  align-items:center;
}

.hero::before{
  /* amber accent blob, top right */
  content:'';
  position:absolute;
  width:520px;
  height:520px;
  background:radial-gradient(circle, rgba(240,165,49,.30) 0%, rgba(240,165,49,0) 70%);
  border-radius:50%;
  right:-160px;
  top:-180px;
  pointer-events:none;
}

.hero::after{
  content:'';
  position:absolute;
  width:420px;
  height:420px;
  background:radial-gradient(circle, rgba(232,96,76,.18) 0%, rgba(232,96,76,0) 70%);
  border-radius:50%;
  left:-160px;
  bottom:-200px;
  pointer-events:none;
}

.hero-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(240,165,49,.14);
  border:1px solid rgba(240,165,49,.35);
  color:var(--amber-500);
  font-weight:700;
  font-size:.8rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:7px 16px;
  border-radius:99px;
  margin-bottom:22px;
}

.hero-eyebrow .dot{
  width:7px; height:7px;
  background:var(--amber-500);
  border-radius:50%;
  animation:pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot{
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.4; transform:scale(.7); }
}

.hero h1{
  font-size:3.4rem;
  font-weight:800;
  line-height:1.08;
  color:#fffaf2;
  letter-spacing:-.02em;
  margin-bottom:20px;
}

.hero h1 em{
  font-style:normal;
  color:var(--amber-500);
}

.hero p.lead{
  font-size:1.15rem;
  color:#cfe3df;
  max-width:520px;
  margin-bottom:32px;
  line-height:1.6;
}

.hero-cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:34px;
}

.btn-amber{
  background:var(--amber-500);
  color:var(--teal-900);
  font-weight:700;
  border:none;
  padding:13px 28px;
  border-radius:99px;
  transition:.2s ease;
  box-shadow:0 10px 24px rgba(240,165,49,.28);
}

.btn-amber:hover{
  background:var(--amber-600);
  color:var(--teal-900);
  transform:translateY(-2px);
}
.hero-search{

  background:rgba(255,255,255,.08);

  backdrop-filter:blur(15px);

  border:1px solid rgba(255,255,255,.12);

  border-radius:24px;

  padding:20px;

  margin-top:25px;

}

.btn-ghost-light{
  background:transparent;
  color:#fffaf2;
  font-weight:700;
  border:1.5px solid rgba(255,250,242,.4);
  padding:13px 28px;
  border-radius:99px;
  transition:.2s ease;
}

.btn-ghost-light:hover{
  background:rgba(255,250,242,.1);
  border-color:#fffaf2;
  color:#fffaf2;
  transform:translateY(-2px);
}

.hero-trust{
  display:flex;
  flex-wrap:wrap;
  gap:26px;
  color:#bcd6d1;
  font-size:.9rem;
  font-weight:500;
}

.hero-trust strong{
  color:#fffaf2;
  font-family:'Sora', sans-serif;
  font-weight:700;
}

/* ---- search card ---- */

.search-box{
  background:var(--card);
  padding:22px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  margin-bottom:30px;
}

.search-box .form-control,
.search-box .form-select{
  border:1.5px solid #ece5d8;
  border-radius:var(--radius-sm);
  padding:12px 16px;
  font-size:.95rem;
  color:var(--ink);
  background:#fffdfa;
}

.search-box .form-control:focus,
.search-box .form-select:focus{
  border-color:var(--teal-500);
  box-shadow:0 0 0 3px rgba(21,122,110,.12);
}

.search-box button[type="submit"]{
  background:var(--teal-700);
  border:none;
  border-radius:var(--radius-sm);
  font-weight:700;
  padding:13px 30px;
  transition:.2s;
}

.search-box button[type="submit"]:hover{
  background:var(--teal-900);
}

/* ---- hero image side ---- */

.hero-media{
  position:relative;
}

.hero-media .blob{
  position:absolute;
  inset:-6% -4%;
  background:var(--amber-500);
  border-radius:42% 58% 63% 37% / 41% 44% 56% 59%;
  z-index:0;
  opacity:.9;
}

.hero-media img{
  position:relative;
  z-index:1;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  width:100%;
  height:440px;
  object-fit:cover;
}

.hero-badge{
  position:absolute;
  z-index:2;
  left:-18px;
  bottom:-18px;
  background:var(--card);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-md);
  padding:14px 18px;
  display:flex;
  align-items:center;
  gap:10px;
}

.hero-badge .icon{
  width:38px; height:38px;
  border-radius:50%;
  background:var(--teal-700);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}

.hero-badge .label{
  font-weight:700;
  font-size:.85rem;
  color:var(--ink);
  line-height:1.2;
}

.hero-badge .sub{
  font-size:.74rem;
  color:var(--muted);
}

/* =========================================================
   TICKER STRIP (live categories marquee)
   ========================================================= */

.ticker{
  background:var(--teal-900);
  border-top:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  padding:13px 0;
}

.ticker-track{
  display:flex;
  width:max-content;
  gap:48px;
  animation:ticker-scroll 32s linear infinite;
}

.ticker:hover .ticker-track{ animation-play-state:paused; }

@keyframes ticker-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

.ticker-item{
  display:flex;
  align-items:center;
  gap:10px;
  color:#cfe3df;
  font-weight:600;
  font-size:.88rem;
  white-space:nowrap;
}

.ticker-item .bullet{
  width:5px; height:5px;
  background:var(--amber-500);
  border-radius:50%;
}

/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-eyebrow{
  display:block;
  text-align:center;
  color:var(--amber-600);
  font-weight:700;
  font-size:.8rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:8px;
}

.section-title{
  font-size:2.1rem;
  font-weight:800;
  margin-bottom:46px;
  text-align:center;
  color:var(--teal-900);
  letter-spacing:-.01em;
}

/* =========================================================
   CATEGORY CARD
 /* =========================================================
   CATEGORY CARD
   ========================================================= */

.category-card{

    background:linear-gradient(
        135deg,
        #0b3a3d 0%,
        #14575a 50%,
        #1d6d70 100%
    );

    border:1px solid rgba(255,255,255,.08);

    border-radius:22px;

    padding:30px 20px;

    text-align:center;

    height:100%;

    transition:.35s ease;

    cursor:pointer;

    position:relative;

    overflow:hidden;

}

.category-card::before{

    content:'';

    position:absolute;

    top:-80px;

    right:-80px;

    width:180px;

    height:180px;

    border-radius:50%;

    background:rgba(240,165,49,.12);

}

.category-card:hover{

    transform:translateY(-10px);

    border-color:#f0a531;

    box-shadow:0 20px 40px rgba(0,0,0,.30);

}

.category-icon{

    width:75px;

    height:75px;

    margin:0 auto 18px;

    border-radius:50%;

    background:rgba(240,165,49,.15);

    color:#f0a531;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:32px;

}

.category-card h5{

    color:#ffffff !important;

    font-weight:700;

    font-size:1rem;

    margin-top:10px;

    margin-bottom:0;

}

.category-card a{

    color:#ffffff !important;

    text-decoration:none;

}

/* =========================================================
   AD CARD
   ========================================================= */

.ad-card{

    background:linear-gradient(
        135deg,
        #0b3a3d 0%,
        #14575a 50%,
        #1d6d70 100%
    );

    border-radius:22px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.08);

    transition:.35s ease;

    height:100%;

    position:relative;

}

.ad-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 40px rgba(0,0,0,.30);

    border-color:#f0a531;

}

.ad-card .img-wrap{

    position:relative;

    overflow:hidden;

}

.ad-card img{

    height:230px;

    width:100%;

    object-fit:cover;

    transition:.4s ease;

}

.ad-card:hover img{

    transform:scale(1.08);

}

.ad-badge-new{

    position:absolute;

    top:12px;

    left:12px;

    background:#f0a531;

    color:#08252a;

    font-size:.7rem;

    font-weight:800;

    padding:6px 12px;

    border-radius:99px;

    z-index:2;

}

.ad-content{

    padding:18px;

}

.ad-title{

    font-size:1rem;

    font-weight:700;

    color:#ffffff !important;

    margin-bottom:8px;

    display:-webkit-box;

    -webkit-line-clamp:1;

    -webkit-box-orient:vertical;

    overflow:hidden;

}

.ad-price{

    font-size:1.4rem;

    font-weight:800;

    color:#f0a531 !important;

    margin-bottom:8px;

}

.ad-location{

    font-size:.85rem;

    color:#d7ece7;

    margin-bottom:16px;

    display:flex;

    align-items:center;

    gap:6px;

}

.ad-location i{

    color:#f0a531;

}

.ad-card .btn{

    width:100%;

    background:#f0a531;

    border:none;

    color:#08252a;

    font-weight:700;

    border-radius:12px;

    padding:12px;

    transition:.3s;

}

.ad-card .btn:hover{

    background:#ffc35f;

    color:#08252a;

}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state{

    text-align:center;

    padding:60px 20px;

    color:#d7ece7;

}

.empty-state .icon{

    font-size:42px;

    color:#f0a531;

    margin-bottom:16px;

}

/* =========================================================
   LOCATIONS
   ========================================================= */

.location-card{

    background:linear-gradient(
        135deg,
        #0b3a3d 0%,
        #14575a 50%,
        #1d6d70 100%
    );

    border-radius:16px;

    padding:18px;

    text-align:center;

    border:1px solid rgba(255,255,255,.08);

    font-weight:700;

    color:#ffffff !important;

    transition:.3s;

    cursor:pointer;

}

.location-card:hover{

    transform:translateY(-6px);

    border-color:#f0a531;

    box-shadow:0 15px 30px rgba(0,0,0,.25);

    color:#ffffff;

}

/* =========================================================
   SECTION TITLES
   ========================================================= */

.section-title{

    font-size:2.4rem;

    font-weight:800;

    text-align:center;

    color:#f0a531 !important;

    text-shadow:
    0 2px 10px rgba(0,0,0,.25);

    margin-bottom:45px;

}

.section-eyebrow{

    display:block;

    text-align:center;

    color:#f0a531;

    font-weight:700;

    font-size:.8rem;

    letter-spacing:.08em;

    text-transform:uppercase;

    margin-bottom:8px;

}
/* =========================================================
   STATS BAND
   ========================================================= */

.stats{
  background:var(--teal-900);
  padding:70px 0;
  position:relative;
  overflow:hidden;
}

.stats::before{
  content:'';
  position:absolute;
  width:380px; height:380px;
  background:radial-gradient(circle, rgba(240,165,49,.16) 0%, rgba(240,165,49,0) 70%);
  border-radius:50%;
  right:-100px; bottom:-160px;
}

.stat-number{
  font-family:'Sora', sans-serif;
  font-size:2.8rem;
  font-weight:800;
  color:var(--amber-500);
}

.stat-text{
  color:#cfe3df;
  font-weight:600;
  font-size:.9rem;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.card{
    border-radius:15px;
}

.card:hover{
    transform:translateY(-5px);
    transition:0.3s;
}

/* =========================================================
   MID-PAGE CTA BANNER (sell-conversion)
   ========================================================= */

.cta-banner{
  background:linear-gradient(120deg, var(--amber-500), var(--coral-500));
  border-radius:var(--radius-lg);
  padding:54px 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:24px;
  box-shadow:var(--shadow-lg);
}

.cta-banner h3{
  font-size:1.7rem;
  font-weight:800;
  color:var(--teal-900);
  max-width:460px;
}

.cta-banner p{
  color:#3d2a12;
  font-weight:500;
  margin-top:8px;
}

.cta-banner .btn-dark-cta{
  background:var(--teal-900);
  color:#fff;
  font-weight:700;
  border:none;
  padding:15px 32px;
  border-radius:99px;
  white-space:nowrap;
  transition:.2s;
}

.cta-banner .btn-dark-cta:hover{
  background:#062320;
  transform:translateY(-2px);
}

/* =========================================================
   SEO / ABOUT
   ========================================================= */

.about-block{
  max-width:680px;
  margin:0 auto;
  text-align:center;
}

.about-block h2{
  font-weight:800;
  color:var(--teal-900);
  margin-bottom:14px;
}

.about-block p{
  color:var(--muted);
  line-height:1.7;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer{
  background:var(--teal-900);
  padding:70px 0 20px;
  border-top:1px solid rgba(255,255,255,.08);
  color:#cfe3df;
}

.footer h5{
  color:#fffaf2;
  font-weight:700;
  margin-bottom:15px;
}

.footer a{ color:#a9c8c3; }
.footer a:hover{ color:#fffaf2; }

/* =========================================================
   BUTTON BASE (bootstrap overrides used elsewhere)
   ========================================================= */

.btn-primary{
  background:var(--teal-700);
  border:none;
}

.btn-primary:hover{
  background:var(--teal-900);
}

.btn-outline-primary{
  border-color:var(--teal-700);
  color:var(--teal-700);
}

.btn-outline-primary:hover{
  background:var(--teal-700);
  color:#fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:991px){

  .hero{ padding:60px 0 50px; text-align:center; }
  .hero h1{ font-size:2.5rem; }
  .hero p.lead{ margin-left:auto; margin-right:auto; }
  .hero-cta-row{ justify-content:center; }
  .hero-trust{ justify-content:center; }
  .hero-media{ margin-top:46px; }
  .hero-badge{ left:50%; transform:translateX(-50%); bottom:-18px; }
  .section-title{ font-size:1.7rem; }
  .cta-banner{ flex-direction:column; text-align:center; padding:40px 26px; }
  .cta-banner h3{ max-width:none; }
}

@media(max-width:576px){
  .hero h1{ font-size:2rem; }
  .search-box{ padding:16px; }
  .hero-media img{ height:300px; }
  .stat-number{ font-size:2.1rem; }
}