/**
 * IslandBarter Theme CSS v1.0.0
 * Palette derived from donkey hero image
 */

:root {
  --ib-sand: #faf5ec;
  --ib-cream: #fff9f2;
  --ib-shell: #ffffff;
  --ib-warm-gray: #f0ebe3;
  --ib-brown: #3d2410;
  --ib-dark: #1e1208;
  --ib-burnt-orange: #c04818;
  --ib-burnt-orange-hover: #a83c14;
  --ib-tan: #d87830;
  --ib-light: #f0a860;
  --ib-teal: #00a890;
  --ib-teal-bright: #30d8c0;
  --ib-teal-dim: rgba(0,168,144,0.08);
  --ib-gold: #f0a848;
  --ib-gold-dim: rgba(240,168,72,0.10);
  --ib-palm: #2d7a4f;
  --ib-palm-dim: rgba(45,122,79,0.08);
  --ib-text: #2a1a08;
  --ib-text-dim: #7a6450;
  --ib-text-light: #a09078;
  --ib-border: rgba(0,0,0,0.06);
  --ib-radius: 12px;
}

/* ═══════════════════ GLOBAL ═══════════════════ */
body {
  background: var(--ib-sand);
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════ HEADER / NAV ═══════════════════ */
.ib-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ib-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ib-brown);
  text-decoration: none;
}

.ib-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* WP site-logo block — ensure round and larger */
.wp-block-site-logo img {
  border-radius: 50% !important;
  width: 48px !important;
  height: 48px !important;
  object-fit: cover;
}

/* Larger site title next to logo */
.wp-block-site-title {
  font-size: 22px !important;
  font-weight: 700;
}

.ib-logo .brand-accent {
  color: var(--ib-tan);
}

.ib-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.ib-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ib-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.ib-nav a:hover {
  color: var(--ib-brown);
}

.ib-nav .btn-join {
  background: var(--ib-burnt-orange);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.ib-nav .btn-join:hover {
  background: var(--ib-burnt-orange-hover);
  color: #fff;
}

/* ═══════════════════ HERO ═══════════════════ */
.ib-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
}

.ib-hero-greeting {
  display: inline-block;
  background: var(--ib-palm-dim);
  color: var(--ib-palm);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.ib-hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ib-brown);
  margin-bottom: 16px;
}

.ib-hero h1 em {
  font-style: italic;
  color: var(--ib-tan);
}

.ib-hero-desc {
  font-size: 16px;
  color: var(--ib-text-dim);
  max-width: 440px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.ib-hero-actions {
  display: flex;
  gap: 12px;
}

.ib-hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.ib-hero-image img {
  width: 400px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.08));
}

/* Floating T$ cards */
.ib-float-card {
  position: absolute;
  background: var(--ib-shell);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: ib-float 3s ease-in-out infinite;
  z-index: 2;
}

.ib-float-card .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.fc-earn { top: 10%; right: 90%; }
.fc-earn .icon { background: var(--ib-teal-dim); color: var(--ib-teal); }
.fc-earn .amt { color: var(--ib-teal); }

.fc-pay { bottom: 40%; right: 100%; animation-delay: -1s; }
.fc-pay .icon { background: rgba(192,72,24,0.12); color: var(--ib-burnt-orange); }
.fc-pay .amt { color: var(--ib-burnt-orange); }

.fc-bal { bottom: 15%; right: 85%; animation-delay: -2s; }
.fc-bal .icon { background: var(--ib-gold-dim); color: var(--ib-gold); }
.fc-bal .amt { color: var(--ib-gold); }

@keyframes ib-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ═══════════════════ BUTTONS ═══════════════════ */
.btn-primary {
  background: var(--ib-burnt-orange);
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--ib-burnt-orange-hover);
  transform: translateY(-1px);
}

/* Outline button — single border on the link only, burnt orange to match palette */
.wp-block-button.btn-outline,
.wp-block-button.is-style-outline.btn-outline {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.wp-block-button.btn-outline .wp-block-button__link,
.wp-block-button.is-style-outline.btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--ib-burnt-orange) !important;
  border: 2px solid var(--ib-burnt-orange) !important;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.wp-block-button.btn-outline:hover .wp-block-button__link,
.wp-block-button.is-style-outline.btn-outline:hover .wp-block-button__link {
  background: var(--ib-burnt-orange) !important;
  color: #fff !important;
}

.btn-gold {
  background: var(--ib-gold);
  color: var(--ib-dark);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-gold:hover {
  background: #e0b044;
  transform: translateY(-1px);
}

/* ═══════════════════ SEARCH BAR ═══════════════════ */
.ib-search {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

.ib-search-bar {
  background: var(--ib-shell);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--ib-border);
}

.ib-search-bar input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--ib-text);
  outline: none;
}

.ib-search-bar input::placeholder {
  color: var(--ib-text-light);
}

.ib-search-bar select {
  border: none;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  background: var(--ib-warm-gray);
  border-radius: 10px;
  color: var(--ib-text);
  margin-right: 6px;
  cursor: pointer;
}

.ib-search-bar .search-btn {
  background: var(--ib-burnt-orange);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.ib-search-bar .search-btn:hover {
  background: var(--ib-burnt-orange-hover);
}

/* ═══════════════════ SECTIONS ═══════════════════ */
.ib-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 60px;
}

.ib-section-header {
  text-align: center;
  margin-bottom: 32px;
}

.ib-section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--ib-brown);
  margin-bottom: 8px;
}

.ib-section-header p {
  font-size: 15px;
  color: var(--ib-text-dim);
}

/* ═══════════════════ CATEGORY GRID ═══════════════════ */
.ib-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ib-cat-card {
  background: var(--ib-shell);
  border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--ib-text);
}

.ib-cat-card:hover {
  border-color: var(--ib-burnt-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.ib-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}

.ib-cat-icon svg {
  width: 26px;
  height: 26px;
}

.ib-cat-card h3 {
  font-family: var(--wp--preset--font-family--dm-sans, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ib-brown);
  margin-bottom: 2px;
}

.ib-cat-card .count {
  font-size: 12px;
  color: var(--ib-text-light);
}

/* ═══════════════════ BUSINESS CARDS ═══════════════════ */
.ib-biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ib-biz-card {
  background: var(--ib-shell);
  border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius);
  overflow: hidden;
  transition: all 0.2s;
}

.ib-biz-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.ib-biz-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ib-biz-photo-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--ib-warm-gray) 0%, #e8e0d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ib-text-light);
  font-size: 36px;
}

.ib-biz-body {
  padding: 16px 18px 18px;
}

.ib-biz-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ib-teal);
  margin-bottom: 4px;
}

.ib-biz-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ib-brown);
  margin-bottom: 6px;
  line-height: 1.3;
}

.ib-biz-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.ib-stars {
  color: var(--ib-gold);
  font-size: 14px;
  letter-spacing: 1px;
}

.ib-rating-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--ib-text);
}

.ib-rating-count {
  font-size: 12px;
  color: var(--ib-text-light);
}

.ib-biz-meta {
  font-size: 13px;
  color: var(--ib-text-dim);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ib-biz-claim {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ib-border);
  font-size: 12px;
  color: var(--ib-teal);
  font-weight: 600;
}

/* ═══════════════════ HOW IT WORKS ═══════════════════ */
.ib-how {
  background: var(--ib-shell);
  padding: 60px 32px;
  border-top: 1px solid var(--ib-border);
  border-bottom: 1px solid var(--ib-border);
}

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

.ib-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.ib-step {
  text-align: center;
}

.ib-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ib-tan);
  color: #fff;
  font-family: var(--wp--preset--font-family--playfair, 'Playfair Display', serif);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.ib-step h3 {
  font-family: var(--wp--preset--font-family--dm-sans, 'DM Sans', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ib-brown);
  margin-bottom: 8px;
}

.ib-step p {
  font-size: 14px;
  color: var(--ib-text-dim);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ═══════════════════ CTA BANNER ═══════════════════ */
.ib-cta {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 32px;
}

.ib-cta-inner {
  background: linear-gradient(135deg, var(--ib-dark) 0%, var(--ib-brown) 100%);
  border-radius: 16px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  color: #fff;
}

.ib-cta-inner h2 {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.ib-cta-inner p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  line-height: 1.7;
}

.ib-cta-perks {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

.ib-cta-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.ib-cta-perk .check {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ib-gold);
}

/* ═══════════════════ FOOTER ═══════════════════ */
.ib-vi-flag {
  width: 60px;
  height: auto;
  margin-bottom: 12px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.ib-vi-flag:hover {
  opacity: 1;
}

.ib-footer {
  background: var(--ib-dark);
  color: rgba(255,255,255,0.5);
  padding: 48px 32px 24px;
}

.ib-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.ib-footer h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

.ib-footer h4 {
  font-family: var(--wp--preset--font-family--dm-sans, 'DM Sans', sans-serif);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
}

.ib-footer a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.ib-footer a:hover {
  color: #fff;
}

.ib-footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  text-align: center;
}

/* ═══════════════════ SINGLE BUSINESS ═══════════════════ */
.ib-single-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

.ib-single-hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--ib-radius);
}

.ib-single-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 60px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

/* ═══════════════════ DIRECTORY ═══════════════════ */
.ib-directory-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ib-filter-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--ib-border);
  background: var(--ib-shell);
  color: var(--ib-text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.ib-filter-tag:hover,
.ib-filter-tag.active {
  background: var(--ib-burnt-orange);
  color: #fff;
  border-color: var(--ib-burnt-orange);
}

.ib-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.ib-pagination a,
.ib-pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ib-border);
  color: var(--ib-text-dim);
  background: var(--ib-shell);
  transition: all 0.2s;
}

.ib-pagination .current {
  background: var(--ib-burnt-orange);
  color: #fff;
  border-color: var(--ib-burnt-orange);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 900px) {
  .ib-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px 40px;
  }
  .ib-hero h1 { font-size: 36px; }
  .ib-hero-desc { margin: 0 auto 24px; }
  .ib-hero-actions { justify-content: center; }
  .ib-hero-image img { width: 280px; }
  .ib-float-card { display: none; }
  .ib-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ib-biz-grid { grid-template-columns: 1fr; }
  .ib-steps { grid-template-columns: 1fr; gap: 24px; }
  .ib-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }
  .ib-cta-perks { justify-content: center; flex-wrap: wrap; }
  .ib-footer-inner { grid-template-columns: 1fr 1fr; }
  .ib-header { padding: 12px 16px; }
  .ib-nav { display: none; }
  .ib-search-bar {
    flex-direction: column;
    gap: 6px;
  }
  .ib-search-bar select { margin: 0; }
  .ib-single-info { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ib-cat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ib-cat-card { padding: 14px; }
  .ib-section { padding: 0 16px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .ib-float-card { animation: none; }
}

/* ── Community Impact Strip ── */
.ib-community-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ib-community-card { background: var(--ib-shell); border: 1px solid var(--ib-border); border-radius: var(--ib-radius); padding: 24px; text-align: center; }
.ib-community-num { font-size: 32px; font-weight: 700; color: var(--ib-burnt-orange); }
.ib-community-label { font-size: 13px; color: var(--ib-text-dim); margin-top: 4px; }
@media (max-width: 900px) { .ib-community-strip { grid-template-columns: repeat(2, 1fr); } }
