/* =========================================================
   MACS HOLDING – Stylesheet
   Rebuild of the former Contao theme (Eclipse/PowerBiz)
   ========================================================= */

/* ---------- Fonts (self-hosted, GDPR-compliant) ---------- */
/* Light: same webfont build as the old theme, so line breaks match exactly */
@font-face { font-family: "Open Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/opensans-light-original.woff) format("woff"), url(../fonts/open-sans-300.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/open-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/open-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/open-sans-700.woff2) format("woff2"); }

/* ---------- Variables ---------- */
:root {
  --red: #cc0c17;
  --red-dark: #a8090f;
  --gray: #878786;
  --text: #555;
  --dark: #3b3c42;
  --footer: #3e3e3e;
  --light: #f5f5f5;
  --white: #fff;
  --container: 1170px;
  --gutter: 30px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 300;
  font-size: 25px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4, h5, h6 { font-weight: 300; color: var(--dark); margin: 0 0 .5em; line-height: 1.3; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.narrow { max-width: 880px; }
.text-center { text-align: center; }
.mt-l { margin-top: 40px; }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.button {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 17px;
  font-weight: 300;
  padding: 15px 10px;
  min-width: 150px;
  text-align: center;
  transition: background .2s;
}
.button:hover { background: var(--red-dark); color: var(--white); }

/* ---------- Topbar ---------- */
.topbar { font-size: 14px; line-height: 40px; color: #7f7f7f; background: #f9f9f9; }
.topbar .container { display: flex; gap: 15px; }
.topbar i { margin: 0 4px 0 6px; }
.topbar a { display: inline-block; padding: 0 8px; transition: background .3s; }
.topbar a i { margin: 0 5px; }
.topbar a:hover { background: var(--red); color: var(--white); }

/* ---------- Header / Navigation ---------- */
.header { background: var(--white); position: relative; z-index: 100; }
/* Compact header: fixed at the top once the full header has scrolled away */
.header.is-scrolled { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 0 2px 2px rgba(0,0,0,.1); animation: header-in .3s ease; }
.header.is-scrolled + main { margin-top: 127px; }  /* reserves the space so the content does not jump */
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 127px; }
.header.is-scrolled .container { min-height: 70px; }
.logo img { width: 270px; }
.header.is-scrolled .logo img { width: 170px; }

.mainnav > ul { list-style: none; margin: 0; padding: 0; display: flex; }
.mainnav li { position: relative; }
.mainnav > ul > li > a {
  display: block;
  padding: 50px 13px;
  transition: color .2s;
  font-size: 16px;
  font-weight: 400;
  color: #696969;
}
.mainnav a:hover, .mainnav a.active { color: var(--red); }
.header.is-scrolled .mainnav > ul > li > a { padding-top: 24px; padding-bottom: 24px; }
.mainnav ul ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 230px;
  background: var(--white);
  border-top: 2px solid var(--red);
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.mainnav li:hover > ul, .mainnav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.mainnav ul ul a { display: block; padding: 0 20px; line-height: 32px; font-size: 14.4px; color: #393939; }

.nav-toggle { display: none; }

/* ---------- Slider ---------- */
.slider { position: relative; overflow: hidden; background: var(--light); aspect-ratio: 1240 / 720; max-height: 720px; width: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .slide-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.slide .slide-caption--right { align-items: flex-end; }
.slide-title, .slide-link {
  background: var(--red);
  color: var(--white);
  transform: translateX(-40px);
  opacity: 0;
  transition: transform .6s cubic-bezier(.34,1.56,.64,1), opacity .6s;
}
.slide-title { font-size: 45px; font-weight: 300; line-height: 1.3; padding: 6px 12px; }
.slide-link { font-size: 20px; font-weight: 700; padding: 6px 30px; transition-delay: .2s; }
.slide-title:hover, .slide-link:hover { color: var(--white); }
.slide.is-active .slide-title, .slide.is-active .slide-link { transform: none; opacity: 1; }
.slider-arrow {
  position: absolute; top: 50%; z-index: 2;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.25);
  color: var(--white); font-size: 26px; line-height: 44px;
  cursor: pointer; opacity: 0; transition: opacity .3s, background .2s;
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--red); }
.slider-arrow--prev { left: 20px; }
.slider-arrow--next { right: 20px; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section--gray { background: var(--light); }
.section--red { background: var(--red); color: var(--white); }
.section-title { font-size: 45px; text-align: center; margin-bottom: 25px; }
.section-title--small { font-size: 35px; }
.section-lead { font-size: 28px; text-align: center; color: var(--dark); margin: 0 0 50px; }

/* M A C S */
.iconboxes { text-align: center; }
.iconbox i { display: block; height: 52px; line-height: 52px; color: #c70510; font-size: 32px; margin-bottom: 12px; }
.iconbox h2 { font-size: 35px; color: var(--dark); margin-bottom: 8px; }
.iconbox h2 span { color: var(--red); font-weight: 700; }
.iconbox p { font-size: 20px; color: var(--dark); margin: 0; line-height: 1.4; }
.iconbox--and { padding-top: 64px; }  /* same height as the headings next to the icons */

/* Image tiles */
.imagebox {
  position: relative;
  display: block;
  height: 300px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.imagebox span {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  padding: 8px 22px;
  background: rgba(204, 12, 23, .75);
  color: var(--white);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  transition: background .3s;
}
.imagebox::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .3s; }
.imagebox:hover::after { background: rgba(0,0,0,.12); }
.imagebox:hover span { background: var(--red); }

/* Virtual tour */
.tour img { width: 100%; transition: opacity .2s; }
.tour:hover img { opacity: .92; }

/* Facts & figures */
.facts { text-align: center; padding-top: 30px; }
.facts .section-title, .facts h4 { color: var(--white); }
.facts-heading { position: relative; margin-bottom: 30px; }
.facts-watermark {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 110px; line-height: 1; white-space: nowrap;
  color: rgba(0,0,0,.08);
  pointer-events: none;
}
.facts-heading .section-title { position: relative; margin: 0; padding: 25px 0; }
.fact i { font-size: 28px; }
.fact-number { display: block; font-size: 56px; font-weight: 300; line-height: 1.4; }
.fact hr { border: 0; border-top: 2px solid var(--white); width: 30px; margin: 6px auto 10px; }
.fact h4 { font-size: 22.5px; margin: 0; }

/* ---------- Subpages ---------- */
.text-red { color: var(--red); }
.mt-xl { margin-top: 60px; }
.section--tight { padding: 60px 0; }

/* Page header image with title */
.pagehead {
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.pagehead h1 {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 45px;
  font-weight: 300;
  padding: 6px 14px;
  margin: 0;
}

/* Breadcrumb */
/* Variants: title at the bottom / right, medium height */
.pagehead--bottom { align-items: flex-end; padding-bottom: 130px; }
.pagehead--right .container { text-align: right; }
.pagehead--large { height: 450px; }
.pagehead--large.pagehead--bottom { padding-bottom: 50px; }

/* Legal texts (imprint, privacy policy) */
.legal { font-size: 14px; line-height: 1.6; }
.legal h1 { font-size: 45px; margin-bottom: 10px; }
.legal h2 { font-size: 35px; margin: 1.2em 0 .5em; }
.legal h3 { font-size: 25px; margin: 1.2em 0 .5em; }
.legal p { margin: 0 0 1em; }
.legal table { border-collapse: collapse; margin-bottom: 1em; }
.legal td { padding: 0 20px 0 0; vertical-align: top; }
.legal ul { padding-left: 1.4em; }
.legal-box { border: 2px solid #000; padding: 0 1em; margin: 1em 0; }

.breadcrumb { font-size: 13.5px; color: var(--text); border-bottom: 1px solid #eee; padding: 10px 0; }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb a::after { content: "\f105"; font-family: FontAwesome; margin: 0 8px; }

/* Two columns: heading + image | text */
.two-col { display: flex; gap: 5vw; align-items: stretch; justify-content: space-between; }
.two-col-inner { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.two-col-inner h2 { font-size: 35px; }
.two-col-inner p { margin: 0; }
.two-col-inner img { width: 100%; }
.emphasized { border-left: 5px solid var(--red); padding-left: 1rem; font-weight: 800; }
.grey-box { background: var(--dark); color: var(--white); padding: 5rem; }
.grey-box-number { display: block; font-size: 125px; line-height: 1.1; margin-bottom: 20px; }

/* Image with overlapping red box */
.overlap-section { position: relative; display: flow-root; background: var(--light); padding-bottom: 60px; }
.overlap-image { position: absolute; left: 0; right: 0; top: 0; height: 80%; background-size: cover; background-position: center top; }
.red-box { position: relative; background: var(--red); color: var(--white); padding: 2rem 4rem 4rem; margin-top: 25rem; }
.red-box h2 { color: var(--white); text-transform: uppercase; font-size: 35px; font-weight: 700; border-bottom: 2px solid var(--white); padding: 2rem 0 1rem; text-align: center; }
.red-box ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 3rem; }
.red-box li { padding: 1rem 1rem 1rem 1.6rem; font-weight: 700; position: relative; break-inside: avoid; }
.red-box li::before { content: "•"; position: absolute; left: .4rem; }

/* Image gallery: greyscale, colour on hover */
.gallery { gap: 20px; }
.gallery a { display: block; border: 4px solid #ccc; overflow: hidden; aspect-ratio: 3 / 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s, transform .4s; }
.gallery a:hover img, .gallery a:focus img { filter: none; transform: scale(1.04); }
.gallery--color img { filter: none; }  /* Sustainability page: thumbnails in colour, as in the original */

/* Contact banner */
.cta-banner { background: var(--dark); color: var(--white); padding: 50px 0; }
.cta-banner .container { display: flex; align-items: center; justify-content: center; gap: 60px; flex-wrap: wrap; }
.cta-title { font-size: 35px; margin: 0; }
.button-outline { border: 2px solid var(--white); color: var(--white); padding: 12px 28px; font-size: 13.5px; font-weight: 700; transition: background .2s, color .2s; }
.button-outline:hover { background: var(--white); color: var(--dark); }

/* Text pages with inline images (social engagement, sustainability, …) */
.prose { text-align: center; max-width: 1200px; }
.prose::after { content: ""; display: block; clear: both; }
.prose h1 { font-size: 45px; margin-bottom: 30px; }
.prose h2 { font-size: 35px; }
.prose h3 { font-size: 28px; }
.prose img { display: inline; }
.left-half-img, .right-half-img { width: 49%; height: auto; margin-bottom: 20px; }
.left-half-img { float: left; margin-right: 2%; }
.right-half-img { float: right; margin-left: 2%; }
.right-half-txt, .left-half-txt, .macs-text-leftaligned { text-align: left; }
.prose .button { display: inline-block; min-width: 0; margin: 5px; }
.button.macs-secondary-button { color: var(--dark); border: 1px solid var(--dark); background: var(--white); }
.button.macs-secondary-button:hover { color: var(--white); background: var(--dark); }
.prose h3 strong { font-weight: inherit; }
.prose h1 strong { font-weight: inherit; }
.prose h1 + h1 { margin-top: -20px; }
.section--image { background-size: cover; background-position: center; }
.section--image { padding: 80px 0 100px; }
.section--gray.quote, .section--gray:has(.gallery) { background: #f7f7f7; }
.prose .gallery { text-align: left; }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

/* Tabs (business areas) */
.tab-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.tab-list a { display: block; padding: 22px 15px; text-align: center; font-size: 16px; color: var(--gray); border-left: 1px solid #ddd; }
.tab-list a:first-child { border-left: 0; }
.tab-list a:hover { color: var(--red); }
.tab-list a.is-active { background: var(--red); color: var(--white); }
.tab-panel { padding: 60px 15px 0; }
.tab-panel[hidden] { display: none; }

/* Company tiles: logo, photo on hover */
.company-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 1440px; margin: 0 auto; }
.company-tile { position: relative; display: block; flex: 0 1 calc(25% - 15px); border: 4px solid #ccc; overflow: hidden; }
.company-tile img { width: 100%; display: block; }
.company-tile-hover { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.company-tile:hover .company-tile-hover, .company-tile:focus .company-tile-hover { opacity: 1; }
.company-tile span { position: absolute; left: 0; bottom: 0; background: #666; color: var(--white); font-size: 13px; padding: 4px 12px; line-height: 1.3; }

/* Careers: benefit boxes */
.narrow-text { max-width: 1000px; }
.narrow-text p { font-size: 14px; }
.benefits-section { padding: 40px 0; }
.benefits { gap: 25px; }
.benefit { position: relative; background: var(--white); padding: 21px; font-size: 13px; color: var(--gray); }
.benefit img { width: 50px; height: 50px; margin-bottom: 20px; }
.benefit-number { position: absolute; top: 14px; right: 18px; font-size: 60px; line-height: 1; color: #eee; }
.benefit h4 { font-size: 22px; color: var(--dark); min-height: 2.6em; margin-bottom: 15px; }
.benefit p { margin: 0 0 1em; }

/* Company pages */
.company-name { font-size: 45px; margin-bottom: 25px; }
.section--company { padding: 50px 0 65px; }
.section--company .container { max-width: 1187px; }  /* content width 1157 px, as in the original */
.company-back { margin: 0; }
.company { display: grid; grid-template-columns: 568fr 566fr; gap: 23px; align-items: start; }  /* column ratio 568 : 566, as in the original */
.company-text { font-size: 15px; line-height: 1.5; font-weight: 300; }
.company-text::after { content: ""; display: block; clear: both; }
.company-logo { float: left; width: 45%; margin: 0 5% 3% 0; }
.company-text p { margin: 0 0 1em; }
.company-text h2 { font-size: 35px; line-height: 1.3; margin: 0 0 25px; }
.company-text strong, .company-text b { font-weight: 700; }
.company-links { clear: both; }
.company-links .button, .company-back .button { display: block; width: fit-content; min-width: 190px; font-size: 13.5px; font-weight: 700; line-height: 22.5px; padding: 14px; margin: 0 0 15px; }
.company-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.company-gallery a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.company-gallery img { width: 100%; height: 100%; object-fit: cover; }
.company-gallery i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 42px; color: var(--white); opacity: 0; transition: opacity .3s; }
.company-gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(204,12,23,.6); opacity: 0; transition: opacity .3s; }
.company-gallery a:hover::after, .company-gallery a:hover i { opacity: 1; }
.company-gallery i { z-index: 1; }

/* Kochler Immobilien */
.estate-intro { font-size: 14px; }
.estate-intro ul, .estate-columns ul { padding-left: 1.2em; margin: 0 0 1em; }
.estate-energy { height: 37.5vw; max-height: 720px; background-size: cover; background-position: center; }
.estate-columns { display: flex; justify-content: center; align-items: flex-start; font-size: 14px; }
.estate-columns .halfcolumn { flex: 1; padding: 20px; }
.estate-columns h4 { font-size: 22.5px; text-align: center; }
.estate-columns p { text-align: center; }
.estate-columns img { display: inline-block; }
.estate-locations { display: flex; flex-direction: column; gap: 40px; }
.estate-location { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 20px; }
.estate-location-text { text-align: right; font-size: 18px; }
.estate-location-text p { margin: 0; }
.estate-location-place { color: var(--red); }
.estate-location-images { display: grid; grid-template-columns: repeat(3, 1fr); }
.estate-location-images img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.estate-location--right { grid-template-columns: 2fr 1fr; }
.estate-location--right .estate-location-text { order: 2; text-align: left; }
.estate-location--right .estate-location-images { order: 1; }
.estate-company { display: grid; grid-template-columns: 252px 1fr; column-gap: 40px; align-content: center; font-size: 14px; }
.estate-company p:first-child { grid-row: span 2; margin: 0; }
.estate-company h4 { font-size: 22.5px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.contact-address { font-size: 14px; }
.contact-address h4 { font-size: 22.5px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  width: 100%; border: 0; background: #f2f2f2; padding: 10px 14px;
  font: inherit; font-size: 13px; color: var(--dark);
}
.contact-form textarea { resize: vertical; min-height: 220px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--red); outline-offset: 0; }
.form-explanation p { margin: 0 0 1em; }
.form-explanation-title { margin-bottom: 0 !important; }
.form-check { border: 1px solid #ddd; margin: 0; padding: 14px; position: relative; }
.form-check legend { background: var(--red); color: var(--white); padding: 4px 10px; font-size: 13px; }
.form-check label { cursor: pointer; }
.form-submit { align-self: flex-start; min-width: 100px; padding: 10px 24px; font-size: 13px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; }
/* Job listings */
.jobs-badges { display: flex; justify-content: flex-end; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.jobs-badges img { height: 95px; width: auto; }
.jobs-badges a:first-child img { height: 90px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lightbox img { max-width: 95%; max-height: 95%; width: auto; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; background: none; color: var(--white); font-size: 36px; cursor: pointer; padding: 10px 16px; }
.lightbox-close { top: 10px; right: 10px; }
.lightbox-nav--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-nav--next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--footer); color: rgba(255,255,255,.6); font-size: 14px; padding-top: 50px; }
.footer h4 { color: rgba(255,255,255,.8); font-size: 22.5px; margin-bottom: 18px; }
.footer a { color: rgba(255,255,255,.6); }
.footer a:hover { color: var(--white); }
.footer strong { font-weight: 700; }
.footer-cols { grid-template-columns: 1fr 2fr 1fr 1fr; }
.contact-list, .link-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 6px; }
.contact-list i { color: var(--red); width: 18px; margin-right: 6px; }
.link-list li { border-bottom: 1px solid rgba(255,255,255,.1); }
.link-list a { display: block; padding: 8px 0 8px 16px; position: relative; }
.link-list a::before { content: "\f105"; font-family: FontAwesome; position: absolute; left: 2px; }
.totop {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  background: #555; color: #ddd;
  text-align: center; line-height: 34px; font-size: 18px;
}
.totop:hover { background: var(--red); color: var(--white); }

.footer-awards { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.award-finalist { width: 100px; }
.award-kununu { display: flex; gap: 10px; }
.award-kununu img { width: 105px; }

.bottombar { background: var(--red); padding: 20px 0; font-size: 14px; color: var(--white); }
.bottombar a { color: var(--white); }
.bottombar a:hover { color: var(--white); text-decoration: underline; }
.bottombar .container { display: flex; justify-content: space-between; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4, .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .facts-watermark { font-size: 60px; }

  .nav-toggle {
    display: block;
    width: 44px; height: 44px;
    border: 0; background: none; cursor: pointer; padding: 10px;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; height: 2px; width: 24px; background: var(--dark);
    position: relative; transition: transform .2s, background .2s;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
  .nav-toggle span::before { top: -7px; }
  .nav-toggle span::after { top: 7px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

  .header .container { flex-wrap: wrap; min-height: 80px; }
  .logo img { width: 180px; }
  .header.is-scrolled .logo img { width: 150px; }
  .header.is-scrolled .container { min-height: 70px; }
  .header.is-scrolled .mainnav > ul > li > a { padding: 10px 0; }
  .header.is-scrolled + main { margin-top: 80px; }
  .nav-open .mainnav { max-height: calc(100vh - 80px); overflow-y: auto; }
  .mainnav { display: none; width: 100%; padding-bottom: 15px; }
  .nav-open .mainnav { display: block; }
  .mainnav > ul { flex-direction: column; }
  .mainnav > ul > li > a { padding: 10px 0; border-bottom: 1px solid #eee; }
  .mainnav ul ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 15px; }
  .mainnav ul ul a { padding: 6px 0; }
}

@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4, .footer-cols { grid-template-columns: 1fr; }
  body { font-size: 17px; }
  .iconbox p { font-size: 17px; }
  .iconbox--and { padding-top: 0; }
  .section { padding: 40px 0; }
  .section-title { font-size: 30px; }
  .section-lead { font-size: 19px; }
  .section-lead br { display: none; }
  .topbar { line-height: 30px; }
  .topbar .container { flex-direction: column; gap: 0; }
  .topbar a { padding-left: 0; }
  .slider { aspect-ratio: 4 / 3; }
  .slide-title { font-size: 22px; }
  .slide-link { font-size: 15px; padding: 5px 18px; }
  .slide .slide-caption { bottom: 8%; }
  .slider-arrow { display: none; }
  .imagebox { height: 220px; }
  .pagehead, .pagehead--large { height: 220px; padding-bottom: 20px; }
  .contact { grid-template-columns: 1fr; gap: 30px; }
  .company { grid-template-columns: 1fr; }
  .estate-columns { flex-direction: column; }
  .estate-location, .estate-location--right { grid-template-columns: 1fr; }
  .estate-location-text, .estate-location--right .estate-location-text { order: 0; text-align: center; }
  .estate-company { grid-template-columns: 1fr; text-align: center; }
  .estate-company img { margin: 0 auto; }
  .company-name { font-size: 30px; }
  .company-logo { width: 60%; float: none; margin: 0 0 15px; }
  .tab-list { grid-template-columns: 1fr; }
  .tab-list a { border-left: 0; border-top: 1px solid #ddd; padding: 14px; }
  .tab-panel { padding-top: 30px; }
  .company-tile { flex-basis: 100%; }
  .left-half-img, .right-half-img { float: none; display: block; width: 100%; margin: 0 0 20px; }
  .right-half-txt, .left-half-txt, .macs-text-leftaligned { text-align: center; }
  .prose h1 { font-size: 28px; }
  .jobs-badges { justify-content: center; }
  .jobs-badges img { height: 70px; }
  .jobs-badges a:first-child img { height: 66px; }
  .legal h1 { font-size: 30px; }
  .legal h2 { font-size: 24px; }
  .legal h3 { font-size: 19px; }
  .legal { overflow-wrap: anywhere; }
  .pagehead h1 { font-size: 26px; }
  .two-col { flex-direction: column; gap: 2rem; }
  .two-col-inner h2 { font-size: 26px; }
  .grey-box { padding: 2.5rem; }
  .grey-box-number { font-size: 70px; }
  .red-box { margin-top: 12rem; padding: 1rem 1.5rem 2rem; }
  .red-box ul { columns: 1; }
  .red-box li { padding: .5rem 0 .5rem 1.2rem; }
  .red-box li::before { left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cta-banner .container { flex-direction: column; gap: 20px; text-align: center; }
  .cta-title { font-size: 26px; }
  .facts-watermark { display: none; }
  .footer-awards { flex-direction: column; align-items: flex-start; }
  .bottombar .container { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
