/* =============================================
   REFERENCE.CSS
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- HERO REFERENCE CARD ---- */
.ref-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 0;
}

.ref-hero-visual {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.ref-hero-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ref-hero-text {
  padding: 2.5rem 2.5rem 2.5rem 0;
}

.ref-hero-text h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 12px 0 8px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.ref-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--color-accent-mid);
  font-weight: 500;
  margin-bottom: 14px;
}

.ref-hero-text p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.25rem;
}

.ref-tag {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ---- CATEGORIES ---- */
.ref-categories-section {
  background: var(--color-bg-secondary);
}

.ref-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ref-category-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ref-category-card:hover {
  border-color: var(--color-accent-mid);
  box-shadow: var(--shadow-md);
}

.ref-category-icon {
  color: var(--color-accent-mid);
  margin-bottom: 1rem;
}

.ref-category-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.ref-category-card p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---- CTA ---- */
.ref-cta-section {
  background: var(--color-accent);
}

.ref-cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ref-cta-section .section-title {
  color: #FFF8F0;
}

.ref-cta-section p {
  font-size: 15px;
  color: rgba(255,248,240,0.75);
  line-height: 1.75;
  margin-top: 10px;
}

.ref-cta-section .btn-primary {
  background: #FFF8F0;
  color: var(--color-accent);
}

.ref-cta-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ref-cta-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid rgba(255,248,240,0.15);
  padding-bottom: 1rem;
}

.ref-cta-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ref-cta-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent-light);
  line-height: 1;
}

.ref-cta-stat-label {
  font-size: 13px;
  color: rgba(255,248,240,0.65);
}

/* ---- REFERENCE IMAGES ---- */
.ref-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ---- REF HERO TEXT PADDING FIX ---- */
.ref-hero-card--noimg {
  grid-template-columns: 1fr;
}
.ref-hero-card--noimg .ref-hero-text {
  padding: 2.5rem 3rem;
}

/* ---- REF HERO PADDING FIX ---- */
.ref-hero-card--noimg { grid-template-columns: 1fr; }
.ref-hero-card--noimg .ref-hero-text { padding: 2.5rem 3rem; }

/* ---- REF CATEGORY IMG FIX ---- */
.ref-category-card {
  overflow: hidden;
  padding: 0;
}
.ref-cat-img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0;
}
.ref-category-card h3,
.ref-category-card p {
  padding: 0 1.5rem;
}
.ref-category-card h3 {
  padding-top: 1.25rem;
}
.ref-category-card p {
  padding-bottom: 1.5rem;
}
