:root {
  color-scheme: light;
  --navy: #171717;
  --blue: #805100;
  --blue-dark: #553500;
  --teal: #c72f2f;
  --ink: #211d14;
  --muted: #625a4a;
  --line: #e8d9aa;
  --page: #fff9e8;
  --card: #fffef9;
  --soft: #fff0bb;
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 3%, rgba(255, 207, 36, .22), transparent 30rem),
    var(--page);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--blue-dark); }

:focus-visible {
  outline: 3px solid #bf2e2f;
  outline-offset: 3px;
}

.seo-skip {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 15px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-160%);
}

.seo-skip:focus { transform: none; }

.seo-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 70px;
  padding: 10px clamp(18px, 5vw, 72px);
  align-items: center;
  gap: 22px;
  background: rgba(255, 250, 231, .96);
  border-bottom: 3px solid #ffcf24;
  backdrop-filter: blur(14px);
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
}

.seo-brand img { display: block; flex: 0 0 auto; }

.seo-brand span { display: grid; line-height: 1.15; }

.seo-brand strong { font-size: 1.24rem; letter-spacing: -.03em; }

.seo-brand small { color: var(--muted); font-size: .7rem; font-weight: 650; }

.seo-primary {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 6px;
}

.seo-primary a,
.seo-contact-cta,
.seo-login {
  padding: 8px 11px;
  color: var(--muted);
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}

.seo-primary a:hover { color: var(--blue); background: var(--soft); }

.seo-contact-cta {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
}

.seo-contact-cta:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.seo-login { color: #fff; background: var(--navy); }

.seo-login:hover { color: #fff; background: var(--blue-dark); }

.seo-main {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 72px;
}

.seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
}

.seo-main-column { min-width: 0; }

.seo-rail {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 15px;
}

.seo-rail-card {
  padding: 21px;
  background: #fffef8;
  border: 1px solid var(--line);
  border-top: 5px solid #ffca1b;
  border-radius: 15px;
  box-shadow: 0 9px 30px rgba(32, 25, 10, .08);
}

.seo-rail-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.25;
}

.seo-rail-link {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.34;
  text-decoration: none;
}

.seo-rail-link:hover { color: #a51f28; text-decoration: underline; }

.seo-rail-card ul { margin: 0; padding: 0; list-style: none; }
.seo-rail-card li { border-top: 1px solid var(--line); }
.seo-rail-card li .seo-rail-link { border-top: 0; }
.seo-rail-source {
  display: inline-block;
  margin: -4px 0 12px;
  color: #a32228;
  font-size: .77rem;
  font-weight: 700;
}
.seo-source-credit {
  margin: 26px 0 0;
  padding: 17px 20px;
  color: var(--muted);
  background: #fff3c7;
  border-left: 4px solid #c52e2d;
  border-radius: 8px;
  font-size: .88rem;
}

.seo-rail-link small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 500;
}

.seo-languages {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.seo-languages a {
  padding: 5px 9px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.seo-languages a[aria-current="page"] {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.seo-breadcrumbs { margin: 18px 0 22px; }

.seo-breadcrumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: .83rem;
  list-style: none;
}

.seo-breadcrumbs li:not(:last-child)::after { margin-left: 7px; content: "/"; }

.seo-breadcrumbs a { color: inherit; }

.seo-hero {
  padding: clamp(32px, 7vw, 72px);
  color: #fff;
  background: linear-gradient(135deg, #171717, #292314 60%, #554007);
  border-radius: 28px;
  border-bottom: 5px solid #ffd12b;
  box-shadow: 0 24px 60px rgba(32, 25, 10, .18);
}

.seo-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.052em;
}

.seo-hero > p:last-of-type {
  max-width: 800px;
  margin: 22px 0 0;
  color: #f4e7bd;
  font-size: clamp(1rem, 1.8vw, 1.17rem);
}

.seo-kicker {
  margin: 0 0 14px;
  color: #ffda55;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-actions {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 11px;
}

.seo-cta,
.seo-secondary {
  display: inline-flex;
  min-height: 45px;
  padding: 10px 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}

.seo-cta { color: var(--navy); background: #ffd12b; }
.seo-cta:hover { color: var(--navy); background: #ffe16a; }
.seo-secondary { color: #fff; border-color: rgba(255, 255, 255, .45); }
.seo-secondary:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.seo-section {
  margin-top: 25px;
  padding: clamp(25px, 4vw, 42px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(32, 25, 10, .06);
}

.seo-section h2,
.seo-related h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.seo-section p { max-width: 82ch; margin: 0 0 14px; }
.seo-section p:last-child { margin-bottom: 0; }
.seo-section ul { margin: 17px 0 0; padding-left: 23px; }
.seo-section li + li { margin-top: 8px; }

.seo-contact-panel {
  margin-top: 25px;
}

.seo-contact-panel h2 {
  margin: 0 0 15px;
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -.025em;
}

.seo-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-contact-card {
  display: flex;
  min-width: 0;
  min-height: 178px;
  padding: 24px;
  align-items: flex-start;
  gap: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(11, 37, 69, .07);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.seo-contact-card:hover {
  color: var(--ink);
  border-color: #d8a800;
  box-shadow: 0 16px 38px rgba(32, 25, 10, .12);
  transform: translateY(-3px);
}

.seo-contact-card > svg {
  width: 48px;
  height: 48px;
  padding: 10px;
  flex: 0 0 auto;
  fill: var(--blue);
  background: var(--soft);
  border-radius: 14px;
}

.seo-contact-card > span { display: grid; min-width: 0; gap: 5px; }
.seo-contact-card small { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.seo-contact-card strong { overflow-wrap: anywhere; color: var(--navy); font-size: 1rem; }
.seo-contact-card em { color: var(--muted); font-size: .86rem; font-style: normal; line-height: 1.45; }

.seo-sources ul { padding: 0; list-style: none; }
.seo-sources li { display: grid; padding: 14px 0; border-top: 1px solid var(--line); }
.seo-sources li:first-child { border-top: 0; }
.seo-sources a { width: fit-content; font-weight: 800; }
.seo-sources span { color: var(--muted); font-size: .9rem; }

.seo-faq details { padding: 16px 0; border-top: 1px solid var(--line); }
.seo-faq details:first-of-type { border-top: 0; }
.seo-faq summary { color: var(--navy); cursor: pointer; font-weight: 800; }
.seo-faq details p { margin: 10px 0 0; color: var(--muted); }

.seo-related { margin-top: 28px; padding: 26px; }
.seo-related > div { display: flex; flex-wrap: wrap; gap: 9px; }
.seo-related a {
  padding: 9px 13px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}

.seo-card-grid,
.seo-service-grid {
  display: grid;
  margin-top: 25px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seo-card {
  display: flex;
  min-height: 275px;
  padding: 25px;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seo-card .seo-kicker { color: var(--blue); font-size: .67rem; }
.seo-card h2 { margin: 0; font-size: 1.25rem; line-height: 1.24; }
.seo-card h2 a { color: var(--navy); text-decoration: none; }
.seo-card p:not(.seo-kicker) { color: var(--muted); font-size: .91rem; }
.seo-card .seo-text-link { margin-top: auto; font-weight: 800; }

.seo-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seo-service-grid a {
  display: grid;
  min-height: 145px;
  padding: 22px;
  align-content: start;
  gap: 8px;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid #e8d495;
  border-radius: 14px;
  text-decoration: none;
}
.seo-service-grid span { color: var(--muted); font-size: .9rem; }

.seo-footer {
  display: grid;
  padding: 40px max(20px, calc((100% - 1480px) / 2));
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 40px;
  color: #eee0b0;
  background: var(--navy);
  border-top: 5px solid #d33232;
}

.seo-footer p { max-width: 700px; margin: 13px 0 0; color: #d9cfae; font-size: .9rem; }
.seo-brand-footer { color: #fff; }
.seo-footer nav { display: grid; align-content: start; gap: 8px; }
.seo-footer nav a { color: #fff0bd; }

@media (max-width: 1160px) {
  .seo-layout { grid-template-columns: 1fr; }
  .seo-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .seo-primary { display: none; }
  .seo-contact-cta { margin-left: auto; }
  .seo-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-contact-grid { grid-template-columns: 1fr; }
  .seo-contact-card { min-height: 0; }
}

@media (max-width: 580px) {
  .seo-header { gap: 10px; }
  .seo-brand small { display: none; }
  .seo-main { width: min(100% - 24px, 1480px); padding-top: 16px; }
  .seo-rail { grid-template-columns: 1fr; }
  .seo-hero { padding: 29px 23px; border-radius: 20px; }
  .seo-section { padding: 23px 20px; }
  .seo-card-grid,
  .seo-service-grid,
  .seo-footer { grid-template-columns: 1fr; }
  .seo-card { min-height: 0; }
  .seo-languages { justify-content: flex-start; overflow-x: auto; }
  .seo-contact-cta,
  .seo-login { padding-inline: 9px; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
