:root{
  /* === Brand colors === */
  --brand-navy:   #0A1F44;   /* Deep navy - authority & trust */
  --brand-navy-2: #081a36;   /* Slightly darker for gradients */
  --brand-blue:   #287BFF;   /* Electric blue - tech-forward, energy */
  --brand-blue-2: #1e5fd4;   /* Button hover/focus */
  --ink:          #e9f2fb;   /* Body text on navy */
  --ink-muted:    #C9CED6;   /* Silver/gray - secondary text */
  --bg: var(--brand-navy);
  --fg: var(--ink);
}

body { 
  margin: 0; 
  background: var(--bg); 
  color: var(--fg);
  font: 16px/1.6 "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; 
}

h1, h2, h3 { 
  color: var(--fg); 
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  font-weight: 700;
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(140%) blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,31,68,0.92);
  z-index: 100;
}

.nav a { 
  color: rgba(255,255,255,0.9); 
  text-decoration: none; 
  margin: 0 8px; 
  font-weight: 600;
}

.nav a:hover {
  color: var(--brand-blue);
}

.nav .btn { 
  margin-left: 8px; 
}

.brand img {
  height: 40px;
  display: block;
}

/* === Buttons === */
.btn { 
  padding: 12px 18px; 
  border-radius: 12px; 
  background: var(--brand-blue);
  color: #fff; 
  text-decoration: none; 
  font-weight: 600; 
  display: inline-block; 
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover { 
  background: var(--brand-blue-2); 
}

.btn:focus { 
  outline: 2px solid #fff; 
  outline-offset: 2px; 
}

.btn--ghost { 
  background: transparent; 
  color: var(--fg); 
  border: 1px solid rgba(255,255,255,0.25); 
}

.btn--ghost:hover { 
  background: rgba(255,255,255,0.06); 
}

/* === Hero Section === */
.hero--brand {
  width: 100%;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 800px at 25% 10%, color-mix(in oklab, var(--brand-navy) 88%, #000) 0%, transparent 70%),
    url("/img/hero-bg.webp") center / cover no-repeat,
    url("/img/hero-bg.png") center / cover no-repeat,
    linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%);
  min-height: clamp(560px,70vh,760px);
  display: grid;
  place-items: center;
  overflow: clip;
}

.hero--brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("/img/wendy-whole-hero.webp") right center / auto 100% no-repeat;
  opacity: .95;
  pointer-events: none;
  z-index: 0;
}

.hero__inner { 
  z-index: 1;
  width: min(1200px,92vw); 
  display: grid;
  grid-template-columns: 1fr; 
  position: relative;
  align-items: center; 
  padding: clamp(48px,8vw,96px) 20px; 
  min-height: clamp(500px,65vh,700px);
}

.hero__copy { 
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-top: clamp(16px,4vh,48px); 
}

.eyebrow { 
  letter-spacing: .12em; 
  text-transform: uppercase; 
  font-weight: 700;
  font-size: .95rem; 
  color: var(--ink-muted); 
  margin: 0 0 .75rem; 
}

.hero h1 { 
  font-family: "Nunito", system-ui, sans-serif; 
  font-weight: 800;
  font-size: clamp(36px,5.4vw,64px); 
  line-height: 1.05; 
  margin: 0 0 16px; 
}

.lead { 
  font-size: clamp(16px,1.25vw,18px); 
  color: var(--ink); 
  opacity: .95; 
  max-width: 52ch; 
}

.cta-row { 
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap; 
  margin-top: 18px; 
}

/* === Content Blocks === */
.block { 
  scroll-margin-top: 80px; 
}

.block:nth-child(odd) { 
  background: rgba(255,255,255,0.02); 
}

.wrap { 
  max-width: 1000px; 
  margin: auto; 
  padding: 14px 20px; 
}

/* === Full-bleed hero (override the global .wrap constraint for the home block) === */
#home .wrap {
  max-width: none;
  padding: 0;
}

/* Keep normal padding/width for the non-hero blocks inside #home if you ever add them */
#home .hero__inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 20px;
}

/* Section headings */
.block h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 12px;
}

/* Subheadings like "Straightforward crypto taxes..." */
.block h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 32px;
  opacity: 0.95;
}

/* Bold section labels like "On your side", "Complete crypto expertise" */
.block strong {
  display: block;
  color: var(--brand-blue);
  font-size: 1.1em;
  margin-top: 28px;
  margin-bottom: 10px;
}

/* Bullet lists */
.block ul {
  margin-bottom: 12px;
}

.block li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* === Links === */
a { 
  color: var(--brand-blue); 
  transition: color 0.2s ease;
}

a:hover {
  color: #5aa0ff;
}

small { 
  opacity: .8; 
}

/* === Mobile Styles === */
@media (max-width: 900px) {
  .hero--brand {
    min-height: 600px;
  }

  .hero__copy {
    max-width: 100%;
    text-align: left;
    padding: 0 20px;
  }

  /* Position portrait for mobile - move to bottom */
  .hero--brand::before {
    background-size: contain;
    background-position: center bottom;
    opacity: .95;
    top: auto;
    bottom: 0;
    height: 400px;
    inset: auto 0 0 0;
  }

  .hero__inner {
    min-height: 750px;
    padding: 40px 20px 420px 20px;
    align-items: start;
  }

  .hero__copy {
    padding-bottom: 20px;
    position: relative;
    z-index: 3;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 48px);
  }

  /* Keep the hero CTA left-aligned on mobile */
  #home .cta-row {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
  }
  
  .nav .brand {
    margin-bottom: 8px;
  }
  
  .nav nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
  }
  
  .nav a {
    font-size: 14px;
    padding: 6px 10px;
    margin: 0;
  }
  
  .nav .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .nav a {
    font-size: 13px;
    padding: 5px 8px;
  }
}

/* Hero CTA alignment (don't let global/mobile rules recenter it) */
#home .cta-row {
  justify-content: flex-start;
}

/* === Page Content === */
.page-content {
  padding: 48px 20px 64px;
}

.page-content article {
  max-width: 750px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 16px;
}

.page-content h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--brand-blue);
}

.page-content h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-top: 32px;
  margin-bottom: 16px;
}

.page-content p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-content ul, .page-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.page-content hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 48px 0;
}

.page-content strong {
  color: var(--brand-blue);
  font-weight: 700;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
}

.btn-secondary:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* === Forms === */
form {
  margin-top: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e9f2fb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: rgba(255,255,255,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* === Footer === */
footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 20px 24px;
  margin-top: 80px;
}

footer .container {
  max-width: 1000px;
  margin: 0 auto;
}

footer .row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

footer li {
  margin: 0;
}

footer .footer-menu-divider {
  color: rgba(255,255,255,0.3);
  user-select: none;
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--brand-blue);
}

footer .copyright {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

footer .text-muted {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.8;
}

/* === Services Overview Cards === */
.page-content h2:first-of-type {
  margin-top: 32px;
}

.page-content hr {
  margin: 48px 0;
}

@media (max-width: 768px) {
  footer .row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  footer ul {
    justify-content: flex-start;
    gap: 6px;
    font-size: 14px;
  }

  .page-content {
    padding: 32px 16px 48px;
  }
}

/* Callout box for sidebars inside blog posts */
.callout {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--brand-blue);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 32px 0;
}

.callout-title {
  display: block;
  margin: 0 0 12px 0;
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
}

.callout p:last-child {
  margin-bottom: 0;
}
