/* ============================================================
   StayJC — resources.css
   Styles for the travel resources / affiliate page
   (resources/index.php).
   ============================================================ */

/* Color helpers used by the colored affiliate cards.
   These piggyback on existing tokens and add a couple of new ones. */
:root {
  --green-light:  #EAF3EE;
  --blue:         #2D5F8A;
  --blue-light:   #E6F0F8;
  --purple:       #5A4A8A;
  --purple-light: #EEEAF8;
  --gold-light:   #FAF3E0;
}

/* ---------- HERO ---------- */
.hero {
  padding: 140px 24px 60px;
  text-align: center;
  background: var(--dark);
  min-height: 0;
  display: block;
}
.hero-content { max-width: 700px; margin: 0 auto; }
.hero .hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,150,62,0.4);
  padding: 5px 16px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  background: transparent;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- MAIN ---------- */
.main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tan);
}

.main h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.section-intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- AFFILIATE GRID ---------- */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.aff-card {
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.aff-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.aff-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.icon-orange { background: var(--accent-light); }
.icon-gold   { background: var(--gold-light); }
.icon-green  { background: var(--green-light); }
.icon-blue   { background: var(--blue-light); }
.icon-purple { background: var(--purple-light); }
.icon-gray   { background: var(--cream); }

.aff-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
}
.aff-card .aff-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.aff-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.aff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 1.25rem;
}
.aff-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--tan);
  color: var(--muted);
}

.aff-btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-orange { background: var(--accent); color: var(--white); }
.btn-gold   { background: var(--gold);   color: var(--white); }
.btn-green  { background: var(--green);  color: var(--white); }
.btn-blue   { background: var(--blue);   color: var(--white); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-dark   { background: var(--dark);   color: var(--white); }
.aff-btn:hover { opacity: 0.85; }

.divider {
  border: none;
  border-top: 1px solid var(--tan);
  margin: 3rem 0;
}

/* ---------- FEATURED BANNER ---------- */
.featured-banner {
  background: var(--dark);
  border-radius: 10px;
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.featured-banner .fb-text { flex: 1; min-width: 200px; }
.featured-banner h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.featured-banner .fb-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}
.featured-banner p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  font-weight: 300;
}
.featured-banner .fb-btn {
  background: var(--accent);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.featured-banner .fb-btn:hover { opacity: 0.85; }

/* ---------- BLOG TEASER ---------- */
.blog-teaser {
  background: var(--accent-light);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}
.blog-teaser h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--dark);
}
.blog-teaser p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
}
.blog-teaser a {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

/* ---------- DISCLAIMER ---------- */
.disclaimer {
  background: var(--cream);
  border: 1px solid var(--tan);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 3rem;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .hero { padding: 110px 16px 50px; }
  .main { padding: 2.5rem 16px 3.5rem; }
  .featured-banner { flex-direction: column; padding: 2rem 1.5rem; }
  .featured-banner .fb-btn { width: 100%; text-align: center; }
}
