/* ==========================================================================
   Kanzlei Drechsler – Design System
   Flat surfaces, hard edges, no shadows, no gradients.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Aeonik";
  src: url("../fonts/aeonik-thin.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("../fonts/aeonik-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("../fonts/aeonik-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("../fonts/aeonik-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("../fonts/aeonik-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (shadcn-style) ---------- */
:root {
  --background: #ffffff;
  --foreground: #1c293c;
  --primary: #1c293c;
  --primary-foreground: #ffffff;
  --secondary: #f2f3f5;
  --secondary-foreground: #1c293c;
  --muted: #f2f3f5;
  --muted-foreground: #5f6b7a;
  --border: #dfe3e8;
  --border-dark: #35455c;
  --ring: #1c293c;
  --radius: 0;

  --font-sans: "Aeonik", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --section-y: clamp(5rem, 10vw, 8.5rem);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.625rem, 4.6vw, 3.75rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

h3 {
  font-size: 1.375rem;
  line-height: 1.3;
}

.kicker {
  display: inline-block;
  padding: 0.4375rem 0.875rem;
  font-size: 0.8438rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--foreground);
  background: #ffffff;
  border: 1px solid var(--border);
  margin-bottom: 1.375rem;
}

.kicker-light {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
  max-width: 56rem;
}

.section {
  position: relative;
  padding-block: var(--section-y);
  overflow: hidden;
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* Decorative paragraph mark in section backgrounds */
.deco {
  position: absolute;
  top: -0.12em;
  right: -0.08em;
  z-index: 0;
  font-size: clamp(12rem, 32vw, 30rem);
  font-weight: 500;
  line-height: 1;
  color: rgba(28, 41, 60, 0.045);
  pointer-events: none;
  user-select: none;
}

.deco-left {
  right: auto;
  left: -0.08em;
  top: auto;
  bottom: -0.22em;
}

.deco-light {
  color: rgba(255, 255, 255, 0.05);
}

.section-muted {
  background: var(--muted);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.section-head h2 {
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--foreground);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons (square, flat) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #2b3d57;
  border-color: #2b3d57;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #e5e8ec;
}

.btn-light {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.btn-light:hover {
  background: #e5e8ec;
  border-color: #e5e8ec;
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.text-link-light {
  color: #ffffff;
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--primary);
  color: #c3cdd9;
  font-size: 0.875rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.5625rem;
}

.topbar p {
  letter-spacing: 0.01em;
}

.topbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.topbar a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 5rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a:not(.btn) {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--foreground);
  padding: 0.5625rem 0.875rem;
  transition: background-color 0.2s ease;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.1875rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.main-nav a:not(.btn):hover,
.main-nav a:not(.btn):focus-visible {
  background: var(--secondary);
}

.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn):focus-visible::after {
  transform: scaleX(1);
}

.main-nav .btn {
  margin-left: 1.25rem;
}

.nav-cta {
  padding: 0.75rem 1.375rem;
  font-size: 1rem;
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.nav-cta:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--foreground);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--primary);
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
}

.hero-visual {
  order: 1;
}

.hero-panel {
  order: 2;
  display: flex;
  align-items: center;
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  padding-left: clamp(2.5rem, 5vw, 5.5rem);
  padding-right: max(clamp(1.25rem, 4vw, 2.5rem), calc((100vw - var(--container)) / 2 + 2.5rem));
}

.hero-copy {
  max-width: 32rem;
}

.hero-lead {
  margin-top: 1.75rem;
  font-size: clamp(1.1875rem, 2vw, 1.3125rem);
  line-height: 1.6;
  color: #d4dae2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.hero-office {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hero-person {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  max-width: 32rem;
  margin-top: clamp(2.5rem, 4vw, 3.25rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--border-dark);
}

.hero-person-photo {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.hero-person-name {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.hero-person-role {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #aeb9c9;
}

/* ---------- Media bar ---------- */
.media-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.media-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4.5rem);
  padding-block: 1.75rem;
}

.media-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.media-logos img {
  height: 32px;
  width: auto;
}

.media-logos li:nth-child(2) img {
  height: 34px;
}

.media-logos li:nth-child(3) img {
  height: 38px;
}

/* ---------- Schwerpunkte ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.focus-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--border);
  background: #ffffff;
  transition: border-color 0.18s ease;
}

.focus-card:hover {
  border-color: var(--primary);
}

.focus-card-main {
  grid-column: span 3;
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  padding: clamp(2rem, 4vw, 3rem);
}

.focus-card-main p {
  max-width: 52rem;
}

.focus-num {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 1.75rem;
}

.focus-card-main .focus-num {
  color: #8fa0b6;
}

.focus-card h3 {
  margin-bottom: 0.875rem;
}

.focus-card p {
  font-size: 1.0313rem;
  color: var(--muted-foreground);
}

.focus-card-main p {
  color: #d4dae2;
  font-size: 1.125rem;
}

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.about-story h2 {
  margin-bottom: 2rem;
}

.about-text p + p {
  margin-top: 1.375rem;
}

.about-text p {
  color: #3d4a5c;
}

.about-stats {
  display: flex;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-stats strong {
  display: block;
  font-size: 2.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.about-stats span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9688rem;
  color: var(--muted-foreground);
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.founder-card {
  background: #ffffff;
  border: 1px solid var(--border);
}

.founder-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 12%;
}

.founder-body {
  padding: 1.625rem 1.75rem 1.75rem;
}

.founder-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.founder-name {
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.875rem;
}

.founder-quote {
  margin-top: 1.375rem;
  padding-top: 1.375rem;
  border-top: 1px solid var(--border);
  font-size: 1.0313rem;
  line-height: 1.6;
  color: #3d4a5c;
}

.about-team {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.team-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.team-list li {
  padding-block: 0.875rem;
  border-top: 1px solid var(--border);
}

.team-list li:last-child {
  padding-bottom: 0.25rem;
}

.team-name {
  display: block;
  font-size: 1.0313rem;
  font-weight: 500;
}

.team-role {
  display: block;
  margin-top: 0.1875rem;
  font-size: 0.9063rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--foreground);
  background: var(--secondary);
  border: 1px solid var(--border);
}

.badge-primary {
  color: var(--primary-foreground);
  background: var(--primary);
  border-color: var(--primary);
}

/* ---------- Bewertungen ---------- */
.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 0.875rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border);
}

.google-rating img {
  width: 118px;
  height: auto;
}

.google-rating span {
  font-size: 1rem;
  font-weight: 500;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--border);
  background: #ffffff;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.star {
  width: 22px;
  height: 22px;
  fill: #d9a13b;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.in-view .star:nth-child(1) { transition-delay: 0.15s; }
.in-view .star:nth-child(2) { transition-delay: 0.3s; }
.in-view .star:nth-child(3) { transition-delay: 0.45s; }
.in-view .star:nth-child(4) { transition-delay: 0.6s; }
.in-view .star:nth-child(5) { transition-delay: 0.75s; }

.in-view .star {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .star {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.review-card blockquote {
  flex: 1;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #3d4a5c;
}

.review-card figcaption {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* ---------- Zertifikate ---------- */
.certificates {
  border-block: 1px solid var(--border);
  background: #ffffff;
}

.cert-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.cert-row img {
  height: clamp(120px, 16vw, 168px);
  width: auto;
}

/* ---------- FAQ / Accordion ---------- */
.accordion {
  border-top: 1px solid var(--border);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.accordion-header {
  font-size: inherit;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 1.5rem;
  text-align: left;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 0.18s ease;
}

.accordion-trigger:hover {
  background: var(--secondary);
}

.accordion-trigger:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}

.accordion-icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--foreground);
  transition: transform 0.2s ease;
}

.accordion-icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

.accordion-icon::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: rotate(90deg);
}

.accordion-panel {
  padding: 0 1.5rem 1.75rem;
}

.accordion-panel p {
  max-width: 46rem;
  color: #3d4a5c;
}

/* ---------- Karriere ---------- */
.career {
  position: relative;
  background: var(--primary);
  color: #ffffff;
  overflow: hidden;
}

.career > .container {
  position: relative;
  z-index: 1;
}

.career-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.career-copy {
  max-width: 44rem;
}

.career h2 {
  margin-bottom: 1.125rem;
}

.career p:not(.kicker) {
  color: #d4dae2;
}

.career .btn {
  flex: 0 0 auto;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1.25rem;
  align-items: stretch;
}

.contact-details {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: #ffffff;
}

.contact-block {
  padding: 1.625rem 2rem;
}

.contact-block + .contact-block {
  border-top: 1px solid var(--border);
}

.contact-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: 1.1875rem;
  line-height: 1.55;
  text-decoration: none;
}

a.contact-value:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-phone {
  font-size: clamp(1.625rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.contact-map {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--border);
  background: var(--muted);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
}

.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.map-consent-inner {
  max-width: 26rem;
  text-align: center;
}

.map-consent-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.map-consent p {
  font-size: 0.9688rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #ffffff;
  color: var(--foreground);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 6vw, 5rem);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  color: var(--foreground);
}

.footer-logo img {
  width: 40px;
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
}

.footer-logo small {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.footer-brand p {
  font-size: 0.9688rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1.125rem;
}

.footer-nav,
.footer-contact,
.footer-legal-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}

.footer-nav a,
.footer-contact a,
.footer-legal-nav button {
  font-size: 1rem;
  color: var(--foreground);
  text-decoration: none;
  text-align: left;
  padding: 0;
}

.footer-nav a:hover,
.footer-contact a:hover,
.footer-legal-nav button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact p {
  font-size: 0.9688rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-block: 1.75rem;
}

.footer-bottom p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.footer-seals {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-seals img {
  height: 60px;
  width: auto;
}

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 48, 0.72);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  font-size: 1.5rem;
}

.modal-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  line-height: 1;
  border: 1px solid var(--border);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.modal-close:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.modal-body {
  overflow-y: auto;
  padding: 1.75rem;
  font-size: 1.0313rem;
}

.modal-body h3 {
  font-size: 1.1875rem;
  margin: 1.75rem 0 0.625rem;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p + p {
  margin-top: 0.75rem;
}

.modal-body ul {
  list-style: disc;
  padding-left: 1.375rem;
  margin-block: 0.75rem;
}

.modal-body a {
  text-underline-offset: 2px;
}

.modal-body code {
  font-size: 0.9375em;
  background: var(--muted);
  padding: 0.125rem 0.375rem;
}

.modal-intro {
  color: var(--muted-foreground);
}

/* ---------- Cookie banner (WordPress look) ---------- */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-panel {
  pointer-events: auto;
  width: 100%;
  max-width: 26rem;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 1.75rem 1.75rem 1.25rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.cookie-title {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.cookie-desc {
  font-size: 0.9063rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--muted);
}

.cookie-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
}

.cookie-option input {
  margin-top: 0.3125rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

.cookie-option-text strong {
  display: block;
  font-size: 0.9688rem;
  font-weight: 500;
}

.cookie-option-text small {
  display: block;
  font-size: 0.8438rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cookie-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
  font-size: 0.8438rem;
  color: var(--muted-foreground);
}

.cookie-link {
  font-size: 0.8438rem;
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.cookie-link:hover {
  color: var(--foreground);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .focus-card-main {
    grid-column: span 2;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    order: 1;
    padding: clamp(3.5rem, 9vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
  }
  .hero-copy {
    max-width: 34rem;
  }
  .hero-visual {
    order: 2;
    min-height: 0;
    padding: 0;
  }
  .hero-office {
    position: static;
    width: 100%;
    height: clamp(260px, 48vw, 400px);
  }
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .career-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1.25rem;
  }
  .nav-open .main-nav {
    display: flex;
  }
  .main-nav a:not(.btn) {
    padding: 0.875rem clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--border);
    font-size: 1.125rem;
  }
  .main-nav a:not(.btn)::after {
    display: none;
  }
  .main-nav a:not(.btn):hover {
    background: var(--secondary);
    border-bottom-color: var(--border);
  }
  .main-nav .btn {
    margin: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1.0625rem;
  }
  .focus-grid {
    grid-template-columns: 1fr;
  }
  .focus-card-main {
    grid-column: span 1;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.75rem 2.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .media-inner {
    flex-direction: column;
    gap: 1.125rem;
    padding-block: 1.5rem;
  }
  .media-logos {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.75rem;
  }
  .media-logos img {
    height: 22px;
  }
  .media-logos li:nth-child(2) img {
    height: 24px;
  }
  .media-logos li:nth-child(3) img {
    height: 26px;
  }
  .cert-row img {
    height: 108px;
  }
  .contact-block {
    padding: 1.375rem 1.5rem;
  }
}
