:root {
  --bg: #f7f1e6;
  --bg-accent: #f3e4cf;
  --card: rgba(255, 255, 255, 0.9);
  --border: rgba(80, 64, 44, 0.1);
  --text: #3b2f22;
  --muted: #8c7b68;
  --accent: #d4a748;
  --accent-strong: #b0802b;
  --shadow-sm: 0 4px 12px rgba(82, 61, 36, 0.08);
  --shadow-hover: 0 12px 24px rgba(82, 61, 36, 0.12);
  --radius-lg: 20px;
  --radius-sm: 12px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background-image: linear-gradient(135deg, #fdfbf7 0%, #f4eee3 100%);
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 40px;
}

.hero__main {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(212, 167, 72, 0.1);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-strong);
}

.hero__main h1 {
  margin: 16px 0 12px;
  font-size: clamp(24px, 4vw, 36px);
  color: #2c241b;
}

.hero__lead {
  margin: 0 auto;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
  font-size: 15px;
}

.section__title {
  margin-bottom: 24px;
  text-align: center;
}

.section__title h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #2c241b;
}

.section__title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Grid Layout - Mobile 2 Columns */
.brand-grid {
  display: grid;
  gap: 16px;
  /* Default to 2 columns on small screens, auto-fit on larger */
  grid-template-columns: repeat(2, 1fr); 
}

@media (min-width: 768px) {
  .brand-grid {
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.brand-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.brand-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand-card__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  /* background: #fff; */
  /* padding: 8px; */
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
}

.brand-card__logo--text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-strong);
  background: rgba(212, 167, 72, 0.1);
  font-size: 18px;
}

.brand-card__tag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(212, 167, 72, 0.08);
  color: var(--accent-strong);
  font-weight: 500;
}

.brand-card__title {
  margin: 4px 0 0;
  font-size: 15px;
  text-align: center;
  color: #2c241b;
  font-weight: 600;
  line-height: 1.4;
  min-height: 42px; /* Ensure alignment */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.brand-card__actions {
  margin-top: auto;
  width: 100%;
}

.brand-links {
  display: flex;
  width: 100%;
}

.link-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  border: none;
  background: linear-gradient(135deg, #d4a748 0%, #b0802b 100%);
  box-shadow: 0 4px 12px rgba(176, 128, 43, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100% !important; /* Force full width override */
}

.link-chip:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 16px rgba(176, 128, 43, 0.4);
  transform: translateY(-1px);
}

.link-chip:active {
  transform: translateY(1px);
}

.link-empty {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  width: 100%;
  display: block;
  padding: 10px;
}

.footer {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.8;
}

@media (max-width: 480px) {
  .shell {
    padding: 24px 16px 40px;
  }
  
  .brand-grid {
    gap: 12px;
  }
  
  .brand-card {
    padding: 16px 12px;
  }
  
  .brand-card__logo {
    width: 52px;
    height: 52px;
  }
  
  .brand-card__title {
    font-size: 13px;
    min-height: 36px;
  }
  
  .brand-card__desc {
    font-size: 11px;
    display: none; /* Hide description on very small screens to save space */
  }
}
