/* ============================================
   calgarytechnology.com â Ring Overrides
   Accent: #DAA520 (Goldenrod â innovation/forward)
   ============================================ */

:root {
  --color-accent: #DAA520;
  --color-accent-dark: #B8860B;
  --color-accent-light: #F0D060;
  --color-hero-bg: #1A1A2E;
  --color-hero-text: #FFFFFF;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-hero-bg) 0%, #16213E 100%);
  color: var(--color-hero-text);
  padding: 80px 24px;
  text-align: center;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero__subtitle {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA buttons */
.cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: #1A1A2E;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.cta-button:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.cta-button--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
}

.cta-button--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* Accent overrides */
.btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #1A1A2E;
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.btn--outline {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #1A1A2E;
}

/* Story category badge */
.story-category {
  color: var(--color-accent);
}

/* Page header */
.page-header {
  background: var(--color-hero-bg);
  color: var(--color-hero-text);
  padding: 48px 24px;
  text-align: center;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.page-header__subtitle {
  font-family: 'Source Sans 3', sans-serif;
  opacity: 0.9;
  font-size: 1.1rem;
}

/* Resource list */
.resource-list {
  margin-bottom: 24px;
}

.resource-card {
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.resource-card:hover {
  border-color: var(--color-accent);
}

.resource-card h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 6px;
}

.resource-card p {
  font-family: 'Source Sans 3', sans-serif;
  color: #666;
  font-size: 0.95rem;
}

.resource-card__link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.resource-card__link:hover {
  text-decoration: underline;
}

/* Startup directory cards */
.startup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.startup-card {
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.startup-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(218, 165, 32, 0.1);
}

.startup-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.startup-card__category {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.startup-card__desc {
  font-family: 'Source Sans 3', sans-serif;
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.startup-card__founder {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}

.startup-card__link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.startup-card__link:hover {
  text-decoration: underline;
}

/* Event listing cards */
.events-list {
  margin-top: 24px;
}

.event-card {
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.event-card:hover {
  border-color: var(--color-accent);
}

.event-card__date-badge {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  background: #f9f6f2;
  border-radius: 8px;
  padding: 8px;
}

.event-card__date-month {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

.event-card__date-day {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.event-card__info {
  flex: 1;
}

.event-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.event-card__location {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 6px;
}

.event-card__desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
}

.event-card__rsvp {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.event-card__rsvp:hover {
  text-decoration: underline;
}

/* Search / filter bar */
.search-bar {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.search-bar__input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
}

.search-bar__input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.search-bar__select {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  background: #fff;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #f5f3ef;
  border-radius: 8px;
}

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 8px;
  color: #333;
}

.empty-state p {
  color: #666;
}

.empty-state a {
  color: var(--color-accent);
}

/* CTA box */
.cta-box {
  text-align: center;
  padding: 48px 24px;
  background: #f5f3ef;
  border-radius: 12px;
}

.cta-box h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 12px;
}

.cta-box p {
  margin-bottom: 20px;
  color: #555;
}

/* Upcoming events mini-section on homepage */
.events-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 24px;
  text-align: center;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
}

.stats-bar__number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stats-bar__label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: #888;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 56px 16px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .page-header {
    padding: 36px 16px;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .event-card {
    flex-direction: column;
    gap: 12px;
  }

  .event-card__date-badge {
    display: flex;
    gap: 8px;
    width: auto;
    align-items: center;
  }

  .stats-bar {
    flex-direction: column;
    gap: 24px;
  }

  .startup-grid {
    grid-template-columns: 1fr;
  }

  .search-bar {
    flex-direction: column;
  }
}


/* === Dusty-First Hero (dark, atmospheric, Saddledome-style) === */
.dusty-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  background: radial-gradient(ellipse at center bottom, #16213E 0%, #1A1A2E 70%);
}

.dusty-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #DAA520;
  margin-bottom: 8px;
  line-height: 1.15;
}

.dusty-hero__subtitle {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  color: #999;
  margin-bottom: 48px;
  font-style: italic;
}

.dusty-inline {
  width: 100%;
  max-width: 600px;
  background: #222;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(218, 165, 32, 0.08);
}

.dusty-inline__messages {
  padding: 24px;
  min-height: 120px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dusty-inline__msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 85%;
  font-family: 'Source Sans 3', sans-serif;
}

.dusty-inline__msg--dusty {
  background: rgba(218, 165, 32, 0.1);
  color: #E8E0D4;
  align-self: flex-start;
  border: 1px solid rgba(218, 165, 32, 0.15);
}

.dusty-inline__msg--user {
  background: #DAA520;
  color: #0D0D0D;
  align-self: flex-end;
  font-weight: 500;
}

.dusty-inline__input-row {
  display: flex;
  border-top: 1px solid #333;
}

.dusty-inline__input {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: #E8E0D4;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
}

.dusty-inline__input::placeholder {
  color: #666;
}

.dusty-inline__input:focus {
  outline: none;
}

.dusty-inline__send {
  padding: 16px 24px;
  background: #DAA520;
  border: none;
  color: #0D0D0D;
  font-weight: 700;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.dusty-inline__send:hover {
  background: #F0D060;
}

.dusty-inline__join-prompt {
  padding: 24px;
  text-align: center;
  border-top: 1px solid #333;
}

.dusty-inline__join-prompt p {
  color: #999;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.dusty-inline__join-prompt .btn {
  background: #DAA520;
  color: #0D0D0D;
  border: none;
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.dusty-inline__join-prompt .btn:hover {
  background: #F0D060;
}

.dusty-hero__scroll {
  margin-top: 48px;
  color: #999;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}

.dusty-hero__scroll-arrow {
  font-size: 1.2rem;
  animation: bobArrow 2s ease-in-out infinite;
}

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

/* Responsive dusty hero â mobile-first, fits iPhone SE viewport */
@media (max-width: 768px) {
  .dusty-hero {
    min-height: 0;
    height: calc(100vh - 44px);
    height: calc(100dvh - 44px);
    padding: 12px 16px 8px;
    justify-content: center;
    gap: 0;
  }

  .dusty-hero__title {
    font-size: 1.65rem;
    margin-bottom: 2px;
    line-height: 1.1;
  }

  .dusty-hero__subtitle {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .dusty-inline {
    max-width: 100%;
    border-radius: 10px;
  }

  .dusty-inline__messages {
    padding: 10px 12px;
    min-height: 0;
    max-height: 150px;
    gap: 8px;
  }

  .dusty-inline__msg {
    font-size: 0.82rem;
    padding: 8px 10px;
    line-height: 1.4;
    max-width: 92%;
  }

  .dusty-inline__input-row {
    border-top: 1px solid #333;
  }

  .dusty-inline__input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .dusty-inline__send {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .dusty-inline__join-prompt {
    padding: 10px 16px;
  }

  .dusty-inline__join-prompt p {
    font-size: 0.82rem;
    margin-bottom: 6px;
  }

  .dusty-inline__join-prompt .btn {
    padding: 7px 20px;
    font-size: 0.82rem;
  }

  .dusty-hero__scroll {
    display: none;
  }
}

/* Extra compact for very small phones (iPhone SE, 5s) */
@media (max-width: 380px) {
  .dusty-hero {
    padding: 8px 12px 6px;
  }

  .dusty-hero__title {
    font-size: 1.45rem;
  }

  .dusty-hero__subtitle {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .dusty-inline__messages {
    max-height: 130px;
    padding: 8px 10px;
  }

  .dusty-inline__msg {
    font-size: 0.78rem;
    padding: 6px 8px;
  }
}
