:root {
  --navy: #0f2744;
  --navy-deep: #0a1c32;
  --saffron: #e87722;
  --saffron-dark: #c45c14;
  --india-green: #046a38;
  --cream: #f4efe6;
  --paper: #fffdf8;
  --ink: #1c1917;
  --muted: #5c564e;
  --line: #ddd4c6;
  --gold: #b08d3e;
  --page-pad: clamp(1.25rem, 4vw, 2.5rem);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--saffron-dark);
}

h1,
h2,
h3,
.brand-name {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.55rem;
  margin: 0 0 0.6rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.container,
.narrow {
  width: 100%;
  max-width: none;
  padding-inline: var(--page-pad);
  margin-inline: 0;
}

.tricolor {
  height: 8px;
  background: linear-gradient(
    180deg,
    var(--saffron) 0 33.33%,
    #ffffff 33.33% 66.66%,
    var(--india-green) 66.66%
  );
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.15rem 0.95rem;
}

.site-nav > a,
.nav-item > a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0;
}

.site-nav > a.is-active,
.site-nav > a:hover,
.nav-item > a:hover,
.nav-item.is-active > a {
  color: var(--saffron-dark);
  box-shadow: inset 0 -2px 0 var(--saffron);
}

.nav-item {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.45rem 0;
  z-index: 12;
}

.nav-dropdown-languages {
  min-width: 18rem;
  max-height: 22rem;
  overflow-y: auto;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.88rem;
  box-shadow: none;
}

.nav-dropdown a:hover,
.nav-dropdown a.is-active {
  background: var(--cream);
  color: var(--saffron-dark);
}

.brand,
.brand-footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-footer {
  color: #f4efe6;
}

.brand-footer .brand-name {
  color: #f4efe6;
  font-size: 1.2rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  padding: 0.4rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.hero,
.page-hero,
.cta {
  background: var(--navy);
  color: #f4efe6;
  padding: 4rem 0 4.2rem;
}

.hero h1,
.page-hero h1,
.cta h2,
.hero .lede,
.page-hero .lede,
.cta p {
  color: #f4efe6;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: #e8c9a0;
  margin-bottom: 0.8rem;
}

.lede {
  font-size: 1.15rem;
  max-width: 42rem;
  color: var(--muted);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--saffron);
  color: var(--navy-deep);
}

.button-primary:hover {
  background: #f08a3a;
  color: var(--navy-deep);
}

.button-ghost {
  background: transparent;
  border-color: #d7c4a6;
  color: #f4efe6;
}

.page-hero .button-ghost,
.hero .button-ghost {
  color: #f4efe6;
}

.section {
  padding: 3.4rem 0;
}

.section-alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.6rem;
  max-width: 40rem;
}

.section-head p,
.footer-text,
.card p,
.contact-aside p {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.2rem 1.2rem 1.3rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--saffron-dark);
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.chip-list,
.city-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}

.chip-list li,
.city-grid li {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.chip-list a {
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

.chip-list a:hover,
.chip-list a.is-active {
  color: var(--saffron-dark);
}

.language-switcher {
  margin-top: 1.1rem;
}

.language-switcher li {
  padding: 0;
}

.language-switcher a {
  display: block;
  padding: 0.45rem 0.8rem;
}

.language-switcher a.is-active {
  background: var(--navy);
  color: #fff;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.city-grid li {
  text-align: center;
}

.city-grid a {
  color: inherit;
  text-decoration: none;
}

.guide-group {
  margin-bottom: 2.2rem;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.guide-list a {
  text-decoration: none;
}

.link-box {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  margin: 1.4rem 0;
}

.link-box h2 {
  font-size: 1.05rem;
}

.link-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pager {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.footer-cities a {
  color: #c9b79a;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.2rem;
}

.card-meta,
.meta {
  color: var(--gold);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.card h2,
.card h3 {
  font-size: 1.15rem;
}

.card a {
  text-decoration: none;
}

.section-link,
.text-link {
  margin-top: 1.3rem;
  font-weight: 600;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}

.faq-list details p {
  margin: 0.7rem 0 0.2rem;
  color: var(--muted);
}

.cta-inner {
  text-align: center;
}

.cta .lede,
.cta p {
  margin-inline: auto;
}

.site-footer {
  background: var(--navy-deep);
  color: #eadfce;
}

.site-footer h2 {
  color: #f4efe6;
  font-size: 1rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.7fr 1fr 0.8fr 1fr;
  gap: 2rem 1.6rem;
  padding-block: 2.6rem 1.6rem;
  align-items: start;
}

.footer-languages {
  columns: 2;
  column-gap: 1rem;
}

.footer-languages li {
  break-inside: avoid;
}

.footer-brand .footer-text {
  max-width: 34rem;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 0.5rem;
  margin-bottom: 0.7rem;
  color: #f4efe6;
}

.footer-guides li {
  white-space: nowrap;
}

.site-footer a {
  color: #eadfce;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.footer-sub {
  margin-top: 1.4rem;
}

.footer-cities {
  color: #c9b79a;
}

.footer-metros {
  grid-column: 1 / -1;
  padding-top: 1.1rem;
  border-top: 1px solid #27405f;
}

.footer-metros h2 {
  margin-bottom: 0.4rem;
}

.footer-base {
  border-top: 1px solid #27405f;
  padding-block: 0.9rem 1.1rem;
  font-size: 0.9rem;
}

.breadcrumbs {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0.7rem 0;
  margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--muted);
}

.page-hero {
  padding: 2.6rem 0 2.4rem;
}

.legal-page {
  padding: 2.4rem 0 3.4rem;
}

.legal-page h2 {
  margin-top: 1.8rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: #f7efe2;
  font-weight: 600;
}

.generator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.contact-layout {
  display: flex;
  justify-content: center;
}

.contact-layout .panel {
  width: 100%;
  max-width: 34rem;
}

.panel,
.agreement-sheet,
.contact-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.2rem;
}

fieldset {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

legend {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.agreement-sheet {
  min-height: 28rem;
  position: sticky;
  top: 5.2rem;
  max-height: calc(100vh - 6rem);
  overflow: auto;
}

.agreement-doc {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.7;
}

.agreement-doc h2 {
  text-align: center;
  font-size: 1.28rem;
  margin: 0.35rem 0 1rem;
}

.agreement-doc h3 {
  font-size: 1.02rem;
  margin: 1.2rem 0 0.45rem;
}

.agreement-doc p {
  text-align: justify;
  margin: 0 0 0.75rem;
}

.agreement-doc .sheet-signature {
  text-align: left;
  margin-bottom: 0.35rem;
}

.sheet-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--india-green);
}

.sheet-clauses {
  padding-left: 1.15rem;
}

.sheet-note,
.notice {
  background: #f7efe2;
  border-left: 3px solid var(--gold);
  padding: 0.7rem 0.8rem;
  color: var(--muted);
}

.notice {
  border-left-color: var(--india-green);
}

.notice-error {
  border-left-color: #b42318;
  background: #fef3f2;
  color: #7a271a;
}

.plain-list {
  list-style: none;
  padding: 0;
}

.form-actions .button-ghost {
  color: var(--navy);
  border-color: var(--navy);
}

.page-generator .form-actions {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding-top: 0.8rem;
  margin-top: 1rem;
}

.error-stack {
  overflow: auto;
  background: var(--navy-deep);
  color: #f4efe6;
  padding: 1rem;
  font-size: 0.85rem;
}

@media print {
  /* Extra top margin on page 2+ only; first page keeps a normal top. */
  @page {
    size: A4;
    margin: 56px;
    padding: 25px 0 10px 0;
  }

  @page :first {
    /* margin-top: 46pt; */
  }

  .site-header,
  .site-footer,
  .breadcrumbs,
  .nav-toggle,
  form,
  .skip-link,
  .page-hero,
  .generator-extra,
  .tricolor {
    display: none !important;
  }

  body,
  .agreement-sheet {
    background: #fff;
  }

  .agreement-sheet {
    position: static;
    max-height: none;
    overflow: visible;
    border: 0;
    padding: 0;
  }

  .sheet-note {
    display: none;
  }

  .generator-layout {
    display: block;
  }
}

@media (max-width: 900px) {
  .steps,
  .split,
  .card-grid,
  .generator-layout,
  .footer-grid,
  .city-grid {
    grid-template-columns: 1fr;
  }

  .footer-guides li {
    white-space: normal;
  }

  .footer-metros {
    grid-column: auto;
  }

  .agreement-sheet {
    position: static;
    max-height: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem var(--page-pad) 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-dropdown {
    position: static;
    display: block;
    border: 0;
    min-width: 0;
    padding: 0.15rem 0 0.55rem 0.85rem;
  }

  .nav-item > a,
  .site-nav > a {
    box-shadow: none;
  }
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.tool-card {
  padding: 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.tool-card p {
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.keyword-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keyword-list a {
  font-weight: 600;
}

.seo-copy h3 {
  margin-top: 1.4rem;
}

.article-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-cta {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(15, 39, 68, 0.04);
  border-left: 3px solid var(--saffron);
}

.article-cta-end {
  margin-top: 2rem;
}

.article-cta .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.link-box .tool-note {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .tool-grid,
  .keyword-list {
    grid-template-columns: 1fr;
  }
}
