/* Finmetr — deep teal metrics, cool mist atmosphere */

:root {
  --ink: #0a242c;
  --ink-soft: #1a3d48;
  --teal: #0f6b6b;
  --teal-bright: #148f8a;
  --mint: #7ec8c0;
  --sand: #e8ddd0;
  --mist: #eef3f4;
  --paper: #f7fafb;
  --line: rgba(10, 36, 44, 0.12);
  --shadow: 0 24px 60px rgba(10, 36, 44, 0.12);
  --radius: 4px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.shell.narrow {
  width: min(100% - 2rem, 720px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 3px;
  background:
    linear-gradient(135deg, var(--teal-bright), var(--ink-soft) 55%, var(--mint));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list .is-current,
.nav-list .current-menu-item > a {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ink-soft);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(10, 36, 44, 0.25);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(126, 200, 192, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(15, 107, 107, 0.18), transparent 50%),
    linear-gradient(160deg, #d9e8ea 0%, var(--paper) 45%, #e4ece8 100%);
  z-index: 0;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(10, 36, 44, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 36, 44, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  animation: grid-drift 28s linear infinite;
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 48px 48px, 48px 48px;
  }
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.brand-lockup {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  letter-spacing: -0.04em;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

.hero-copy h1 {
  color: var(--ink);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-lockup,
  .hero-copy h1,
  .hero-lead,
  .hero-actions,
  .hero-visual {
    animation: rise 0.75s ease both;
  }

  .hero-copy h1 {
    animation-delay: 0.06s;
  }

  .hero-lead {
    animation-delay: 0.12s;
  }

  .hero-actions {
    animation-delay: 0.18s;
  }

  .hero-visual {
    animation-delay: 0.14s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.metric-panel {
  background: var(--ink);
  color: #e8f2f1;
  padding: 1.75rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(232, 242, 241, 0.12);
  font-size: 0.95rem;
}

.metric-row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--mint);
}

.metric-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 7rem;
  margin-top: 1.25rem;
}

.metric-chart span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--mint), var(--teal-bright));
  border-radius: 2px 2px 0 0;
  opacity: 0.9;
  animation: bar-grow 1s ease both;
}

.metric-chart span:nth-child(2) {
  animation-delay: 0.05s;
}
.metric-chart span:nth-child(3) {
  animation-delay: 0.1s;
}
.metric-chart span:nth-child(4) {
  animation-delay: 0.15s;
}
.metric-chart span:nth-child(5) {
  animation-delay: 0.2s;
}
.metric-chart span:nth-child(6) {
  animation-delay: 0.25s;
}

@keyframes bar-grow {
  from {
    transform: scaleY(0.2);
    transform-origin: bottom;
    opacity: 0.3;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 0.9;
  }
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--ink-soft);
}

.services {
  background: var(--mist);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-link,
.info-block {
  display: block;
  padding: 1.5rem 0;
  border-top: 2px solid var(--ink);
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-link:hover {
  color: var(--teal);
}

.service-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-bright);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.steps-list li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.steps-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.steps-list span {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.trust {
  background: var(--ink);
  color: #e8f2f1;
}

.trust a {
  color: var(--mint);
}

.trust-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.trust-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-points li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(232, 242, 241, 0.14);
  font-weight: 500;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(15, 107, 107, 0.12), transparent 40%),
    var(--sand);
}

.cta-band-inner {
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
}

/* Page hero */

.page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(126, 200, 192, 0.28), transparent 55%),
    var(--mist);
}

.page-hero .hero-lead {
  margin-bottom: 0;
}

/* Calculator */

.calc-section {
  background: var(--paper);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.calc-form,
.contact-form,
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.5rem;
}

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

.field-grid label,
.discounts label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field-grid label.full {
  grid-column: 1 / -1;
}

.field-grid input,
.field-grid select,
.field-grid textarea {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.discounts {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.discounts legend {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.discounts label {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.calc-results {
  background: var(--ink);
  color: #e8f2f1;
  padding: 1.5rem;
  min-height: 16rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.calc-placeholder {
  color: rgba(232, 242, 241, 0.7);
}

.calc-results h3 {
  margin-top: 0;
  color: var(--mint);
}

.result-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.result-grid div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(232, 242, 241, 0.12);
}

.bank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.bank-table th,
.bank-table td {
  text-align: left;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(232, 242, 241, 0.1);
}

.bank-table th {
  color: rgba(232, 242, 241, 0.65);
  font-weight: 500;
}

.bullet-list {
  padding-left: 1.1rem;
}

.bullet-list li {
  margin-bottom: 0.5rem;
}

.cross-links {
  margin-top: 1.5rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
}

.content-block .entry-content,
.content-block p {
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  background: var(--ink-soft);
  color: #d5e4e2;
  padding: 3.5rem 0 2rem;
}

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

.brand-footer {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-heading {
  font-size: 0.95rem;
  color: var(--mint);
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #d5e4e2;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 242, 241, 0.12);
  font-size: 0.88rem;
}

.footer-note {
  max-width: 28rem;
  opacity: 0.75;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-layout,
  .service-grid,
  .steps-list,
  .trust-layout,
  .calc-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .metric-panel {
    transform: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-cta {
    width: 100%;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .calc-results {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
