/* Prästebolsblomster – publika sajten. Färger från loggan (gräddvitt papper, mörkt bläck) och odlingens dahlior. */

@font-face { font-family: 'Gilda Display'; src: url(fonts/gilda-display.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(fonts/jost.woff2) format('woff2'); font-weight: 300 500; font-display: swap; }

:root {
  --paper: #f5f0ea;
  --paper-2: #ece4d9;
  --card: #fbf8f4;
  --ink: #26211d;
  --muted: #6d6359;
  --line: #ddd3c6;
  --rose: #9c5f62;
  --rose-soft: #e9d6d2;
  --sage: #69735a;
  --dark: #1c1815;
  --serif: 'Gilda Display', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --space: clamp(64px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 17px/1.75 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 99; top: 8px; left: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.muted { color: var(--muted); }

.kicker { font: 400 .78rem/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--rose); margin: 0 0 1.1em; }
.prose { max-width: 62ch; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.credit { font-size: .8rem; color: var(--muted); margin: .6em 0 0; letter-spacing: .02em; }

.btn, .btn-light, .link-arrow {
  display: inline-block; font: 400 .8rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  padding: 1.15em 2.2em; border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.link-arrow { border: 0; padding: .4em 0; border-bottom: 1px solid currentColor; }
.link-arrow::after { content: ' →'; }
.link-arrow:hover { color: var(--rose); background: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section.tight { padding-top: 0; }
.center { text-align: center; }
.center .prose { margin-left: auto; margin-right: auto; }

/* ---------- Topprad om nästa evenemang ---------- */
.notice { display: block; background: var(--dark); color: #f3ebe1; text-align: center; text-decoration: none; font-size: .86rem; letter-spacing: .04em; padding: 9px var(--gutter); }
.notice span:first-child { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: #e5c2bd; margin-right: .5em; }
.notice:hover { color: #fff; }

/* ---------- Sidhuvud ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 240, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--gutter); }
.site-header.scrolled { border-color: var(--line); }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; gap: clamp(14px, 2vw, 30px); }
.main-nav a { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a[aria-current="page"], .main-nav a:hover { border-color: currentColor; color: var(--ink); }
.menu-btn { display: none; }

@media (max-width: 1020px) {
  .brand img { height: 42px; }
  .menu-btn { display: grid; gap: 7px; align-content: center; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .menu-btn span:not(.sr) { display: block; height: 1px; background: var(--ink); transition: transform .25s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .js .main-nav { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .js .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
  .main-nav a[aria-current="page"] { color: var(--rose); border-color: var(--line); }
  .nav-social { margin: 14px 0 0; padding: 0; border: 0; gap: 22px; }
  .nav-social .social-link { border: 0; }
  .nav-social svg { width: 24px; height: 24px; }
}

/* ---------- Startsidans topp ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100vh - 82px); min-height: calc(100svh - 82px); }
.hero-text { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 64px var(--gutter); }
.hero-text .sprig { width: 74px; margin: 0 auto 28px; opacity: .9; }
.hero-text h1 { max-width: 13ch; }
.hero-text .prose { max-width: 40ch; color: var(--muted); margin-bottom: 1.6em; }
.hero-img { position: relative; overflow: hidden; background: var(--dark); }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { order: -1; height: 62vh; height: 62svh; }
  .hero-text { padding-top: 48px; padding-bottom: 56px; }
}

/* ---------- Bild + text sida vid sida ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.reverse .split-img { order: 2; }
.split-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-img.wide img { aspect-ratio: 5 / 4; }
.split-text { max-width: 560px; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
}

/* Förskjuten bild: liten bild som ligger över den stora */
.duo { position: relative; padding-bottom: 12%; }
.duo .small { position: absolute; width: 46%; right: -6%; bottom: 0; border: 10px solid var(--paper); }
.duo .small img { aspect-ratio: 3 / 4; }
@media (max-width: 820px) { .duo .small { right: 0; } }

/* ---------- Mörkt band med citat ---------- */
.band { position: relative; color: #fff; text-align: center; padding: clamp(110px, 16vw, 220px) var(--gutter); overflow: hidden; background: var(--dark); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20,17,15,.55), rgba(20,17,15,.15) 75%); }
.band-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-shadow: 0 1px 24px rgba(0,0,0,.35); }
.band h2 { font-size: clamp(2.2rem, 5.5vw, 4.6rem); font-style: normal; }
.band .prose { margin: 0 auto; color: rgba(255,255,255,.88); }

/* ---------- Kort (tjänster) ---------- */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 3vw, 40px); margin-top: 48px; }
.card { text-decoration: none; display: block; flex: 0 1 calc((100% - 2 * clamp(20px, 3vw, 40px)) / 3); min-width: 240px; }
@media (max-width: 640px) { .card { flex-basis: 100%; } }
.card .img { overflow: hidden; background: var(--paper-2); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover img { transform: scale(1.04); }
.card h3 { margin: 18px 0 6px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card:hover { color: var(--ink); }
.card:hover h3 { color: var(--rose); }

/* ---------- Evenemang ---------- */
.events { display: grid; gap: 22px; margin-top: 44px; }
.event { display: grid; grid-template-columns: 112px minmax(0, 1fr) 240px; background: var(--card); border: 1px solid var(--line); text-align: left; scroll-margin-top: 100px; }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); padding: 20px 8px; text-align: center; }
.event-date .day { font: 400 2.8rem/1 var(--serif); }
.event-date .month { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.event-body { padding: 26px 30px; }
.event-body h3 { margin: 6px 0 8px; }
.event-meta { font-size: .92rem; color: var(--muted); margin-bottom: .8em; }
.event-kind { display: inline-block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); }
.event-img img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.event.past { opacity: .7; }
@media (max-width: 860px) {
  .event { grid-template-columns: 84px minmax(0, 1fr); }
  .event-img { grid-column: 1 / -1; order: -1; }
  .event-img img { aspect-ratio: 16 / 9; min-height: 0; }
  .event-body { padding: 20px; }
  .event-date .day { font-size: 2.2rem; }
}
.empty-note { border: 1px dashed var(--line); padding: 34px; text-align: center; color: var(--muted); max-width: 640px; margin: 36px auto 0; }

/* ---------- Galleri ---------- */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 44px; }
.strip a { overflow: hidden; display: block; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.strip a:hover img { transform: scale(1.05); }
@media (max-width: 820px) { .strip { grid-template-columns: repeat(3, 1fr); } }

.gallery { columns: 3 300px; column-gap: 14px; margin-top: 44px; }
.gallery a { display: block; margin-bottom: 14px; break-inside: avoid; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gallery a:hover img { transform: scale(1.03); }

.row-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 56px; }
.row-imgs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 17, 15, .94); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; width: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 2.2rem/1 var(--sans); cursor: pointer; padding: 14px 18px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 6px; right: 8px; }
.lightbox .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: .85rem; }

/* ---------- Undersidornas topp ---------- */
.page-head { text-align: center; padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(40px, 5vw, 64px); }
.page-head .prose { margin: 0 auto; color: var(--muted); }
.page-head .sprig { width: 54px; margin: 0 auto 22px; }
.page-banner { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.page-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 700px) { .page-banner img { aspect-ratio: 4 / 3; } }

/* ---------- Tjänster ---------- */
.service + .service { margin-top: var(--space); }
.service .split-text h2 { margin-bottom: .6em; }
.service-num { font: 400 .78rem/1 var(--sans); letter-spacing: .3em; color: var(--rose); margin-bottom: 1.2em; display: block; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.contact-list b { font-weight: 400; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); min-width: 92px; padding-top: 4px; }
.form { background: var(--card); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.form label { display: block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.form input, .form textarea { display: block; width: 100%; margin-top: 8px; font: 300 1rem/1.5 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 12px 14px; border-radius: 0; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--rose-soft); border-color: var(--rose); }
.form textarea { min-height: 170px; resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.alert { padding: 16px 20px; margin-bottom: 22px; border-left: 3px solid var(--sage); background: #eef0e6; }
.alert.error { border-color: var(--rose); background: #f6e6e3; }

/* ---------- Sidfot ---------- */
.site-footer { background: var(--dark); color: #e8dfd4; padding: 80px var(--gutter) 28px; margin-top: 0; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-brand img { width: 190px; opacity: .92; }
.site-footer h2 { font: 400 .76rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: #c9a9a3; margin: 10px 0 20px; }
.site-footer a { color: #f3ece3; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #a59a8e; }
.social { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.social-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; flex: none; }
.social-link:hover span { text-decoration: underline; }
.social-dark { margin: 0 0 32px; }
.nav-social { display: flex; gap: 12px; align-items: center; margin-left: 6px; padding-left: 18px; border-left: 1px solid var(--line); }
.nav-social .social-link { padding: 4px 0; border: 0; }
.nav-social svg { width: 19px; height: 19px; }
.btn-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
@media (max-width: 820px) { .footer-inner .social { justify-content: center; } }
.footer-text { max-width: var(--wrap); margin: 48px auto 0; color: #a59a8e; font-size: .92rem; }
.footer-bottom { max-width: var(--wrap); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid #3a332d; font-size: .8rem; color: #8d8277; }
.footer-bottom a { color: #8d8277; }
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand img { margin: 0 auto; width: 160px; }
  .footer-bottom, .footer-text { text-align: center; }
}

/* Mjuk intoning när man scrollar (bara om JS och om användaren inte valt bort rörelse) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
