/* Grundstil och färgsystem */
:root {
  --forest: #163b2c;
  --forest-dark: #0e2b20;
  --leaf: #567642;
  --lime: #d5e45a;
  --earth: #9a6846;
  --paper: #f4f1e9;
  --white: #fff;
  --ink: #18211c;
  --muted: #5d675f;
  --line: #d6d9d0;
  --container: 1180px;
  --shadow: 0 20px 55px rgba(14, 43, 32, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: 0; }
h1 { max-width: 760px; margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 5.8rem); font-weight: 500; }
h2 { margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4vw, 4rem); font-weight: 500; }
h3 { font-size: 1.3rem; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; }
.eyebrow { margin-bottom: 16px; color: var(--leaf); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 20px; padding: 13px 24px; border: 2px solid var(--lime); border-radius: 3px; color: var(--forest-dark); background: var(--lime); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); background: #e2ed7a; border-color: #e2ed7a; }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid #f2c94c; outline-offset: 3px; }
.button-small { min-height: 44px; padding: 9px 18px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); font-weight: 800; text-underline-offset: 5px; }
.text-link span { font-size: 1.25rem; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.text-link.light { color: var(--white); }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 16px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header och navigering */
.site-header { position: absolute; z-index: 20; top: 0; width: 100%; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.22); }
.header-inner { display: flex; min-height: 84px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.55rem; font-weight: 800; text-decoration: none; }
.brand > span:last-child > span { color: var(--lime); }
.brand-mark { position: relative; display: inline-block; width: 30px; height: 34px; border: 3px solid currentColor; border-top-left-radius: 28px; border-bottom-right-radius: 28px; transform: rotate(-8deg); }
.brand-mark::after { position: absolute; top: 3px; left: 13px; width: 2px; height: 27px; background: currentColor; content: ""; transform: rotate(38deg); }
.brand-mark span::before, .brand-mark span::after { position: absolute; width: 10px; height: 2px; background: currentColor; content: ""; }
.brand-mark span::before { top: 12px; left: 5px; transform: rotate(18deg); }
.brand-mark span::after { top: 19px; left: 14px; transform: rotate(70deg); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a:not(.button) { font-size: .94rem; font-weight: 700; text-decoration: none; }
.main-nav > a:not(.button):hover { color: var(--lime); }
.menu-button { display: none; width: 46px; height: 46px; border: 0; color: inherit; background: transparent; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 25px; height: 2px; margin: auto; background: currentColor; transition: transform .2s; content: ""; }
.menu-lines::before { transform: translateY(-8px); }
.menu-lines::after { transform: translateY(6px); }

/* Hero */
.hero { position: relative; display: flex; min-height: 760px; height: min(880px, 100svh); align-items: center; color: var(--white); background: var(--forest-dark) url("assets/agrowork-hero.png") center/cover no-repeat; }
.hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,35,25,.9) 0%, rgba(9,35,25,.68) 40%, rgba(9,35,25,.1) 72%); content: ""; }
.hero-content { position: relative; z-index: 1; padding-top: 52px; padding-bottom: 120px; }
.hero .eyebrow { color: var(--lime); }
.hero-lead { max-width: 620px; margin-bottom: 34px; color: rgba(255,255,255,.88); font-size: 1.18rem; }
.button-row { display: flex; align-items: center; gap: 30px; }
.hero-proof { position: absolute; z-index: 2; bottom: 0; width: 100%; border-top: 1px solid rgba(255,255,255,.22); background: rgba(10,40,29,.68); backdrop-filter: blur(8px); }
.proof-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-list p { margin: 0; padding: 25px 24px 25px 0; }
.proof-list p + p { padding-left: 34px; border-left: 1px solid rgba(255,255,255,.2); }
.proof-list strong, .proof-list span { display: block; }
.proof-list span { color: rgba(255,255,255,.66); font-size: .88rem; }

/* Tjänster */
.services { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1.5fr .7fr; align-items: end; gap: 80px; margin-bottom: 56px; }
.section-heading h2 { max-width: 690px; margin-bottom: 0; }
.section-heading > p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card { position: relative; display: flex; min-height: 340px; flex-direction: column; padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.45); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card.featured { color: var(--white); border-color: var(--forest); background: var(--forest); }
.service-number { color: var(--leaf); font-size: .76rem; font-weight: 800; }
.featured .service-number { color: var(--lime); }
.service-icon { position: absolute; top: 23px; right: 25px; font-size: 1.45rem; }
.service-card h3 { margin-top: auto; margin-bottom: 14px; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }
.featured p { color: rgba(255,255,255,.72); }

/* Fördelar */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; }
.why-intro { position: sticky; top: 120px; align-self: start; }
.why-intro > p:not(.eyebrow) { max-width: 480px; color: var(--muted); font-size: 1.08rem; }
.benefit-list article { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 28px 0; border-top: 1px solid var(--line); }
.benefit-list article:last-child { border-bottom: 1px solid var(--line); }
.benefit-list h3 { margin: 3px 0 8px; }
.benefit-list p { margin: 0; color: var(--muted); }
.check { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); font-size: 1.2rem; font-weight: 900; }

/* Företagspresentation */
.about { color: var(--white); background: var(--forest-dark); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 9%; }
.about-visual { position: relative; min-height: 610px; background: linear-gradient(rgba(12,42,30,.08), rgba(12,42,30,.08)), url("assets/agrowork-hero.png") 78% center/auto 100% no-repeat; }
.experience-badge { position: absolute; right: -45px; bottom: 42px; display: flex; width: 175px; min-height: 155px; flex-direction: column; justify-content: center; padding: 24px; color: var(--forest-dark); background: var(--lime); box-shadow: var(--shadow); }
.experience-badge strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1; }
.experience-badge span { margin-top: 8px; font-size: .82rem; font-weight: 700; }
.about-copy .eyebrow { color: var(--lime); }
.about-copy .lead { font-size: 1.25rem; }
.about-copy > p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.about-copy blockquote { margin: 32px 0 0; padding: 18px 0 18px 24px; border-left: 3px solid var(--lime); font-family: Georgia, serif; font-size: 1.25rem; font-style: italic; }

/* Kontaktformulär */
.contact { background: #e8e7dc; }
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.contact-copy { padding-top: 25px; }
.contact-copy > p:not(.eyebrow) { max-width: 430px; color: var(--muted); }
.contact-copy address { display: flex; flex-direction: column; gap: 18px; margin-top: 38px; font-style: normal; }
.contact-copy address a { font-size: 1.1rem; font-weight: 800; text-decoration: none; }
.contact-copy address span { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-form { padding: 42px; background: var(--white); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: block; margin-bottom: 20px; font-size: .85rem; font-weight: 800; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { display: block; width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid #bbc1b9; border-radius: 2px; color: var(--ink); background: #fafbf8; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--leaf); }
.consent { display: flex !important; align-items: flex-start; gap: 10px; color: var(--muted); font-weight: 500 !important; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--forest); }
.contact-form .button { width: 100%; border: 0; }
.contact-form .button:disabled { cursor: wait; opacity: .7; transform: none; }
.form-status { margin: 14px 0 0; color: var(--forest); font-weight: 700; }
.form-status.error { color: #9b2c2c; }

/* Footer */
.site-footer { color: rgba(255,255,255,.72); background: #0b2118; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; padding-top: 72px; padding-bottom: 60px; }
.footer-main > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-main > div:first-child p { max-width: 330px; margin-top: 12px; }
.footer-main h2 { margin: 4px 0 14px; color: var(--white); font-family: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-main a:not(.brand) { text-decoration: none; }
.footer-main a:hover { color: var(--white); }
.brand-light { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .section { padding: 84px 0; }
  .menu-button { position: relative; z-index: 22; display: block; cursor: pointer; }
  .menu-button[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-button[aria-expanded="true"] .menu-lines::before { transform: translateY(2px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-lines::after { transform: rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; z-index: 21; display: flex; flex-direction: column; justify-content: center; gap: 26px; color: var(--white); background: var(--forest-dark); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .main-nav.open { visibility: visible; opacity: 1; }
  .main-nav > a:not(.button) { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 55px; }
  .why-intro { position: static; }
  .about-grid { gap: 65px; }
  .about-visual { min-height: 500px; }
  .experience-badge { right: -25px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 32px, var(--container)); }
  .section { padding: 68px 0; }
  h1 { font-size: 3.1rem; }
  h2 { font-size: 2.35rem; }
  .hero { min-height: 720px; height: 100svh; background-position: 63% center; }
  .hero::before { background: linear-gradient(90deg, rgba(9,35,25,.92), rgba(9,35,25,.58)); }
  .hero-content { padding-bottom: 175px; }
  .hero-lead { font-size: 1rem; }
  .button-row { align-items: flex-start; flex-direction: column; gap: 19px; }
  .proof-list { grid-template-columns: 1fr 1fr; }
  .proof-list p { padding: 16px 12px 16px 0; }
  .proof-list p + p { padding-left: 14px; }
  .proof-list p:last-child { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 38px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; }
  .about-grid { grid-template-columns: 1fr; gap: 55px; }
  .about-visual { min-height: 430px; background-position: 68% center; }
  .experience-badge { right: -8px; bottom: -20px; width: 150px; min-height: 130px; }
  .contact-form { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 38px; padding-top: 55px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
