:root {
  --ink: #000000;
  --ink-soft: #222222;
  --muted: #6b6b6b;
  --muted-light: #a3a4a5;
  --paper: #ffffff;
  --paper-strong: #ffffff;
  --accent: #bc0f12;
  --accent-dark: #a50000;
  --gold: #c9a45a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
  --max-width: 1080px;
  --radius-page-card: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #666;
  font-family: "Abel", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.8;
  background: #ffffff;
  font-size: 15px;
  min-height: 100vh;
  animation: page-in 900ms ease both;
  overflow-x: hidden;
}

button,
.button,
.btn {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Sahitya", "Georgia", serif;
  color: inherit;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 140px;
  height: auto;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  transition: background 180ms ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease, opacity 180ms ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle:checked + .nav-toggle-label .nav-toggle-icon {
  background: transparent;
}

.nav-toggle:checked + .nav-toggle-label .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  font-weight: bold;
}

.nav-links a {
  padding: 6px 0;
  transition: color 300ms ease;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.nav-links li {
  position: relative;
}

.nav-link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-caret {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow);
  padding: 12px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
  align-items: center;
}

.dropdown-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
}

.dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--accent-dark);
}

.nav-item--dropdown:hover .dropdown-menu,
.nav-item--dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero {
  position: relative;
  color: #ffffff;
  min-height: calc(100svh - var(--nav-height, 0px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #000000;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media screen and (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero.hero--compact {
  height: 250px;
  min-height: 250px;
  background-attachment: scroll;

  .hero-title {
    font-size: 30px !important;
    font-weight: normal !important;
    text-transform: capitalize !important;
  }
}

.hero.hero--compact .hero-content {
  padding: 0;
}

body.calculator-page {
  background-color: #0d0d0d;
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.8)
    ),
    url("/assets/img/unlimited-2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

body.calculator-page .hero {
  background-image: none;
  background-color: transparent;
  background-attachment: scroll;
}

body.calculator-page .section {
  background: transparent;
}

/* .hero::before {
  content: "";
  position: absolute;
  inset: 0;
   background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.78)); 
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 0;
} */

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0px 0 0px;
}

.hero-title {
  font-size: 51px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  /* max-width: 200px; */
  margin: 0 auto 2rem;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 380px;
  margin: 0 auto;
}

.hero-actions {
  .btn--ghost:hover {
    color: #cfcfcf;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 0;
  border: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--solid {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn--solid:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn--ghost:hover {
  border-color: #ffffff;
  transform: translateY(-1px);
}

.btn--dark {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn--dark:hover {
  background: #222222;
}

.btn--outline {
  background: transparent;
  color: #000000;
  border-color: #000000;
}

.btn--outline:hover {
  background: #000000;
  color: #ffffff;
}

.section {
  padding: 90px 0;
  position: relative;
  background: var(--paper);
}

.section--image {
  background-image: var(--section-image);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  background-color: #000000;
}

.section--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.71);
  z-index: 0;
}

.section--image .container {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 26px;
  text-align: center;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
}

.section-title--left {
  text-align: left;
}

.section-lead {
  text-align: center;
  /* max-width: 760px; */
  margin: 0 auto 44px;
  /* color: var(--muted); */
  font-size: 1rem;
}

.section--image .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.card {
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 0 12px;
  box-shadow: none;
  border: none;
}

.card--center {
  text-align: center;
}

.icon-badge {
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: var(--ink);
}

.icon-badge img {
  width: 28px;
  height: 28px;
  display: block;
}

.icon-badge--service img {
  width: auto;
  height: 56px;
}

.icon-badge--circle {
  width: 52px;
  height: 52px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.icon-badge--circle img {
  width: 22px;
  height: 22px;
}

.card-title {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.card p {
  font-size: 0.92rem;
  color: var(--muted);
  text-align: justify;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.feature-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-grid--four {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.feature {
  display: grid;
  gap: 12px;
  text-align: center;
}

.feature span.icon-badge {
  margin: 0 auto;
}

.feature-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  font-weight: 800;
}

.feature-text {
  /* color: var(--muted); */
  font-size: 1rem;
}

.section--image .icon-badge {
  color: #ffffff;
}

.section--image .icon-badge img {
  filter: invert(1);
}

#salary .icon-badge img {
  width: 60px;
  height: 60px;
}

#asset .icon-badge img {
  width: 60px;
  height: 60px;
}

#asset .form-actions {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

#asset .form-actions .btn {
  width: auto;
}

#logbook .icon-badge img {
  width: 60px;
  height: 60px;
}

#logbook .form-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

#logbook .form-actions .btn {
  width: auto;
}

#salary .feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
  #salary .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.section--image .feature-text {
  /* color: rgba(255, 255, 255, 0.8); */
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: start;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

input,
textarea,
select,
output {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #ffffff;
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.field {
  display: grid;
  gap: 8px;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.section--image .field-hint {
  color: rgba(255, 255, 255, 0.7);
}

.form-actions {
  margin-top: 18px;
}

.form-actions .btn {
  width: 100%;
}

#contact .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

#contact label {
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 600;
}

#contact textarea {
  min-height: 220px;
}

.input-error {
  border-color: var(--accent);
  background: #fff5f5;
}

.field-error {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent-dark);
  min-height: 1em;
}

.form-status {
  display: none;
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f7f7;
  color: #222;
}

.form-status.is-visible {
  display: block;
}

.form-status--error {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #fff2f2;
}

.form-status--success {
  border-color: #1b7f3a;
  color: #0f5132;
  background: #e9f7ef;
}

.form-status--pending {
  border-color: var(--gold);
  color: #6b5a2b;
  background: #fef7e6;
}

.contact-card {
  background: transparent;
  border-radius: var(--radius-md);
  padding: 0;
  border: none;
}

.contact-card h4 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}

.contact-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}

.contact-row > div {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: #ffffff;
}

.contact-icon img {
  width: 20px;
  height: 20px;
  display: block;
  filter: invert(1);
}

.contact-label {
  display: block;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
  font-weight: bold;
}

.contact-list a {
  color: #ffffff;
  font-size: 1.02rem;
}

.map-frame {
  border-radius: var(--radius-md);
  border: none;
  width: 100%;
  min-height: 320px;
  /* grayscale */
  filter: grayscale(1);
}

.split-heading {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 1.35rem;
  margin-bottom: 18px;
  position: relative;
}

.split-heading::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.site-footer {
  padding: 15px 0 5px;
  background: #424242;
  color: #b5b5b5;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: #ffffff;
}

.back-to-top {
  position: fixed;
  right: 0px;
  bottom: 15%;
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: none;
  background: rgba(23, 23, 23, 0.5);
  color: #ffffff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 200ms ease, transform 200ms ease,
    visibility 0ms linear 200ms;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  z-index: 120;
  border-radius: 5px;
}

.back-to-top img {
  width: 28px;
  height: 28px;
  filter: invert(1);
}
/* 
.back-to-top:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
} */

/* .back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
} */

.back-to-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 200ms ease, transform 200ms ease, visibility 0ms;
}

.legal-content {
  /* background: var(--paper-strong);
  border-radius: var(--radius-page-card);
  padding: 40px;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.12); */
}

.legal-content h4 {
  margin-top: 1.5rem;
}

.legal-content hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  margin: 24px 0;
}

.calculator-card {
  background: var(--paper-strong);
  border-radius: var(--radius-page-card);
  padding: 32px;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

body.calculator-page .calculator-card {
  max-width: 767px;
  margin: 0 auto;
  background: #f1f3f4;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  padding: 36px 40px 42px;
}

.range-row {
  display: grid;
  gap: 12px;
}

body.calculator-page .calculator-card label {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a4a4a;
}

.range-inputs {
  position: relative;
  padding-top: 28px;
}

body.calculator-page .range-inputs {
  padding-top: 26px;
}

body.calculator-page .range-inputs input[type="range"] {
  margin: 0;
}

body.calculator-page .range-bubble {
  position: absolute;
  top: -10px;
  left: 0;
  transform: translateX(-50%);
  padding: 4px 6px;
  min-width: 48px;
  border-radius: 4px;
  border: 1px solid #c8c8c8;
  background: #ffffff;
  color: #4a4a4a;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  pointer-events: none;
  width: auto;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

body.calculator-page input[type="range"] {
  appearance: none;
  --thumb-size: 18px;
  height: 6px;
  border-radius: 999px;
  background: #d8d8d8;
  accent-color: #c5c5c5;
}

body.calculator-page input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: #d8d8d8;
  border-radius: 999px;
}

body.calculator-page input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #f7f7f7;
  border: 1px solid #bdbdbd;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  margin-top: -6px;
}

body.calculator-page input[type="range"]::-moz-range-track {
  height: 6px;
  background: #d8d8d8;
  border-radius: 999px;
}

body.calculator-page input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #f7f7f7;
  border: 1px solid #bdbdbd;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.output-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f7f7f7;
}

body.calculator-page .output-box {
  background: #ffffff;
  border: 1px solid #c8c8c8;
  padding: 12px 14px;
  min-height: 38px;
  align-items: center;
}

.output-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

body.calculator-page .output-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #5a5a5a;
}

body.calculator-page .calculator-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #5a5a5a;
  margin-bottom: 16px;
}

body.calculator-page .field-group-label {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a4a4a;
  padding-top: 4px;
  display: block;
}

body.calculator-page .form-grid {
  gap: 16px 14px;
}

body.calculator-page .form-grid .field {
  gap: 6px;
}

body.calculator-page .name-field {
  grid-template-rows: auto auto;
}

body.calculator-page .name-field input {
  order: 1;
}

body.calculator-page .name-field label {
  order: 2;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.7rem;
  font-weight: 700;
  color: #9b9b9b;
}

body.calculator-page .calculator-card input,
body.calculator-page .calculator-card textarea,
body.calculator-page .calculator-card select {
  border-radius: 4px;
  border: 1px solid #c8c8c8;
  background: #ffffff;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #4a4a4a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.calculator-page .calculator-card input[type="range"] {
  padding: 0;
  border: none;
  box-shadow: none;
  background: #d8d8d8;
}
/* 
body.calculator-page .calculator-card input:focus,
body.calculator-page .calculator-card textarea:focus,
body.calculator-page .calculator-card select:focus {
  outline: 2px solid rgba(120, 120, 120, 0.35);
  outline-offset: 1px;
} */

body.calculator-page .field-hint {
  font-size: 0.7rem;
  color: #8a8a8a;
}

body.calculator-page .checkbox-row {
  font-size: 0.7rem;
  color: #7a7a7a;
  gap: 8px;
}

body.calculator-page .checkbox-row label {
  font-weight: 500;
  letter-spacing: 0;
}

body.calculator-page .checkbox-row input {
  margin-top: 2px;
}

body.calculator-page .form-actions .btn {
  background: #5d5d5d;
  border-color: #5d5d5d;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

body.calculator-page .form-actions .btn:hover {
  background: #4a4a4a;
  border-color: #4a4a4a;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkbox-row input {
  width: auto;
  margin-top: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 700ms ease forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    font-size: 0.75rem;
  }

  .brand img {
    width: 130px;
  }

  .range-inputs {
    padding-top: 26px;
  }
}

@media (max-width: 768px) {
  .navbar {
    position: relative;
    flex-wrap: wrap;
    padding-bottom: 0px;
    margin-bottom: -8px;
  }

  .nav-toggle-label {
    display: inline-flex;
    margin-left: auto;
  }

  .navbar nav {
    width: 100%;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 0;
    border-right: 0;
    box-shadow: var(--shadow);
    padding: 14px 18px 16px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    z-index: 40;
  }

  .nav-toggle:checked ~ nav .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links > li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 10px 6px;
    font-size: 0.9rem;
  }

  .nav-item--dropdown .nav-link--dropdown {
    background: rgba(0, 0, 0, 0.04);
    padding: 10px 6px;
  }

  .nav-item--dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border: none;
    box-shadow: none;
    padding: 6px 0 0;
    margin: 0;
  }

  .dropdown-menu li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .dropdown-menu a {
    padding: 9px 12px 9px 18px;
    font-size: 0.85rem;
  }

  .nav-caret {
    display: none;
  }

  #contact .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: calc(100svh - var(--nav-height, 0px));
  }

  .section {
    padding: 80px 30px;
  }

  .section .container {
    width: 100%;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: 34px;
  }

  .section-title {
    font-size: 22px;
  }

  .split-heading {
    font-size: 1.1rem;
  }

  .card-title {
    font-size: 0.85rem;
  }

  .feature-title {
    font-size: 0.9rem;
  }

  .calculator-card,
  .legal-content {
    padding: 24px;
  }

  body.calculator-page .calculator-card {
    padding: 24px;
    width: 100%;
  }

  .back-to-top {
    right: 16px;
    bottom: 15%;
    width: 42px;
    height: 42px;
  }

  .back-to-top img {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
