/* ═══════════════════════════════════════════════════════════════
   MOLEYE — Modern static stylesheet
   Färger: djup skogsgrön #1a3c34, salvie #7c9a6e, kräm #f8f6f1
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.7;
  color: #2d3a2e; background: #f8f6f1;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ── Typografi ───────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; line-height: 1.2; color: #1a3c34;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

/* ── Layout ──────────────────────────────────────────────────── */
.container { width: min(1100px, 92%); margin-inline: auto; }
.section { padding: 6rem 0; }
@media (max-width: 640px) { .section { padding: 4rem 0; } }

.section__header {
  text-align: center; max-width: 640px;
  margin-inline: auto; margin-bottom: 3rem;
}
.section__label {
  display: inline-block; font-size: .75rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: #7c9a6e; margin-bottom: .6rem;
}
.section__title { margin-bottom: 1rem; }
.section__intro { color: #5a6b5c; font-size: 1.05rem; }
.section__footer {
  text-align: center; margin-top: 2.5rem; color: #5a6b5c;
}
.section__footer p { max-width: 600px; margin-inline: auto; margin-bottom: 1.2rem; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,246,241,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26,60,52,.06);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.06); }

.nav-container {
  display: flex; align-items: center;
  justify-content: space-between; height: 72px;
}

.logo { display: flex; align-items: center; gap: .7rem; }
.logo__img {
  height: 28px;
  width: auto;
  display: block;
}
.logo__tagline {
  font-size: .65rem; font-weight: 500;
  letter-spacing: .06em; color: #7c9a6e;
  text-transform: uppercase;
  line-height: 1.2;
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: .9rem; font-weight: 500; color: #4a5c4e;
  position: relative; transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 2px;
  background: #7c9a6e; transition: width .3s ease;
  border-radius: 1px;
}
.nav-link:hover, .nav-link.active { color: #1a3c34; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #1a3c34; border-radius: 1px;
  transition: .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #f8f6f1;
    padding: 1.5rem; gap: 1.2rem;
    border-bottom: 1px solid rgba(26,60,52,.08);
    transform: translateY(-10px); opacity: 0;
    pointer-events: none; transition: .3s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
}

/* ── Knappar ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .85rem 1.6rem;
  font-size: .9rem; font-weight: 500;
  border-radius: 50px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: #1a3c34; color: #f8f6f1; border-color: #1a3c34;
}
.btn--primary:hover { background: #244a40; box-shadow: 0 8px 24px rgba(26,60,52,.25); }
.btn--ghost {
  background: transparent; color: #1a3c34; border-color: rgba(26,60,52,.25);
}
.btn--ghost:hover { border-color: #1a3c34; background: rgba(26,60,52,.04); }
.btn--small { padding: .55rem 1.2rem; font-size: .82rem; }
.btn--nav {
  margin-left: .5rem;
  background: #7c9a6e; color: #fff; border-color: #7c9a6e;
  font-weight: 600; letter-spacing: .02em;
}
.btn--nav:hover {
  background: #6b8a5e; border-color: #6b8a5e;
  box-shadow: 0 4px 14px rgba(124,154,110,.35);
}
@media (max-width: 720px) { .btn--nav { margin-left: 0; width: 100%; justify-content: center; padding: .75rem; font-size: .9rem; } }

/* ── Hero (start) ────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 90vh;
  display: grid; place-items: center;
  text-align: center; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1a3c34 0%, #2d5a4a 40%, #7c9a6e 100%);
  opacity: .95;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23ffffff' stroke-width='.5' opacity='.04'/%3E%3C/svg%3E");
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 720px; padding: 2rem; color: #f8f6f1;
}
.hero__label {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  opacity: .75; margin-bottom: 1.2rem;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: #fff; margin-bottom: .6rem;
}
.hero__title img {
  filter: invert(1);
  max-width: min(320px, 70vw);
  height: auto;
  margin-inline: auto;
  display: block;
}
.hero__subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-style: italic; font-weight: 400;
  opacity: .9; margin-bottom: 1.5rem;
}
.hero__lead {
  font-size: 1.1rem; opacity: .8;
  max-width: 560px; margin-inline: auto;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__actions .btn--primary {
  background: #f8f6f1; color: #1a3c34; border-color: #f8f6f1;
}
.hero__actions .btn--primary:hover { background: #fff; }
.hero__actions .btn--ghost {
  color: #f8f6f1; border-color: rgba(255,255,255,.35);
}
.hero__actions .btn--ghost:hover {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6);
}

.hero__scroll {
  position: absolute; bottom: 2rem;
  left: 50%; transform: translateX(-50%); z-index: 2;
}
.scroll-indicator {
  display: block; width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 12px; position: relative;
}
.scroll-indicator::after {
  content: ''; position: absolute;
  top: 6px; left: 50%; width: 4px; height: 8px;
  background: rgba(255,255,255,.6); border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { top: 6px; opacity: .6; }
  50% { top: 14px; opacity: .2; }
}

/* ── Tjänster ────────────────────────────────────────────────── */
.section--services { background: #f8f6f1; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff; border-radius: 16px;
  padding: 2rem; border: 1px solid rgba(26,60,52,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,60,52,.08); }
.service-card--wide { grid-column: 1 / -1; }
@media (min-width: 640px) { .service-card--wide { grid-column: span 2; } }
.service-card__icon { width: 48px; height: 48px; color: #7c9a6e; margin-bottom: 1.2rem; }
.service-card__title { margin-bottom: .6rem; }
.service-card__text { color: #5a6b5c; font-size: .95rem; line-height: 1.65; }

/* ── Om mig (teaser) ─────────────────────────────────────────── */
.section--about { background: #fff; }
.about-teaser {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
@media (max-width: 800px) { .about-teaser { grid-template-columns: 1fr; gap: 2.5rem; } }

.image-frame { position: relative; }
.image-frame img {
  border-radius: 16px; width: 100%;
  aspect-ratio: 4/5; object-fit: cover;
  position: relative; z-index: 2;
}
.image-frame__deco {
  position: absolute;
  top: 1.2rem; left: 1.2rem;
  right: -1.2rem; bottom: -1.2rem;
  border: 2px solid #7c9a6e; border-radius: 16px;
  z-index: 1; opacity: .4;
}

.about-teaser__text .section__label { margin-bottom: .4rem; }
.about-teaser__text .section__title { margin-bottom: 1.2rem; }
.about-teaser__text p { color: #5a6b5c; margin-bottom: 1.2rem; }
.about-teaser__text .btn { margin-top: .5rem; }

.quote {
  border-left: 3px solid #7c9a6e; padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif; font-style: italic;
  color: #3d4f42;
}
.quote p { font-size: 1.15rem; line-height: 1.5; color: #3d4f42; }

/* ── CTA (kontakt) ───────────────────────────────────────────── */
.section--cta {
  background: #1a3c34; color: #f8f6f1; text-align: center;
}
.cta-block { max-width: 640px; margin-inline: auto; }
.cta-block__title { color: #fff; margin-bottom: 1rem; }
.cta-block__text { opacity: .8; margin-bottom: 1.8rem; }
.cta-block__actions {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.cta-block__actions .btn--primary {
  background: #f8f6f1; color: #1a3c34; border-color: #f8f6f1;
}
.cta-block__actions .btn--primary:hover { background: #fff; }
.cta-block__actions .btn--ghost {
  color: #f8f6f1; border-color: rgba(255,255,255,.3);
}
.cta-block__actions .btn--ghost:hover { background: rgba(255,255,255,.08); }
.cta-block__address { opacity: .65; font-size: .95rem; line-height: 1.8; }

/* ── Nyheter ──────────────────────────────────────────────────── */
.section--news { background: #f8f6f1; }

.news-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(26,60,52,.06);
  margin-bottom: 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(26,60,52,.08); }
@media (max-width: 640px) {
  .news-card { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
}

.news-card--pinned {
  border-left: 4px solid #7c9a6e;
}

.news-card__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
}

.news-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a3c34;
  color: #f8f6f1;
  border-radius: 12px;
  padding: .8rem 1rem;
  min-width: 72px;
  line-height: 1.2;
}
.news-card__date .day {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
}
.news-card__date .month {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.news-card__date .year {
  font-size: .7rem;
  opacity: .75;
}

.news-card__badge {
  font-size: .72rem;
  font-weight: 600;
  color: #7c9a6e;
  background: rgba(124,154,110,.1);
  padding: .25rem .7rem;
  border-radius: 50px;
}

.news-card__body { display: flex; flex-direction: column; gap: .6rem; }
.news-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #1a3c34;
  margin-bottom: .2rem;
}
.news-card__body p { color: #4a5c4e; line-height: 1.65; }
.news-card__body a {
  color: #1a3c34;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.news-card__body a:hover { color: #7c9a6e; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: #141f1a; color: #a8b5aa;
  padding: 3rem 0 1.5rem; font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.footer__brand .footer__logo {
  height: 22px; width: auto;
  filter: invert(1); opacity: .85;
  margin-bottom: .4rem; display: block;
}
.footer__brand p { opacity: .7; }
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: #f8f6f1; }
.footer__contact a { transition: color .2s; }
.footer__contact a:hover { color: #f8f6f1; }
.footer__copy { text-align: center; padding-top: 1.5rem; opacity: .5; font-size: .82rem; }

/* ── Om mig (sida) ───────────────────────────────────────────── */
.about-page__hero {
  background: #1a3c34; color: #f8f6f1;
  padding: 5rem 0 3rem; text-align: center;
}
.about-page__hero h1 { color: #fff; margin-bottom: .5rem; }
.about-page__hero p { opacity: .75; font-size: 1.1rem; }

.about-story { background: #fff; }
.about-story .container { max-width: 740px; }
.about-story__body p {
  color: #4a5c4e; margin-bottom: 1.4rem; font-size: 1.05rem;
}
.about-story__body p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif; font-size: 3.2rem;
  float: left; line-height: 1; padding-right: .5rem;
  color: #1a3c34;
}

/* ── Kontakt (sida) ──────────────────────────────────────────── */
.contact-hero {
  background: #1a3c34; color: #f8f6f1;
  padding: 5rem 0 3rem; text-align: center;
}
.contact-hero h1 { color: #fff; margin-bottom: .5rem; }
.contact-hero p { opacity: .75; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-cards { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-card {
  background: #fff; border-radius: 16px;
  padding: 2rem; border: 1px solid rgba(26,60,52,.06);
}
.contact-card h3 { margin-bottom: 1rem; }
.contact-card p { color: #3d4f42; margin-bottom: .8rem; }
.contact-card a:not(.btn) {
  color: #1a3c34; text-decoration: underline;
  text-underline-offset: 3px; transition: color .2s;
}
.contact-card a:not(.btn):hover { color: #7c9a6e; }
.contact-card .btn { margin-top: .5rem; }

.map-embed {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(26,60,52,.08);
  background: #e8e6e1; min-height: 320px;
  display: grid; place-items: center;
  position: relative;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-embed p {
  position: absolute; z-index: 2;
  color: #5a6b5c; font-size: .9rem;
}

/* ── Boka Direkt-embed ─────────────────────────────────────── */
.section--booking { background: #fff; }
.booking-embed {
  background: #f8f6f1;
  border-radius: 16px;
  border: 1px solid rgba(26,60,52,.06);
  overflow: hidden;
  min-height: 400px;
}
.booking-embed iframe {
  width: 100%;
  min-height: 700px;
  border: 0;
  display: block;
}
.booking-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 4rem 2rem;
  text-align: center;
}
.booking-fallback p {
  font-size: 1.1rem;
  color: #4a5c4e;
}
.booking-fallback .btn { font-size: 1rem; padding: 1rem 2rem; }

/* ── Flytande Boka-knapp (mobil) ─────────────────────────────── */
.booking-fab {
  display: none;
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #7c9a6e;
  color: #fff;
  font-weight: 600;
  padding: .9rem 2rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  white-space: nowrap;
  animation: fabAppear .5s ease both;
}
.booking-fab:hover {
  background: #6b8a5e;
  transform: translateX(-50%) translateY(-1px);
}
@keyframes fabAppear {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (max-width: 720px) {
  .booking-fab { display: inline-flex; }
  body { padding-bottom: 4rem; } /* utrymme för FAB */
}

/* ── Reveal-animationer ────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.services-grid .reveal:nth-child(1) { transition-delay: .05s; }
.services-grid .reveal:nth-child(2) { transition-delay: .15s; }
.services-grid .reveal:nth-child(3) { transition-delay: .25s; }
.services-grid .reveal:nth-child(4) { transition-delay: .35s; }
.services-grid .reveal:nth-child(5) { transition-delay: .45s; }
