/* ==========================================================================
   SONIA TAZI ALONSO — GUIDES & RESSOURCES PATRIMONIALES DUBAÏ
   Design System: Quiet Luxury & Swiss Private Banking
   ========================================================================== */

:root {
  --bg-ivory: #faf8f5;
  --bg-alabaster: #f3efea;
  --bg-white: #ffffff;
  --emerald-deep: #011811;
  --emerald-dark: #022c22;
  --emerald-primary: #064e3b;
  --emerald-vibrant: #047857;
  --emerald-soft: #ecfdf5;
  --gold-primary: #c5a880;
  --gold-vibrant: #d4af37;
  --gold-light: #fde68a;
  --gold-dark: #8a6d3b;
  --text-dark: #0f172a;
  --text-slate: #334155;
  --text-muted: #64748b;
  --text-white: #f8fafc;
  --border-gold: rgba(197, 168, 128, 0.38);
  --border-emerald: rgba(6, 78, 59, 0.14);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-card: 0 12px 32px -6px rgba(2, 44, 34, 0.08);
  --shadow-lg: 0 22px 48px -12px rgba(2, 44, 34, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-ivory);
  color: var(--text-dark);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--emerald-primary);
  text-decoration: underline;
  text-decoration-color: rgba(197, 168, 128, 0.7);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--gold-dark);
  text-decoration-color: var(--gold-vibrant);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Topbar */
.guides-topbar {
  background: var(--emerald-deep);
  color: #e2e8f0;
  font-size: 0.78rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(197, 168, 128, 0.25);
}

.guides-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.guides-topbar-badge {
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Navbar */
.guides-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  padding: 0.85rem 0;
}

.guides-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.guides-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--emerald-dark);
}

.guides-brand img {
  width: 34px;
  height: 28px;
  object-fit: contain;
}

.guides-brand-name {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--emerald-dark);
  line-height: 1.15;
}

.guides-brand-sub {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  font-weight: 700;
}

.guides-nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-emerald);
  background: var(--bg-white);
  color: var(--emerald-dark);
  transition: all 0.25s ease;
}

.nav-pill:hover {
  border-color: var(--gold-vibrant);
  background: var(--bg-alabaster);
  color: var(--emerald-dark);
}

.nav-pill-gold {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  color: #fde68a;
  border-color: var(--gold-primary);
}

.nav-pill-gold:hover {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #ffffff;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1.1rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb a {
  color: var(--emerald-primary);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Hero Banner (Hub & Articles) */
.guide-hero {
  background: linear-gradient(145deg, var(--emerald-deep) 0%, var(--emerald-dark) 55%, #064e3b 100%);
  color: var(--text-white);
  padding: 3.25rem 0 3rem;
  border-bottom: 3px solid var(--gold-primary);
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 168, 128, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.guide-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 1rem;
  max-width: 900px;
}

.guide-hero-lead {
  font-size: 1.06rem;
  color: #e2e8f0;
  max-width: 820px;
  margin-bottom: 1.35rem;
}

.guide-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 500;
}

.guide-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hub Grid */
.hub-section {
  padding: 3.25rem 0;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.65rem;
  margin-top: 1.75rem;
}

.hub-card {
  background: var(--bg-white);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 1.85rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hub-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-primary);
  background: var(--emerald-soft);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.hub-card h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--emerald-dark);
  line-height: 1.28;
  margin-bottom: 0.75rem;
}

.hub-card p {
  color: var(--text-slate);
  font-size: 0.94rem;
  margin-bottom: 1.1rem;
}

.hub-card-points {
  list-style: none;
  margin-bottom: 1.35rem;
  font-size: 0.86rem;
  color: var(--text-slate);
}

.hub-card-points li {
  padding: 0.28rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.hub-card-points li i {
  color: var(--gold-dark);
  font-size: 0.78rem;
}

/* Article Layout (Column + Sticky Sidebar) */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  padding: 2.25rem 0 3.75rem;
  align-items: start;
}

.article-body {
  background: var(--bg-white);
  border: 1px solid var(--border-emerald);
  border-radius: 20px;
  padding: 2.4rem 2.5rem;
  box-shadow: var(--shadow-card);
  max-width: 100%;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--emerald-dark);
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-gold);
  line-height: 1.25;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  color: var(--emerald-primary);
  margin: 1.5rem 0 0.6rem;
  line-height: 1.3;
}

.article-body p {
  margin-bottom: 1.05rem;
  color: var(--text-slate);
  font-size: 1rem;
}

.article-body ul,
.article-body ol {
  margin: 0.75rem 0 1.25rem 1.35rem;
  color: var(--text-slate);
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* TL;DR GEO Summary Box */
.tldr-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #f8faf9 100%);
  border: 1.5px solid var(--emerald-primary);
  border-left: 5px solid var(--gold-vibrant);
  border-radius: 14px;
  padding: 1.4rem 1.55rem;
  margin-bottom: 2rem;
}

.tldr-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--emerald-dark);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tldr-box ul {
  margin: 0.4rem 0 0 1.2rem;
}

/* Callout / Disclaimer Box */
.callout-box {
  background: var(--bg-alabaster);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  color: var(--text-slate);
}

.callout-box strong {
  color: var(--emerald-dark);
}

/* Responsive Comparison Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 0.9rem;
  min-width: 540px;
}

thead {
  background: var(--emerald-dark);
  color: #ffffff;
}

th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: var(--text-slate);
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: #fafaf9;
}

.highlight-cell {
  color: var(--emerald-primary);
  font-weight: 700;
}

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #fde68a 0%, #d4af37 50%, #aa8232 100%);
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.35);
  color: var(--emerald-deep);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #16a34a;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-wa:hover {
  background: #15803d;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--emerald-primary);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--emerald-dark);
  color: #ffffff;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}

.sidebar-card-dark {
  background: linear-gradient(155deg, var(--emerald-deep) 0%, var(--emerald-dark) 100%);
  color: #f8fafc;
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.sidebar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--emerald-dark);
}

.sidebar-card-dark h3 {
  color: var(--gold-light);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.toc-list li {
  margin-bottom: 0.45rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border-gold);
}

.toc-list a {
  text-decoration: none;
  color: var(--text-slate);
  font-weight: 500;
}

.toc-list a:hover {
  color: var(--emerald-primary);
}

/* FAQ Accordion */
.faq-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  background: var(--bg-ivory);
  padding: 0.95rem 1.15rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--emerald-dark);
  font-size: 0.97rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--gold-dark);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--text-slate);
}

/* Author Box (E-E-A-T) */
.author-box {
  margin-top: 2.5rem;
  background: var(--bg-alabaster);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.author-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2.5px solid var(--gold-vibrant);
  flex-shrink: 0;
}

.author-info h4 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--emerald-dark);
  margin-bottom: 0.2rem;
}

.author-creds {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.45rem;
}

.author-info p {
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

/* CTA Conversion Banner */
.conversion-banner {
  margin-top: 2.25rem;
  background: linear-gradient(145deg, var(--emerald-deep) 0%, var(--emerald-dark) 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
}

.conversion-banner h3 {
  font-family: var(--font-serif);
  color: var(--gold-light);
  font-size: 1.45rem;
  margin: 0 0 0.6rem;
}

.conversion-banner p {
  color: #e2e8f0;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Related Guides */
.related-section {
  background: var(--bg-alabaster);
  padding: 3rem 0;
  border-top: 1px solid var(--border-gold);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.35rem;
}

.related-card {
  background: var(--bg-white);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 1.25rem;
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.related-card span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.related-card h4 {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  color: var(--emerald-dark);
  margin: 0.35rem 0 0.45rem;
  line-height: 1.3;
}

.related-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.guides-footer {
  background: var(--emerald-deep);
  color: #cbd5e1;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  border-top: 2px solid var(--gold-primary);
}

.guides-footer a {
  color: var(--gold-primary);
  text-decoration: none;
  margin: 0 0.5rem;
}

.guides-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .article-body {
    padding: 1.5rem 1.25rem;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  .guides-nav-links {
    display: none;
  }
}
