/* ==========================================================================
   Morano BemanningsExperten — Design system & styles
   Palette och typografi bygger på varumärkets logotyp (marinblå + grön).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy:        #163a63;
  --navy-700:    #1d4a7c;
  --navy-800:    #12314f;
  --navy-900:    #0d2643;
  --navy-950:    #091b32;

  --green:       #5da43c;   /* bright leaf green — accents/decor/icons */
  --green-600:   #4e9231;
  --green-btn:   #46852b;   /* button green (white text ~4.4:1) */
  --green-btn-h: #3c7324;
  --green-text:  #3a731f;   /* green for links on white (~5:1) */

  --blue:        #2f7fc1;   /* accent ring blue from logo */
  --blue-soft:   #e7f1fb;

  /* Neutrals */
  --ink:        #172533;
  --ink-soft:   #4c5c6e;
  --ink-faint:  #728499;
  --line:       #dbe6f1;
  --line-soft:  #eaf1f8;
  --white:      #ffffff;
  --paper:      #f5f9fd;   /* light section bg */
  --paper-2:    #eef5fb;
  --mist:       #f8fbfe;

  /* Feedback */
  --err:        #c23b3b;
  --err-bg:     #fdecec;
  --ok:         #2f7d3a;
  --ok-bg:      #eaf6ec;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(13,38,67,.06), 0 2px 6px rgba(13,38,67,.06);
  --shadow:    0 6px 20px rgba(13,38,67,.10);
  --shadow-lg: 0 18px 50px rgba(13,38,67,.16);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 104px);

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

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.h-hero { font-size: clamp(2.2rem, 1.3rem + 3.9vw, 4.05rem); line-height: 1.04; }
h2, .h2 { font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.85rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
h4 { font-size: 1.12rem; }

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.24rem); color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  font-size: .78rem;
  color: var(--green-text);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow.on-dark { color: #9fd67f; }
.text-green { color: var(--green-text); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.bg-paper { background: var(--paper); }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy-900); color: #eaf1fb; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 16px; }
.section-head h2 { margin-top: 14px; }

/* Leaf accent (echoes brand leaves) */
.leaf { width: 20px; height: 20px; flex: none; color: var(--green); }
.rule-leaf { display:flex; align-items:center; gap:14px; margin-top:18px; }
.rule-leaf::before { content:""; height:3px; width:56px; background: var(--green); border-radius: 3px; }
.rule-leaf .leaf { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--pill);
  border: 2px solid transparent; min-height: 50px;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  will-change: transform;
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-green { background: var(--green-btn); color: #fff; }
.btn-green:hover { background: var(--green-btn-h); box-shadow: 0 10px 24px rgba(70,133,43,.32); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); box-shadow: 0 10px 24px rgba(22,58,99,.30); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color:#fff; }

.btn-white { background:#fff; color: var(--navy); }
.btn-white:hover { box-shadow: var(--shadow); }

.btn-block { width: 100%; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; min-height: 56px; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(13,38,67,.10); background: rgba(255,255,255,.97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px; border-radius: var(--r-sm);
  font-weight: 500; color: var(--navy-800); font-size: 1rem;
  position: relative; transition: color .18s var(--ease), background .18s var(--ease);
}
.main-nav a::after {
  content:""; position:absolute; left:14px; right:14px; bottom:5px; height:2.5px;
  background: var(--green); border-radius: 3px; transform: scaleX(0); transform-origin:left;
  transition: transform .22s var(--ease);
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 12px 20px; min-height: 46px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--navy); }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 940px) {
  .header-inner { height: 68px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 14px var(--gutter) 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  body.nav-open .main-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 12px; font-size: 1.08rem; border-radius: var(--r-sm); }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"] { background: var(--paper-2); }
  .header-cta .btn.cta-desktop { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -8%, #dcebfa 0%, rgba(220,235,250,0) 60%),
    linear-gradient(180deg, #f3f9fe 0%, #ffffff 78%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px);
  align-items: center; padding-block: clamp(46px, 6vw, 84px) clamp(60px, 7vw, 96px);
}
.hero-copy .h-hero { margin-top: 18px; }
.hero-copy .h-hero .accent { color: var(--green-text); }
.hero-copy .lead { margin-top: 22px; max-width: 44ch; }
.hero-copy .btn-group { margin-top: 30px; }
.hero-contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-contacts a {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  padding: 10px 16px; border-radius: var(--pill); font-weight: 500; color: var(--navy-800);
  box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.hero-contacts a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hero-contacts svg { width: 18px; height: 18px; color: var(--blue); }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--r-lg); overflow: hidden; background:#eaf2fb;
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; max-width: 260px;
}
.hero-badge .dot { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--navy); display:grid; place-items:center; flex:none; }
.hero-badge .dot svg { width: 24px; height: 24px; color: var(--green-600); }
.hero-badge strong { display:block; color: var(--navy); font-size: .98rem; }
.hero-badge span { font-size: .82rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-copy .lead { max-width: none; }
}

/* ---------- Brand hero (home & om oss) — logo + text left, image right ---------- */
.brand-hero .hero-inner { align-items: center; }
.hero-logo { height: clamp(48px, 6vw, 72px); width: auto; margin-bottom: clamp(16px, 2.4vw, 26px); }
.brand-hero .h-hero { color: var(--navy); }
.hl-accent { display: inline-flex; align-items: center; gap: clamp(12px, 2vw, 18px); color: var(--green-text); margin-top: .16em; }
.hl-accent::before, .hl-accent::after { content: ""; height: 3px; width: clamp(20px, 4vw, 60px); background: var(--green); border-radius: 3px; flex: none; }
.brand-hero .lead { margin-top: 20px; max-width: 50ch; }
.brand-hero .btn-group { margin-top: 26px; }
.brand-hero .btn-group .btn { text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; }
.brand-hero .hero-contacts { margin-top: 24px; }
.brand-hero .hero-media img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.brand-hero .prose { margin-top: 18px; }
.brand-hero .prose p { color: var(--ink-soft); }
.brand-hero .prose p + p { margin-top: 14px; }
@media (max-width: 900px) {
  .brand-hero .hero-media { order: 0; margin-top: 6px; }
}

/* Green outline button */
.btn-outline-green { background: transparent; color: var(--green-text); border-color: var(--green-btn); }
.btn-outline-green:hover { background: var(--green-btn); color: #fff; border-color: var(--green-btn); }

/* ---------- Check list (subpages, för företag) ---------- */
.check-list { display: grid; gap: 12px; margin-top: 12px; }
.check-list.cols2 { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.check-list .ck { width: 24px; height: 24px; border-radius: 50%; background: rgba(93,164,60,.15); color: var(--green-600); display: grid; place-items: center; flex: none; margin-top: 2px; }
.check-list .ck svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .check-list.cols2 { grid-template-columns: 1fr; } }

/* ---------- Full-bleed photo hero (home & om oss) — image fills background, text on top ---------- */
.hero-photo-light { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, #e9f2fc, #f7fbff); }
.hero-photo-light .ph-bg { position: absolute; inset: 0; z-index: 0; }
.hero-photo-light .ph-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-photo-light .ph-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(240,247,253,.98) 0%, rgba(240,247,253,.93) 28%, rgba(240,247,253,.62) 50%, rgba(240,247,253,.18) 70%, rgba(240,247,253,0) 88%);
}
.hero-photo-light .ph-inner { position: relative; z-index: 1; min-height: clamp(540px, 66vh, 720px); display: flex; align-items: center; padding-block: clamp(44px, 6vw, 84px); }
.hero-photo-light .hero-copy { max-width: 640px; min-width: 0; }
.hero-photo-light .hero-logo { height: clamp(54px, 6vw, 80px); width: auto; margin-bottom: clamp(16px, 2.4vw, 28px); }
.hero-photo-light .h-hero { color: var(--navy); font-size: clamp(1.7rem, 1.0rem + 2.6vw, 3.05rem); line-height: 1.1; overflow-wrap: break-word; }
.hero-photo-light .lead { margin-top: 18px; max-width: 46ch; color: var(--ink-soft); }
.hero-photo-light .prose { margin-top: 16px; }
.hero-photo-light .prose p { color: var(--ink-soft); }
.hero-photo-light .prose p + p { margin-top: 12px; }
.hero-photo-light .btn-group { margin-top: 26px; }
.hero-photo-light .btn-group .btn { text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; }
.hero-photo-light .hero-contacts { margin-top: 22px; }
@media (max-width: 760px) {
  .hero-photo-light .ph-bg img { object-position: 74% center; }
  .hero-photo-light .ph-bg::after { background: linear-gradient(180deg, rgba(240,247,253,.9) 0%, rgba(240,247,253,.85) 50%, rgba(240,247,253,.78) 100%); }
  .hero-photo-light .ph-inner { min-height: auto; }
  .hero-photo-light .h-hero { font-size: clamp(1.45rem, 5.4vw, 2.1rem) !important; letter-spacing: 0 !important; }
}

/* ---------- Kontakt hero — hela bilden synlig (båda MORANO-brandings), text i navy-list under ---------- */
.kontakt-photo { background: var(--navy-900); }
.kontakt-photo .kp-frame { max-width: 1120px; margin-inline: auto; line-height: 0; }
.kontakt-photo .kp-frame img { width: 100%; height: auto; display: block; }
.kontakt-photo .kp-bar { background: var(--navy-900); color: #eaf1fb; }
.kontakt-photo .kp-bar .container { padding-block: clamp(24px, 3.5vw, 46px); }
.kontakt-photo .kp-bar .breadcrumbs { margin-bottom: 8px; }
.kontakt-photo .kp-bar .h-hero { color: #fff; margin-top: 12px; }
.kontakt-photo .kp-bar .lead { color: #cdddf0; margin-top: 12px; max-width: 62ch; }

/* ---------- Page hero (inner pages) — full-bleed image + scrim ---------- */
.page-hero { position: relative; background: var(--navy-900); color: #eaf1fb; overflow: hidden; isolation: isolate; }
.page-hero .ph-media { position: absolute; inset: 0; z-index: 0; }
.page-hero .ph-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero .ph-media::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(9,27,50,.94) 0%, rgba(9,27,50,.86) 32%, rgba(9,27,50,.55) 62%, rgba(9,27,50,.22) 100%);
}
.page-hero .ph-inner {
  position: relative; z-index: 1;
  min-height: clamp(400px, 50vh, 600px);
  display: flex; align-items: center;
  padding-block: clamp(48px, 7vw, 100px);
}
.page-hero .ph-copy { max-width: 640px; }
.page-hero .ph-copy .h-hero { color: #fff; margin-top: 14px; }
.page-hero .ph-copy .lead { color: #d5e2f1; margin-top: 18px; max-width: 52ch; }
.page-hero .ph-copy .btn-group { margin-top: 28px; }
.breadcrumbs { font-size: .86rem; color: #a9c1de; display:flex; gap:8px; align-items:center; }
.breadcrumbs a:hover { color:#fff; }
.breadcrumbs span { opacity:.6; }

@media (max-width: 860px) {
  .page-hero .ph-media::after { background: linear-gradient(175deg, rgba(9,27,50,.64) 0%, rgba(9,27,50,.80) 55%, rgba(9,27,50,.9) 100%); }
  .page-hero .ph-inner { min-height: clamp(360px, 74vw, 480px); padding-block: clamp(40px,10vw,64px); }
}

/* ---------- Branch strip (top of home) ---------- */
.branch-strip { background: linear-gradient(180deg, #ffffff, #f2f8fd); border-bottom: 1px solid var(--line-soft); }
.branch-strip .container { padding-block: clamp(16px, 2.2vw, 24px); }
.branch-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.branch { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px; }
.branch + .branch::before { content:""; position:absolute; left:0; top:14%; height:72%; width:1px; background: var(--line); }
.branch .b-ic { width: 58px; height: 58px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(47,127,193,.18); transition: transform .2s var(--ease); }
.branch:hover .b-ic { transform: translateY(-3px); }
.branch .b-ic svg { width: 28px; height: 28px; color: var(--navy); }
.branch span { font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--navy-800); line-height: 1.25; text-transform: uppercase; }
@media (max-width: 820px) {
  .branch-row { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .branch + .branch::before { display: none; }
  .branch span { font-size: .72rem; }
}
@media (max-width: 420px) {
  .branch-row { grid-template-columns: repeat(2, 1fr); }
  .branch .b-ic { width: 50px; height: 50px; }
  .branch .b-ic svg { width: 24px; height: 24px; }
}

/* ---------- Aktuella tjänster (jobs) ---------- */
.jobs-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.jobs-top .lead { margin-top: 10px; }
.jobs-list { display: grid; gap: 12px; }
.job {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line-soft); border-left: 4px solid var(--green);
  border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.job:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.job-main { display: flex; flex-direction: column; gap: 7px; }
.job-main h3 { font-size: 1.18rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-soft); font-size: .9rem; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 15px; height: 15px; color: var(--green-600); }
.job .btn { flex: none; padding: 11px 22px; min-height: 44px; }
.jobs-note { margin-top: 20px; color: var(--ink-soft); font-size: .95rem; text-align: center; }
.jobs-note a { color: var(--green-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .job { align-items: flex-start; } .job .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .job:hover, .branch:hover .b-ic { transform: none; } }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px);
}
.svc-card {
  position: relative;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.svc-more::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-card:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.svc-media { aspect-ratio: 16/10; overflow: hidden; background:#eaf2fb; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft);
  display: grid; place-items: center; margin-top: -46px; position: relative; z-index: 2;
  border: 4px solid #fff; box-shadow: var(--shadow-sm);
}
.svc-icon svg { width: 24px; height: 24px; color: var(--navy); }
.svc-body h3 { font-size: 1.28rem; }
.svc-body p { color: var(--ink-soft); font-size: .98rem; }
.svc-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 7px; color: var(--green-text); font-weight: 600; }
.svc-more svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.svc-card:hover .svc-more svg { transform: translateX(4px); }

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Value band ---------- */
.value-band { background:
  radial-gradient(900px 500px at 12% 0%, #1b4677 0%, rgba(27,70,119,0) 60%),
  var(--navy-900); color: #e9f1fb; }
.value-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 26px); margin-top: 8px; }
.value-item { padding-top: 6px; }
.value-item .vi-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(93,164,60,.16); border: 1px solid rgba(93,164,60,.4);
  display: grid; place-items: center; margin-bottom: 16px;
}
.value-item .vi-icon svg { width: 28px; height: 28px; color: #a7db85; }
.value-item h3 { color: #fff; font-size: 1.16rem; }
.value-item p { color: #b8cbe4; font-size: .95rem; margin-top: 6px; }
@media (max-width: 1000px) { .value-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; } }
@media (max-width: 620px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Feature / two-col content ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; }
.feature-list { display: grid; gap: 16px; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick { width: 28px; height: 28px; border-radius: 50%; background: rgba(93,164,60,.14); color: var(--green-600); display: grid; place-items: center; flex: none; margin-top: 2px; }
.feature-list .tick svg { width: 16px; height: 16px; }
.feature-list strong { color: var(--navy); display:block; }
.feature-list span { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: -1; }
}

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; background:#fff; border:1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem,1.4rem+2vw,2.9rem); color: var(--navy); font-weight: 600; }
.stat .lbl { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Value cards (about) ---------- */
.vcard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px,2vw,24px); }
.vcard { background:#fff; border:1px solid var(--line-soft); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.vcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.vcard .vc-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--blue-soft); display:grid; place-items:center; margin-bottom: 16px; }
.vcard .vc-icon svg { width: 27px; height: 27px; color: var(--navy); }
.vcard h3 { font-size: 1.2rem; }
.vcard p { color: var(--ink-soft); margin-top: 8px; font-size: .97rem; }
@media (max-width: 900px) { .vcard-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .vcard-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-panel {
  background:
    radial-gradient(700px 380px at 0% 0%, rgba(93,164,60,.14), rgba(93,164,60,0) 62%),
    radial-gradient(700px 400px at 100% 100%, rgba(47,127,193,.12), rgba(47,127,193,0) 60%),
    #fff;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow); padding: clamp(26px, 4vw, 52px);
}
.form-panel .form-head { text-align: center; max-width: 620px; margin: 0 auto clamp(24px, 3vw, 36px); }
.form-panel .form-head p { color: var(--ink-soft); margin-top: 10px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.col-span { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.field .req { color: var(--err); }
.field .hint { font-size: .82rem; color: var(--ink-faint); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="file"],
.field textarea,
.field select {
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 13px 15px; width: 100%;
  min-height: 50px; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #97a6b6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,127,193,.16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(194,59,59,.12); }
.field .error-msg { color: var(--err); font-size: .82rem; min-height: 1em; }
.field input[type="file"] { padding: 11px 14px; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: 12px; border: 0;
  background: var(--navy); color: #fff; padding: 9px 16px; border-radius: var(--r-sm); cursor: pointer;
}

/* Radio pills */
.radio-set { border: 0; padding: 0; margin: 0; }
.radio-set legend { font-weight: 600; color: var(--navy); font-size: .95rem; margin-bottom: 10px; }
.radio-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border: 1.5px solid var(--line); border-radius: var(--pill);
  font-weight: 500; background: #fff; transition: all .16s var(--ease); min-height: 48px;
}
.radio-pill span::before {
  content:""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #b6c4d4; transition: all .16s var(--ease);
}
.radio-pill input:checked + span { border-color: var(--green-600); background: rgba(93,164,60,.09); color: var(--navy); }
.radio-pill input:checked + span::before { border-color: var(--green-600); background: var(--green-600); box-shadow: inset 0 0 0 3px #fff; }
.radio-pill input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Checkbox grid */
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 22px; }
.check {
  display: flex; align-items: center; gap: 11px; padding: 6px 4px; cursor: pointer;
  border-radius: var(--r-sm); min-height: 44px;
}
.check:hover { background: rgba(47,127,193,.05); }
.check input { width: 20px; height: 20px; accent-color: var(--green-600); flex: none; cursor: pointer; }
.check span { font-size: .97rem; color: var(--ink); }
@media (max-width: 620px) { .check-grid { grid-template-columns: 1fr; } }

/* Consent */
.consent { display: flex; align-items: flex-start; gap: 12px; }
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--green-600); flex: none; cursor: pointer; }
.consent label { font-weight: 400; color: var(--ink-soft); font-size: .95rem; }
.consent a { color: var(--green-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-actions { margin-top: 6px; }
.form-status {
  border-radius: var(--r); padding: 14px 18px; font-weight: 500; display: none; align-items: center; gap: 10px;
}
.form-status.show { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; }
.form-status.is-ok { background: var(--ok-bg); color: var(--ok); }
.form-status.is-err { background: var(--err-bg); color: var(--err); }

.btn[aria-busy="true"] { pointer-events: none; opacity: .8; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .btn-label { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn .spinner { animation-duration: 1.4s; } }

@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background:
  radial-gradient(700px 420px at 88% 12%, rgba(93,164,60,.28), rgba(93,164,60,0) 60%),
  linear-gradient(120deg, var(--navy-800), var(--navy-950));
  color:#fff; border-radius: var(--r-xl); padding: clamp(34px, 5vw, 64px);
  display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color:#fff; }
.cta-band p { color:#c6d6ea; margin-top: 12px; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px,4vw,52px); align-items:start; }
.contact-info { display: grid; gap: 14px; }
.info-card { display:flex; gap:16px; align-items:flex-start; background:#fff; border:1px solid var(--line-soft); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.info-card .ic { width: 48px; height:48px; border-radius: 12px; background: var(--blue-soft); display:grid; place-items:center; flex:none; }
.info-card .ic svg { width: 24px; height:24px; color: var(--navy); }
.info-card h3 { font-size: 1.05rem; }
.info-card a, .info-card p { color: var(--ink-soft); font-size: .98rem; }
.info-card a:hover { color: var(--green-text); }
.map-embed { margin-top: 6px; border-radius: var(--r-lg); overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed .placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg,#e8f0f9,#dbe8f5); display:grid; place-items:center; color: var(--ink-faint); text-align:center; padding:20px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Wave divider (brand motif) ---------- */
.wave { display:block; width:100%; height: auto; }
.wave-top { margin-bottom: -6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #b9cbe1; }
.footer-social {
  border-bottom: 1px solid rgba(255,255,255,.09);
  padding-block: 26px; display: flex; align-items: center; justify-content: center; gap: 16px;
}
.footer-social .soc {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color:#fff; transition: transform .2s var(--ease), background .2s var(--ease);
}
.footer-social .soc:hover { transform: translateY(-3px); }
.footer-social .soc svg { width: 22px; height: 22px; }
.footer-social .soc.linkedin:hover { background: #0a66c2; border-color:#0a66c2; }
.footer-social .soc.instagram:hover { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); border-color: transparent; }
.footer-social .soc.facebook:hover { background: #1877f2; border-color:#1877f2; }

.footer-main { padding-block: clamp(40px, 5vw, 64px); }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(26px,3vw,44px); }
.footer-brand .fb-word { font-family: var(--font-display); font-size: 1.7rem; color:#fff; font-weight: 600; letter-spacing:.02em; line-height:1; }
.footer-brand .fb-sub { color: var(--green); font-weight: 700; letter-spacing:.14em; font-size:.72rem; text-transform:uppercase; margin-top:6px; display:block; }
.footer-brand p { margin-top: 16px; font-size: .95rem; color:#a7bcd6; max-width: 34ch; }
.footer-col h4 { color:#fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color:#b9cbe1; font-size: .96rem; transition: color .15s var(--ease); }
.footer-col a:hover { color:#fff; }
.footer-contact li { display:flex; gap:11px; align-items:flex-start; font-size:.96rem; }
.footer-contact svg { width:18px; height:18px; color: var(--green); flex:none; margin-top:3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding-block: 20px; display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; font-size:.88rem; color:#8fa6c4; }
.footer-bottom a:hover { color:#fff; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .svc-card:hover, .vcard:hover, .hero-contacts a:hover { transform: none; }
  .svc-card:hover .svc-media img { transform: none; }
}

/* ---------- Helpers ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.maxw-720 { max-width: 720px; }
.mx-auto { margin-inline: auto; }
.prose p { color: var(--ink-soft); }
.prose p + p { margin-top: 16px; }
