/* Great Gaits – modern design, samma varumärke (gult, marinblått, logga)
   Formspråk: Manrope rakt igenom, en radieskala (10/16/24), platta ytor med
   tunna linjer i stället för skuggor, gult streck som återkommande detalj. */

@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
/* Logotypens ordmärke: Work Sans Bold, kursiv som på originalsajten */
@font-face { font-family: "WorkSansLogo"; src: url("/fonts/worksans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* Den runda loggan: Work Sans ExtraBold, rak */
@font-face { font-family: "WorkSansBadge"; src: url("/fonts/worksans-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --yellow: #fff2a3;   /* ren pastellgul */
  --yellow-2: #ffe866; /* klarare gul för små detaljer (streck) */
  --cream: #fffaea;
  --paper: #fffdf6;
  --navy: #0f2d52;
  --navy-2: #1a4e8d;
  --ink: #12233a;
  --muted: #4a5a70;
  --line: rgba(15, 45, 82, .14);
  --badge-bg: #fff2a3;
  --badge-ink: #0f2d52;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --logo: "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 200; }
.skip:focus { left: 8px; }

/* Typografi */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-2); }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--yellow-2); flex-shrink: 0; }
.h-xl { font-weight: 800; font-size: clamp(38px, 5vw, 66px); line-height: 1.05; letter-spacing: -.035em; color: var(--navy); }
.h-lg { font-weight: 800; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -.03em; color: var(--navy); }
.h-md { font-weight: 700; font-size: clamp(20px, 1.8vw, 22px); line-height: 1.3; letter-spacing: -.015em; color: var(--navy); }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); }

/* Knappar: samma höjd och form överallt */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; font-family: var(--font); font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 999px; padding: 0 26px; transition: background .2s, color .2s, border-color .2s; border: 1.5px solid transparent; cursor: pointer; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.link { font-weight: 700; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* Sidhuvud */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--yellow); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .horse { width: 60px; height: 45px; flex-shrink: 0; }
.brand span { font-family: "WorkSansLogo", var(--logo); font-weight: 700; font-style: italic; font-size: 24px; letter-spacing: -.01em; color: var(--navy); }
.badge .b-top { font-family: "WorkSansBadge", var(--logo); font-weight: 800; font-size: 50px; letter-spacing: 3px; fill: var(--badge-ink); }
.badge .b-sub { font-family: "WorkSansBadge", var(--logo); font-weight: 800; font-size: 16.5px; letter-spacing: 3px; fill: var(--badge-ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: none; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
/* Språkval: SV | EN, det valda språket understruket */
.langs { display: inline-flex; align-items: center; gap: 10px; }
.nav .langs { position: relative; margin-left: 4px; padding-left: 26px; }
.nav .langs::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.5px; height: 18px; margin-top: -9px; background: rgba(15,45,82,.25); }
.langs .sep { color: rgba(15,45,82,.3); font-weight: 400; }
.nav .langs { gap: 14px; }
.flag { display: block; width: 26px; height: 17px; border-radius: 2px; }
.langs a:not([aria-current]) { opacity: .45; filter: saturate(.6); transition: opacity .2s, filter .2s; }
.langs a:not([aria-current]):hover { opacity: 1; filter: none; }
.nav .langs a[aria-current="true"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 15px; font-weight: 600; color: #fff; }
.nav .btn:hover { background: var(--navy-2); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }

/* Startsidans hero */
.hero { background: var(--yellow); overflow: hidden; }
.hero .inner { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 80px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero .copy .eyebrow { color: var(--navy); }
.hero .copy .eyebrow::before { background: var(--navy); }
.hero .copy .h-xl { margin-top: 20px; }
.hero .copy .lead { margin-top: 22px; color: var(--navy); max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero figure img { width: 100%; aspect-ratio: 1 / 1; max-height: 560px; object-fit: cover; object-position: 55% 45%; border-radius: var(--r-lg); }

/* Sektioner */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.tight { padding-top: clamp(16px, 3vw, 32px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head .h-lg { margin-top: 14px; max-width: 18em; }

/* Numrering: 01, 02 … med gult streck */
.num { display: block; font-weight: 800; font-size: 14px; letter-spacing: .08em; color: var(--navy-2); font-variant-numeric: tabular-nums; }
.num::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--yellow-2); margin-top: 10px; }

/* Kort för målgrupper */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; transition: border-color .2s; }
.card:hover { border-color: rgba(15,45,82,.35); }
.card .h-md { margin-top: 6px; }
.card p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.card .link { margin-top: auto; padding-top: 6px; font-size: 15px; }

/* Uppdrag */
.mission { background: var(--navy); color: #fff; }
.mission .inner { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.mission .eyebrow { color: var(--yellow); }
.mission .eyebrow::before { display: none; }
.mission blockquote { margin-top: 20px; font-weight: 700; font-size: clamp(25px, 2.6vw, 36px); line-height: 1.22; letter-spacing: -.025em; }
.mission p { margin-top: 22px; color: rgba(255,255,255,.82); }
.mission .actions { margin-top: 32px; }
.mission img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; border-radius: var(--r-lg); }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); background: var(--navy); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.ig-grid a:hover img { transform: scale(1.04); opacity: .88; }
.ig-grid .ico { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(15,45,82,.7); display: grid; place-items: center; }
.ig-grid .ico svg { width: 11px; height: 11px; fill: #fff; }

/* Om oss: hero */
.page-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,45,82,.94) 0%, rgba(15,45,82,.75) 50%, rgba(15,45,82,.15) 100%); }
.page-hero .inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 150px) var(--pad); }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero .eyebrow::before { display: none; }
.page-hero h1 { margin-top: 18px; font-weight: 800; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.14; letter-spacing: -.03em; max-width: 17em; }
.page-hero p { margin-top: 24px; max-width: 38em; color: rgba(255,255,255,.88); font-size: 18px; }
/* Om oss: toppbilden (spegelvänd fil) ljusare åt höger där hästen står */
.page-hero:not(.home-hero)::after { background: linear-gradient(90deg, rgba(15,45,82,.94) 0%, rgba(15,45,82,.72) 42%, rgba(15,45,82,.12) 70%, rgba(15,45,82,0) 100%); }
.page-hero p.eyebrow { margin-top: 0; font-size: 12.5px; color: var(--yellow); }
/* Startsidan: samma stora bild med text framför */
.home-hero > img { object-position: 60% 45%; }
.home-hero .inner { padding: clamp(96px, 14vw, 180px) var(--pad); }
.home-hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.06; letter-spacing: -.035em; max-width: 13em; }
.home-hero p { max-width: 30em; font-size: clamp(18px, 1.5vw, 20px); }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Om oss: målgrupper */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); }
.split .sticky { position: sticky; top: 110px; align-self: start; }
.split .sticky .lead { margin-top: 20px; }
.split .sticky .btn { margin-top: 30px; }
.steps { display: grid; }
.step { padding: 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .num { grid-row: span 2; padding-top: 4px; }
.step p { color: var(--muted); font-size: 16px; }

/* Bildband */
.photo-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.photo-band img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; border-radius: var(--r-lg); }
/* Kontaktblocket närmare bilderna */
.section.tight:has(.photo-band) { padding-bottom: 0; }
.section.tight:has(.photo-band) + #contact { padding-top: 16px; }

/* Kontakt */
.contact-card { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px clamp(32px, 6vw, 80px); align-items: center; }
.contact-card .eyebrow { color: var(--yellow); }
.contact-card .eyebrow::before { display: none; }
.contact-card .lead { margin-top: 18px; color: rgba(255,255,255,.85); max-width: 24em; }
.contact-main .mail { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: clamp(20px, 2.5vw, 34px); letter-spacing: -.03em; color: var(--yellow); text-decoration: none; white-space: nowrap; }
.contact-main .mail svg { width: .7em; height: .7em; flex-shrink: 0; transition: transform .25s var(--ease); }
.contact-main .mail:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.contact-main .mail:hover svg { transform: translateX(4px); }
.social { list-style: none; padding: 26px 0 0; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color .2s, background .2s; }
.social a:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* Sidfot */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); }
.site-footer .inner { max-width: var(--max); margin: 0 auto; padding: 64px var(--pad) 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-badge { display: inline-block; }
.foot-badge .badge { display: block; width: 140px; height: 140px; border-radius: 50%; box-shadow: 0 0 0 3px var(--yellow); }
.foot-brand { display: inline-flex; flex-direction: column; align-items: center; text-align: center; }
.site-footer .tag { margin-top: 14px; font-size: 15px; }
.site-footer h3 { font-weight: 700; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .bottom { max-width: var(--max); margin: 0 auto; padding: 22px var(--pad) 30px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: rgba(255,255,255,.65); }

/* 404 */
.nf { position: relative; overflow: hidden; min-height: calc(100vh - 76px); display: flex; align-items: center; background: var(--navy); color: #fff; }
.nf-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.nf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,45,82,.96) 0%, rgba(15,45,82,.82) 45%, rgba(15,45,82,.25) 100%); }
.nf-inner { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--pad); }
.nf-code { font-weight: 800; font-size: clamp(110px, 18vw, 230px); line-height: .85; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--yellow); margin-left: -.04em; }
.nf .eyebrow { margin-top: 28px; color: var(--yellow); }
.nf .h-xl { margin-top: 16px; color: #fff; max-width: 12em; }
.nf .lead { margin-top: 20px; color: rgba(255,255,255,.85); max-width: 28em; }
.nf .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn-line { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.nf-sv { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); max-width: 34em; font-size: 15px; color: rgba(255,255,255,.75); }
.nf-sv .link { color: var(--yellow); margin-left: 6px; }

/* Mjuk inladdning */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Surfplatta */
@media (max-width: 1080px) {
  .ig-grid { grid-template-columns: repeat(4, 1fr); }
  .ig-grid a:nth-child(n+9) { display: none; }
}

/* Mobil */
@media (max-width: 860px) {
  .site-header .inner { height: 66px; }
  .brand .horse { width: 48px; height: 36px; }
  .brand span { font-size: 20px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { position: fixed; inset: 66px 0 0 0; z-index: 60; background: var(--yellow); padding: 8px var(--pad) max(28px, env(safe-area-inset-bottom)); flex-direction: column; overflow-y: auto; border-top: 1px solid var(--line); }
  .mobile-menu.open { display: flex; }
  .mm-links { display: flex; flex-direction: column; }
  .mm-links a { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 28px; letter-spacing: -.03em; color: var(--navy); text-decoration: none; }
  .mm-links a::after { content: "→"; font-weight: 600; font-size: 22px; opacity: .45; }
  .mm-links a[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); opacity: 1; }
  .mm-foot { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
  .mm-foot .btn { width: 100%; min-height: 54px; font-size: 16px; color: #fff; }
  .mm-mail { align-self: center; font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: none; }
  .mobile-menu .langs { align-self: center; gap: 0; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.55); margin-top: 4px; }
  .mobile-menu .langs .sep { display: none; }
  .mobile-menu .langs a { min-width: 60px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--navy); text-decoration: none; opacity: 1; }
  .mobile-menu .langs a[aria-current="true"] { background: var(--navy); }
  .mobile-menu .flag { width: 28px; height: 18px; }
  .nf::after { background: linear-gradient(180deg, rgba(15,45,82,.9) 0%, rgba(15,45,82,.82) 60%, rgba(15,45,82,.95) 100%); }
  .nf-sv .link { margin-left: 0; margin-top: 6px; }
  .page-hero:not(.home-hero) > img { object-position: 88% 30%; }
  .hero .inner { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 56px; }
  .hero figure img { aspect-ratio: 4 / 3; border-radius: var(--r); }
  .section-head { flex-direction: column; align-items: start; }
  .mission .inner, .split, .contact-card, .photo-band { grid-template-columns: 1fr; }
  .split .sticky { position: static; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ig-grid a:nth-child(n+7) { display: none; }
  .site-footer .inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; }
  .step .num { grid-row: auto; }
}

/* Ankarlänkar hamnar under den fasta menyraden */
[id] { scroll-margin-top: 96px; }
