/* LegalBooklets website styles */
:root {
  --bg: #0f4cfb;
  --surface: #ffffff;
  --surface-soft: #f3f7ff;
  --primary: #0c3af0;
  --primary-soft: #dbe6ff;
  --accent: #ffe15a;
  --accent-soft: #fff9db;
  --text: #081f43;
  --muted: #4b5f8f;
  --shadow: 0 24px 60px rgba(8, 31, 67, 0.12);
  --radius: 24px;
  font-family: 'Times New Roman', Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, #e5ecff 0%, #f4f7ff 100%);
  color: var(--text);
  line-height: 1.75;
}

p {
  text-align: justify;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: #0825a7;
  text-decoration-thickness: 0.12em;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--muted);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--primary);
}

.brand .logo {
  max-height: 46px;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.hero-subtitle {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.18rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--surface);
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}

.nav-toggle span::before {
  top: -0.4rem;
}

.nav-toggle span::after {
  top: 0.4rem;
}

.hero {
  padding: 4rem 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.hero-subtitle {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.2rem;
}

.hero-copy {
  max-width: 42rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn,
.btn-secondary {
  border: none;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn {
  background: var(--primary);
  color: white;
  box-shadow: 0 18px 35px rgba(15, 76, 251, 0.18);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid rgba(15, 76, 251, 0.16);
}

.btn:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.card-grid,
.state-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.state-card,
.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.card h3,
.state-card h3 {
  margin-top: 0;
}

.card p,
.state-card p,
.form-card p {
  color: var(--muted);
}

.card-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.edition-list {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--text);
}

.edition-list li {
  margin-bottom: 0.65rem;
}

.feature-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--primary-soft);
  border-radius: 20px;
}

.feature-card h4 {
  margin: 0;
}

.hero-single .hero-visual {
  display: none;
}

.edition-list {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--text);
}

.edition-list li {
  margin-bottom: 0.65rem;
}

.section-intro {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 1rem;
}

.section-title {
  margin: 0 0 1rem;
}

.card > .section-title + .form-group {
  margin-top: -0.4rem;
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 0.75rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.edition-grid li {
  padding: 0;
}

.edition-grid a {
  font-weight: 700;
  color: #000;
}

.section-intro {
  color: var(--muted);
  max-width: 42rem;
}

.section-panels {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.state-card img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.state-card .state-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 0.75rem;
  color: var(--muted);
}

.form-group {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-weight: 600;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 1rem;
  background: white;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.order-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10rem;
  align-items: end;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--primary-soft);
}

.order-multiple-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.order-multiple-toggle input {
  width: 1.1rem;
  height: 1.1rem;
}

.order-entry[hidden] {
  display: none;
}

.order-control {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.optional-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.form-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.status-message {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  font-weight: 600;
}

.status-success {
  background: #def7ec;
  color: #166534;
}

.status-error {
  background: #fee2e2;
  color: #991b1b;
}

.page-footer {
  padding: 3rem 0 2rem;
  color: var(--muted);
}

.page-footer p {
  margin: 0 0 0.25rem;
}

.page-footer small {
  display: block;
  margin-top: 0.25rem;
}

.note-box {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  color: var(--text);
  margin-top: 1rem;
}

.breadcrumbs {
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--primary);
}

.text-link {
  font-weight: 700;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-profile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1rem;
}

.about-profile h2 {
  margin: 0 0 0.2rem;
  font-size: 1.3rem;
}

.about-profile p {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.about-profile .text-link {
  display: inline-block;
}

.about-copy h1 {
  margin-top: 0;
}

.about-copy .breadcrumbs {
  margin-bottom: 0.5rem;
}

.card + .card-grid {
  margin-top: 1.5rem;
}

.bulk-info {
  max-width: 52rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--surface-soft);
}

.bulk-info p {
  margin: 0.35rem 0;
  line-height: 1.4;
}

.bulk-info p:last-child {
  margin-bottom: 0;
}

.order-toggle-group {
  margin-block: 1.6rem;
}

.order-submit {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-profile img {
    width: min(100%, 300px);
  }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    inset: 100% 0 0;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-header.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .edition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-entry {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .edition-grid {
    grid-template-columns: 1fr;
  }
}
