section[id] {
  scroll-margin-top: 120px;
}
:root {
  --color-primary: #173962;
  --color-accent: #b3202a;
  --color-muted: #f5f7fb;
  --color-text: #1f2a44;
  --color-border: #d9e2ef;
  --shadow-soft: 0 20px 40px rgba(23, 57, 98, 0.1);
  --max-width: 1200px;
  --font-base: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Verdana', Geneva, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 60%, #f1f5fb 100%);
  min-height: 100vh;
}

h1, h2 {
  font-family: var(--font-heading);
}

a {
  color: inherit;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(179, 32, 42, 0.3);
  outline-offset: 2px;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background: rgba(23, 57, 98, 0.95);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 12px 24px rgba(23, 57, 98, 0.25);
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand img {
  width: 150px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text span:first-child {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-text span:last-child {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.primary-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.primary-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  transition: background 0.3s ease, transform 0.3s ease;
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

main {
  flex: 1;
}

.hero {
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(179, 32, 42, 0.08), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(23, 57, 98, 0.1), transparent 55%);
  pointer-events: none;
}

.hero .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero h1 {
  font-family: 'Verdana', Geneva, sans-serif !important;
  margin-bottom: 0.9rem;
  color: var(--color-primary);
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(23, 57, 98, 0.2);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
}

.metrics-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.metrics-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.metrics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric {
  background: var(--color-muted);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(23, 57, 98, 0.08);
}

.metric strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}

.section {
  padding: 4rem 1.5rem;
}

.section .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2vw + 1.25rem, 2.75rem);
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.section p {
  max-width: 56rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.calculator-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(23, 57, 98, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px rgba(23, 57, 98, 0.12);
}

.card:hover::after {
  border-color: rgba(23, 57, 98, 0.15);
}

.card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.card p {
  flex: 1;
  margin: 0;
  color: rgba(31, 42, 68, 0.85);
}

.card .btn {
  align-self: flex-start;
}

.section.alt {
  background: #fff;
}

.feature-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(23, 57, 98, 0.1);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.site-footer {
  background: #0f213c;
  color: #fff;
  padding: 2.5rem 1.5rem 2rem;
  margin-top: auto;
}

.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer p {
  margin: 0.5rem 0 0;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  opacity: 0.85;
}

.calculator-page main {
  padding: 3rem 1.5rem 5rem;
}

.calculator-header {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.calculator-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 2vw + 1.5rem, 3rem);
  color: var(--color-primary);
  margin: 0;
}

.calculator-description {
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(23, 57, 98, 0.08);
  box-shadow: var(--shadow-soft);
}

.calculator-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(23, 57, 98, 0.08);
}

.calculator-shell iframe {
  width: 100%;
  min-height: 1080px;
  border: none;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 57, 98, 0.05);
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.action-bar .btn {
  box-shadow: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
}

.print-footer {
  display: none;
  text-align: center;
  margin-top: 2rem;
  border-top: 2px solid var(--color-border);
  padding-top: 1.5rem;
}

.print-footer img {
  width: 220px;
  height: auto;
  margin-bottom: 0.5rem;
}

.print-footer p {
  margin: 0.35rem 0;
}

@media (max-width: 768px) {
  .site-header .inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .calculator-shell iframe {
    min-height: 1200px;
  }
}
/* 🔹 Custom spacing for calculator content */
.calculator-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;   /* Adjust these values for more or less space */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .action-bar .btn-print,
  .action-bar .back-link,
  .hero,
  .section,
  .metrics-panel,
  .feature-list,
  .primary-nav {
    display: none !important;
  }

  .calculator-shell {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .calculator-shell iframe {
    box-shadow: none;
    border-radius: 0;
  }

  .print-footer {
    display: block;
  }
}

.no-select {
  user-select: none;
}

.hidden {
  display: none !important;
}
.hero .inner,
.hero-content,
.metrics-panel {
  position: relative;
  z-index: 2;
}
.section.alt,
.calculator-grid,
.card {
  position: relative;
  z-index: 2;
}

.section.alt,
.calculator-grid,
.card,
.btn {
  position: relative !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}
.hero .inner {
  display: block;
}
.hero-content,
.metrics-panel {
  display: block;
  width: 100%;
}
