/* HQ Wealth Wise — redesign concept */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0e1b2c;
  --navy-2: #16283f;
  --cream: #faf7f0;
  --cream-2: #f1ece0;
  --gold: #c6a15b;
  --gold-dark: #a5813f;
  --emerald: #2f5d50;
  --ink: #1b2430;
  --muted: #5c6672;
  --border: #e4ddcc;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy);
}

p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Demo ribbon */
.demo-ribbon {
  background: var(--navy);
  color: var(--cream-2);
  text-align: center;
  font-size: .78rem;
  letter-spacing: .03em;
  padding: 8px 16px;
}
.demo-ribbon strong { color: var(--gold); }

/* Header */
header.site {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  color: var(--navy);
}
.brand-logo {
  height: 96px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: .93rem;
  font-weight: 500;
}
.nav-links a { color: var(--navy); opacity: .8; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold-dark); }
.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}
.nav-cta:hover { background: var(--emerald); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  background: radial-gradient(circle at 80% 0%, #1c3350 0%, var(--navy) 55%);
  color: var(--cream);
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="100" cy="100" r="1" fill="%23c6a15b" opacity="0.35"/></svg>');
  background-size: 40px 40px;
  opacity: .5;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  text-align: left;
  gap: 40px;
  align-items: center;
  container-type: inline-size;
}
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(1.9rem, 4cqw, 3rem);
  margin-bottom: 32px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead {
  color: #cfd7e2;
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .93rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d6b46f; }
.btn-outline { border-color: rgba(250,247,240,.35); color: var(--cream); }
.btn-outline:hover { border-color: var(--cream); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--emerald); }

.hero-card {
  background: rgba(250,247,240,.06);
  border: 1px solid rgba(250,247,240,.15);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
  width: 100%;
  max-width: 420px;
}
.hero-card .stat { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(250,247,240,.12); }
.hero-card .stat:last-child { border-bottom: none; }
.hero-card .stat b { color: var(--gold); font-family: 'Fraunces', serif; font-size: 1.3rem; display: block; }
.hero-card .stat span { color: #cfd7e2; font-size: .82rem; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { color: var(--gold-dark); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { font-size: 1.02rem; }

.alt { background: var(--cream-2); }
.navy-section { background: var(--navy); color: var(--cream); }
.navy-section h2, .navy-section h3 { color: var(--cream); }
.navy-section p { color: #c7d0dc; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }

.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 1px 2px rgba(14,27,44,.04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  box-shadow: 0 14px 32px rgba(14,27,44,.09);
  transform: translateY(-3px);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; }
.card p { margin-bottom: 0; font-size: .95rem; }

/* Topic tiles (setquotes-style category browsing) */
.topic-card { text-align: center; }
.topic-card .icon { margin: 0 auto 18px; }
.topic-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.topic-card p { font-size: .9rem; margin-bottom: 18px; }
.topic-card .btn { font-size: .82rem; padding: 10px 20px; }

/* Blog feed */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.blog-post {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(14,27,44,.04);
  margin-bottom: 34px;
}
.blog-post-media {
  position: relative;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}
.blog-post-media img.bg-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.blog-post-media .watermark {
  position: absolute;
  top: 16px; left: 16px;
  height: 30px;
  width: auto;
  border-radius: 6px;
  z-index: 2;
}
.blog-post-media blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--cream);
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  line-height: 1.3;
}
.blog-post-media blockquote cite {
  display: block;
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
}
.blog-post-body { padding: 26px 28px 30px; }
.blog-meta {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.blog-meta a { color: var(--gold-dark); }
.blog-meta .sep { margin: 0 6px; opacity: .5; }
.blog-post-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.blog-post-body h3 a { color: var(--navy); }
.blog-post-body p { font-size: .95rem; }
.continue-reading {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-top: 4px;
}

.sidebar-widget {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list li { border-bottom: 1px solid var(--border); }
.category-list li:last-child { border-bottom: none; }
.category-list a {
  display: block;
  padding: 10px 0;
  font-size: .9rem;
  color: var(--ink);
}
.category-list a:hover { color: var(--gold-dark); }
.recent-post { display: flex; gap: 12px; margin-bottom: 16px; }
.recent-post:last-child { margin-bottom: 0; }
.recent-post .thumb {
  width: 52px; height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.recent-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post .thumb-icon { color: var(--gold); font-family: 'Fraunces', serif; }
.recent-post a { font-size: .85rem; font-weight: 600; color: var(--navy); line-height: 1.3; display: block; }
.recent-post span { font-size: .74rem; color: var(--muted); }
.social-list { list-style: none; margin: 0; padding: 0; }
.social-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.social-list li:last-child { border-bottom: none; }
.social-list .platform { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; }
.social-list .social-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}
.social-list .count { color: var(--muted); font-size: .8rem; }

@media (max-width: 860px) {
  .blog-layout { grid-template-columns: 1fr; }
}

/* Responsive video embed (16:9) */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.video-embed.is-placeholder .icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(250,247,240,.1);
  border: 1px solid rgba(250,247,240,.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  color: var(--gold);
}

.quote-block {
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0;
}

/* Podcast highlight */
.podcast-panel {
  background: var(--navy);
  color: var(--cream);
  border-radius: 20px;
  padding: 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.podcast-art {
  width: 96px; height: 96px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold), var(--emerald));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--navy);
  flex-shrink: 0;
}
.podcast-panel h3 { color: var(--cream); margin-bottom: 6px; }
.podcast-panel p { color: #c7d0dc; margin-bottom: 0; }
.podcast-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--emerald), var(--navy));
  color: var(--cream);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: var(--cream); }
.cta-banner p { color: #d7e0da; max-width: 50ch; margin-left: auto; margin-right: auto; }

/* Placeholder callouts — used where the real site owner needs to supply content */
.placeholder-slot {
  border: 1.5px dashed var(--gold-dark);
  background: #fbf5e6;
  border-radius: 12px;
  padding: 20px 22px;
  font-size: .88rem;
  color: var(--gold-dark);
}
.placeholder-slot b { color: var(--navy); }

/* Quotes grid (setquotes-style) */
.quote-card { display: flex; flex-direction: column; }
.quote-card .quote-tag {
  display: inline-block;
  color: var(--gold-dark);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.quote-card .quote-block { flex-grow: 1; font-size: 1.15rem; }
.quote-card .quote-author {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
  margin: 14px 0 18px;
}
.quote-card .btn { align-self: flex-start; font-size: .82rem; padding: 10px 20px; }
.quote-card .btn.copied { background: var(--emerald); color: var(--cream); border-color: var(--emerald); }

/* Team / people */
.person {
  text-align: center;
}
.person .avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--cream-2);
  border: 1.5px dashed var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dark);
  font-size: .75rem;
  text-align: center;
  padding: 6px;
}

/* Forms */
.form-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 10px; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: none; }
.info-list .ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .95rem;
}

/* Footer */
footer.site {
  background: var(--navy);
  color: #c7d0dc;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,247,240,.12);
}
footer.site h4 { color: var(--cream); font-size: .95rem; font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 16px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 10px; font-size: .9rem; }
footer.site a:hover { color: var(--gold); }
.footer-brand { font-family: 'Fraunces', serif; color: var(--cream); font-size: 1.15rem; margin-bottom: 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: .8rem; color: #93a0ae; flex-wrap: wrap; gap: 10px;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Phones: menu links become a row under the logo (scrolls sideways if it doesn't fit) */
  .nav { flex-wrap: wrap; padding: 0 16px; }
  .brand-logo { height: 64px; }
  .nav-cta { padding: 8px 14px; font-size: .78rem; }
  .nav-links {
    order: 3;
    width: 100%;
    gap: clamp(6px, 2.2vw, 18px);
    justify-content: space-between;
    padding: 10px 0 12px;
    border-top: 1px solid var(--border);
    font-size: clamp(.76rem, 3.5vw, .88rem);
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .podcast-panel { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* Generated blog: quote-graphic thumbnails and single post pages */
.blog-post-media.is-graphic { background: var(--navy); padding: 0; }
.blog-post-media.is-graphic img.bg-photo { object-fit: contain; }
.blog-post-media.is-large { aspect-ratio: 1 / 1; max-width: 560px; margin: 0 auto 28px; border-radius: var(--radius); overflow: hidden; }
.blog-post-media.is-large:not(.is-graphic) { aspect-ratio: 16 / 11; max-width: none; }
.category-list .count { color: var(--muted); font-size: .8rem; }

.post-article { min-width: 0; }
.post-article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 8px 0 24px; }
.post-quote {
  margin: 0 0 32px;
  padding: 22px 26px;
  background: var(--cream-2);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--navy);
}
.post-quote cite {
  display: block;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--gold-dark);
}
.post-body { font-size: 1.04rem; }
.post-body p, .post-body li { color: var(--ink); }
.post-body h2, .post-body h3 { margin-top: 1.6em; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.post-body li { margin-bottom: .5em; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.post-body figure { margin: 1.6em 0; }
.post-body img { border-radius: var(--radius); height: auto; }
.post-back { margin-top: 36px; }
.photo-credit { text-align: center; font-size: .78rem; color: var(--muted); margin: -18px 0 28px; }
.photo-credit a { color: var(--gold-dark); }

/* Contact form: spam trap (hidden from people) and error message */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdecea; color: #8a1c1c; border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
