/* Norling Tax — Site Styles */

:root {
  --blue: #2759f0;
  --blue-deep: #10258c;
  --lavender: #f1ebfa;
  --ink: #2e303d;
  --ink-soft: #5a5d6e;
  --paper: #ffffff;
  --paper-warm: #f7f5fd;
  --rule: #e6e3ea;
  --accent: var(--blue);

  --font-display: 'Inter', 'Neue Haas Grotesk Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  padding-top: 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.03em; }
.h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .eyebrow {
    display: inline;
  }
  .eyebrow::before {
    vertical-align: middle;
    margin-right: 8px;
  }
}

.lede {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .arr {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--blue-deep); }

.how-wrap .btn-primary:hover { background: #4a75f5; }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  border-width: 2px;
  padding: 13px 21px;
}
.btn-secondary:hover { background: var(--accent); color: white; border-color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--ink);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-footer .logo-img {
  /* white logo PNG — no filter needed */
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
}
.logo-text .name { font-size: 15px; letter-spacing: 0.02em; }
.logo-text .sub { font-size: 10px; font-family: var(--font-mono); color: var(--ink-soft); letter-spacing: 0.12em; text-transform: uppercase; }
.logo-sub-only .sub { max-width: 12ch; line-height: 1.3; }
@media (max-width: 560px) {
  .logo-text { display: flex; }
  .logo-img { height: 26px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Mobile hamburger menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 60;
  position: relative;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.hamburger.open span {
  background: white;
}

.nav--menu-open {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav--menu-open .logo-text .sub {
  color: #9aa3c9;
}
.nav--menu-open .logo-text {
  border-left-color: rgba(154, 163, 201, 0.5);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #2e303d;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 55;
  padding: 100px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav a {
  display: block;
  padding: 14px 20px;
  color: rgba(230, 227, 234, 0.65);
  font-size: 16px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.mobile-nav a:hover {
  background: rgba(255,255,255,0.1);
}
.mobile-nav a.active {
  background: transparent;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 14px;
  text-decoration-thickness: 2px;
}
.mobile-nav .btn-primary {
  margin-top: 46px;
  display: flex;
  justify-content: center;
  text-align: center;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 14px 22px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 54;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Section rhythm ---------- */
section { padding: clamp(64px, 9vw, 140px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head .right { max-width: 48ch; }
@media (max-width: 780px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

.bg-lavender { background: var(--lavender); }
.bg-warm { background: var(--paper-warm); }
.bg-ink { background: var(--ink); color: #e6e3ea; }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: white; }

/* ---------- CTA block (shared across pages) ---------- */
.cta-wrap {
  padding: 80px;
  background: var(--lavender);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.cta-wrap h2 {
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 532px;
}
.cta-wrap .ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
@media (max-width: 900px) {
  .cta-wrap { padding: 56px; }
}
@media (max-width: 780px) {
  .cta-wrap { grid-template-columns: 1fr; }
  .cta-wrap .ctas-desktop { display: none !important; }
  .cta-wrap .ctas-mobile { display: flex !important; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .cta-wrap { padding: 40px; border-radius: 18px; }
}

/* ---------- Placeholder image block ---------- */
.ph {
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    #ece7f5,
    #ece7f5 10px,
    #e4deef 10px,
    #e4deef 20px
  );
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ph-label {
  background: rgba(255,255,255,0.92);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #c8cad4;
  padding: 50px 0 40px;
}
.footer h4 {
  color: white;
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-top {
  margin-bottom: 0px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 23px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer a { color: #c8cad4; font-size: 14px; display: block; padding: 4px 0; }
.footer a:hover { color: white; }
.footer .legal {
  margin-top: 5px;
  padding-top: 28px;
  border-top: none;
  font-size: 11px;
  line-height: 1.6;
  color: #8a8d9a;
  max-width: 92ch;
}
.footer .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Shapes ---------- */
.shape-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

.diag-rule {
  height: 1px;
  background: var(--rule);
  width: 100%;
}

/* ---------- Generic card ---------- */
.card {
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 32px;
  background: white;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--ink); }

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 280px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(16, 37, 140, 0.15);
  font-family: var(--font-body);
  display: none;
}
.tweaks-panel.on { display: block; }
.tweaks-panel h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
  font-weight: 500;
}
.tweaks-panel h5:not(:first-child) { margin-top: 18px; }
.tweaks-swatches {
  display: flex;
  gap: 8px;
}
.tweaks-swatches button {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .15s ease, border-color .15s ease;
}
.tweaks-swatches button:hover { transform: scale(1.08); }
.tweaks-swatches button.active { border-color: var(--ink); }
.tweaks-panel select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  color: var(--ink);
}
.tweaks-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.tweaks-title strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}
