/* ================================================================
   HOME PAGE — Quollnet 2026
   ================================================================ */

/* ── Palette ── */
:root {
  --q-orange:      #FFB17F;
  --q-orange-dark: #E8935A;
  --q-orange-glow: rgba(255, 177, 127, .15);
  --q-charcoal:    #1A1A2E;
  --q-dark:        #16213E;
  --q-navy:        #0F3460;
  --q-warm-bg:     #FFF8F3;
}

/* ── Breakout helper (escape 900px container) ── */
.hero-breakout {
  width: 100vw;
  position: relative;
  left: calc(-50vw + 50%);
}

/* ================================================================
   HERO
   ================================================================ */
.q-hero {
  background: var(--q-charcoal);
  background-image: url('../images/hero-home-quollnet.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* dark scrim so text stays readable over the image */
.q-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, .45) 0%,
    rgba(26, 26, 46, .75) 100%
  );
  pointer-events: none;
}

.q-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.q-hero__logo {
  width: 80px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 24px rgba(255,177,127,.4));
}

.q-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: .75rem;
}

.q-hero h1 span { color: var(--q-orange); }

.q-hero__sub {
  font-size: 1.05rem;
  opacity: .82;
  max-width: 540px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

/* ── Stats strip ── */
.q-hero__stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  margin-bottom: 2.25rem;
}

.q-stat       { text-align: center; }
.q-stat__num  { display: block; font-size: 2.3rem; font-weight: 800; color: var(--q-orange); line-height: 1.1; }
.q-stat__label{ font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; opacity: .65; }

/* ── Hero buttons ── */
.q-btn-primary {
  background: var(--q-orange);
  color: var(--q-charcoal);
  border: none;
  font-weight: 700;
  padding: .7rem 1.6rem;
  border-radius: .5rem;
  transition: background .2s, transform .15s;
}
.q-btn-primary:hover {
  background: var(--q-orange-dark);
  color: #fff;
  transform: translateY(-2px);
}

.q-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  font-weight: 700;
  padding: .7rem 1.6rem;
  border-radius: .5rem;
  transition: border-color .2s, color .2s, transform .15s;
}
.q-btn-outline:hover {
  border-color: var(--q-orange);
  color: var(--q-orange);
  transform: translateY(-2px);
}

/* ================================================================
   SECTION COMMON
   ================================================================ */
.q-section {
  padding: 3rem 0;
}

.q-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.q-section__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}

.q-section__title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--q-orange), transparent);
  margin-left: .75rem;
}

.q-section__link {
  color: var(--q-orange-dark);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: .9rem;
  transition: color .2s;
}
.q-section__link:hover { color: var(--q-orange); }

/* warm alternating bg */
.q-section--warm { background: var(--q-warm-bg); }
[data-bs-theme="dark"] .q-section--warm { background: rgba(255,177,127,.03); }

/* full-width section */
.q-section--wide {
  width: 100vw;
  position: relative;
  left: calc(-50vw + 50%);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.q-section--wide > .q-section__inner {
  max-width: 900px;
  margin: 0 auto;
}

/* ================================================================
   3-CTA ACTION CARDS
   ================================================================ */
.q-action-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-top: 3px solid var(--q-orange);
  border-radius: .75rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.q-action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,.08);
}

.q-action-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
}
.q-action-card__icon--write     { background: linear-gradient(135deg, #667eea, #764ba2); }
.q-action-card__icon--checklist { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #1a1a2e; }
.q-action-card__icon--cashflow  { background: linear-gradient(135deg, var(--q-orange), #f7971e); }
.q-action-card__icon svg { width: 26px; height: 26px; fill: currentColor; }

.q-action-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.q-action-card p  { font-size: .88rem; color: var(--bs-secondary-color); margin-bottom: 1rem; }

.q-action-card__link {
  display: inline-block;
  font-weight: 600;
  color: var(--q-orange-dark);
  text-decoration: none;
  transition: color .2s, letter-spacing .2s;
}
.q-action-card__link:hover { color: var(--q-orange); letter-spacing: .03em; }

/* ================================================================
   ARTICLE CARDS
   ================================================================ */
.q-article-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  overflow: hidden;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.q-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.q-article-card__img {
  height: 160px;
  background: var(--bs-tertiary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.q-article-card__img img { width: 100%; height: 100%; object-fit: cover; }

.q-article-card__placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--q-orange);
  color: var(--q-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
}

.q-article-card__body { padding: 1rem 1.1rem; }

.q-article-card__title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .35rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--bs-body-color);
}

.q-article-card__desc {
  font-size: .82rem;
  color: var(--bs-secondary-color);
  margin-bottom: .6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.q-article-card__meta {
  display: flex;
  gap: .75rem;
  font-size: .75rem;
  color: var(--bs-secondary-color);
}

/* ================================================================
   TRENDING
   ================================================================ */
.q-trending-list { max-width: 700px; }

.q-trending-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem .5rem;
  border-bottom: 1px solid var(--bs-border-color);
  text-decoration: none;
  color: var(--bs-body-color);
  border-radius: .4rem;
  transition: background .15s, padding-left .15s;
}
.q-trending-item:last-child { border-bottom: none; }
.q-trending-item:hover      { background: var(--q-orange-glow); padding-left: 1rem; }

.q-trending-item__rank {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--q-orange);
  min-width: 2rem;
  text-align: center;
}

.q-trending-item__title {
  font-size: .9rem;
  font-weight: 600;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.q-trending-item__meta {
  font-size: .75rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}

/* ================================================================
   CHECKLIST CARDS (JS-loaded)
   ================================================================ */
.q-checklist-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  overflow: hidden;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: var(--bs-body-color);
  display: flex;
  flex-direction: column;
}

.q-checklist-card__hero {
  height: 140px;
  background: var(--bs-tertiary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.q-checklist-card__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.q-checklist-card__hero-ph {
  font-size: 2.5rem;
  opacity: .35;
}

.q-checklist-card__body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.q-checklist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  color: var(--bs-body-color);
}

.q-checklist-card__name {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.q-checklist-card__intro {
  font-size: .82rem;
  color: var(--bs-secondary-color);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .65rem;
}

.q-checklist-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--bs-secondary-color);
}

.q-checklist-card__items { font-weight: 600; }

.q-checklist-card__cat {
  background: var(--q-orange-glow);
  color: var(--q-orange-dark);
  padding: .18rem .55rem;
  border-radius: 1rem;
  font-size: .7rem;
  font-weight: 600;
}

/* ================================================================
   APP CARDS (JS-loaded)
   ================================================================ */
.q-app-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: var(--bs-body-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.q-app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  color: var(--bs-body-color);
}

.q-app-card__hero {
  height: 120px;
  background: var(--bs-tertiary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.q-app-card__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.q-app-card__hero-ph {
  font-size: 2rem;
  font-weight: 700;
  color: var(--q-orange-dark);
  opacity: .4;
}

.q-app-card__body {
  padding: .85rem 1rem 1rem;
  text-align: center;
}

.q-app-card__name { font-size: .88rem; font-weight: 700; margin-bottom: .25rem; }

.q-app-card__desc {
  font-size: .78rem;
  color: var(--bs-secondary-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================================
   SKELETON LOADERS
   ================================================================ */
.q-skeleton { border-radius: .75rem; }

.q-skeleton__bar {
  background: var(--bs-secondary-bg);
  border-radius: .25rem;
  background-image: linear-gradient(
    90deg, transparent 25%, rgba(255,255,255,.3) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: q-shimmer 1.5s infinite linear;
}

[data-bs-theme="dark"] .q-skeleton__bar {
  background-image: linear-gradient(
    90deg, rgba(108,117,125,.4) 25%, rgba(130,140,150,.3) 50%, rgba(108,117,125,.4) 75%);
  background-size: 200% 100%;
}

@keyframes q-shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.q-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.q-fade-up.q-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   BOTTOM CTA
   ================================================================ */
.q-bottom-cta {
  background: linear-gradient(135deg, var(--q-charcoal) 0%, var(--q-dark) 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 1rem 0 2rem;
}
.q-bottom-cta h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.q-bottom-cta p  { opacity: .8; margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .q-hero           { padding: 3rem 1rem 2.5rem; }
  .q-hero h1        { font-size: 1.5rem; }
  .q-hero__sub      { font-size: .95rem; }
  .q-hero__stats    { gap: 2rem; }
  .q-stat__num      { font-size: 1.7rem; }
  .q-hero__cta .btn { display: block; width: 100%; margin-bottom: .5rem; }
  .q-hero__cta      { flex-direction: column; align-items: stretch; }

  .q-section__title::after { display: none; }
  .q-section__header { flex-direction: column; align-items: flex-start; gap: .25rem; }

  .q-bottom-cta     { padding: 2.5rem 1.25rem; }
  .q-bottom-cta h2  { font-size: 1.25rem; }
}
