/* ============================================================
   Grethes Gårdsbutikk — forside (design 2a)
   ============================================================ */

:root {
  --cream: #f4efe7;
  --paper: #faf7f1;
  --ink: #37322c;
  --ink-soft: #5f574d;
  --muted: #6b6259;
  --muted-light: #a2988c;
  --rose: #c0857b;
  --rose-deep: #8d5a4e;
  --rose-border: #d9b8ae;
  --rose-border-2: #c9b3a9;
  --hairline: #e8dfd0;
  --hairline-2: #ece2d3;
  --hairline-3: #ddceba;
  --blue-grey: #8d979b;
  --review-card: #413b34;
  --star: #f2b705;

  --serif: 'Cormorant Garamond', serif;
  --sans: 'Mulish', sans-serif;

  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 18px;
  font-weight: 600;
}

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 24px;
}
.h2--lg { font-size: 52px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  border: 1px solid transparent;
}
.btn--pill { border-radius: 999px; padding: 13px 26px; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { transform: translateY(-2px); }
.btn--outline { border-color: var(--rose-border); color: var(--rose-deep); background: transparent; }
.btn--outline:hover { background: var(--rose); color: #fff; border-color: var(--rose); }
.btn--outline2 { border-color: var(--rose-border-2); color: var(--rose-deep); background: transparent; }
.btn--outline2:hover { transform: translateY(-2px); }
.btn--ghost { border-color: rgba(244, 239, 231, .35); color: var(--cream); background: transparent; }
.btn--ghost:hover { background: rgba(244, 239, 231, .1); transform: translateY(-2px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 44px;
  background: rgba(250, 247, 241, .9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 25px; color: var(--ink); }
.brand__sub {
  font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase;
  color: #b39a92; margin-top: 3px;
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 13px; color: var(--muted); transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--rose); }
.nav__cta { font-size: 13px; padding: 10px 22px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 44px 24px;
  background: rgba(250, 247, 241, .98);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 71px;
  z-index: 19;
}
.mobile-menu a { padding: 12px 4px; font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--hairline); }
.mobile-menu .btn { margin-top: 14px; align-self: flex-start; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--cream);
  padding-bottom: 76px;
  overflow: hidden;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__img {
  width: 64%;
  margin-left: auto;
  height: 600px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 0 0 8px 8px;
}
.hero__card {
  position: absolute;
  left: 44px;
  bottom: 0;
  width: 576px;
  background: var(--paper);
  padding: 52px 52px 48px;
  box-shadow: 0 24px 60px rgba(60, 45, 30, .2);
  border-radius: 8px;
}
.hero__h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 70px;
  line-height: .98;
  color: var(--ink);
  margin: 0 0 22px;
}
.hero__h1 em { font-style: italic; color: var(--rose-deep); }
.hero__lead { font-size: 16px; color: var(--ink-soft); max-width: 430px; margin: 0 0 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__seal {
  position: absolute;
  top: 60px;
  right: 56px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--rose-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
  box-shadow: 0 12px 30px rgba(60, 45, 30, .25);
  animation: floaty 5s ease-in-out infinite;
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--ink);
  color: #e7c3b8;
  padding: 16px 0;
  white-space: nowrap;
  overflow: hidden;
}
.ticker__track { display: inline-flex; animation: marquee 26s linear infinite; }
.ticker__group { display: inline-flex; align-items: center; }
.ticker__group span { font-family: var(--serif); font-style: italic; font-size: 24px; padding: 0 14px; }
.ticker .dot { padding: 0 2px; opacity: .6; }

/* ============================================================
   OM OSS
   ============================================================ */
.om {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 88px 64px;
  background: var(--paper);
  max-width: var(--maxw);
  margin: 0 auto;
}
.om__media { position: relative; height: 520px; }
.om__img-main {
  width: 74%; height: 400px; object-fit: cover;
  position: absolute; top: 0; left: 0;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(60, 45, 30, .16);
}
.om__img-second {
  position: absolute; bottom: 0; right: 0;
  width: 56%; height: 260px;
  object-fit: cover;
  border: 6px solid var(--paper);
  border-radius: 8px;
  background: #e7ddca;
  box-shadow: 0 18px 44px rgba(60, 45, 30, .16);
}
.om__badge {
  position: absolute; top: -22px; right: 0;
  background: var(--rose); color: #fff;
  font-family: var(--serif); font-size: 30px;
  padding: 14px 22px; border-radius: 6px;
  transform: rotate(3deg);
  box-shadow: 0 10px 24px rgba(60, 45, 30, .22);
}
.om__text p { margin: 0 0 18px; line-height: 1.8; }
.pull-quote {
  margin: 26px 0 0;
  padding-left: 22px;
  border-left: 3px solid var(--rose-border);
  font-family: var(--serif);
  font-style: italic;
  font-size: 23px;
  line-height: 1.4;
  color: var(--rose-deep);
}

/* ============================================================
   UTVALG
   ============================================================ */
.utvalg { padding: 88px 64px; background: var(--cream); max-width: var(--maxw); margin: 0 auto; }
.utvalg__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 12px;
}
.utvalg__intro { font-size: 15px; color: #6b6259; max-width: 360px; margin: 0; }
.utvalg__list { border-top: 1px solid var(--hairline-3); }
.product-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 28px;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--hairline-3);
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}
.product-row:hover { background: var(--paper); padding-left: 20px; }
.product-row__num { font-family: var(--serif); font-size: 34px; color: var(--rose-border-2); }
.product-row__title { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.product-row__desc { font-size: 14.5px; color: #6b6259; }
.utvalg__footer {
  text-align: center; margin: 44px 0 0;
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--rose-deep);
}

/* ============================================================
   ANMELDELSER
   ============================================================ */
.reviews {
  background: var(--ink);
  color: var(--cream);
  padding: 88px 64px;
}
.reviews {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.google-word { font-family: var(--serif); font-size: 26px; margin: 0 0 20px; display: flex; align-items: baseline; gap: 12px; }
.google-word__label {
  font-family: var(--sans); font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: #b7ada0; font-weight: 600;
}
.reviews__lead { color: #cdc3b5; line-height: 1.75; margin: 0 0 28px; }
.reviews__cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.reviews__cta .btn { width: auto; }

/* Live Google-anmeldelser (Trustindex-widget). Widgeten styrer eget utseende. */
.reviews-widget { min-height: 60px; }

/* ============================================================
   ÅPNINGSTIDER + KART
   ============================================================ */
.hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hours__panel { padding: 76px 64px; background: var(--paper); }
.hours__list { margin: 0; }
.hours__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--hairline-2);
  font-size: 15px;
}
.hours__row dt { color: var(--ink-soft); }
.hours__row dd { margin: 0; }
.hours__row .closed { color: var(--muted-light); }
.hours__row .open { color: var(--rose-deep); font-weight: 700; }

.map {
  position: relative;
  min-height: 460px;
  background: #e7ddca;
}
.map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__cta {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 13px;
  box-shadow: 0 6px 18px rgba(40, 34, 28, .3);
}
.map__cta:hover { transform: translateX(-50%) translateY(-2px); }

/* ============================================================
   GALLERI
   ============================================================ */
.gallery { padding: 80px 64px; background: var(--cream); max-width: var(--maxw); margin: 0 auto; }
.gallery__head { text-align: center; margin-bottom: 40px; }
.gallery__head .h2 { margin-bottom: 0; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery__item { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }

/* ============================================================
   SOSIALT
   ============================================================ */
.social {
  padding: 72px 64px; background: #f0e5db;
  max-width: var(--maxw); margin: 0 auto;
  text-align: center;
}
.social__head { margin-bottom: 32px; }
.social__head .h2 { margin-bottom: 12px; }
.social__link { color: var(--rose-deep); font-weight: 600; font-size: 14px; }
.social__link:hover { color: var(--rose); }
/* Live Facebook-innlegg (tredjeparts-widget, fylles inn av eier). Tom = ingen plass. */
.fb-widget { max-width: 560px; margin: 0 auto; }
.fb-widget:empty { display: none; }

/* Reservekort – alltid pålitelig, ingen iframe */
.fb-fallback {
  background: var(--paper);
  border: 1px solid var(--hairline-2);
  border-radius: 12px;
  padding: 40px 34px;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.fb-fallback__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: #1877F2; color: #fff;
  font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 30px;
  margin-bottom: 18px;
}
.fb-fallback__title { font-family: var(--serif); font-size: 26px; color: var(--ink); margin: 0 0 10px; }
.fb-fallback__text { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0 auto 24px; max-width: 360px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink); color: #cdc3b5;
  padding: 48px 64px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer__brand { font-family: var(--serif); font-size: 24px; color: var(--cream); }
.footer__addr { text-align: right; font-size: 13px; }
.footer__muted { color: #8f867a; margin-top: 4px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fu { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

.reveal-on-load { animation: fu .9s var(--ease) both; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 18px 24px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .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); }
  .mobile-menu.is-open { display: flex; }

  /* Hero → stacked */
  .hero { padding-bottom: 0; }
  .hero__img { width: 100%; height: 340px; border-radius: 0; }
  .hero__card { position: static; width: 100%; border-radius: 0; padding: 36px 24px 40px; box-shadow: none; }
  .hero__h1 { font-size: 42px; }
  .hero__seal { top: 24px; right: 24px; width: 92px; height: 92px; font-size: 15px; }

  .ticker__group span { font-size: 20px; }

  /* Collapse 2-col grids */
  .om, .reviews, .hours, .social { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px; }
  .om__media { height: 420px; }
  .om__badge { font-size: 24px; }

  .utvalg, .gallery { padding: 56px 24px; }
  .utvalg__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .h2, .h2--lg { font-size: 38px; }
  .hero__h1 { font-size: 42px; }

  .product-row { grid-template-columns: 56px 1fr; gap: 14px 18px; }
  .product-row__num { font-size: 26px; }
  .product-row__desc { grid-column: 2; }
  .product-row:hover { padding-left: 12px; }

  .reviews { padding: 64px 24px; }

  .hours__panel { padding: 48px 24px; }
  .map { min-height: 340px; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item--big { grid-column: span 2; grid-row: span 1; height: 220px; }

  .footer { flex-direction: column; align-items: flex-start; padding: 40px 24px; }
  .footer__addr { text-align: left; }
}

@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--big { grid-column: span 1; }
  .social__thumbs { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 90px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .hero__seal { animation: none; }
  .reveal-on-load { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
