/* =================================================================
   ALTOJIVE — HOME PAGE STYLESHEET
   Pixel-perfect match to the approved design.
================================================================= */

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  --navy:        #1e1e30;
  --yellow:      #f5c518;
  --white:       #ffffff;
  --bg-page:     #f8f8f8;
  --border:      #e5e7eb;
  --border-card: #f3f4f6;
  --text-1:      #111111;
  --text-2:      #374151;
  --text-3:      #6b7280;
  --green:       #16a34a;
  --red:         #ef4444;

  --container:   1140px;
  --gap:         16px;
  --r-sm:        6px;
  --r-md:        8px;
  --r-lg:        10px;
  --r-xl:        12px;
}

/* ── RESET / BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CONTAINER ──────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SECTION WRAPPERS ───────────────────────────────────────────── */
.home-section          { padding: 32px 0 36px; }
.home-section--white   { background: var(--white); }
.home-section--grey    { background: var(--bg-page); }

/* ── SECTION HEADINGS ───────────────────────────────────────────── */
.section-title {
  font-weight: 800;
  font-size: 19px;
  color: var(--text-1);
  margin-bottom: 18px;
  line-height: 1.2;
}

/* Section header row (title + tabs side-by-side) */
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

/* ── HERO ───────────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 52px 0 56px;
  overflow: hidden;
}

/* Background image layer */
.home-hero__bg {
  position: absolute;
  inset: 0;
  /* Image is set in the Customizer (Branding › Home hero image) and injected as
     --hero-bg, so it can be changed without touching CSS. */
  background: var(--hero-bg, url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1600&q=80'))
    center / cover no-repeat;
  z-index: 0;
}

/* Dark overlay */
.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,10,20,.60), rgba(10,10,20,.72));
  z-index: 1;
}

.home-hero__body {
  position: relative;
  z-index: 5;
  width: 100%;
}

/* Heading */
.home-hero__title {
  font-weight: 800;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 28px;
  font-style: normal;   /* prevent browser italic inheritance */
}

/* "vibrant events" italic yellow span */
.home-hero__vibrant {
  color: var(--yellow);
  font-style: italic;
}

/* ── HERO SEARCH BAR ────────────────────────────────────────────── */
.hero-search {
  display: flex;
  max-width: 580px;
  height: 52px;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  position: relative;
}

/* Left: icon + input */
.hero-search__input-side {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  min-width: 0;
  position: relative;
}

.hero-search__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #9ca3af;
}
.hero-search__icon svg { width: 18px; height: 18px; }

.hero-search__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-2);
  background: transparent;
  font-family: inherit;
  padding: 0;
  min-width: 0;
}
.hero-search__input::placeholder { color: #9ca3af; }

/* Autocomplete dropdown */
.hero-autocomplete {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
}
.hero-autocomplete.open { display: block; }

.ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-1);
  font-size: 13px;
  border-bottom: 1px solid var(--border-card);
  transition: background .12s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--bg-page); }

.ac-item__thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}

/* Divider */
.hero-search__divider {
  width: 1px;
  background: var(--border);
  height: 26px;
  align-self: center;
  flex-shrink: 0;
}

/* Right: location button */
.hero-search__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: #f9fafb;
  border: none;
  border-left: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background .15s;
  min-width: 130px;
}
.hero-search__loc:hover { background: #f3f4f6; }

/* ── EXPLORE CATEGORIES ─────────────────────────────────────────── */
.cats-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.cat-circle {
  flex: 0 0 auto;
  text-align: center;
}

.cat-circle__link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cat-circle__img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  transition: transform .18s;
}
.cat-circle__img svg { width: 28px; height: 28px; }
.cat-circle__img.cat--entertainment { background: var(--cat-entertainment); }
.cat-circle__img.cat--educational   { background: var(--cat-educational); }
.cat-circle__img.cat--cultural      { background: var(--cat-cultural); }
.cat-circle__img.cat--sports        { background: var(--cat-sports); }
.cat-circle__img.cat--technology    { background: var(--cat-technology); }
.cat-circle__img.cat--travel        { background: var(--cat-travel); }
.cat-circle__img.cat--food          { background: var(--cat-food); }
.cat-circle__img.cat--business      { background: var(--cat-business); color: var(--navy); }
.cat-circle__link:hover .cat-circle__img { transform: scale(1.08); }

.cat-circle__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
  max-width: 88px;
  display: block;
}

/* ── TAB BAR (Popular Events filters) ──────────────────────────── */
.tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Base (inactive) state — white pill with border */
.tab-pill {
  background: var(--white);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.tab-pill:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Active state */
.tab-pill.active,
.tab-pill[aria-selected="true"] {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── EVENT CARD GRID ────────────────────────────────────────────── */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* ── EVENT CARD ─────────────────────────────────────────────────── */
.event-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.09);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.event-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
  transform: translateY(-2px);
}

/* Card image area */
.event-card__img {
  position: relative;
  height: 150px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  background: var(--navy);
}
.event-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Category badge on image */
.event-card__cat {
  position: absolute;
  bottom: 8px;
  left: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .2px;
  white-space: nowrap;
  line-height: 1.4;
}

/* Star / wishlist button */
.event-card__star {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,.92);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: color .15s, background .15s;
  line-height: 1;
}
.event-card__star:hover,
.event-card__star.starred { color: var(--yellow); }

/* Card body */
.event-card__body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card__meta {
  display: flex;
  gap: 10px;
}

.event-card__date {
  min-width: 36px;
  text-align: center;
  padding-top: 2px;
  flex-shrink: 0;
}

.event-card__month {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  display: block;
}

.event-card__day {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-1);
  display: block;
}

.event-card__info { flex: 1; min-width: 0; }

.event-card__title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 2px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card__venue,
.event-card__time {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Price row */
.event-card__footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-card__price {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

.event-card__interested {
  font-size: 11px;
  color: var(--text-3);
  margin-left: auto;
}

/* ── SEE MORE BUTTON ROW ────────────────────────────────────────── */
.see-more-wrap {
  text-align: center;
  margin-top: 24px;
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, opacity .15s, border-color .15s;
}

/* Outline — white bg, grey border (See More) */
.btn-outline {
  background: var(--white);
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 10px 52px;
}
.btn-outline:hover { background: #f3f4f6; color: var(--text-1); }

/* Navy — dark bg, white text (Get Started, Subscribe) */
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: none;
}
.btn-navy:hover { background: #111; }

/* Yellow — yellow bg, dark text (Create Event) */
.btn-yellow {
  background: var(--yellow);
  color: #1a1a2e;
  border: none;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 28px;
}
.btn-yellow:hover { opacity: .88; }

/* ── NO EVENTS FALLBACK ─────────────────────────────────────────── */
.no-events {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  padding: 32px 0;
}

/* ── CURATED BANNER ─────────────────────────────────────────────── */
.curated-banner {
  background: var(--yellow);
  padding: 44px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative wave lines in background */
.curated-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='800' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80 Q200 10 400 80 T800 80' fill='none' stroke='rgba(255,255,255,0.22)' stroke-width='3'/%3E%3Cpath d='M0 110 Q200 40 400 110 T800 110' fill='none' stroke='rgba(255,255,255,0.14)' stroke-width='2'/%3E%3Cpath d='M0 50 Q200 -20 400 50 T800 50' fill='none' stroke='rgba(255,255,255,0.14)' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 800px 160px;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: .9;
}

.curated-banner__inner {
  position: relative;
  z-index: 1;
}

.curated-banner__title {
  font-weight: 800;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--text-1);
  margin-bottom: 8px;
}

.curated-banner__sub {
  color: #333;
  font-size: 14px;
  margin-bottom: 24px;
}

/* Override .btn-navy size inside banner */
.curated-banner__cta.btn-navy {
  font-size: 15px;
  padding: 13px 32px;
}

/* ── CREATE EVENT STRIP ─────────────────────────────────────────── */
.create-strip {
  background: var(--navy);
  padding: 30px 0;
}

.create-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.create-strip__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.create-strip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--yellow);
}
.create-strip__icon svg { width: 36px; height: 36px; }
/* Inline icon inside the yellow CTA button */
.create-strip__cta svg { width: 18px; height: 18px; vertical-align: middle; margin-right: 4px; }

.create-strip__title {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(15px, 2.5vw, 19px);
  margin-bottom: 4px;
  line-height: 1.2;
}

.create-strip__sub {
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.4;
}

.create-strip__cta {
  flex-shrink: 0;
}

/* ── NEWSLETTER STRIP ───────────────────────────────────────────── */
.newsletter-strip {
  background: var(--yellow);
  padding: 30px 0;
}

.newsletter-strip__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.newsletter-strip__text { flex: 1; min-width: 220px; }

.newsletter-strip__title {
  font-weight: 800;
  font-size: 16px;
  color: var(--text-1);
  margin-bottom: 5px;
}

.newsletter-strip__sub {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

/* Form: input + button side by side */
.newsletter-form {
  display: flex;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  max-width: 380px;
  width: 100%;
  flex-shrink: 0;
  align-self: center;
}

.newsletter-form__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 13px;
  background: var(--white);
  color: var(--text-2);
  font-family: inherit;
  min-width: 0;
}
.newsletter-form__input::placeholder { color: #9ca3af; }

/* Subscribe button — no border-radius (inherits parent clip) */
.newsletter-form .btn-navy {
  border-radius: 0;
  padding: 12px 20px;
  font-size: 13px;
}

.newsletter-notice {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 10px;
  min-height: 18px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-row { gap: 18px; }
}

@media (max-width: 700px) {
  .section-hd { flex-direction: column; align-items: flex-start; }
  .tab-bar { gap: 6px; }
}

@media (max-width: 640px) {
  .ev-grid { grid-template-columns: 1fr; }

  .hero-search {
    height: auto;
    border-radius: var(--r-lg);
  }
  .hero-search__input-side {
    width: 100%;
    padding: 12px 14px;
  }

  .create-strip__inner { flex-direction: column; align-items: flex-start; }
  .newsletter-strip__inner { flex-direction: column; }
  .newsletter-form { max-width: 100%; }

  .cats-row { gap: 14px; }
  .cat-circle__img { width: 60px; height: 60px; }
  .cat-circle__img svg { width: 24px; height: 24px; }
  .cat-circle__label { font-size: 11px; max-width: 72px; }

  .container { padding: 0 16px; }
  .home-section { padding: 24px 0 28px; }
  .home-hero { padding: 40px 0 44px; }
}

@media (max-width: 420px) {
  .tab-pill { padding: 5px 12px; font-size: 11px; }
  .btn-outline { padding: 10px 32px; }
}
