/* ============================================
 *   OesteTrades.pt — Main Stylesheet v2
 *   ============================================
 *   COLOUR GUIDE (easy to change):
 *   --purple-deep  : main page background (darkest)
 *   --purple       : slightly lighter sections
 *   --purple-mid   : cards, inputs
 *   --purple-light : borders, highlights
 *   --yellow       : card backgrounds, buttons
 *   --cream        : main text on dark backgrounds
 *   --text-on-yellow : text ON yellow areas
 *   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --purple-deep:    #1e0a3c;
  --purple:         #2d1257;
  --purple-mid:     #3d1d6e;
  --purple-light:   #6a3fa0;
  --yellow:         #9A7200;
  --yellow-dark:    #8B6508;
  --yellow-light:   #fff4a8;
  --cream:          #f0e6ff;
  --cream-dim:      #c8b8e8;
  --text-on-yellow: #1e0a3c;
  --shadow:         0 4px 24px rgba(0,0,0,0.35);
  --shadow-yellow:  0 4px 20px rgba(255,215,0,0.18);
  --radius:         12px;
  --radius-sm:      8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  color: var(--cream);
  background: var(--purple-deep);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ============================================
 *   HEADER
 *   ============================================ */

header {
  background: var(--purple-deep);
  border-bottom: 2px solid var(--purple-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-icon {
  width: 44px; height: 44px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 900;
  color: var(--text-on-yellow);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700;
  color: var(--cream);
}

.logo-text span { color: var(--yellow); }

nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }

nav ul li a {
  color: var(--cream-dim);
  font-weight: 600; font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

nav ul li a:hover { color: var(--yellow); background: rgba(255,215,0,0.08); }

.nav-cta {
  background: var(--yellow) !important;
  color: var(--text-on-yellow) !important;
  font-weight: 800 !important;
}

.nav-cta:hover { background: var(--yellow-dark) !important; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); border-radius: 2px; }

/* ============================================
 *   HERO
 *   ============================================ */

.hero {
  background: var(--purple-deep);
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--purple-light);
}

.hero::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,215,0,0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(106,63,160,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--yellow);
  font-size: 13px; font-weight: 700;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 22px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--yellow); }

.hero p {
  font-size: 18px;
  color: var(--cream-dim);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}

.search-box {
  background: var(--purple-mid);
  border: 2px solid var(--purple-light);
  border-radius: var(--radius);
  padding: 8px 8px 8px 20px;
  display: flex; align-items: center; gap: 8px;
  max-width: 660px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow);
}

.search-box input {
  flex: 1; border: none; outline: none;
  font-family: 'Nunito', sans-serif;
  font-size: 15px; color: var(--cream);
  background: transparent;
}

.search-box input::placeholder { color: var(--cream-dim); opacity: 0.55; }

.search-box select {
  border: none;
  border-left: 2px solid var(--purple-light);
  outline: none; padding: 8px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px; color: var(--cream);
  background: var(--purple-mid); cursor: pointer;
}

.search-box select option { background: var(--purple-deep); color: var(--cream); }

.search-box button {
  background: var(--yellow);
  color: var(--text-on-yellow);
  border: none; padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 15px; font-weight: 800;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}

.search-box button:hover { background: var(--yellow-dark); }

.hero-stats { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }

.hero-stats .stat { color: var(--cream-dim); font-size: 14px; font-weight: 600; }
.hero-stats .stat strong { color: var(--yellow); font-size: 20px; display: block; }

/* ============================================
 *   SECTIONS
 *   ============================================ */

.section { padding: 64px 24px; }
.section-alt { background: var(--purple); }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title { text-align: center; margin-bottom: 48px; }

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 38px); font-weight: 700;
  color: var(--cream); margin-bottom: 12px;
}

.section-title h2 span { color: var(--yellow); }
.section-title p { color: var(--cream-dim); font-size: 16px; max-width: 560px; margin: 0 auto; }

.title-line {
  width: 60px; height: 4px;
  background: var(--yellow); border-radius: 2px;
  margin: 12px auto 0;
}

/* ============================================
 *   CATEGORY CARDS — yellow windows
 *   ============================================ */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--yellow);
  border: 2px solid var(--yellow-dark);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-yellow);
}

.cat-card:hover {
  background: var(--yellow-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255,215,0,0.28);
}

.cat-card .cat-icon { font-size: 36px; margin-bottom: 10px; display: block; }
.cat-card .cat-name { font-size: 13px; font-weight: 800; color: var(--text-on-yellow); line-height: 1.3; }
.cat-card .cat-count { font-size: 11px; color: rgba(30,10,60,0.6); margin-top: 4px; }

/* ============================================
 *   TOWN CARDS — yellow windows
 *   ============================================ */

.towns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.town-card {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-yellow);
  border-left: 5px solid var(--purple-mid);
}

.town-card:hover {
  background: var(--yellow-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255,215,0,0.28);
}

.town-card .town-name { font-size: 17px; font-weight: 800; color: var(--text-on-yellow); margin-bottom: 4px; }
.town-card .town-region { font-size: 12px; color: rgba(30,10,60,0.6); text-transform: uppercase; letter-spacing: 0.5px; }
.town-card .town-trades { margin-top: 10px; font-size: 13px; color: var(--purple-mid); font-weight: 700; }

/* ============================================
 *   FILTERS BAR
 *   ============================================ */

.filters-bar {
  background: var(--purple-mid);
  border: 2px solid var(--purple-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.filter-label { font-size: 13px; font-weight: 700; color: var(--cream-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-right: 4px; }

.filter-chip {
  background: var(--purple);
  border: 2px solid var(--purple-light);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--cream-dim); cursor: pointer; transition: all 0.2s;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--yellow);
  color: var(--text-on-yellow);
  border-color: var(--yellow);
}

/* ============================================
 *   LISTING CARDS — yellow windows
 *   ============================================ */

.listing-card {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; gap: 20px; align-items: flex-start;
  box-shadow: var(--shadow-yellow);
  border: 2px solid var(--yellow-dark);
  transition: all 0.25s;
  margin-bottom: 16px;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(255,215,0,0.28);
}

.listing-card.gold-listing { background: var(--yellow-light); }

.listing-avatar {
  width: 64px; height: 64px;
  background: var(--purple-deep);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}

.listing-body { flex: 1; }

.listing-top {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 6px;
}

.listing-name { font-size: 18px; font-weight: 800; color: var(--text-on-yellow); }

.listing-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 12px;
  text-transform: uppercase;
}

.badge-tag-free     { background: var(--purple-light); color: var(--cream); }
.badge-tag-verified { background: var(--purple); color: var(--cream); }
.badge-tag-gold     { background: var(--purple-deep); color: var(--yellow); }

.listing-category { font-size: 13px; color: var(--purple-mid); font-weight: 700; margin-bottom: 6px; }
.listing-location  { font-size: 13px; color: rgba(30,10,60,0.6); margin-bottom: 8px; }
.listing-desc      { font-size: 14px; color: var(--text-on-yellow); opacity: 0.82; line-height: 1.5; margin-bottom: 12px; }

.listing-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.tag {
  background: rgba(30,10,60,0.1);
  color: var(--text-on-yellow);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.3px;
}

.tag-green  { background: rgba(0,100,0,0.14);  color: #1a5c1a; }
.tag-blue   { background: rgba(0,50,150,0.1);  color: #0d3080; }
.tag-purple { background: var(--purple-deep);  color: var(--cream); }

.listing-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-call {
  background: var(--purple-deep); color: var(--yellow);
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 800; border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif; transition: background 0.2s;
}

.btn-call:hover { background: var(--purple-mid); }

.btn-whatsapp {
  background: #25D366; color: #fff;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 800; border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif; transition: background 0.2s;
}

.btn-whatsapp:hover { background: #1da851; }

.btn-view {
  background: transparent; color: var(--text-on-yellow);
  border: 2px solid var(--purple-mid);
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 800; cursor: pointer;
  font-family: 'Nunito', sans-serif; transition: all 0.2s;
}

.btn-view:hover { background: var(--purple-deep); color: var(--yellow); border-color: var(--purple-deep); }

.stars { color: #9a6500; font-size: 14px; letter-spacing: 1px; }
.stars-count { font-size: 12px; color: rgba(30,10,60,0.55); margin-left: 4px; }

/* ============================================
 *   BADGE / PRICING TIERS
 *   ============================================ */

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px; margin: 0 auto;
}

.badge-card {
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative; overflow: hidden;
}

.badge-free     { background: var(--purple-mid); border: 2px solid var(--purple-light); }
.badge-verified { background: var(--purple-mid); border: 2px solid var(--yellow); }
.badge-gold     { background: var(--yellow); border: 2px solid var(--yellow-dark); }

.badge-popular {
  position: absolute; top: 16px; right: -28px;
  background: var(--purple-deep); color: var(--yellow);
  font-size: 11px; font-weight: 800;
  padding: 4px 36px; transform: rotate(45deg);
  text-transform: uppercase;
}

.badge-icon { font-size: 48px; margin-bottom: 12px; display: block; }

.badge-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  margin-bottom: 8px; color: var(--cream);
}

.badge-gold h3 { color: var(--text-on-yellow); }

.badge-price { font-size: 32px; font-weight: 900; margin-bottom: 4px; color: var(--yellow); }
.badge-gold .badge-price { color: var(--text-on-yellow); }
.badge-price small { font-size: 14px; font-weight: 600; opacity: 0.7; }

.badge-desc { font-size: 14px; color: var(--cream-dim); margin-bottom: 20px; }
.badge-gold .badge-desc { color: rgba(30,10,60,0.7); }

.badge-features { list-style: none; text-align: left; margin-bottom: 28px; }

.badge-features li {
  font-size: 14px; padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; gap: 8px; color: var(--cream);
}

.badge-gold .badge-features li { border-bottom-color: rgba(30,10,60,0.1); color: var(--text-on-yellow); }
.badge-features li::before { content: '✓'; color: var(--yellow); font-weight: 800; }
.badge-gold .badge-features li::before { color: var(--purple-deep); }

.badge-btn {
  display: block; width: 100%; padding: 14px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 15px; font-weight: 800;
  cursor: pointer; border: none; transition: all 0.2s;
}

.badge-free .badge-btn     { background: var(--yellow); color: var(--text-on-yellow); }
.badge-verified .badge-btn { background: var(--yellow); color: var(--text-on-yellow); }
.badge-gold .badge-btn     { background: var(--purple-deep); color: var(--yellow); }
.badge-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ============================================
 *   HOW IT WORKS
 *   ============================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; max-width: 960px; margin: 0 auto;
}

.step { text-align: center; padding: 24px 16px; }

.step-number {
  width: 56px; height: 56px;
  background: var(--yellow); color: var(--text-on-yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 900;
  margin: 0 auto 16px;
}

.step h3 { font-size: 17px; font-weight: 800; color: var(--cream); margin-bottom: 8px; }
.step p  { font-size: 14px; color: var(--cream-dim); }

/* ============================================
 *   CTA BANNER
 *   ============================================ */

.cta-banner {
  background: var(--purple);
  border-top: 2px solid var(--purple-light);
  border-bottom: 2px solid var(--purple-light);
  padding: 64px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 40px);
  color: var(--cream); margin-bottom: 12px;
}

.cta-banner h2 span { color: var(--yellow); }

.cta-banner p {
  color: var(--cream-dim); font-size: 16px;
  margin-bottom: 32px; max-width: 500px;
  margin-left: auto; margin-right: auto;
}

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--yellow); color: var(--text-on-yellow);
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 800;
  border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif; transition: all 0.2s;
}

.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); }

.btn-secondary {
  background: transparent; color: var(--cream);
  border: 2px solid var(--purple-light);
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 800;
  cursor: pointer; font-family: 'Nunito', sans-serif; transition: all 0.2s;
}

.btn-secondary:hover { border-color: var(--yellow); color: var(--yellow); }

/* ============================================
 *   FOOTER
 *   ============================================ */

footer {
  background: var(--purple-deep);
  border-top: 2px solid var(--purple-light);
  color: var(--cream-dim);
  padding: 48px 24px 24px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}

.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }

.footer-col h4 {
  color: var(--yellow);
  font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--cream-dim); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--cream-dim);
}

.footer-bottom a { color: var(--cream-dim); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--yellow); }

/* ============================================
 *   MOBILE
 *   ============================================ */

@media (max-width: 768px) {
  nav ul { display: none; }

  nav ul.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--purple-deep);
    border-bottom: 2px solid var(--purple-light);
    padding: 16px; gap: 4px; z-index: 999;
  }

  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .listing-card { flex-direction: column; }
  .search-box { flex-direction: column; padding: 16px; }
  .search-box select { border-left: none; border-top: 2px solid var(--purple-light); width: 100%; }
  .search-box button { width: 100%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── UNLOCK BUTTON ── */
.btn-unlock {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  color: #1a0a2e;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.btn-unlock:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}
.listing-gold {
  border: 1px solid #c9a84c !important;
  box-shadow: 0 0 10px rgba(201,168,76,0.15);
}
