/* =========================================================================
   Verificar.ai — shared stylesheet
   Navy + gold + cream editorial aesthetic
   ========================================================================= */

:root {
  --navy: #1a1a2e;
  --navy-dark: #13131f;
  --navy-light: #2a2a3e;
  --gold: #c9a84c;
  --gold-soft: rgba(201, 168, 76, 0.12);
  --gold-border: rgba(201, 168, 76, 0.28);
  --cream: #faf7f2;
  --cream-dark: #f0ebe0;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-mid: #4a4a5a;
  --text-light: #7a7a8a;
  --border: #e0dcd0;
  --border-light: #ece7d9;
  --amber: #d19a2f;
  --green: #4a8055;
  --red: #b04545;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

/* ----------------------------- NAV ---------------------------------------- */

nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 400;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--navy-light); color: var(--white) !important; }

.lang-toggle {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 13px;
}
.lang-toggle button {
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.4;
  transition: opacity 0.15s;
}
.lang-toggle button.active { opacity: 1; }
.lang-toggle button:hover { opacity: 0.8; }

/* ----------------------------- HERO --------------------------------------- */

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 96px 32px 112px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ----------------------------- BUTTONS ------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy) !important;
}
.btn-primary:hover { background: #d4b562; color: var(--navy) !important; }
.btn-secondary {
  background: transparent;
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold) !important; }
.btn-dark {
  background: var(--navy);
  color: var(--white) !important;
}
.btn-dark:hover { background: var(--navy-light); color: var(--white) !important; }

/* ----------------------------- SECTIONS ----------------------------------- */

section { padding: 88px 32px; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-narrow { max-width: 820px; margin: 0 auto; }

.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 620px;
  margin-bottom: 48px;
}

.section-cream { background: var(--cream-dark); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .section-title { color: var(--white); }
.section-navy .section-lede { color: rgba(255, 255, 255, 0.7); }

/* ----------------------------- CARDS -------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26, 26, 46, 0.06); }
.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.55;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ----------------------------- FOOTER ------------------------------------- */

footer.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.5);
  padding: 56px 32px 40px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  display: inline-block;
}
.footer-brand .footer-logo span { color: var(--gold); }
.footer-brand p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.45);
  max-width: 320px;
}
.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1160px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
  gap: 12px;
}

/* ----------------------------- UTILITIES ---------------------------------- */

.mono {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gold-soft);
  color: var(--gold);
  border-radius: 99px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ----------------------------- RESPONSIVE --------------------------------- */

@media (max-width: 900px) {
  .nav-inner { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child):not(.lang-li) { display: none; }
  .hero { padding: 64px 20px 80px; }
  section { padding: 64px 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* =========================================================================
   Blog-specific styles
   ========================================================================= */

.blog-hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 32px 64px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
}
.blog-hero .eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  max-width: 700px;
}
.blog-hero h1 em { font-style: italic; color: var(--gold); }
.blog-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.55;
}

/* Blog listing grid */
.blog-listing {
  max-width: 1160px;
  margin: -40px auto 0;
  padding: 0 32px 96px;
  position: relative;
  z-index: 10;
}
.featured-post {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.06);
}
.featured-post .badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 99px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}
.featured-post h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.featured-post h2 em { font-style: italic; color: var(--gold); }
.featured-post .excerpt {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 20px;
}
.featured-post .meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.featured-post .meta span + span { margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--border); }
.featured-post-side {
  background: var(--navy);
  border-radius: 6px;
  padding: 32px;
  color: var(--white);
}
.featured-post-side h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--white);
}
.featured-post-side ul { list-style: none; }
.featured-post-side li {
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 8px;
}
.featured-post-side li::before { content: '→'; color: var(--gold); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: block;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(26, 26, 46, 0.08);
}
.post-card .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}
.tag-guide { background: var(--gold-soft); color: var(--gold); }
.tag-legal { background: #2a2a3e; color: var(--white); }
.tag-location { background: rgba(74, 128, 85, 0.12); color: var(--green); }
.tag-tax { background: rgba(209, 154, 47, 0.15); color: var(--amber); }
.post-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.post-card .excerpt {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 16px;
}
.post-card .meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-transform: uppercase;
}

/* Blog CTA strip */
.blog-cta-strip {
  background: var(--navy);
  color: var(--white);
  padding: 64px 32px;
  text-align: center;
}
.blog-cta-strip h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 500;
  margin-bottom: 16px;
}
.blog-cta-strip h2 em { font-style: italic; color: var(--gold); }
.blog-cta-strip p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

/* ===================== Blog article pages ===================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 200;
  width: 0%;
  transition: width 0.05s linear;
}

.article-header {
  background: var(--navy);
  color: var(--white);
  padding: 80px 32px 72px;
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.article-header-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.article-breadcrumb {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.article-breadcrumb a { color: var(--gold); text-decoration: none; }
.article-breadcrumb span { margin: 0 8px; color: rgba(255, 255, 255, 0.25); }
.article-pillar {
  display: inline-block;
  padding: 5px 12px;
  background: var(--gold-soft);
  color: var(--gold);
  border-radius: 99px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}
.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.article-title em { font-style: italic; color: var(--gold); }
.article-standfirst {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
}
.article-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}
.article-meta-dot { margin: 0 10px; color: rgba(255, 255, 255, 0.2); }

.article-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 32px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: flex-start;
}
.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 720px;
}
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 48px 0 18px;
  scroll-margin-top: 100px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0 12px;
}
.article-body p { margin-bottom: 18px; }
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; line-height: 1.65; }
.article-body a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--gold); }

/* Callouts */
.callout-info {
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
}
.callout-info .callout-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.callout-info p { margin-bottom: 0; color: var(--navy); font-size: 15px; line-height: 1.6; }

.callout-warn {
  background: rgba(209, 154, 47, 0.08);
  border-left: 3px solid var(--amber);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
}
.callout-warn .callout-label { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.15em; color: var(--amber); text-transform: uppercase; margin-bottom: 8px; font-weight: 500; }
.callout-warn p { margin-bottom: 0; color: var(--navy); font-size: 15px; line-height: 1.6; }

.callout-tip {
  background: rgba(74, 128, 85, 0.06);
  border-left: 3px solid var(--green);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
}
.callout-tip .callout-label { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.15em; color: var(--green); text-transform: uppercase; margin-bottom: 8px; font-weight: 500; }
.callout-tip p { margin-bottom: 0; color: var(--navy); font-size: 15px; line-height: 1.6; }

/* Article bottom CTA */
.article-cta {
  margin-top: 64px;
  padding: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
}
.article-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--white);
}
.article-cta h3 em { font-style: italic; color: var(--gold); }
.article-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin-bottom: 20px;
}
.article-cta .btn {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 12px 24px;
  display: inline-block;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.article-cta .btn:hover { background: #d4b562; }

/* Sidebar */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card .sidebar-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.sidebar-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 12px;
}
.sidebar-card p { font-size: 13px; color: var(--text-mid); line-height: 1.55; margin-bottom: 14px; }
.sidebar-card .btn-sidebar {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.sidebar-card .btn-sidebar:hover { background: var(--navy-light); color: var(--white); }

.toc-list { list-style: none; margin: 0; }
.toc-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  margin: 0;
}
.toc-list li:last-child { border-bottom: none; }
.toc-list a { color: var(--text-mid); text-decoration: none; display: block; line-height: 1.5; }
.toc-list a:hover { color: var(--navy); }

.related-list { list-style: none; margin: 0; }
.related-list li { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); }
.related-list li:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.related-list a {
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  display: block;
}
.related-list a:hover { color: var(--gold); }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { position: static; }
  .featured-post { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .posts-grid { grid-template-columns: 1fr; }
}
