:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --white: #fffefa;
  --ink: #191919;
  --muted: #5f6e69;
  --green: #315b50;
  --green-dark: #191d1c;
  --copper: #a9754c;
  --line: #d7dbd2;
  --soft: #e8ece5;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

/* 1. Full Width Containers & Header / Footer */
.site-header {
  width: 100%;
  width: 100vw;
  background: var(--green-dark);
  border: 0;
  box-sizing: border-box;
}

.header-inner, .shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

main {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f4f4f4;
}

.brand-logo {
  width: 44px;
  height: 46px;
  object-fit: contain;
}

.brand strong {
  font-size: 10px;
  line-height: 1.35;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
}

.primary-nav > a, .nav-services > a {
  padding: 9px 15px;
  color: #f3f3f3;
  background: #293033;
  display: flex;
  align-items: center;
  height: 37px;
  white-space: nowrap;
}

.primary-nav > a[aria-current="page"] {
  background: #079bd0;
  color: #fff;
}

.nav-services {
  position: relative;
}

.service-menu {
  position: absolute;
  top: 37px;
  left: 0;
  z-index: 100;
  width: 240px;
  padding: 8px 0;
  background: var(--green-dark);
  border: 1px solid #485052;
  display: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.nav-services:hover .service-menu, .nav-services:focus-within .service-menu {
  display: grid;
}

.service-menu a {
  padding: 8px 15px;
  color: #f4f4f4;
  font-size: 11px;
}

.service-menu a:hover {
  background: #293033;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #fff;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}

.submenu-toggle {
  display: none;
}

/* Content Sections Full Width */
.home-services, .home-faq, .home-transparency, .useful-links, .simple-page, .page-intro, .detail-section, .contact-section, .policy-section, .service-page, .contact-original {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Service Gallery / Grids */
.service-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
  width: 100%;
  justify-items: center;
}

.gallery-item {
  width: 100%;
  max-width: 140px;
  height: 110px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.home-services {
  margin: 0;
  padding: 30px 24px 26px;
  background: var(--paper);
}

.home-intro, .home-section-title, .service-gallery {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.home-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.home-eyebrow {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.home-intro h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.home-lead {
  margin: 8px 0 0;
  color: var(--muted);
}

.home-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  flex-shrink: 0;
}

.home-shortcuts a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-section-title {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 18px;
}

.service-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  justify-items: stretch;
}

.gallery-item {
  max-width: none;
  min-height: 205px;
  height: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  border-color: var(--line);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.gallery-item:hover, .gallery-item:focus-visible {
  border-color: var(--green);
  box-shadow: 0 5px 14px rgba(25, 29, 28, 0.12);
  transform: translateY(-2px);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  height: 92px;
  margin-bottom: 10px;
}

.gallery-title {
  font-weight: 700;
}

.gallery-summary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-faq, .home-transparency, .useful-links {
  max-width: 1230px;
  margin: 22px auto;
}

.home-faq h2, .home-transparency h2, .useful-links h2 {
  margin-top: 0;
}

.useful-links {
  padding-top: 20px;
  padding-bottom: 20px;
}

.contact-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px;
}

.contact-heading {
  margin-bottom: 24px;
}

.contact-kicker {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.contact-heading h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.contact-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.contact-details, .contact-form {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
}

.contact-details {
  background: var(--paper);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--white);
}

.contact-details h2, .contact-form h2, .contact-map h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.contact-details h3 {
  margin: 16px 0 4px;
  font-size: 14px;
}

.contact-details p, .contact-details address {
  margin: 0;
  font-style: normal;
  line-height: 1.7;
}

.contact-details address span {
  color: var(--muted);
  font-size: 12px;
}

.contact-details a, .contact-map-heading a, .contact-form a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-social img {
  display: block;
  width: 32px;
  height: 32px;
}

.contact-form h2 {
  margin-bottom: 8px;
}

.contact-form label:not(.consent-check) {
  font-weight: 600;
}

.contact-form input:not([type="checkbox"]), .contact-form textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.contact-form .consent-check input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.contact-form .button {
  align-self: flex-start;
  margin-top: 5px;
}

.contact-form .form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.contact-map {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.contact-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.contact-map-heading h2 {
  margin-bottom: 4px;
}

.contact-map-heading p {
  margin: 0;
  color: var(--muted);
}

.contact-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 0;
  background: var(--soft);
}

.service-hero-image {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 auto 24px;
  object-fit: cover;
}

/* Useful & Protest Grids */
.useful-grid, .protest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  width: 100%;
}

.useful-grid a, .protest-card {
  padding: 15px;
  border: 1px solid #ddd;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.useful-grid img {
  max-width: 100%;
  height: 50px;
  object-fit: contain;
}

/* FAQ, Transparency, etc. */
.home-faq, .home-transparency, .service-faq {
  background: #eee;
  padding: 20px;
}

.faq-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-search {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #aaa;
}

.faq-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 15px;
}

.faq-tabs button {
  padding: 8px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.faq-tabs button[aria-selected="true"] {
  border-bottom: 2px solid var(--green);
  font-weight: bold;
}

.home-transparency {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.transparency-qr img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* 2. Footer 3-Column Layout */
.site-footer {
  width: 100%;
  width: 100vw;
  background: var(--green-dark);
  color: #f2f2f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  box-sizing: border-box;
  margin-top: 30px;
}

.footer-col {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f2f2f2;
  text-decoration: none;
}

.footer-whatsapp img {
  width: 24px;
  height: 24px;
}

.footer-center {
  text-align: center;
  flex-direction: column;
  gap: 4px;
}

.footer-center p {
  margin: 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.text-button {
  background: none;
  border: none;
  color: #f2f2f2;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 12px;
}

/* Cookie banner & Misc */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #050505;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-actions {
  display: flex;
  gap: 10px;
}
.cookie-actions button {
  padding: 8px 15px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  cursor: pointer;
}
.cookie-actions .cookie-accept {
  background: #fff;
  color: #000;
}
.cookie-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* 3. Responsividade para Telas Menores e Celulares (@media max-width: 768px) */
@media (max-width: 768px) {
  .site-header {
    height: auto;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 15px;
  }
  .menu-toggle {
    display: block;
  }
  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--green-dark);
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 200;
    padding: 10px 0;
  }
  .primary-nav.is-open {
    display: flex;
  }
  .primary-nav > a, .nav-services > a {
    width: 100%;
    height: auto;
    padding: 12px 20px;
  }
  .nav-services {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: stretch;
  }
  .nav-services > a {
    grid-column: 1;
    grid-row: 1;
  }
  .submenu-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 44px;
    border: 0;
    border-left: 1px solid #485052;
    background: #293033;
    cursor: pointer;
  }
  .submenu-toggle span {
    width: 5px;
    height: 5px;
    border-right: 1px solid #f3f3f3;
    border-bottom: 1px solid #f3f3f3;
    transform: rotate(45deg) translateY(-2px);
  }
  .nav-services.is-expanded .submenu-toggle span {
    transform: rotate(225deg) translate(-1px, -1px);
  }
  .service-menu {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    background: #111;
  }
  .nav-services:hover .service-menu, .nav-services:focus-within .service-menu {
    display: none;
  }
  .nav-services.is-expanded .service-menu {
    display: grid;
  }
  .service-menu a {
    padding: 10px 24px;
    border-top: 1px solid #293033;
  }

  /* Footer mobile: column layout, centered, gap 15px */
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px 15px;
  }
  .footer-col {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .footer-right {
    flex-direction: column;
    gap: 10px;
  }

  /* Service cards / gallery 1 or 2 columns on mobile */
  .service-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-services {
    padding: 24px 15px;
  }
  .home-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }
  .home-shortcuts {
    gap: 8px 14px;
  }
  .service-gallery {
    gap: 10px;
  }
  .gallery-item {
    min-height: 195px;
    padding: 10px;
  }
  .gallery-item img {
    height: 76px;
  }
  .home-faq, .home-transparency, .useful-links {
    margin: 16px 0;
    padding: 18px 15px;
  }
  .contact-page {
    padding: 26px 15px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact-details, .contact-form, .contact-map {
    padding: 18px;
  }
  .contact-map-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .contact-map iframe {
    aspect-ratio: 4 / 3;
  }
  .useful-grid, .protest-grid {
    grid-template-columns: 1fr;
  }
  .home-transparency {
    flex-direction: column;
    text-align: center;
  }
}

/* Visual refresh: preserve the cartorio's paper, green and copper identity. */
:root {
  --paper: #f5f4ef;
  --white: #fffefa;
  --ink: #202522;
  --muted: #626c66;
  --green: #315b50;
  --green-dark: #191d1c;
  --copper: #a9754c;
  --line: #deded5;
  --soft: #eeeee7;
  --sans: "DM Sans", sans-serif;
  --display: "Manrope", sans-serif;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4, .brand strong, .gallery-title {
  font-family: var(--display);
}

h1, h2, h3 {
  line-height: 1.25;
}

a {
  text-underline-offset: 3px;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out,
    border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 8px 16px;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--green-dark);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  background: var(--green-dark);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.14);
}

.header-inner {
  display: flex;
  width: min(100% - 48px, 1280px);
  min-height: 84px;
  margin: 0 auto;
  padding: 12px 0;
}

.brand {
  flex: 0 0 auto;
  gap: 14px;
}

.brand-logo {
  width: 56px;
  height: 58px;
}

.brand strong {
  color: #f8f6ef;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.45;
}

.primary-nav {
  gap: 4px;
  font-size: 14px;
}

.primary-nav > a, .nav-services > a {
  min-height: 44px;
  height: auto;
  padding: 10px 13px;
  border-radius: 4px;
  background: transparent;
  color: #f8f6ef;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.primary-nav > a:hover, .nav-services > a:hover,
.primary-nav > a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fffefa;
}

.service-menu {
  top: calc(100% + 6px);
  width: 280px;
  max-height: min(70vh, 540px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--green-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.service-menu a {
  padding: 9px 12px;
  border-radius: 4px;
  color: #f8f6ef;
  font-size: 14px;
}

.service-menu a:hover, .service-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.home-services, .home-faq, .home-transparency, .useful-links,
.simple-page, .page-intro, .detail-section, .policy-section,
.service-page, .contact-page {
  width: min(100% - 48px, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 0;
}

.home-services {
  width: 100%;
  max-width: none;
  padding: 48px max(24px, calc((100% - 1200px) / 2)) 56px;
  background: var(--paper);
}

.home-intro, .home-section-title, .service-gallery {
  max-width: 1200px;
}

.home-intro {
  align-items: center;
  margin-bottom: 32px;
}

.home-eyebrow, .contact-kicker {
  color: var(--copper);
  font-size: 13px;
  font-weight: 700;
}

.home-intro h1, .contact-heading h1 {
  max-width: 680px;
  color: var(--green-dark);
  font-size: 40px;
  font-weight: 700;
}

.home-lead, .contact-heading > p:last-child {
  color: var(--muted);
  font-size: 17px;
}

.home-shortcuts {
  gap: 8px;
}

.home-shortcuts a, .contact-details a, .contact-map-heading a,
.contact-form a, .faq-answer a, .policy-copy a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(49, 91, 80, 0.35);
  text-decoration-thickness: 1px;
  transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
}

.home-shortcuts a:hover, .contact-details a:hover,
.contact-map-heading a:hover, .contact-form a:hover,
.faq-answer a:hover, .policy-copy a:hover {
  color: var(--copper);
  text-decoration-color: currentColor;
}

.home-section-title {
  margin: 0 auto 16px;
  color: var(--green-dark);
  font-size: 22px;
}

.service-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.gallery-item {
  min-height: 0;
  align-items: center;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  text-decoration: none;
}

.gallery-item:hover, .gallery-item:focus-visible {
  transform: translateY(-3px);
  border-color: var(--copper);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  display: block;
  width: min(100%, 176px);
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto 10px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--soft);
}

.gallery-title, .gallery-summary {
  display: block;
  padding-right: 0;
  padding-left: 0;
}

.gallery-title {
  color: var(--green-dark);
  font-size: 17px;
  font-weight: 700;
}

.gallery-summary {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.home-faq, .home-transparency, .useful-links {
  margin: 0 auto;
  padding: 40px 0;
  background: transparent;
}

.home-faq h2, .home-transparency h2, .useful-links h2,
.simple-page h1, .service-page h1, .contact-heading h1 {
  color: var(--green-dark);
}

.faq-topline {
  align-items: end;
  margin-bottom: 20px;
}

.faq-topline h2, .home-transparency h2, .useful-links h2 {
  margin: 0;
  font-size: 26px;
}

.faq-search {
  width: min(100%, 360px);
  min-height: 48px;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.faq-search input, .service-faq-heading input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.faq-tabs {
  gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 4px;
}

.faq-tabs button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}

.faq-tabs button:hover, .faq-tabs button[aria-selected="true"] {
  border-color: var(--green);
  background: var(--green);
  color: #fffefa;
}

.faq-tabs button[aria-selected="true"] {
  border-bottom: 1px solid var(--green);
}

.faq-question {
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.faq-question summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--green-dark);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-question summary::-webkit-details-marker {
  display: none;
}

.faq-question summary span {
  flex: 0 0 auto;
  color: var(--copper);
  font-size: 22px;
  transition: transform 0.2s ease-in-out;
}

.faq-question[open] summary span {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 18px 14px;
  color: var(--muted);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.home-transparency {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.transparency-copy {
  max-width: 900px;
}

.transparency-copy a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
}

.transparency-qr img {
  width: 96px;
  height: 96px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.useful-links {
  padding-bottom: 56px;
}

.useful-grid, .protest-grid, .service-links-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 20px;
}

.useful-grid a, .protest-card, .service-link-card {
  min-height: 112px;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: left;
  text-decoration: none;
  transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

.useful-grid a:hover, .protest-card:hover, .service-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--copper);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}

.useful-grid a {
  color: var(--green-dark);
  font-weight: 700;
}

.useful-grid img {
  width: auto;
  max-width: 100%;
  height: 52px;
  margin-bottom: 8px;
  object-fit: contain;
}

.protest-card strong, .service-link-card strong {
  color: var(--green-dark);
  font-family: var(--display);
  font-size: 17px;
}

.protest-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.service-page {
  padding-top: 42px;
  padding-bottom: 56px;
}

.service-page > h1 {
  margin: 0 0 18px;
  font-size: 40px;
}

.service-page > .service-hero-image {
  width: 100%;
  max-width: none;
  max-height: 380px;
  aspect-ratio: 16 / 7;
  margin: 0 0 24px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--paper);
}

.service-intro, .service-notice {
  margin: 0 0 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--copper);
  border-radius: 0 8px 8px 0;
  background: var(--paper);
  color: var(--ink);
}

.service-copy {
  margin: 16px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.protest-guide-viewer {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 640px;
  max-height: 960px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.service-copy h2, .service-faq h2, .service-subtitle {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 21px;
}

.service-copy p:last-child, .service-copy ul:last-child {
  margin-bottom: 0;
}

.service-copy li, .privacy-page li {
  margin: 6px 0;
}

.service-links-grid {
  display: grid;
  margin: 20px 0;
}

.service-link-card {
  position: relative;
  display: flex;
  min-height: 86px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--green-dark);
  font-weight: 700;
}

.service-link-card > span {
  flex: 0 0 auto;
  color: var(--copper);
  font-size: 18px;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn-primary, .btn-secondary, .btn-outline,
.service-guide-button, .button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out,
    border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn-primary, .button-primary {
  background: var(--green);
  color: #fffefa;
}

.btn-primary:hover, .button-primary:hover {
  transform: translateY(-1px);
  background: var(--green-dark);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--copper);
  color: #fffefa;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: #875a38;
  color: #fffefa;
}

.btn-outline, .service-guide-button {
  border-color: var(--green);
  background: transparent;
  color: var(--green);
}

.btn-outline:hover, .service-guide-button:hover {
  transform: translateY(-1px);
  background: var(--green);
  color: #fffefa;
}

a[href$=".pdf"], a[href$=".docx"] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

a[href$=".pdf"]:not(.service-guide-button)::before,
a[href$=".docx"]:not(.service-guide-button)::before {
  content: "↓";
  color: var(--copper);
  font-weight: 700;
}

a[href$=".pdf"]:hover, a[href$=".docx"]:hover {
  border-color: var(--green);
  background: var(--paper);
}

a[target="_blank"]:not(.gallery-item):not(.transparency-qr):not(.service-link-card):not(.useful-grid a)::after {
  content: " ↗";
  display: inline-block;
  margin-left: 3px;
  color: var(--copper);
  font-size: 0.9em;
}

.useful-grid a[target="_blank"]::after {
  content: "↗";
  margin-left: auto;
  color: var(--copper);
}

.service-faq {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-faq-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.service-faq-heading label {
  width: min(100%, 340px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.service-back {
  margin-top: 24px;
}

.service-back a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
}

.contact-page {
  padding-top: 42px;
}

.contact-heading {
  margin-bottom: 28px;
}

.contact-heading h1 {
  margin: 0;
}

.contact-layout {
  gap: 24px;
}

.contact-details, .contact-form, .contact-map {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-details, .contact-map {
  background: var(--paper);
}

.contact-form {
  gap: 10px;
  background: var(--white);
}

.contact-form input:not([type="checkbox"]), .contact-form textarea {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-form textarea {
  min-height: 140px;
}

.contact-form .button {
  margin-top: 8px;
}

.contact-map {
  margin-top: 24px;
}

.contact-map iframe {
  border-radius: 6px;
}

.simple-page {
  padding-top: 42px;
  padding-bottom: 56px;
}

.simple-page .shell {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.simple-page h1 {
  margin: 0 0 24px;
  font-size: 38px;
}

.simple-page h2 {
  margin: 28px 0 14px;
  color: var(--green-dark);
  font-size: 20px;
}

.table-scroll {
  width: 100%;
  margin: 12px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
}

.table-scroll th, .table-scroll td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table-scroll th {
  background: var(--green-dark);
  color: #fffefa;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.table-scroll tbody tr:nth-child(even) {
  background: var(--paper);
}

.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.privacy-page > p, .policy-copy, .privacy-index {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.privacy-index {
  display: block;
  background: var(--paper);
}

.privacy-index h2 {
  margin: 0;
}

.privacy-index ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-index li {
  min-width: 0;
  margin: 0;
}

.privacy-index a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--green);
  line-height: 1.4;
  text-decoration: none;
}

.privacy-index a:hover {
  border-color: var(--green);
  background: var(--soft);
}

.dpo-form-frame {
  display: block;
  width: 100%;
  height: 960px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 1.5fr) 1fr;
  gap: 24px;
  width: 100%;
  margin-top: 0;
  padding: 28px max(24px, calc((100% - 1200px) / 2));
  background: var(--green-dark);
}

.footer-col {
  gap: 12px;
  font-size: 13px;
}

.footer-right {
  justify-content: flex-end;
}

.footer-right a, .text-button {
  color: #f8f6ef;
}

.cookie-banner {
  gap: 18px;
  border-top: 3px solid var(--copper);
  background: var(--green-dark);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
}

.cookie-banner a {
  color: #f4d5b5;
}

.cookie-actions button, .cookie-settings-dialog button:not(.cookie-close) {
  min-height: 42px;
  border-radius: 6px;
}

.cookie-actions .cookie-accept, .cookie-settings-dialog .cookie-accept {
  border-color: var(--copper);
  background: var(--copper);
  color: #fffefa;
}

.cookie-settings-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

@media (max-width: 980px) {
  .header-inner {
    width: calc(100% - 32px);
  }

  .brand-logo {
    width: 48px;
    height: 50px;
  }

  .brand strong {
    font-size: 11px;
  }

  .primary-nav {
    gap: 0;
    font-size: 13px;
  }

  .primary-nav > a, .nav-services > a {
    padding-right: 9px;
    padding-left: 9px;
  }

  .service-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    width: 100%;
  }

  .header-inner {
    position: relative;
    width: 100%;
    min-height: 72px;
    padding: 10px 16px;
  }

  .menu-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
    border-color: rgba(255, 255, 255, 0.45);
    border-radius: 6px;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 30;
    display: none;
    width: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 10px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--green-dark);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav > a, .nav-services > a {
    min-height: 48px;
    padding: 12px;
  }

  .nav-services {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .submenu-toggle {
    min-height: 48px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
  }

  .service-menu {
    max-height: none;
    padding: 4px 0 4px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .service-menu a {
    min-height: 42px;
    padding: 10px 12px;
    border-top: 0;
  }

  .home-services, .home-faq, .home-transparency, .useful-links,
  .simple-page, .service-page, .contact-page {
    width: calc(100% - 32px);
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .home-services {
    width: 100%;
    padding: 32px 16px 40px;
  }

  .home-intro {
    gap: 16px;
    margin-bottom: 24px;
  }

  .home-intro h1, .contact-heading h1 {
    font-size: 32px;
  }

  .service-gallery {
    gap: 12px;
  }

  .gallery-item {
    padding-bottom: 14px;
  }

  .gallery-title, .gallery-summary {
    padding-right: 12px;
    padding-left: 12px;
  }

  .gallery-title {
    font-size: 15px;
  }

  .gallery-summary {
    font-size: 13px;
  }

  .faq-topline, .service-faq-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-search, .service-faq-heading label {
    width: 100%;
  }

  .faq-tabs {
    margin-right: -16px;
  }

  .home-transparency {
    flex-direction: row;
    text-align: left;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-details, .contact-form, .contact-map, .service-copy,
  .service-faq {
    padding: 20px;
  }

  .contact-map-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-map iframe {
    aspect-ratio: 4 / 3;
  }

  .service-page > .service-hero-image {
    aspect-ratio: 16 / 9;
  }

  .privacy-index ol {
    grid-template-columns: 1fr;
  }

  .dpo-form-frame {
    height: 1120px;
  }

  .service-link-card {
    min-height: 72px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    padding: 24px 16px;
    text-align: center;
  }

  .footer-col, .footer-right {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 16px;
  }

  .cookie-actions {
    flex-wrap: wrap;
  }

  .cookie-close {
    position: absolute;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 42px;
    height: 44px;
  }

  .brand strong {
    max-width: 205px;
    font-size: 10px;
  }

  .service-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    column-gap: 14px;
    padding: 12px;
  }

  .gallery-item img {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 112px;
    height: 96px;
    margin: 0;
    aspect-ratio: auto;
  }

  .gallery-title {
    grid-column: 2;
    align-self: end;
    text-align: left;
  }

  .gallery-summary {
    grid-column: 2;
    align-self: start;
    text-align: left;
  }

  .home-transparency {
    align-items: flex-start;
  }

  .transparency-qr img {
    width: 72px;
    height: 72px;
  }

  .download-row, .download-row .service-guide-button {
    width: 100%;
  }

  .table-scroll table {
    min-width: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

