/* =========================================================
   Care At Work - Stylesheet
   Design source: Figma file TqiSqtaXHXwWMpDNbHfFzx (node 1:47)
   Desktop is built 1:1; tablet/mobile reflow via breakpoints.
   ========================================================= */

:root {
  --c-navy:        #1b263b;
  --c-navy-90:     rgba(27, 38, 59, 0.9);
  --c-teal:        #00a09c;
  --c-cream:       #f2f1ed;
  --c-white:       #ffffff;
  --c-white-90:    rgba(255, 255, 255, 0.9);
  --c-white-20:    rgba(255, 255, 255, 0.2);
  --c-white-40:    rgba(255, 255, 255, 0.4);
  --c-border-card: #5c6982;
  --c-border-form: #cdcdcd;
  --c-text-muted:  #a0a0a0;
  --c-placeholder: #919191;
  --c-checkbox:    #bababa;

  --shadow-btn:    3px 4px 0 0 rgba(27, 38, 59, 0.2);
  --shadow-btn-lt: 3px 4px 0 0 rgba(27, 38, 59, 0.1);

  --radius-card:   25px;
  --radius-input:  15px;
  --radius-pill:   100px;

  --container:     1216px;
  --gutter:        152px;

  --font-body:     'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-form:     'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-navy);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* WP wrapper neutralisering: native block ska ärva vår layout exakt */
.wp-site-blocks { margin: 0; padding: 0; }
.wp-site-blocks > * { margin: 0; }
main.wp-block-group { padding: 0; }
/* Ta bort Gutenberg block-gap (24px) ENDAST mellan top-level sektioner
   (hero, services, benefits, contact). Children inom sektioner behåller
   sin egen typografi-margin (.hero-lead, .benefits-list etc). */
main.wp-block-group > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-site-blocks > .wp-block-template-part { margin: 0 !important; }
:where(.wp-site-blocks) > * { margin-block-start: 0; margin-block-end: 0; }
/* Inom våra section-wrappers ska vi INTE överrida margins - den native
   marginens från vercel CSS (.hero-lead margin-bottom: 32px, .benefits-list
   margin: 0 0 40px, .contact h2 margin-bottom: 56px etc) ska gälla.
   theme.json blockGap=0 säkerställer att Gutenberg inte lägger på extra 24px. */
/* wp-block-group ska aldrig ha egen padding/margin om vi inte säger det */
.hero.wp-block-group,
.services.wp-block-group,
.benefits.wp-block-group,
.contact.wp-block-group,
.site-footer.wp-block-group { padding: 0; }
.hero.wp-block-group { /* hero behåller original padding=0, det är .hero-inner som har container-padding */ }
.services.wp-block-group { padding: 96px 0; }
.contact.wp-block-group { padding: 140px 0 160px; }
.site-footer.wp-block-group { padding: 96px 0 32px; }
/* Native block (.wp-block-heading, .wp-block-list etc) ärver vår styling */
.wp-block-heading { margin: 0; }
.wp-block-list { padding: 0; }
.wp-block-list > li { margin: 0; }

/* ---------- Buttons / links ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 47px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 0;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2),
              box-shadow .25s ease,
              color .25s ease;
}

.btn img {
  width: 14px;
  height: 14px;
  position: relative;
  z-index: 1;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2);
}

/* shimmer fill that slides in on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bg, var(--c-teal));
  transition: background .25s ease;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover-bg, #008e8a);
  transform: translateX(-101%);
  transition: transform .35s cubic-bezier(.65, 0, .35, 1);
}

.btn:hover::after,
.btn:focus-visible::after { transform: translateX(0); }

.btn:hover,
.btn:focus-visible {
  transform: translate(-1px, -2px);
  box-shadow: 6px 8px 0 0 rgba(27, 38, 59, 0.25);
}

.btn:hover img,
.btn:focus-visible img { transform: translateX(4px); }

.btn:active { transform: translate(0, 0); transition-duration: .08s; }

.btn span { position: relative; z-index: 1; }

.btn-primary {
  --btn-bg: var(--c-teal);
  --btn-hover-bg: #00b8b3;
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}

.btn-light {
  --btn-bg: var(--c-cream);
  --btn-hover-bg: #ffffff;
  color: var(--c-navy);
  box-shadow: var(--shadow-btn-lt);
}

.btn-light:hover,
.btn-light:focus-visible {
  box-shadow: 6px 8px 0 0 rgba(27, 38, 59, 0.15);
}

/* =========================================================
   Native wp:button-block mappning till våra btn-varianter
   Sätter background DIREKT på .wp-block-button__link (inte via ::before)
   för att undvika dubbel box-shadow + outline från wp-element-button.
   ========================================================= */

/* Containern wp-block-buttons */
.wp-block-buttons { display: inline-flex; flex-wrap: wrap; gap: 28px; align-items: center; margin: 0; }
.wp-block-buttons.is-layout-flex { gap: 28px; }
.wp-block-button { margin: 0; box-shadow: none !important; background: transparent !important; }

/* Reset av wp-element-button och .wp-block-button__link */
.wp-block-button .wp-block-button__link,
.wp-block-button .wp-block-button__link.wp-element-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 47px;
  padding: 0 22px;
  border: 0 !important;
  outline: 0 !important;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  color: inherit;
  box-shadow: none;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2),
              box-shadow .25s ease,
              background-color .25s ease,
              color .25s ease;
}

.wp-block-button .wp-block-button__link:focus,
.wp-block-button .wp-block-button__link:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 3px;
}

/* btn-primary: teal pill + vit pil */
.wp-block-button.btn-primary .wp-block-button__link,
.wp-block-button.btn-primary .wp-block-button__link.wp-element-button {
  background: var(--c-teal) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-btn);
}
.wp-block-button.btn-primary .wp-block-button__link:hover {
  background: #00b8b3 !important;
  transform: translate(-1px, -2px);
  box-shadow: 6px 8px 0 0 rgba(27, 38, 59, 0.25);
}
.wp-block-button.btn-primary .wp-block-button__link::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url('arrow-right-white.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2);
}
.wp-block-button.btn-primary .wp-block-button__link:hover::after { transform: translateX(4px); }

/* btn-light: cream pill + mörk pil */
.wp-block-button.btn-light .wp-block-button__link,
.wp-block-button.btn-light .wp-block-button__link.wp-element-button {
  background: var(--c-cream) !important;
  color: var(--c-navy) !important;
  box-shadow: var(--shadow-btn-lt);
}
.wp-block-button.btn-light .wp-block-button__link:hover {
  background: #ffffff !important;
  transform: translate(-1px, -2px);
  box-shadow: 6px 8px 0 0 rgba(27, 38, 59, 0.15);
}
.wp-block-button.btn-light .wp-block-button__link::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url('arrow-right-dark.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2);
}
.wp-block-button.btn-light .wp-block-button__link:hover::after { transform: translateX(4px); }

/* link-teal: bara teal text, ingen pill, ingen pil */
.wp-block-button.link-teal .wp-block-button__link,
.wp-block-button.link-teal .wp-block-button__link.wp-element-button {
  background: none !important;
  padding: 0 0 2px;
  height: auto;
  color: var(--c-teal) !important;
  font-size: 18px;
  font-weight: 400;
  box-shadow: none;
  position: relative;
  display: inline-block;
}
.wp-block-button.link-teal .wp-block-button__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.65, 0, .35, 1);
  width: auto;
}
.wp-block-button.link-teal .wp-block-button__link:hover::after { transform: scaleX(1); }
.wp-block-button.link-teal .wp-block-button__link:hover {
  background: none !important;
  transform: none;
  box-shadow: none;
}

/* link-teal-underline: service-card "Kontakta oss →" */
.wp-block-button.link-teal-underline .wp-block-button__link,
.wp-block-button.link-teal-underline .wp-block-button__link.wp-element-button {
  background: none !important;
  padding: 0 0 4px;
  height: auto;
  color: var(--c-teal) !important;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
  position: relative;
  width: max-content;
  gap: 6px;
}
.wp-block-button.link-teal-underline .wp-block-button__link::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.65, 0, .35, 1);
}
.wp-block-button.link-teal-underline .wp-block-button__link:hover::before { transform: scaleX(1); }
.wp-block-button.link-teal-underline .wp-block-button__link::after {
  content: '→';
  display: inline-block;
  background: none;
  width: auto;
  height: auto;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2);
}
.wp-block-button.link-teal-underline .wp-block-button__link:hover {
  background: none !important;
  transform: none;
  box-shadow: none;
}
.service-card:hover .wp-block-button.link-teal-underline .wp-block-button__link::after,
.wp-block-button.link-teal-underline .wp-block-button__link:hover::after { transform: translateX(4px); }

/* Service-card link visas vid hover */
.service-card .wp-block-buttons,
.service-card .wp-block-button {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.service-card:hover .wp-block-buttons,
.service-card:hover .wp-block-button,
.service-card:focus-within .wp-block-buttons,
.service-card:focus-within .wp-block-button {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.link-teal {
  color: var(--c-teal);
  font-size: 18px;
}

.link-teal-underline,
.link-white-underline {
  font-weight: 600;
  font-size: 16px;
}

.link-teal-underline { color: var(--c-teal); }
.link-white-underline { color: var(--c-white); }

/* Animated underline hover for content links */
.link-teal,
.primary-nav ul a,
.primary-nav__list a,
.footer-link,
.person-contact a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.link-teal::after,
.primary-nav ul a::after,
.primary-nav__list a::after,
.footer-link::after,
.person-contact a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.65, 0, .35, 1);
}

.link-teal:hover::after,
.primary-nav ul a:hover::after,
.primary-nav ul a:focus-visible::after,
.primary-nav__list a:hover::after,
.primary-nav__list a:focus-visible::after,
.footer-link:hover::after,
.footer-link:focus-visible::after,
.person-contact a:hover::after,
.person-contact a:focus-visible::after { transform: scaleX(1); }

/* Legacy .link-teal-underline (utan wp-block-button prefix) - styles flyttade
   till wp-block-button-varianten nedan. Behåller bara minimal class för
   layout om någon icke-block-version av link används någonstans. */
.link-teal-underline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  margin: 0 0 .75rem;
}

.eyebrow--dark { color: var(--c-text-muted); }

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  background: var(--c-navy);
  height: 104px;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: height .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  height: 68px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.site-header .header-inner {
  position: relative;
  max-width: none;
  height: 100%;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: padding .25s ease;
}

.site-header.is-scrolled .header-inner { padding: 0 22px; }

.brand img { transition: height .25s ease, width .25s ease; }

.site-header.is-scrolled .brand img {
  height: 26px;
  width: 146px;
}

.primary-nav ul a,
.primary-nav__list a { transition: color .15s ease, font-size .25s ease; }

.site-header.is-scrolled .primary-nav ul a,
.site-header.is-scrolled .primary-nav__list a { font-size: 16px; }

.btn { transition-property: transform, box-shadow, color, height, padding, font-size; }

.site-header.is-scrolled .nav-cta .wp-block-button__link {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.site-header.is-scrolled .nav-cta .wp-block-button__link::after { width: 12px; height: 12px; }

/* Header layout: brand vänster, nav höger med absolut-centrerad ul + CTA till höger */
.site-header.wp-block-group { padding: 0; }
.header-inner.wp-block-group { padding: 0 36px; }
.primary-nav.wp-block-group { padding: 0; gap: 24px; }
.nav-cta-wrap { margin: 0 !important; }
.nav-cta-wrap .wp-block-button { margin: 0; }

.brand { flex-shrink: 0; display: inline-flex; }
.brand img,
.brand__logo {
  display: block;
  height: 33px;
  width: 185px;
  background-image: url('logo.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.primary-nav ul,
.primary-nav__list {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
}

.primary-nav ul a,
.primary-nav__list a {
  color: #cccccc;
  font-size: 18px;
  transition: color .15s ease;
}

.primary-nav ul a:hover,
.primary-nav__list a:hover { color: var(--c-white); }

/* hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  background: var(--c-navy);
  height: calc(100vh - 104px);
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  transform-origin: center;
  filter: grayscale(1);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--c-navy);
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-inner .eyebrow { margin-bottom: 24px; }

.hero h1 {
  font-size: 60px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--c-white);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-lead {
  color: var(--c-white);
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* =========================================================
   SERVICES
   ========================================================= */

.services {
  background: var(--c-navy);
  padding: 96px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--c-white-20);
  border: 1px solid var(--c-border-card);
  border-radius: var(--radius-card);
  padding: 36px 40px 32px;
  min-height: 313px;
  display: flex;
  flex-direction: column;
  color: var(--c-white);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
  will-change: transform;
}

.service-card:hover,
.service-card:focus-within {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--c-teal);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.service-card h3 {
  color: var(--c-teal);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 18px;
  flex-grow: 1;
  margin-bottom: 16px;
}

.service-card .link-teal-underline {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.service-card:hover .link-teal-underline,
.service-card:focus-within .link-teal-underline {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =========================================================
   BENEFITS
   ========================================================= */

.benefits {
  background: var(--c-navy);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 754px;
}

.benefits-content {
  background: var(--c-teal);
  padding: 100px 0 100px 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.benefits-content h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--c-cream);
  max-width: 380px;
  margin-bottom: 36px;
  line-height: 1.2;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-cream);
  font-size: 22px;
  line-height: 1.6;
}

.benefits-list li::before {
  content: '';
  flex-shrink: 0;
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('check.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.benefits-list img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.benefits-content .btn { align-self: flex-start; }

.benefits-media {
  background-image: url('benefits.png');
  background-size: cover;
  background-position: center;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact {
  background: linear-gradient(122.56deg, #ffffff 6%, #f2f1ed 33%);
  padding: 140px 0 160px;
}

.contact h2 {
  font-family: var(--font-form);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.3;
  color: var(--c-navy);
  max-width: 570px;
  margin-bottom: 56px;
}

.contact-form { max-width: 928px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-family: var(--font-form);
  font-size: 14px;
  color: var(--c-navy);
}

.field input {
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--c-border-form);
  border-radius: var(--radius-input);
  font-family: var(--font-form);
  font-size: 14px;
  color: var(--c-navy);
  background: transparent;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input::placeholder { color: var(--c-placeholder); }

.field input:focus {
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px rgba(0, 160, 156, 0.15);
}

.phone-wrap { position: relative; width: 100%; }
.phone-wrap input { width: 100%; padding-left: 44px; }
.phone-wrap .flag {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: auto;
  border-radius: 2px;
}

.form-divider {
  border: 0;
  border-top: 1px solid var(--c-border-form);
  margin: 40px 0 24px;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-form);
  font-size: 12px;
  color: var(--c-navy);
  max-width: 706px;
}

.check-row input {
  width: 15px;
  height: 15px;
  border: 1px solid var(--c-checkbox);
  border-radius: 4px;
  accent-color: var(--c-teal);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  position: relative;
  background: var(--c-navy);
  color: var(--c-cream);
  padding: 96px 0 32px;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  left: -68px;
  top: -86px;
  width: 368px;
  height: 368px;
  pointer-events: none;
  user-select: none;
  background-image: url('logo-footer.svg');
  background-repeat: no-repeat;
  background-size: contain;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 80px;
}

.footer-brand { max-width: 532px; }

.footer-brand p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--c-cream);
}

.footer-brand p strong { font-weight: 600; }

.footer-person {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  justify-self: center;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-image: url('magnus.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.person-text { display: flex; flex-direction: column; gap: 2px; }

.person-name {
  font-weight: 600;
  font-size: 20px;
  color: var(--c-cream);
  line-height: 1.7;
}

.person-role {
  font-size: 14px;
  color: var(--c-cream);
  line-height: 1.7;
}

.person-contact {
  margin-top: 10px;
  font-size: 14px;
  color: var(--c-teal);
  line-height: 1.7;
}

.person-contact a { color: var(--c-teal); }

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 0;
}

.footer-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  min-height: 200px;
}

.footer-contact::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.footer-link {
  color: var(--c-teal);
  font-size: 18px;
  justify-self: center;
}

.footer-legal {
  font-size: 12px;
  color: var(--c-white-40);
  text-align: center;
  padding-top: 24px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Large laptops */
@media (max-width: 1280px) {
  :root { --gutter: 64px; }

  .hero h1 { font-size: 52px; }
  .benefits-content { padding-left: 96px; }
}

/* Tablets */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }

  .hero h1 { font-size: 44px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .benefits-grid { grid-template-columns: 1fr; }
  .benefits-content {
    padding: 80px 40px;
  }
  .benefits-media {
    min-height: 420px;
  }
  .benefits-content h2 { max-width: none; }

  .contact { padding: 96px 0; }
  .contact h2 { font-size: 32px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-person { justify-self: start; }
}

/* Phones */
@media (max-width: 768px) {
  :root { --gutter: 24px; }

  body { font-size: 16px; }

  .site-header { height: 72px; }
  .site-header .header-inner { padding: 0 22px; }
  .brand img { height: 28px; width: 157px; }

  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--c-navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    height: calc(100vh - 72px);
    overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .primary-nav.is-open { transform: translateX(0); }

  .primary-nav ul,
  .primary-nav__list {
    position: static;
    transform: none;
    flex-direction: column;
    gap: 0;
    margin: 0 0 24px;
  }

  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .primary-nav__list a { border-bottom: 1px solid rgba(255,255,255,0.08); }

  .primary-nav ul a,
  .primary-nav__list a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
  }

  .nav-cta {
    margin: 0;
    align-self: flex-start;
    padding: 0 28px;
  }

  .hero { height: calc(100vh - 72px); min-height: 480px; }
  .hero h1 { font-size: 34px; line-height: 1.1; margin-bottom: 24px; }
  .hero-lead { font-size: 16px; margin-bottom: 28px; }
  .hero-cta { gap: 16px; }

  .services { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { min-height: auto; padding: 28px 28px 24px; }
  .service-card h3 { font-size: 20px; }
  .service-card p { font-size: 16px; }

  .benefits-content { padding: 64px 24px; }
  .benefits-content h2 { font-size: 26px; margin-bottom: 28px; }
  .benefits-list li { font-size: 18px; }
  .benefits-media { min-height: 280px; }

  .contact { padding: 64px 0 80px; }
  .contact h2 { font-size: 26px; margin-bottom: 32px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { align-self: flex-start; }

  .site-footer { padding: 64px 0 40px; }
  .footer-brand p { font-size: 16px; }
  .person-name { font-size: 18px; }
  .footer-contact { grid-template-columns: 1fr; min-height: auto; gap: 16px; padding: 24px 0; }
  .footer-contact::before { display: none; }
  .footer-link { font-size: 16px; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .contact h2 { font-size: 22px; }
  .benefits-content h2 { font-size: 22px; }
}
