/* ============================================================
   Urban Finds — Design System
   Matched to: lovable.app preview
   Palette: Warm cream · Deep forest green · Burnt orange
   Fonts: Cormorant Garamond (headings + script) · Inter (body)
   ============================================================ */

/* Fonts loaded via <link> in HTML head */

/* --- Design Tokens --- */
:root {
  --cream:         #F7F3EE;
  --cream-dark:    #EDE8E0;
  --cream-border:  #DDD5C8;
  --green:         #1E3A2F;
  --green-dark:    #152A22;
  --green-mid:     #2D5040;
  --green-light:   #ECF1EE;
  --orange:        #C4622D;
  --orange-dark:   #A3501E;
  --orange-light:  #F6EDE5;
  --text:          #1E3A2F;
  --text-mid:      #4A5D55;
  --text-muted:    #8A9690;
  --white:         #FFFFFF;
  --shadow-sm:     0 1px 4px rgba(30,58,47,0.06);
  --shadow-md:     0 4px 20px rgba(30,58,47,0.09);
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-script:   'Cormorant Garamond', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 400; }
h4 { font-size: 1.15rem; font-weight: 500; }

/* Script/calligraphy accent (e.g. "Globally Inspired.", "our city.", "thoughtfully") */
.script {
  font-family: 'Great Vibes', 'Cormorant Garamond', cursive;
  font-style: normal;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: 0.01em;
}
/* Smaller script (in body text: "our city.", "thoughtfully") */
.script-sm {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
}

/* Eyebrow label — "CURATED · COMMUNITY · CRAFT" style */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

/* Underline link — "Meet our makers →" style */
.text-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.text-link:hover { color: var(--orange); }

/* --- Layout --- */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 820px;  margin: 0 auto; padding: 0 2rem; }
.section      { padding: 6rem 0; }
.section-sm   { padding: 3.5rem 0; }

/* --- NAVIGATION --- */
.site-nav {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.nav-logo .logo-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-logo .logo-name span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--orange);
  letter-spacing: 0;
  text-transform: none;
}
.nav-logo .logo-tag {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 2px;
}
.nav-logo .logo-tag em { color: var(--orange); font-style: italic; }

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.45rem 0.9rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }

/* "Become a Vendor" CTA in nav */
.nav-cta {
  background: var(--green) !important;
  color: var(--cream) !important;
  padding: 0.5rem 1.2rem !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  border-radius: 2px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-dark) !important; color: var(--cream) !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s;
}

/* --- HERO (full-bleed bazaar photo, dark green text, cream fade bottom) --- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-image: url('https://images.unsplash.com/photo-1555529669-e69e7aa0ba9a?w=1600&q=80');
}

/* cream fade at bottom + subtle left brightening so dark text reads */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      transparent 45%,
      rgba(247,243,238,0.55) 75%,
      var(--cream) 100%
    ),
    linear-gradient(to right,
      rgba(247,243,238,0.45) 0%,
      transparent 60%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding: 7rem 2rem 8rem;
  margin-left: max(2rem, calc((100vw - 1200px) / 2));
}

.hero-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.4rem;
}

.hero h1 {
  color: var(--green);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1;
  margin-bottom: 1.4rem;
  font-weight: 400;
}
.hero h1 .script {
  color: var(--orange);
  font-size: 1.1em;
  line-height: 1.15;
  display: block;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--green);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 500px;
  opacity: 0.82;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.22s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-outline-cream {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247,243,238,0.7);
}
.btn-outline-cream:hover { background: rgba(247,243,238,0.12); border-color: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--cream); }

.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline-orange:hover { background: var(--orange); color: white; }

.btn-orange {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
.btn-orange:hover { background: var(--orange-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--cream-border);
}
.btn-ghost:hover { background: var(--cream-dark); }

.btn-danger { background: #B83232; color: white; border-color: #B83232; }
.btn-danger:hover { background: #9A2929; }

.btn-sm  { padding: 0.5rem 1.1rem; font-size: 0.65rem; letter-spacing: 0.1em; }
.btn-lg  { padding: 0.9rem 2.25rem; font-size: 0.8rem; }
.btn-green { background: var(--green); color: var(--cream); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); }

/* --- SECTION HEADER --- */
.section-header { margin-bottom: 3.5rem; }
.section-header .eyebrow { margin-bottom: 0.85rem; display: block; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-mid); max-width: 520px; font-size: 0.95rem; line-height: 1.75; }

/* Split section header (title left, link right) */
.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

/* --- ABOUT SECTION (2-col editorial) --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* --- CARDS --- */
.card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-body { padding: 1.5rem; }

/* Event/Bazaar card */
.event-card .event-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.event-card .card-body { padding: 1.75rem; }
.event-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: 0.75rem;
}
.event-meta svg { color: var(--orange); flex-shrink: 0; }

/* Product card */
.product-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}
.product-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .card-img-wrap img { transform: scale(1.04); }
.product-card .vendor-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.product-card .price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--green);
  margin-top: 0.4rem;
}

/* Category card (vendor explorer) */
.cat-card { border: none; border-radius: 0; background: transparent; }
.cat-card:hover { box-shadow: none; transform: none; }
.cat-card .cat-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  margin-bottom: 1rem;
  transition: opacity 0.25s;
}
.cat-card:hover .cat-img { opacity: 0.88; }
.cat-card h4 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; margin-bottom: 0.3rem; }
.cat-card p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; }

/* Vendor card */
.vendor-card { text-align: center; }
.vendor-card .vendor-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--cream-border);
}
.vendor-card .category-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}

/* Package card */
.package-card .package-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.package-card .occasion-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-light);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

/* --- GRIDS --- */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 1.5rem; }

/* --- GREEN SECTION (seasonal packages, CTAs) --- */
.section-green {
  background: var(--green);
  color: var(--cream);
  padding: 6rem 0;
}
.section-green .eyebrow { color: var(--orange); }
.section-green h2 { color: var(--cream); }
.section-green p { color: rgba(247,243,238,0.75); }

/* --- FILTER CHIPS --- */
.filter-bar { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.filter-chip:hover { color: var(--green); }
.filter-chip.active {
  background: var(--green);
  color: var(--cream);
}

/* --- BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-success { background: #E5F0E8; color: #1E5C2F; }
.badge-pending { background: #FFF2DC; color: #8C5A00; }
.badge-warning { background: #FFF0D5; color: #8C4A00; }
.badge-danger  { background: #FDEAEA; color: #B83232; }
.badge-info    { background: #E5EDF5; color: #1A4A7A; }
.badge-draft   { background: #EFEFED; color: #5A5A52; }
.badge-muted   { background: #F0EDEA; color: #7A7A72; }

/* --- FORMS --- */
.form-group { margin-bottom: 1.35rem; }
.form-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30,58,47,0.07);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { cursor: pointer; }
.form-hint  { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.75rem; color: #B83232; margin-top: 0.3rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- FLASH MESSAGES --- */
.flash-msg {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.flash-success { background: #E5F0E8; color: #1E5C2F; border-color: #BFD9C7; }
.flash-error   { background: #FDEAEA; color: #B83232; border-color: #F5C6CB; }
.flash-warning { background: #FFF2DC; color: #8C5A00; border-color: #FFE8A1; }
.flash-info    { background: #E5EDF5; color: #1A4A7A; border-color: #BDD0E8; }

/* --- PAGE INTRO (editorial, cream bg, script accent) --- */
.page-intro {
  padding: 4.5rem 0 2.5rem;
  background: var(--cream);
}
.page-intro .eyebrow { display: block; margin-bottom: 1rem; }
.page-intro h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--text);
}
.page-intro h1 .script {
  font-size: 1em;
}
.page-intro p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 560px;
}

/* --- PAGE HEADER (fallback, keep for portals) --- */
.page-header {
  background: var(--green);
  padding: 4rem 0 3.5rem;
}
.page-header .eyebrow { margin-bottom: 0.75rem; display: block; }
.page-header h1 {
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}
.page-header p { color: rgba(247,243,238,0.7); font-size: 1rem; max-width: 520px; }

/* --- GIFT BUILDER STEPS --- */
.step-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.step-item { display: flex; align-items: center; gap: 0.5rem; }
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--cream-border);
  background: var(--white);
  color: var(--text-muted);
  transition: all 0.25s;
  flex-shrink: 0;
}
.step-item.active .step-num { background: var(--green); border-color: var(--green); color: var(--cream); }
.step-item.done   .step-num { background: var(--orange); border-color: var(--orange); color: white; }
.step-label { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; }
.step-item.active .step-label { color: var(--green); font-weight: 600; }
.step-connector { flex: 1; height: 1px; background: var(--cream-border); min-width: 20px; max-width: 40px; }

/* --- FOOTER --- */
.site-footer {
  background: var(--green);
  color: rgba(247,243,238,0.7);
  padding: 5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand .logo {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.footer-brand .logo em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--orange);
  letter-spacing: 0;
  text-transform: none;
}
.footer-brand p { font-size: 0.83rem; line-height: 1.75; max-width: 260px; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(247,243,238,0.4);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(247,243,238,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(247,243,238,0.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(247,243,238,0.4);
}

/* --- Apply page --- */
.apply-page { max-width: 720px; margin: 0 auto; padding: 5rem 1.5rem; }
.apply-card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 2.75rem;
}

/* --- Photo upload --- */
.photo-upload-area {
  border: 2px dashed var(--cream-border);
  border-radius: var(--radius-sm);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--cream);
}
.photo-upload-area:hover { border-color: var(--green); background: var(--green-light); }
.photo-upload-area p { font-size: 0.83rem; color: var(--text-muted); margin-top: 0.5rem; }
.photo-upload-area .upload-icon { font-size: 2rem; color: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { margin-left: 2rem; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-content { margin-left: 1.5rem; max-width: 480px; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-border);
    padding: 1rem;
    gap: 0.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .site-nav { position: relative; }
  .hero { min-height: 70vh; padding-bottom: 4rem; }
  .hero-content { margin-left: 1rem; max-width: 95%; }
  .section { padding: 4rem 0; }
  .step-label { display: none; }
}
@media (max-width: 480px) {
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.25rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}
