@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --accent: #f7931e;
  --accent-light: #fff8f0;
  --accent-dark: #c06d00;
  --bg: #f8f8f8;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: #e0e0e0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --heading-weight: 800;
  --nav-h: 60px;
  --content-max: 760px;
  --radius: 6px;
  --transition: 0.2s ease;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

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

a { color: var(--accent-dark); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

/* Navigation — accent background */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--accent);
  height: var(--nav-h);
  width: 100%;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo:hover { opacity: 0.85; color: #fff; }

.nav-links {
  display: none;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover, .nav-links a.active { opacity: 0.65; color: #fff; }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  background: var(--accent-dark);
  padding: 0.5rem 1.25rem 1rem;
}

.nav-mobile.open { display: flex; flex-direction: column; gap: 0.25rem; }

.nav-mobile a {
  color: rgba(255,255,255,0.9);
  padding: 0.65rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
  .nav-mobile { display: none !important; }
}

/* Split hero — index */
.hero-split {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav-h));
  background: var(--card-bg);
}

@media (min-width: 900px) {
  .hero-split {
    flex-direction: row;
    min-height: 520px;
  }
}

.hero-text {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--bg);
}

@media (min-width: 900px) {
  .hero-text { flex: 0 0 55%; padding: 4rem 3rem 4rem max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem)); }
}

.hero-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-heading {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stat-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8125rem;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.btn-cta {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  align-self: flex-start;
}

.btn-cta:hover {
  background: var(--accent-dark);
  opacity: 1;
  color: #fff;
  transform: translateY(-1px);
}

.hero-image {
  flex: 0 0 100%;
  position: relative;
  min-height: 280px;
}

@media (min-width: 900px) {
  .hero-image { flex: 0 0 45%; min-height: auto; }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}


.hero-heading { letter-spacing: -0.03em; }
.guide-card { border-radius: 12px; }
.stat-pill { border-radius: 8px; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.04em; }
.tab-btn { border-radius: 8px; }


/* All Guides section with tabs */
.guides-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}

.guides-header {
  margin-bottom: 2rem;
}

.guides-header h2 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.guides-header p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.tab-btn:hover { color: var(--accent); }

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.guide-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
}

.guide-card {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  opacity: 1;
  color: inherit;
}

.guide-card.hidden { display: none; }

.cat-tag {
  display: inline-block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.25rem 0.625rem;
  margin-bottom: 0.875rem;
  align-self: flex-start;
}

.guide-card h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.guide-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
}

.card-read {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

/* Article — colored header strip */
.article-header-strip {
  background: var(--accent);
  color: #fff;
  padding: 2.5rem 1.25rem 2rem;
}

.article-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.article-header-strip .breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.article-header-strip .breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.article-header-strip .breadcrumb a:hover { opacity: 0.7; color: #fff; }

.article-header-strip .breadcrumb .sep { margin: 0 0.4rem; opacity: 0.6; }

.article-header-strip h1 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #fff;
}

.article-header-strip .article-meta {
  font-size: 0.8125rem;
  opacity: 0.8;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-content-wrap {
  background: #fff;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.article-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: 1.375rem;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.article-body h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.article-body ul {
  margin: 0 0 1.25rem 1.25rem;
}

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

.steps-list {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 0.75rem;
  background: var(--bg);
  border-left: 3px solid var(--accent);
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.callout strong {
  display: block;
  color: var(--accent-dark);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.callout p { margin: 0; font-size: 0.9375rem; }

.article-figure {
  margin: 2rem 0;
}

.article-figure img {
  width: 100%;
  border-radius: var(--radius);
}

.article-figure figcaption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Related articles */
.related-section {
  background: var(--bg);
  padding: 3rem 1.25rem 4rem;
}

.related-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.related-section h2 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.related-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

.related-card {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition);
}

.related-card:hover { transform: translateY(-2px); opacity: 1; color: inherit; }

.related-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0.5rem 0 0.35rem;
}

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

/* Legal pages */
.legal-page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 1.25rem 4rem;
  background: #fff;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-page h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-page p, .legal-page li {
  margin-bottom: 1rem;
  color: var(--text);
}

.legal-page ul { margin-left: 1.25rem; }

.legal-data-box {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  background: var(--accent-light);
  margin: 1.5rem 0;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 3px solid var(--accent);
  padding: 3rem 1.25rem 0;
}

.footer-inner { max-width: 1280px; margin: 0 auto; }

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-col a:hover { color: var(--accent); opacity: 1; }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--accent);
  transition: opacity var(--transition);
}

.footer-social a:hover { opacity: 0.7; }

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom a { color: var(--text-muted); text-decoration: underline; }

/* Cookie banner */
.cookie-banner {display: none; /* hidden by default, JS shows it */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: #fff;
  border-left: 4px solid var(--accent);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
  padding: 1rem 1.25rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.visible {display: flex;
  align-items: flex-start;
  transform: translateY(0); }

.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner-text p {
  font-size: 0.8125rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.cookie-banner-text a { color: var(--accent); }

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1.125rem;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background var(--transition);
}

.cookie-btn-accept:hover { background: var(--accent-dark); }

.cookie-btn-reject {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
}

#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 800;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover { transform: translateY(-3px); }
