/* Advokatbyrån i Westbo – gemensam stil */
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
	--navy: #003e58;
	--navy-dark: #0b2d3c;
	--ink: #1c2328;
	--muted: #55626a;
	--line: #dfe4e7;
	--sand: #f4f1ec;
	--white: #fff;
	--accent: #b08d57;
	--max: 1120px;
	--radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "Jost", "Futura", "Century Gothic", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0 0 .6em; color: var(--navy-dark); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Sidhuvud */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-dark); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.logo img { width: 300px; max-width: 58vw; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { color: var(--white); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: var(--white); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 820px) {
	.nav-toggle { display: block; }
	.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-dark); display: none; border-top: 1px solid rgba(255,255,255,.12); }
	.nav.open { display: block; }
	.nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
	.nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy-dark); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,45,60,.85) 0%, rgba(11,45,60,.55) 55%, rgba(11,45,60,.25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(80px, 14vw, 170px); padding-bottom: clamp(80px, 12vw, 150px); }
.hero h1 { color: var(--white); max-width: 14em; }
.hero p { font-size: 1.2rem; max-width: 32em; }
.hero--small .wrap { padding-top: 56px; padding-bottom: 48px; }
.hero--small h1 { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: .8em; }
.btn { display: inline-block; background: var(--white); color: var(--navy-dark); text-decoration: none; padding: 12px 22px; border-radius: var(--radius); font-weight: 500; }
.btn:hover { background: var(--sand); color: var(--navy-dark); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); color: var(--white); }

/* Sektioner */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.lead { font-size: 1.2rem; max-width: 40em; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }

/* Verksamhetskort */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 30px rgba(11,45,60,.12); transform: translateY(-2px); color: var(--ink); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); flex: 1; }
.card .more { color: var(--navy); font-weight: 500; }
.services-hero { position: relative; height: clamp(180px, 28vw, 340px); overflow: hidden; }
.services-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Listor */
.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { padding-left: 1.4em; position: relative; margin-bottom: .3em; }
.check li::before { content: ""; position: absolute; left: 0; top: .65em; width: .5em; height: .5em; background: var(--accent); border-radius: 50%; }
.note { background: var(--white); border-left: 4px solid var(--accent); padding: 14px 18px; margin: 1.2em 0; }

/* Personer */
.people { display: grid; gap: 40px; }
.person { display: grid; grid-template-columns: 320px 1fr; gap: 40px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 14px rgba(11,45,60,.06); }
.person img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 3; }
.person-body { padding: 36px 36px 28px 0; }
.person dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 20px; margin: 18px 0 0; }
.person dt { font-weight: 600; color: var(--navy); }
.person dd { margin: 0; }
.role { color: var(--muted); margin-top: -.4em; }
@media (max-width: 760px) {
	.person { grid-template-columns: 1fr; gap: 0; }
	.person img { aspect-ratio: 4 / 3; object-position: center 25%; }
	.person-body { padding: 24px; }
	.person dl { grid-template-columns: 1fr; gap: 2px; }
	.person dd { margin-bottom: 10px; }
}

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 260px 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-person img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; max-width: 260px; }
.contact-person h3 { margin-top: 16px; margin-bottom: 0; }
.firm { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 28px; }
.firm img { background: var(--navy-dark); padding: 16px; border-radius: var(--radius); width: 100%; max-width: 360px; margin-bottom: 18px; }
.firm address { font-style: normal; }
.big-phone { font-size: 1.5rem; font-weight: 500; }
.section--navy a { color: var(--white); }
.section--navy .firm a { color: var(--navy); }
.section--navy .firm h3 { color: var(--navy-dark); }

/* Undersidor */
.article { display: grid; grid-template-columns: 1fr 300px; gap: 56px; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } }
.article h2 { margin-top: 1.4em; }
.article h3 { margin-top: 1.2em; color: var(--navy); }
.article > div > :first-child { margin-top: 0; }
.aside { align-self: start; position: sticky; top: 100px; }
.aside-box { background: var(--sand); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.aside-box h2 { font-size: 1.1rem; margin: 0 0 .8em; }
.aside-box ul { list-style: none; margin: 0; padding: 0; }
.aside-box li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.aside-box li a[aria-current="page"] { font-weight: 600; }
.aside-box li:last-child a { border-bottom: 0; }

/* Sidfot */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.85); padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: rgba(255,255,255,.65); }

/* Startsidans hero: hela bilden (måsen som landar) syns, som på gamla sajten */
.hero--home { width: 100%; aspect-ratio: 3 / 2; max-height: 92vh; min-height: 480px; }
.hero--home > img { object-position: center 60%; }
.hero--home::after { background: linear-gradient(180deg, rgba(11,45,60,.75) 0%, rgba(11,45,60,.35) 35%, rgba(0,0,0,0) 60%, rgba(0,0,0,.2) 100%); }
.hero--home .wrap { text-align: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: 40px; }
.hero--home h1, .hero--home p { margin-left: auto; margin-right: auto; }
.hero--home h1 { text-shadow: 0 2px 12px rgba(0,0,0,.35); }

/* Diskret knapp i hjältebilden */
.btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.6); padding: 9px 18px; font-size: .95rem; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: var(--white); }
