/* Theme layer – loaded after custom.css, overrides look & feel only */
:root {
  --brand: #0b4ea2;
  --brand-dark: #083a7a;
  --brand-deep: #0a2a55;
  --accent: #f7c948;
  --surface: #f5f8fc;
  --card: #ffffff;
  --ink: #1b2838;
  --ink-soft: #4d5b6e;
  --line: #e3e9f1;
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(16, 42, 82, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 42, 82, 0.10);

  --bs-primary: #0b4ea2;
  --bs-primary-rgb: 11, 78, 162;
  --bs-link-color: #0b4ea2;
  --bs-link-color-rgb: 11, 78, 162;
  --bs-link-hover-color: #083a7a;
  --bs-link-hover-color-rgb: 8, 58, 122;
  --bs-body-color: #1b2838;
}

/* Base */
html {
  overflow-x: visible; /* lets the sticky header work */
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.background {
  background-color: var(--surface);
}

h1, .h1, h2, .h2, h3, .h3 {
  font-weight: 400; /* DM Serif Text only ships a regular cut */
  color: var(--brand-deep);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1, .h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2, .h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); }

main p {
  color: var(--ink-soft);
}

main p.lead {
  font-size: 1.15rem;
}

/* Header / navbar */
header {
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 4px 20px rgba(10, 42, 85, 0.18);
}

.custom-navbar {
  background-color: var(--brand);
  padding: 8px 20px;
}

.custom-navbar .nav-link {
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 16px;
  margin-right: 4px;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.custom-navbar .nav-link.active {
  color: var(--brand-deep);
  background-color: var(--accent);
  border-radius: 999px;
}

.custom-navbar .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow-md);
}

.custom-navbar .dropdown-item {
  border-radius: 8px;
  padding: 9px 12px;
}

.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item:focus {
  background-color: var(--surface);
  color: var(--brand);
}

.custom-navbar .dropdown-item.active {
  background-color: var(--brand);
  color: #fff;
}

.custom-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.custom-navbar .navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

@media (max-width: 991px) {
  .custom-navbar .navbar-nav {
    padding-top: 10px;
  }
  .custom-navbar .nav-link {
    padding: 10px 16px;
    margin-right: 0;
  }
}

/* Buttons */
.btn {
  box-shadow: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-lg {
  padding: 0.8rem 1.9rem;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-deep);
  --bs-btn-active-border-color: var(--brand-deep);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(11, 78, 162, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(11, 78, 162, 0.32);
}

/* Images */
.fixed-img {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.full-height-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

main img.rounded {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md);
}

@media (max-width: 767px) {
  .fixed-img {
    height: 260px;
  }
}

/* Entrance animation: gentle fade-up instead of a full-width slide */
.slide-in-left,
.slide-in-right {
  transform: translateY(28px);
}

.slide-in-left.show,
.slide-in-right.show {
  transform: none;
}

@media (max-width: 768px) {
  .slide-in-left,
  .slide-in-right {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .slide-in-left,
  .slide-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn {
    transition: none;
  }
}

/* Home: hero carousel */
.home-hero {
  --hero-img-h: 520px;
  padding: 3.5rem 0 3.5rem;
  background: linear-gradient(180deg, #dfeafa 0%, var(--surface) 100%);
}

.hero-carousel .row {
  align-items: center;
  min-height: var(--hero-img-h);
}

.hero-carousel h1,
.hero-carousel h2 {
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.75rem);
  margin-bottom: 1.25rem;
}

.hero-carousel p {
  font-size: 1.2rem;
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-carousel .fixed-img {
  height: var(--hero-img-h);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(16, 42, 82, 0.22);
}

/* Arrows and dots sit on the photo, which is always the bottom edge of the carousel */
.hero-carousel-nav {
  position: absolute;
  inset: auto 0 0 calc(41.667% + 1.25rem);
  height: var(--hero-img-h);
  z-index: 2;
  pointer-events: none;
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(10, 42, 85, 0.25);
  pointer-events: auto;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hero-carousel-arrow[data-bs-slide="prev"] {
  left: 16px;
}

.hero-carousel-arrow[data-bs-slide="next"] {
  right: 16px;
}

.hero-carousel-arrow:hover {
  background: var(--brand);
  color: #fff;
}

.hero-carousel .carousel-indicators {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 12px;
  gap: 8px;
  border-radius: 999px;
  background: rgba(10, 42, 85, 0.45);
  pointer-events: auto;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background-color: #fff;
  opacity: 0.55;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.hero-carousel .carousel-indicators .active {
  width: 30px;
  opacity: 1;
  background-color: var(--accent);
}

@media (max-width: 1199px) {
  .home-hero {
    --hero-img-h: 440px;
  }
}

@media (max-width: 991px) {
  .home-hero {
    --hero-img-h: 380px;
    padding: 2.5rem 0;
  }
  .hero-carousel .row {
    min-height: 0;
    align-items: flex-start;
    --bs-gutter-y: 1.5rem;
  }
  .hero-carousel .hero-slide-text {
    min-height: 15rem;
  }
  .hero-carousel-nav {
    left: 0;
  }
}

@media (max-width: 575px) {
  .home-hero {
    --hero-img-h: 270px;
    padding: 2rem 0;
  }
  .hero-carousel .hero-slide-text {
    min-height: 19rem;
  }
  .hero-carousel-arrow {
    width: 40px;
    height: 40px;
  }
}

/* Home: commitment / counters */
.counter-box {
  height: 100%;
  padding: 20px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.counter-box i {
  color: var(--brand);
}

.counter {
  display: block;
  color: var(--brand-deep);
  font-size: 2rem;
  line-height: 1.2;
}

.counter-box p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Service blocks (home) */
main > section.bg-light {
  background-color: var(--card) !important;
  border: 1px solid var(--line);
  border-radius: 24px !important;
  box-shadow: var(--shadow-sm);
  padding: 2rem !important;
}

main > section.bg-light > .row {
  align-items: center;
  row-gap: 1.25rem;
}

@media (min-width: 992px) {
  main > section.bg-light {
    padding: 2.75rem !important;
  }
  main > section.bg-light > .row {
    --bs-gutter-x: 3rem;
  }
}

main > section.bg-light .fixed-img {
  height: 340px;
}

main ul.check-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

main ul.check-list li {
  padding: 3px 0;
  color: var(--ink);
  font-weight: 500;
}

main ul.check-list li i {
  color: #1f9d55;
  margin-right: 0.5rem;
}

/* Testimonials */
#testimonialCarousel .carousel-item > .text-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
  min-height: 250px;
  margin: 0 auto 8px;
  padding: 2.5rem 3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

#testimonialCarousel .carousel-item .lead {
  font-size: 1.15rem;
  color: var(--ink);
  font-style: italic;
}

#testimonialCarousel .carousel-item h5 {
  margin: 0.5rem 0 0;
  color: var(--brand);
  font-weight: 700;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  width: 3rem;
  opacity: 0.6;
}

#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover {
  opacity: 1;
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
  filter: invert(1) grayscale(1) brightness(0.3);
}

@media (max-width: 767px) {
  #testimonialCarousel .carousel-item > .text-center {
    min-height: 320px;
    padding: 2rem 2.75rem;
  }
  #testimonialCarousel .carousel-control-prev,
  #testimonialCarousel .carousel-control-next {
    width: 2.5rem;
  }
}

/* Call-to-action band (service pages) */
.contact-us.bg-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%) !important;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.contact-us h2 {
  color: #fff;
}

.contact-us p {
  color: rgba(255, 255, 255, 0.88);
}

.contact-us .display-4 {
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0;
}

.contact-us .display-4 i {
  font-size: 0.75em;
  color: var(--accent);
  margin-right: 0.35em;
}

.contact-us .display-4 a {
  text-decoration: none;
}

.contact-us .display-4 a:hover {
  text-decoration: underline;
}

/* Service detail pages */
@media (min-width: 768px) {
  main > section.container > .row > .col-md-6.d-flex > img {
    position: sticky;
    top: 110px;
    width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: cover;
  }
}

/* About page */
.hero-section .lead {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.about-us .row {
  align-items: center;
  row-gap: 1.5rem;
}

.order-process .row {
  row-gap: 1.5rem;
}

.order-step {
  height: 100%;
  padding: 2rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.order-step i {
  color: var(--brand);
}

.order-step h4 {
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 1.2rem;
}

.order-step p {
  margin-bottom: 0;
}

.accordion {
  --bs-accordion-border-color: var(--line);
  --bs-accordion-border-radius: 16px;
  --bs-accordion-inner-border-radius: 15px;
  --bs-accordion-active-bg: #eaf1fb;
  --bs-accordion-active-color: var(--brand-deep);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(11, 78, 162, 0.25);
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  border-radius: 16px;
}

.accordion-button {
  font-family: inherit;
  font-weight: 600;
}

/* Cards & forms (contact, areas) */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card.shadow-lg {
  box-shadow: var(--shadow-md) !important;
}

.card-body {
  padding: 1.75rem;
}

.card-body ul.list-unstyled li {
  padding: 4px 0;
}

.form-control {
  border-color: #cfd8e3;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(11, 78, 162, 0.18);
}

.form-label {
  font-weight: 600;
  color: var(--ink);
}

/* Areas page */
.areas-layout {
  align-items: stretch;
}

.search-container {
  height: 100%;
  margin-bottom: 0;
  padding: 1.75rem !important;
  background-color: var(--card) !important;
  border-color: var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
}

.search-container h5 {
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 1rem;
}

.search-container .form-control {
  margin-bottom: 0.75rem !important;
}

.search-result {
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.search-result:empty {
  display: none;
}

.search-result.is-available {
  color: #1a7f43;
}

.search-result.is-unavailable {
  color: #c0392b;
}

.search-container .text-muted {
  border-top: 1px solid var(--line);
  margin: 1.25rem 0 0 !important;
  padding-top: 1.25rem;
  font-size: 0.95rem;
}

#map {
  height: 500px;
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
  z-index: 0;
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.area-chip i {
  color: var(--brand);
  font-size: 0.9em;
}

.area-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.area-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.area-chip.active i {
  color: var(--accent);
}

@media (max-width: 991px) {
  #map {
    height: 380px;
  }
}

/* Footer */
.footer {
  background-color: var(--brand-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 20px 1.5rem;
}

.footer > .row {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer p {
  margin-bottom: 0.6rem;
}

.footer p > i {
  width: 1.4em;
  color: var(--accent);
}

.footer a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer > .row:last-child {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  font-size: 0.9rem;
}

.footer > .row:last-child a {
  margin: 0 0.5rem;
}

/* Cookie banner */
.cookie-consent-banner {
  left: 16px;
  right: 16px;
  bottom: 16px;
  width: auto;
  max-width: 760px;
  margin: 0 auto;
  z-index: 1040;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 8px;
  box-shadow: 0 16px 40px rgba(16, 42, 82, 0.22);
}

.cookie-consent-banner .row {
  align-items: center;
  row-gap: 0.75rem;
}

.cookie-consent-banner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Back to top */
.back-to-top {
  z-index: 1035;
  background-color: var(--accent);
  color: var(--brand-deep);
  box-shadow: var(--shadow-md);
}

.back-to-top:hover {
  background-color: #ffd866;
}

/* Legal pages (cookie policy, impressum, terms, privacy): one clean document card */
main.legal-page {
  max-width: 860px;
  margin: 3rem auto !important;
  padding: 3rem 3.25rem !important;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.legal-page > section {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none;
}

.legal-page > section > .container {
  padding: 0;
  max-width: none;
}

.legal-page h1 {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--accent);
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
}

.legal-page li {
  margin-bottom: 0.25rem;
}

.legal-page p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  main.legal-page {
    margin: 1.25rem 12px !important;
    padding: 1.75rem 1.25rem !important;
    border-radius: 18px;
  }
}

/* Header call button */
.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  margin-right: 0.75rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.nav-call:hover,
.nav-call:focus-visible {
  background: #ffd866;
  color: var(--brand-deep);
}

@media (min-width: 992px) {
  .nav-call {
    order: 3;
    margin-left: 0.75rem;
    margin-right: 0;
  }
  .custom-navbar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.18);
  }
}

@media (max-width: 575px) {
  .nav-call {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }
  .nav-call span {
    display: none;
  }
  .custom-navbar .navbar-brand img {
    width: 150px;
    height: auto;
  }
}

/* Secondary (outline) buttons */
.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  background-color: transparent;
}

main > section.bg-light .btn + .btn {
  margin-left: 0.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 404 page */
.not-found {
  padding: 5rem 1rem;
  text-align: center;
}

.not-found-code {
  margin: 0;
  font-family: "DM Serif Text", serif;
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  line-height: 1;
  color: var(--brand);
}

.not-found h1 {
  margin: 0.5rem 0 2rem;
}

/* Related service links on service pages */
.related-links a.area-chip {
  text-decoration: none;
}

.related-links a.area-chip:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Top contact bar (scrolls away; the navbar below it stays sticky) */
.top-bar {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.top-bar a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--accent);
}

.top-bar i {
  color: var(--accent);
  margin-right: 0.5rem;
}

@media (max-width: 767px) {
  .top-bar .container {
    justify-content: center;
  }
  .top-bar-address {
    display: none;
  }
}

/* Contact page: direct contact options */
.contact-options {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.contact-option:hover,
.contact-option:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  transform: translateY(-2px);
}

.contact-option-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.3rem;
}

.contact-option-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-option-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.contact-option-value {
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.4rem);
  font-weight: 700;
  color: var(--brand-deep);
  overflow-wrap: anywhere;
}

@media (max-width: 575px) {
  .contact-option {
    gap: 0.75rem;
    padding: 1rem 0.85rem;
  }
  .contact-option-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  .contact-option-value {
    font-size: 0.92rem;
  }
}

@media (max-width: 575px) {
  .contact-option {
    flex-direction: column;
    text-align: center;
  }
  .contact-option-text {
    align-items: center;
  }
  .contact-option-value {
    font-size: 1rem;
  }
}

.contact-company {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Contact page: map-only card */
.map-card {
  height: 100%;
  min-height: 420px;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* Non-clickable info rows share the card look but don't react to hover */
.contact-option--info:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}



/* The address is long: let it wrap instead of shrinking the type */
.contact-option-value {
  line-height: 1.3;
}

/* Footer logo must never spill into the next column */
.footer img {
  max-width: 100%;
  height: auto;
}

/* Tablet: four order steps as a 2x2 grid instead of four cramped columns */
@media (min-width: 768px) and (max-width: 991px) {
  .order-process .row > .col-md-3 {
    flex: 0 0 auto;
    width: 50%;
  }
}

/* Legal card keeps a side gap on screens narrower than the card */
@media (min-width: 768px) and (max-width: 919px) {
  main.legal-page {
    margin-left: 24px !important;
    margin-right: 24px !important;
  }
}

/* Home service blocks below desktop width: photo on top, text underneath */
@media (max-width: 991px) {
  main > section.bg-light > .row {
    flex-direction: row !important;
  }
  main > section.bg-light > .row > .col-md-6 {
    flex: 0 0 auto;
    width: 100%;
  }
  main > section.bg-light > .row > [class*="slide-in"] {
    order: -1;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  main > section.bg-light .fixed-img {
    height: 380px;
  }
}
