/* ==========================================================
   Magnusson Minds — site.css
   Faithful rebuild of the 2020 WordPress theme
   (magnussonminds_2020) as a dependency-free static site.
   No Bootstrap, no jQuery, no CDN — everything self-hosted.
   ========================================================== */

/* ---------- Fonts ---------- */
/* Body: Hero New (Newlyn) — same files the original theme used. */
@font-face {
  font-family: "Hero New";
  src: url("../fonts/hero-new-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hero New";
  src: url("../fonts/hero-new-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hero New";
  src: url("../fonts/hero-new-super.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
/* Headings: Fraunces Black (SIL OFL) — closest free match to the
   original Adobe Typekit font Bely Display. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0a1c3d;
  --navy-2: #182948;
  --brown: #a06d63;       /* Next step band */
  --brown-btn: #95645a;   /* a hair darker than the original #a06d63 so white button text passes WCAG AA */
  --rust: #a0624f;        /* Feedback band */
  --footer: #a9623f;      /* original #b06945, nudged darker for AA-contrast white text */
  --pink: #ffeeea;
  --mint: #a6c3cd;
  --rule: #707070;
  --white: #fff;

  --font-body: "Hero New", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;

  --gutter: 3rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.89rem;
  letter-spacing: 0.058rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

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

a { color: inherit; }

p { margin: 0 0 1rem; }

h1, h2 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.5rem;
}
h1 { font-size: 4rem; line-height: 5rem; }
h2 { font-size: 3rem; line-height: 4rem; }
h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2rem;
  line-height: 3.5rem;
  letter-spacing: 0.05rem;
  margin: 0 0 0.5rem;
}

strong, b { font-weight: 800; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.5rem 1rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 15px 65px;
  border: 2px solid transparent;
  border-radius: 49px;
  font: inherit;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.button-brown { background: var(--brown-btn); border-color: var(--brown-btn); color: var(--white); }
.button-brown:hover { background: transparent; color: var(--brown-btn); }
.button-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.button-navy:hover { background: transparent; color: var(--navy); }
.button-white { background: var(--white); border-color: var(--white); color: var(--navy); }
.button-white:hover { background: transparent; color: var(--white); }

/* ---------- Language bar ---------- */
.lang-bar {
  padding: 2rem 0 1.34rem;
  line-height: 1.25rem;
  color: var(--navy-2);
  text-align: right;
}
.lang-bar .container { padding-right: calc(var(--gutter) + 2.5rem); }
.lang-bar a { color: #12284c; text-decoration: none; }
.lang-bar a:hover, .lang-bar a[aria-current] { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
  padding: 2.1875rem 0;
  transition: padding .15s ease;
}
.site-header.is-stuck { padding: .65rem 0; }

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

.brand { display: block; line-height: 0; flex: 0 0 auto; }
.brand img { height: 64px; width: auto; transition: height .15s ease; }
.site-header.is-stuck .brand img { height: 35px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li { padding: 0 2rem; }
.main-nav a {
  color: var(--navy-2);
  text-decoration: none;
  text-transform: uppercase;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { font-weight: 800; }

.header-cta { padding: 10px 40px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle .bars {
  width: 1.5rem;
  height: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle .bars span { display: block; height: 3px; background: var(--navy-2); }

/* ---------- Page heads ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  min-height: 455px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem 1.25rem;
}
.page-head > * { position: relative; z-index: 2; }

.head-home {
  background-image: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), url("../img/hero-marble.jpg");
}
.head-home .lead {
  font-size: 2rem;
  line-height: 4.5625rem;
  letter-spacing: 0.05rem;
  margin: 0;
}

/* Why page: mint band. Text is navy (not white as before) — white on
   #a6c3cd was ~1.9:1 contrast and unreadable for many visitors. */
.head-why { background-color: var(--mint); color: var(--navy); }
.head-why .head-list {
  align-self: stretch;
  text-align: left;
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding-left: 30%;
}
.head-why .head-list p {
  font-weight: 400;
  font-size: 1.8125rem;
  line-height: 3.5625rem;
  letter-spacing: 0.05rem;
  margin: 0;
}
.head-why h1 { margin-bottom: .25rem; }

.head-next { background-color: var(--brown); }
.head-next h1 { font-size: 3rem; line-height: 4rem; margin: 0; }

/* Faint logo watermarks (decorative) */
.watermark {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: .1;
  line-height: 0;
}
.watermark img { max-width: none; width: auto; }
.on-dark .watermark img { filter: brightness(0) invert(1); }
.head-why .wm-right  { top: -20px; right: -600px; }
.head-why .wm-left   { top: -120px; left: -1300px; }
.head-why .watermark img { height: 1000px; }
.head-why .watermark img { filter: brightness(0) invert(1); }
.head-why .watermark { opacity: .18; }
.head-next .wm-right { top: 230px; right: -310px; transform: rotate(.75turn); }
.head-next .wm-left  { top: -450px; left: -250px; transform: rotate(.75turn); }
.head-next .watermark img { height: 650px; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-flush { padding: 0; }
.h2-size { font-size: 3rem; line-height: 4rem; }
.section-pink { background: var(--pink); padding: 7.1875rem 0; }

.prose p { padding: 0 var(--gutter); margin: 0; }
.prose p + p { margin-top: 0; }
.prose a:not(.button) { font-weight: 800; color: var(--navy); }

.home-intro .button { margin: 5.625rem 0 0 7.1875rem; }
.center { text-align: center; }
.why-cta { margin-top: 5.625rem; }

/* Home squares */
.squares {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.125rem;
}
.sqr-img {
  border-radius: 20px;
  min-height: 36rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2rem;
}
.sqr-img h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 4rem;
  color: var(--white);
  text-align: center;
  padding: 0 10%;
  margin: 0;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.sqr-road { background-image: linear-gradient(rgba(10,28,61,.28), rgba(10,28,61,.28)), url("../img/road.jpg"); }
.sqr-wood { background-image: linear-gradient(rgba(10,28,61,.22), rgba(10,28,61,.22)), url("../img/wood.jpg"); }
.sqr-text {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 4.5rem;
}
.sqr-text p { margin: 0; }
.sqr-text ul { margin: 0; padding-left: 1.75rem; }

/* Why page feedback tiles */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .625rem;
}
.tile {
  border-radius: 20px;
  min-height: 36rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 2rem;
}
.tile p {
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 3rem;
  margin: 0 0 4rem;
}
.tile-waves { background-image: url("../img/waves.jpg"); color: var(--navy); }
.tile-ocean { background-image: url("../img/ocean.jpg"); color: var(--white); }

/* Next step */
.pricing h2 { margin-bottom: 1rem; }
.pricing p { padding-left: var(--gutter); margin: 0; }

.aside {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  margin: 5.625rem 11.875rem;
  padding-top: 5.625rem;
  border-top: 1px solid var(--rule);
}
.aside-img img { border-radius: 50%; max-width: 422px; width: 100%; }
.aside-lead { font-size: 3.25rem; line-height: 4.5rem; margin-bottom: 1.5rem; }
.aside-right p { font-size: 1.875rem; line-height: 1.4; margin: 0 0 1.25rem; }
.aside-right a { text-decoration: none; color: var(--navy); }
.aside-right a:hover { text-decoration: underline; }

/* Contact */
.contact-title { text-align: center; margin-bottom: 2rem; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.contact-icon {
  display: inline-flex;
  padding: 2rem;
  margin: .75rem;
  border-radius: 65px;
  transition: background-color .15s;
}
.contact-icon img { width: 50px; height: 50px; }
.contact-icon:hover, .contact-icon:focus-visible { background: var(--navy); }
.contact-icon:hover img, .contact-icon:focus-visible img { filter: brightness(0) invert(1); }
.contact-grid p { margin: 0; }
.contact-grid p a { text-decoration: none; }
.contact-grid p a:hover { text-decoration: underline; }

/* Feedback */
.feedback-band {
  position: relative;
  overflow: hidden;
  padding: 9.375rem 0 8.4375rem;
}
.feedback-band > .container { position: relative; z-index: 2; }
.feedback-colleagues { background: var(--rust); color: var(--white); }
.feedback-clients { background: var(--white); }
.feedback-colleagues .watermark { bottom: -30px; right: -350px; }
.feedback-colleagues .watermark img { height: 460px; }
.feedback-clients .watermark { bottom: 7rem; left: -370px; }
.feedback-clients .watermark img { height: 410px; }

.quote {
  margin: 1.375rem 0;
  padding: 2rem;
  border: 1px solid currentColor;
}
.feedback-clients .quote { border-color: var(--navy); }
.quote blockquote { margin: 0 0 1rem; line-height: 1.6; }
.quote blockquote p { margin: 0; }
.head-next h1 span { display: block; }
.text-page .note { font-style: italic; margin: 0 0 1rem; }
.quote figcaption { line-height: 1.25rem; }

/* Other / GDPR text pages */
.text-page { padding: 4rem 0; }
.text-page h1 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2rem;
  line-height: 3rem;
  letter-spacing: .05rem;
  margin-bottom: 1rem;
}
.text-page .prose { padding: 0 7.1875rem; }
.text-page .prose p { padding: 0; margin-top: 2rem; }
.text-page .prose h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.89rem;
  font-weight: 800;
  letter-spacing: .058rem;
  margin: 2rem 0 0;
}
.text-page .prose h2 + p { margin-top: 0; }
.text-page ul { padding-left: 1.25rem; margin: 0; }

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2rem;
  line-height: 3rem;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 3rem;
}
.doc-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.arrow-right { display: inline-flex; align-items: center; }
.arrow-right::before { content: ""; width: 5rem; height: 5px; background: var(--navy); }
.arrow-right::after {
  content: "";
  border-left: 8px solid var(--navy);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  color: var(--white);
  min-height: 320px;
  display: flex;
  align-items: center;
}
.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-logo { line-height: 0; }
.footer-logo img { height: 51px; width: auto; filter: brightness(0) invert(1); }
.footer-nav ul {
  list-style: none;
  display: flex;
  margin: .7rem 5.5rem 0;
  padding: 0;
}
.footer-nav li:not(:last-child)::after { content: "|"; padding: 0 1.5rem; }
.footer-nav a { color: var(--white); text-decoration: none; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { font-weight: 800; }
.footer-linkedin { line-height: 0; }
.footer-linkedin img { width: 24px; height: 24px; filter: brightness(0) invert(1); }

/* ---------- Large screens (original sizes) ---------- */
@media (min-width: 1441px) {
  body { font-size: 1.25rem; line-height: 2.4375rem; }
  h1 { font-size: 4.8rem; line-height: 6rem; }
  h2 { font-size: 4rem; line-height: 5rem; }
  h3 { font-size: 2.8rem; line-height: 4.5rem; }
  .h2-size { font-size: 4rem; line-height: 5rem; }
  .head-next h1 { font-size: 4rem; line-height: 5rem; }
  .tile p { font-size: 3.25rem; line-height: 4rem; margin-bottom: 6rem; }
  .sqr-text { padding: 0 9rem; }
}
@media (min-width: 1920px) {
  :root { --gutter: 8.1875rem; }
  .prose p { padding: 0 7.1875rem; }
  .section { padding: 9.375rem 0 8.4375rem; }
  .sqr-img h2 { font-size: 3.75rem; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1200px) {
  .main-nav li { padding: 0 1rem; }
  .aside { margin: 5.625rem 2rem; }
}

@media (max-width: 1024px) {
  .squares, .tiles { grid-template-columns: 1fr; }
  .squares .sqr-3 { order: 4; }
  .squares .sqr-4 { order: 3; }
  .sqr-text { padding: 0 2rem; }
  .home-intro .button { margin: 2rem 0 0 var(--gutter); }
  .contact-grid { grid-template-columns: 1fr; }
  .head-why .wm-left, .head-next .wm-left { display: none; }
  .head-why .wm-right { top: -40px; right: -70px; }
  .head-why .watermark img { height: 700px; }
  .head-next .wm-right { top: 160px; right: -210px; }
  .head-next .watermark img { height: 350px; }
  .text-page .prose { padding: 0 2rem; }
  .head-why .head-list { padding-left: 15%; }
}

/* Collapsible menu below 992px (as Bootstrap's navbar-expand-lg did) */
@media (max-width: 991px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; order: 3; }
  .header-cta { order: 2; margin-left: auto; }
  .main-nav { order: 4; flex-basis: 100%; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 1rem 0 .5rem; }
  .main-nav li { padding: .35rem 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .header-cta { display: none; }
  .brand img, .site-header.is-stuck .brand img { height: 36px; }
  .site-header { padding: .75rem 0; }
  .lang-bar { padding: 1.0625rem 0; }
  .lang-bar .container { padding-right: var(--gutter); }

  body { line-height: 1.75rem; }
  h1 { font-size: 2.25rem; line-height: 2.75rem; }
  h2 { font-size: 1.85rem; line-height: 2.4rem; }
  h3 { font-size: 1.5rem; line-height: 2rem; }
  .h2-size { font-size: 1.85rem; line-height: 2.4rem; }
  .head-home .lead { font-size: 1.45rem; line-height: 2.2rem; }
  .head-next h1 { font-size: 1.85rem; line-height: 2.5rem; }
  .page-head { min-height: 350px; }
  .head-why .head-list { padding-left: 0; text-align: center; }
  .head-why .head-list p { font-size: 1.1rem; line-height: 1.9rem; }

  .section, .section-pink, .feedback-band, .text-page { padding: 2.5rem 0; }
  .prose p, .pricing p { padding: 0; }
  .prose p + p { margin-top: 1rem; }
  .home-intro .button, .why-cta { margin: 2rem 0 0; }
  .button { padding: 15px 50px; }

  .sqr-img, .tile { min-height: 24rem; }
  .sqr-img h2 { font-size: 2rem; line-height: 2.75rem; padding: 0; }
  .sqr-text { padding: 0; }
  .tile p { font-size: 1.85rem; line-height: 2.4rem; margin-bottom: 3rem; }

  .aside { grid-template-columns: 1fr; margin: 2.5rem 0; padding-top: 2.5rem; text-align: center; }
  .aside-img img { max-width: 260px; }
  .aside-lead { font-size: 1.85rem; line-height: 2.5rem; }
  .aside-right p { font-size: 1.2rem; }

  .text-page h1, .doc-link { font-size: 1.5rem; line-height: 2rem; }
  .text-page .prose { padding: 0; }
  .arrow-right::before { width: 3rem; }

  .site-footer { padding: 2.5rem 0; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-nav ul { flex-direction: column; align-items: center; margin: 0; gap: .5rem; }
  .footer-nav li:not(:last-child)::after { content: none; }
}

@media (max-width: 576px) {
  :root { --gutter: 1.25rem; }
  .page-head { padding: 2.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .lang-bar, .site-header, .site-footer, .watermark { display: none; }
  .page-head { color: var(--navy); min-height: 0; background: none !important; }
}
