/* Dreamexch Guide — main.css | purple/magenta brand theme (matches dreamexch.asia)
   Light UI, vibrant purple->magenta gradients, WhatsApp green, mobile-first, CLS-safe */
:root {
  --brand-magenta: #E1197A;
  --brand-magenta-dark: #C10E68;
  --brand-purple: #6A11CB;
  --brand-purple-deep: #460094;
  --brand-purple-2: #8E44AD;
  --grad: linear-gradient(135deg, #6A11CB 0%, #9B1CB4 50%, #E1197A 100%);
  --grad-btn: linear-gradient(135deg, #7A1FD0 0%, #E1197A 100%);

  --color-bg: #FFFFFF;
  --color-bg-soft: #F7F3FC;
  --color-card: #FFFFFF;
  --color-ink: #241A2E;
  --color-heading: #1C1226;
  --color-muted: #6E6580;
  --color-line: #ECE4F5;
  --color-whatsapp: #25D366;
  --color-footer: #2A1140;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 44px rgba(106, 17, 203, 0.14);
  --shadow-card: 0 6px 20px rgba(70, 0, 148, 0.08);
  --container: 1200px;
  --narrow: 860px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-magenta); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; color: var(--color-heading); }
h1 { font-size: clamp(1.7rem, 5vw, 2.7rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.9rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 .4em; }
p { margin: 0 0 1em; color: var(--color-ink); }
ul, ol { color: var(--color-ink); padding-left: 1.2em; }
li { margin: .35em 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand-magenta); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* Buttons */
.btn { display: inline-block; font-weight: 700; padding: 12px 22px; border-radius: 999px; text-align: center; cursor: pointer; border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 20px rgba(225,25,122,.30); }
.btn-whatsapp { background: var(--color-whatsapp); color: #06331b; box-shadow: 0 8px 20px rgba(37,211,102,.30); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand-mark { font-weight: 800; font-size: 1.35rem; color: var(--color-heading); letter-spacing: -.5px; }
.brand-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--brand-magenta); }
.primary-nav { display: none; align-items: center; gap: 20px; }
.primary-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--color-ink); font-weight: 600; font-size: .96rem; }
.primary-nav a:hover { color: var(--brand-magenta); text-decoration: none; }
.nav-cta { padding: 9px 18px; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 1px solid var(--color-line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--brand-purple); margin: 0 auto; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { background: var(--grad); color: #fff; padding: 40px 0 32px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.92); font-size: 1.08rem; }
.hero p { color: rgba(255,255,255,.9); }
.hero-inner { display: grid; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }
.hero-micro { font-size: .85rem; color: rgba(255,255,255,.85); }
.hero-visual .hero-media { border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.30); width: 100%; border: 1px solid rgba(255,255,255,.25); }

/* Trust bar */
.trust-bar { background: var(--color-bg-soft); border-bottom: 1px solid var(--color-line); }
.trust-bar-inner { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 12px 20px; justify-content: center; }
.trust-item { font-size: .85rem; color: var(--brand-purple); font-weight: 700; position: relative; padding-left: 18px; }
.trust-item::before { content: "\2713"; position: absolute; left: 0; color: var(--brand-magenta); }

/* Content */
.home-body, .page { padding: 28px 0 56px; }
.content-section { margin: 0 0 8px; }
.lead { font-size: 1.05rem; color: var(--color-muted); }
.byline { font-size: .85rem; color: var(--color-muted); margin-top: -.4em; }
.page-head { margin-bottom: 8px; }
.head-cta { margin: 16px 0; }
.page-figure { margin: 20px 0; }
.rounded { border-radius: var(--radius-md); box-shadow: var(--shadow-card); border: 1px solid var(--color-line); }
.editorial-note { font-size: .85rem; color: var(--color-muted); border-top: 1px solid var(--color-line); padding-top: 16px; margin-top: 28px; font-style: italic; }

/* Tables */
.table-wrap { overflow-x: auto; }
.info-table, table { width: 100%; border-collapse: collapse; margin: 12px 0; background: var(--color-card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-line); }
.info-table th, .info-table td, table th, table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-line); font-size: .95rem; }
.info-table th[scope="row"], table th { color: var(--color-heading); background: var(--color-bg-soft); white-space: nowrap; }
table td { color: var(--color-ink); }

/* Cards */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 12px 0; }
.guide-card { display: block; background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 20px; transition: border-color .15s, transform .15s, box-shadow .15s; box-shadow: var(--shadow-card); }
.guide-card:hover { border-color: var(--brand-magenta); transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-soft); }
.guide-card h3 { margin-top: 0; }
.guide-card p { margin-bottom: 10px; color: var(--color-muted); }
.card-link { color: var(--brand-magenta); font-weight: 700; font-size: .9rem; }

/* TOC */
.toc { background: var(--color-bg-soft); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 16px 20px; margin: 18px 0; }
.toc-title { font-weight: 800; color: var(--color-heading); margin: 0 0 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc a { color: var(--brand-purple); font-size: .95rem; }

/* CTA block */
.cta-block { background: var(--grad); border-radius: var(--radius-lg); padding: 28px 24px; margin: 28px 0; text-align: center; box-shadow: var(--shadow-soft); }
.cta-block h3 { color: #fff; margin-top: 0; }
.cta-block p { color: rgba(255,255,255,.92); }
.cta-micro { margin-top: 12px; font-size: .85rem; color: rgba(255,255,255,.85); }

/* Support / responsible / disclaimers */
.support-cta-card { background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; margin: 20px 0; box-shadow: var(--shadow-soft); }
.support-cta-card h2, .support-cta-card p { color: #fff; }
.support-cta-card .cta-micro { color: rgba(255,255,255,.85); }
.responsible-block, .age-notice-box, .disclaimer-banner { background: rgba(225,25,122,.06); border: 1px solid rgba(225,25,122,.28); border-radius: var(--radius-md); padding: 16px 20px; }
.age-notice-box { margin: 24px 0; }
.disclaimer-banner { margin: 16px 0; }
.disclaimer-banner strong, .age-notice-box strong { color: var(--brand-magenta-dark); }

/* FAQ */
.faq-section { margin: 32px 0; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 4px 18px; box-shadow: var(--shadow-card); }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--color-heading); padding: 12px 0; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 8px; color: var(--brand-magenta); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { padding-bottom: 14px; color: var(--color-ink); }
.faq-answer p:last-child { margin-bottom: 0; }

/* Breadcrumbs */
.breadcrumbs { padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .85rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--color-muted); }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs [aria-current] { color: var(--brand-magenta); }

/* Related links */
.related-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 8px 0; }
.related-links li a { display: inline-block; background: var(--color-bg-soft); border: 1px solid var(--color-line); padding: 8px 14px; border-radius: 999px; font-size: .9rem; color: var(--brand-purple); font-weight: 600; }
.related-links li a:hover { border-color: var(--brand-magenta); color: var(--brand-magenta); text-decoration: none; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 20px 0; }
.blog-card { display: flex; flex-direction: column; background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; box-shadow: var(--shadow-card); }
.blog-card:hover { border-color: var(--brand-magenta); transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-soft); }
.blog-card-img { width: 100%; height: auto; aspect-ratio: 10 / 7; object-fit: cover; }
.blog-card-body { padding: 18px 20px; }
.blog-card-body h2 { font-size: 1.15rem; margin: 6px 0 8px; }
.blog-card-body p { font-size: .92rem; margin-bottom: 10px; color: var(--color-muted); }
.blog-cat { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-magenta); background: rgba(225,25,122,.08); border: 1px solid rgba(225,25,122,.28); padding: 3px 10px; border-radius: 999px; }

/* Footer */
.site-footer { background: var(--color-footer); color: rgba(255,255,255,.78); margin-top: 40px; }
.site-footer .brand-mark { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 24px; }
.footer-col h3 { font-size: 1rem; color: #fff; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: rgba(255,255,255,.75); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-about p { font-size: .92rem; color: rgba(255,255,255,.75); }
.age-badge { display: inline-block; background: rgba(225,25,122,.2); color: #FFD1E7; border: 1px solid rgba(225,25,122,.5); padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .82rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.disclaimer { font-size: .8rem; color: rgba(255,255,255,.6); }
.copyright { font-size: .8rem; color: rgba(255,255,255,.6); margin: 8px 0 0; }

/* Floating WhatsApp */
.floating-whatsapp { position: fixed; right: 16px; bottom: 84px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--color-whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.floating-whatsapp:hover { text-decoration: none; transform: scale(1.05); }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,.97); border-top: 1px solid var(--color-line); box-shadow: 0 -6px 20px rgba(70,0,148,.08); }
.sticky-cta-btn { flex: 1; text-align: center; padding: 12px; border-radius: 999px; font-weight: 800; font-size: .95rem; }
.sticky-cta-support { background: var(--color-bg-soft); color: var(--brand-purple); border: 1px solid var(--color-line); }
.sticky-cta-primary { background: var(--color-whatsapp); color: #06331b; }
.sticky-cta-btn:hover { text-decoration: none; }

/* Desktop */
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 20px 0; }
  .hero { padding: 56px 0 44px; }
  .sticky-cta { display: none; }
  .floating-whatsapp { bottom: 24px; }
}
@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile menu open state */
@media (max-width: 991px) {
  .primary-nav { position: fixed; inset: 64px 0 auto 0; background: #fff; border-bottom: 1px solid var(--color-line); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s; box-shadow: var(--shadow-soft); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--color-line); }
  .primary-nav a { display: block; padding: 14px 0; }
  .nav-cta { margin-top: 14px; text-align: center; }
  body.nav-open .primary-nav { display: flex; transform: translateY(0); opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
