/* ============================================================
   Qote — ADDITIONS (parallax, FAQ, social, blog, mobile nav)
   Load AFTER base.css + home.css + extra.css
   ============================================================ */

/* ── PARALLAX SECTIONS ── */
.qw-parallax {
  position: relative;
  overflow: hidden;
}
.qw-parallax__bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
/* Scroll-reveal: NEVER use opacity:0 as initial — content must be visible
   at rest even if JS/observers fail. Animate only transform. */
@keyframes qw-rise-up {
  from { transform: translateY(28px); }
  to   { transform: translateY(0); }
}
.qw-fade-up {
  opacity: 1;
  animation: qw-rise-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-play-state: paused;
}
.qw-fade-up.is-visible {
  animation-play-state: running;
}
/* If observer never fires, content is still fully visible (just not animated) */
@media (prefers-reduced-motion: reduce) {
  .qw-fade-up { animation: none; }
}

/* CSS-only parallax for supported contexts */
.qw-parallax-fixed {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Trust strip parallax bg */
.propA-trust--parallax {
  background:
    linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 50%, #064e3b 100%);
  background-attachment: fixed;
  background-size: cover;
}

/* Bank section parallax */
.propA-bank--parallax {
  background:
    linear-gradient(160deg, #064e3b 0%, var(--green-deep) 40%, #065f46 100%);
  background-attachment: fixed;
  background-size: cover;
}

/* ── FAQ SECTION ── */
.faq {
  background: var(--green-deep);
  color: var(--cream);
  padding: 72px 0 80px;
  position: relative;
  z-index: 1;
}
.faq__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.faq__head h2 {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  color: var(--cream);
  margin: 0;
}
.faq__head h2 em { color: var(--green-soft); }
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(139,196,168,0.15);
  border: 1px solid rgba(139,196,168,0.2);
}
.faq__item {
  background: var(--green-deep);
  padding: 26px 28px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.faq__item:hover {
  background: rgba(139,196,168,0.06);
}
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.faq__q h4 {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.faq__q span {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--green-soft);
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}
.faq__item.is-open .faq__q span {
  transform: rotate(45deg);
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq__item.is-open .faq__a {
  max-height: 200px;
  padding-top: 14px;
}
.faq__a p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245,240,232,0.72);
  margin: 0;
}
@media (max-width: 760px) {
  .faq__grid { grid-template-columns: 1fr; }
}

/* ── SOCIAL LINKS ── */
.social-links {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(139,196,168,0.35);
  display: grid;
  place-items: center;
  color: var(--green-soft);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.social-links a:hover {
  background: var(--green-soft);
  color: var(--green-deep);
  border-color: var(--green-soft);
}
.social-links svg {
  width: 16px;
  height: 16px;
}

/* ── MOBILE NAV ── */
.qw-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.qw-nav__burger span {
  width: 22px;
  height: 1.5px;
  background: var(--green-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (max-width: 960px) {
  .qw-nav__burger { display: flex; }
  .qw-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 56px;
    gap: 16px;
    border-bottom: 1.5px solid var(--green-dark);
    box-shadow: 0 12px 24px -12px rgba(15,33,24,0.2);
  }
  .qw-nav__links.is-open { display: flex; }
  .qw-nav__cta { gap: 12px; }
  .propA-hero__grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .propA-hero__title { font-size: clamp(36px, 8vw, 56px) !important; }
}
@media (max-width: 640px) {
  .qw-nav { padding: 14px 24px; }
  .qw-nav__links { padding: 18px 24px; }
  .qw-container { padding: 0 24px; }
  .propA-footer__grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
}

/* ── BLOG PAGE ── */
.blog-hero {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.blog-card {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transition: background 0.18s ease;
  cursor: pointer;
}
.blog-card:hover { background: #fff; }
.blog-card__img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-deep) 100%);
  position: relative;
  overflow: hidden;
}
.blog-card__img .qw-img__stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(245,240,232,0.06) 0 1px, transparent 1px 14px);
}
.blog-card__img .qw-img__caption {
  position: absolute;
  left: 14px; bottom: 12px;
  display: flex; align-items: center; gap: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,240,232,0.8);
}
.blog-card__body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.blog-card__cat {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-mid);
  display: inline-flex; align-items: center; gap: 8px;
}
.blog-card__cat::before {
  content: ""; width: 18px; height: 1.5px; background: var(--clay);
}
.blog-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px; font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2; letter-spacing: -0.01em;
  margin: 0; text-wrap: pretty;
}
.blog-card p {
  font-size: 13.5px; line-height: 1.6;
  color: var(--text-muted); margin: 0;
}
.blog-card__meta {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--text-muted); text-transform: uppercase;
}
.blog-card__meta .read { color: var(--green-mid); }
.blog-cats {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px;
}
.blog-cats button {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--rule);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer;
  transition: all 0.15s ease;
}
.blog-cats button:hover { border-color: var(--green-mid); color: var(--green-dark); }
.blog-cats button.is-on {
  background: var(--green-dark); border-color: var(--green-dark); color: var(--cream);
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ── CTA BAND (reusable call-to-action strip) ── */
.cta-band {
  background: var(--green-dark);
  padding: 28px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band__text {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.cta-band__text em { color: var(--green-soft); }
.cta-band .qw-btn {
  background: var(--clay);
  color: #2a2008;
  border-color: var(--clay);
}
.cta-band .qw-btn:hover { background: #b8975f; }
