/* ==========================================================================
   Certana AB — certana.nu_Framna_inspirerat
   Editorial Built Environment × Certana SaaS
   ========================================================================== */

:root {
  color-scheme: light;

  /* Certana identity — preserved, not reinvented */
  --navy: #071f5b;
  --navy-deep: #051433;
  --blue: #1760ff;
  --blue-soft: rgba(23, 96, 255, .45);
  --page-bg: #eef5ff;
  --white: #ffffff;
  --ink: #0b1b3a;
  --muted: #4a5875;
  --hairline: rgba(7, 31, 91, .12);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-pad-y: clamp(3rem, 6.5vw, 6rem);
  --header-h: 96px;
  --radius: 12px;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, .06);

  --fs-hero: clamp(2.25rem, 1rem + 4vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.1rem + 2vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1rem + .9vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1rem + .4vw, 1.25rem);
  --fs-body: 1.125rem;
  --fs-eyebrow: .875rem;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  color: var(--navy-deep);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { line-height: 1.12; }
h2 { line-height: 1.2; }
h3 { line-height: 1.28; }

p { margin: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  z-index: 1000;
  transform: translateY(-130%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(1rem); }

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

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-soft);
  border-radius: 4px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(238, 245, 255, .78);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--hairline);
  box-shadow: 0 8px 24px rgba(7, 31, 91, .06);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
}

.brand-mark { display: inline-flex; align-items: center; }
.brand-mark img { height: clamp(42px, 4vw, 56px); width: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.5rem);
}
.primary-nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy-deep);
  padding: .5rem .1rem;
  position: relative;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transition: right .25s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { right: 0; }
.primary-nav a.is-active { color: var(--blue); }
.primary-nav a.is-active::after { right: 0; background: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 12px 24px rgba(7, 31, 91, .08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .primary-nav.is-open { max-height: 240px; }
  .primary-nav a {
    width: 100%;
    padding: 1rem var(--gutter);
    border-bottom: 1px solid var(--hairline);
  }
  .primary-nav a::after { display: none; }
}

/* ==========================================================================
   Main / section rhythm
   ========================================================================== */

#main { display: block; }

section { position: relative; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .9rem;
}

.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  height: clamp(560px, 78svh, 900px);
  overflow: hidden;
  background: var(--page-bg);
}
.hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-media {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  transform: scale(1.05);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-media img {
    animation: hero-settle 1.8s var(--ease) both;
  }
}
@keyframes hero-settle {
  from { transform: scale(1.12); opacity: 0; }
  to { transform: scale(1.05); opacity: 1; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(238, 245, 255, .92) 0%,
    rgba(238, 245, 255, .74) 28%,
    rgba(238, 245, 255, .18) 52%,
    rgba(238, 245, 255, 0) 66%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  padding-left: clamp(1.5rem, 6vw, 7vw);
  padding-bottom: clamp(1.5rem, 6vh, 3.5rem);
  max-width: 34rem;
}
.hero-content h1 {
  font-size: var(--fs-hero);
}
.hero-content p {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
  max-width: 36ch;
}

@media (max-width: 900px) {
  .hero { height: auto; }
  .hero-inner { display: flex; flex-direction: column; height: auto; }
  .hero::before { display: none; }
  .hero-media { position: relative; inset: auto; height: clamp(260px, 62vw, 420px); order: 2; }
  .hero-content {
    order: 1;
    height: auto;
    display: block;
    background: var(--page-bg);
    padding-top: calc(var(--header-h) + clamp(1.5rem, 6vw, 2.5rem));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-bottom: clamp(2rem, 6vw, 3rem);
    max-width: none;
  }
  .hero-content p { max-width: 46ch; }
}

/* ==========================================================================
   Hero Value Panel
   ========================================================================== */

/* Floating editorial panel bridging the hero into the rest of the page —
   NOT a full-width band. The outer section stays full width; the panel
   itself is inset and carries its own four-corner radius/shadow, per
   FINAL_CURRENT/certana.nu_HERO_VALUE_PANEL_APPROVED_v1.0 (measured: ~2.3%
   side inset, all four corners rounded, icon circle ≈7.7% of panel width). */
.hero-value-panel {
  position: relative;
  z-index: 3;
  padding: 0;
}
.value-panel-inner {
  margin-inline: clamp(24px, 2.4vw, 48px);
  margin-top: -52px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(7, 31, 91, .16);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 4vw, 4rem) clamp(2.75rem, 5.5vw, 4.5rem);
}
.hero-value-panel .eyebrow { color: var(--blue); }
.value-panel-heading {
  font-size: var(--fs-h2);
  margin-bottom: 1.1rem;
}
.value-panel-intro {
  color: var(--muted);
  font-size: var(--fs-lead);
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}
.value-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem);
}
.value-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  padding-left: clamp(1.75rem, 3vw, 2.75rem);
  border-left: 1px solid var(--hairline);
}
.value-item:first-child { border-left: 0; padding-left: 0; }
.value-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(96px, 7.3vw, 142px);
  height: clamp(96px, 7.3vw, 142px);
  border-radius: 999px;
  background: rgba(23, 96, 255, .1);
  color: var(--blue);
}
.value-icon svg { width: 42%; height: 42%; }
.value-copy { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.value-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.3;
}
.value-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .value-panel-inner { margin-top: -48px; border-radius: 22px; }
  .value-panel-intro { max-width: none; }
  .value-items { grid-template-columns: 1fr; gap: 1.75rem; }
  .value-item {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--hairline);
    padding-top: 1.5rem;
  }
  .value-item:first-child { border-top: 0; padding-top: 0; }
}

/* ==========================================================================
   ProduktMatch
   ========================================================================== */

.produktmatch {
  position: relative;
  background:
    radial-gradient(120% 140% at 82% 8%, rgba(23, 96, 255, .28) 0%, rgba(23, 96, 255, 0) 55%),
    radial-gradient(90% 120% at 6% 100%, rgba(7, 31, 91, .5) 0%, rgba(7, 31, 91, 0) 60%),
    var(--navy);
  color: var(--white);
  padding-top: clamp(64px, 5vw, 96px);
  padding-bottom: var(--section-pad-y);
  overflow: hidden;
}
.produktmatch-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 40%) 1fr;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-left: var(--gutter);
}
.produktmatch-content { padding-block: 0 clamp(2rem, 5vw, 3rem); }
.produktmatch .eyebrow { color: #7fa8ff; }

/* Light brand plate — restores contrast for the dark-navy wordmark on the
   dark ProduktMatch background. Logo asset itself is untouched. */
.produktmatch-logo-plate {
  display: inline-block;
  width: min(100%, 420px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: clamp(1.1rem, 2.4vw, 1.5rem) clamp(1.25rem, 2.8vw, 1.75rem);
  margin-bottom: 1.75rem;
}
.produktmatch-logo { display: block; height: auto; width: 100%; max-width: 340px; }

.produktmatch h2 {
  color: var(--white);
  font-size: var(--fs-h2);
  margin-bottom: 1.25rem;
}
.produktmatch-content p:not(.eyebrow):not(.badge) {
  color: #c3d3f5;
  font-size: var(--fs-lead);
  max-width: 46ch;
}
.produktmatch-content p + p { margin-top: 1rem; }
.produktmatch-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.produktmatch .badge {
  display: inline-block;
  padding: .5rem 1.1rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: #cfe0ff;
}

/* Integrated process panel — replaces the old separate "Så fungerar det"
   section and the ProduktMatch material photo. Composition per
   FINAL_CURRENT/certana.nu_PRODUCTMATCH_PROCESS_PANEL_APPROVED_v1.0: a
   single light panel with heading + subheading, three large illustrated
   steps connected by dotted arrows, and a closing callout band. */
.process-panel {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.75rem, 3.5vw, 3rem);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  margin-right: var(--gutter);
}
.process-panel h2 {
  color: var(--navy-deep);
  font-size: var(--fs-h3);
  margin-bottom: .5rem;
}
.process-subheading {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: clamp(1.5rem, 2.75vw, 2.25rem);
}
/* Connectors between steps are pure CSS (::before = dotted line, ::after =
   chevron) on the step elements themselves — never separate DOM nodes, so
   the <ol> holds exactly three <li> and the accessibility tree exposes
   exactly three steps, no decorative "items" in between. */
.process-steps {
  --connector-gap: clamp(100px, 7vw, 130px);
  --icon-size: clamp(80px, 8.5vw, 135px);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--connector-gap);
}
.process-step { position: relative; flex: 1 1 0; min-width: 0; }
/* Connector = one intentional directional element: a dotted progression
   line with a solid clip-path chevron fused to its end, both vertically
   centered on the icon halo's own optical center (--icon-size / 2). Pure
   CSS, no raster asset, no text-glyph arrowhead. */
.process-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--icon-size) / 2 - 3px);
  left: calc(-1 * var(--connector-gap) + 14px);
  width: calc(var(--connector-gap) - 44px);
  height: 6px;
  background-image: repeating-linear-gradient(to right,
    var(--blue) 0, var(--blue) 6px, transparent 6px, transparent 18px);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.4), rgba(0,0,0,.9));
  mask-image: linear-gradient(to right, rgba(0,0,0,.4), rgba(0,0,0,.9));
}
.process-step:not(:first-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--icon-size) / 2 - 8px);
  left: -30px;
  width: 16px;
  height: 16px;
  background: var(--blue);
  clip-path: polygon(0% 10%, 70% 50%, 0% 90%, 25% 50%);
}
.process-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.process-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.process-icon--a { background: radial-gradient(circle, rgba(45, 175, 110, .16) 0%, rgba(45, 175, 110, .08) 70%, transparent 100%); }
.process-icon--b { background: radial-gradient(circle, rgba(23, 96, 255, .16) 0%, rgba(23, 96, 255, .08) 70%, transparent 100%); }
.process-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
  margin-bottom: .4rem;
}
.process-step h3 {
  font-size: 1.0625rem;
  color: var(--navy-deep);
  margin-bottom: .4rem;
}
.process-step p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.5;
}
/* Closing callout band */
.process-callout {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--page-bg);
  border-radius: 16px;
}
.process-callout-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(34px, 3.2vw, 48px);
  height: clamp(34px, 3.2vw, 48px);
}
.process-callout-icon img { width: 100%; height: 100%; object-fit: contain; }
.process-callout-divider {
  flex: 0 0 auto;
  width: 1px;
  align-self: stretch;
  background: var(--hairline);
}
.process-callout-copy { min-width: 0; }
.process-callout-heading {
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 1rem;
  line-height: 1.4;
}
.process-callout-desc {
  color: var(--muted);
  font-size: .9375rem;
  margin-top: .3rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .produktmatch-inner { grid-template-columns: 1fr; padding-inline: var(--gutter); height: auto; }
  .produktmatch-content { padding-block: clamp(2rem, 6vw, 3rem) 0; }
  .produktmatch-logo-plate { width: 100%; }
  .process-panel { order: 2; margin: clamp(1.5rem, 6vw, 2.5rem) 0; }
  .process-steps {
    --connector-gap: clamp(48px, 11vw, 56px);
    flex-direction: column;
    gap: var(--connector-gap);
  }
  .process-step:not(:first-child)::before {
    top: calc(-1 * var(--connector-gap) + 10px);
    left: calc(var(--icon-size) / 2 - 3px);
    width: 6px;
    height: calc(var(--connector-gap) - 32px);
    background-image: repeating-linear-gradient(to bottom,
      var(--blue) 0, var(--blue) 6px, transparent 6px, transparent 18px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,.9));
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,.9));
  }
  .process-step:not(:first-child)::after {
    top: -28px;
    left: calc(var(--icon-size) / 2 - 8px);
    transform: rotate(90deg);
  }
  .process-callout { flex-wrap: wrap; }
  .process-callout-divider { display: none; }
}

/* Shared pill button (ProduktMatch CTA, contact form submit) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  padding: .875rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn-pill:hover { background: #0e4fe0; transform: translateY(-1px); }
.btn-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 0 0 6px var(--blue);
}
.btn-pill-block { width: 100%; }

@media (max-width: 480px) {
  .produktmatch-actions { flex-direction: column; align-items: flex-start; }
  .btn-pill { width: 100%; }
}

/* ==========================================================================
   Om Certana
   ========================================================================== */

.about {
  background: var(--white);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.about-inner {
  display: grid;
  grid-template-columns: minmax(300px, 44%) 1fr;
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.about-content { align-self: center; padding-left: var(--gutter); padding-block: clamp(.75rem, 1.5vw, 1.25rem); }
.about h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1.25rem;
  max-width: 16ch;
}
.about-content p:not(.eyebrow) {
  color: var(--muted);
  font-size: var(--fs-lead);
}
.about-content p + p { margin-top: 1rem; }

.principles {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}
.principle {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.principle-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 5vw, 64px);
  height: clamp(56px, 5vw, 64px);
  border-radius: 999px;
  background: var(--page-bg);
  color: var(--blue);
}
.principle-icon svg { width: 44%; height: 44%; }
.principle-label {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.3;
}

@media (max-width: 640px) {
  .principles { grid-template-columns: 1fr; }
}
.about-media {
  position: relative;
  height: 100%;
  min-height: clamp(360px, 46vw, 620px);
  overflow: hidden;
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-content { padding-inline: var(--gutter); padding-block: 0; }
  .about-media { order: -1; height: clamp(240px, 62vw, 380px); min-height: 0; }
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact {
  background: var(--page-bg);
  padding-block: clamp(3rem, 7vw, 6rem);
}

/* One contained, high-contrast composition on the pale background — replaces
   the old fixed-max-width grid that left large unclaimed space at wide
   viewports. The panel itself carries the radius/shadow/containment; the
   navy/white halves are its two halves, not independent cards. */
.contact-panel {
  max-width: 1350px;
  width: 100%;
  margin-inline: auto;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(7, 31, 91, .16);
  display: grid;
  grid-template-columns: 40% 1fr;
}
.contact-intro {
  background: var(--navy);
  padding: clamp(2.5rem, 4vw, 3.5rem);
}
.contact-intro .eyebrow { color: #7fa8ff; }
.contact h2 { color: var(--white); font-size: var(--fs-h2); margin-bottom: .75rem; }
.contact-intro p:not(.eyebrow):not(.contact-email) {
  color: #c3d3f5;
  font-size: var(--fs-lead);
}
.contact-email { margin-top: 2rem; }
.contact-email a {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--white);
  border-bottom: 2px solid var(--blue);
  padding-bottom: .25rem;
  transition: color .2s var(--ease);
}
.contact-email a:hover { color: #cfe0ff; }

.contact-form {
  background: var(--white);
  padding: clamp(2.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
}
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy-deep);
}
.form-row input,
.form-row textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--page-bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: .875rem 1rem;
  resize: vertical;
}
.form-row input:focus-visible,
.form-row textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.contact-form .btn-pill { margin-top: .25rem; }

@media (max-width: 860px) {
  .contact-panel { grid-template-columns: 1fr; border-radius: 22px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: #b9c6e6;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}
.site-footer-inner {
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.site-footer h2 {
  grid-column: 1;
  grid-row: 1;
  color: var(--white);
  font-size: 1.0625rem;
  margin-bottom: .3rem;
}
.site-footer p:not(.footer-meta) { grid-column: 1; grid-row: 2; }
.footer-meta {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: end;
  font-size: .875rem;
  color: #8ea0c9;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .site-footer-inner { grid-template-columns: 1fr; }
  .footer-meta { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 1rem; white-space: normal; }
}

/* ==========================================================================
   Global overflow safety
   ========================================================================== */

html, body { overflow-x: hidden; }
