/* ==========================================================================
   Basta Restaurants – bastarestaurants.com
   Built from the Claude Design export ("Basta Restaurants.dc.html").
   ========================================================================== */

/* Fonts – self-hosted, open licence (SIL OFL), no third-party requests.
   Josefin Sans and Playfair Display are the same faces restaurangbasta.se uses. */
@font-face {
  font-family: 'Josefin Sans';
  src: url('../assets/fonts/josefinsans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700; /* variable file */
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/playfair-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/playfair-600i.woff2') format('woff2');
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

:root {
  --cream: oklch(97% 0.012 60);
  --cream-text: oklch(96% 0.015 60);
  --ink: oklch(20% 0.01 40);
  --muted: oklch(45% 0.02 40);
  --line: oklch(20% 0.01 40 / 0.12);
  --red: #d74525;
  --navy: #1a3259;

  --font-body: 'Josefin Sans', Helvetica, Arial, sans-serif;
  --font-script: 'Playfair Display', Georgia, serif;
  --font-eyebrow: 'Josefin Sans', Helvetica, Arial, sans-serif;
  --font-display: 'Josefin Sans', Helvetica, Arial, sans-serif;

  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-synthesis: none; /* brand fonts have one weight, no italic */ }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--navy); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--cream-text);
  background: #2a1a14 url('../assets/img/hero-poster-1000.webp') center / cover no-repeat;
  isolation: isolate;
}
@media (min-width: 1000px) {
  .hero { background-image: url('../assets/img/hero-poster-1920.webp'); }
}

.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    oklch(15% 0.02 30 / 0.55) 0%,
    oklch(15% 0.02 30 / 0.35) 45%,
    oklch(12% 0.02 30 / 0.75) 100%);
}

.hero__top {
  width: 100%; max-width: 1240px;
  padding: 16px 24px 0;
  display: flex; justify-content: center;
}
.hero__logo { width: 86px; height: auto; opacity: .96; }

.hero__content {
  flex: 1;
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 22px;
}

.hero__title {
  margin: 0;
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  line-height: 1.12;
  text-shadow: 0 2px 24px oklch(10% 0.02 30 / 0.4);
  display: flex; flex-direction: column; gap: 22px;
  max-width: 100%;
  animation: rise 1s var(--ease) both;
}
.hero__title-line { display: block; max-width: 100%; overflow-wrap: break-word; font-size: clamp(34px, 5.4vw + 12px, 64px); }
.hero__title-line--lg { font-size: clamp(42px, 6.48vw + 14px, 76.8px); }

.social {
  list-style: none; margin: 0; padding: 8px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 24px;
  animation: rise 1s .15s var(--ease) both;
}
.social__link {
  display: grid; place-items: center; gap: 8px;
  min-width: 74px; min-height: 52px; /* bekväm tryckyta */
  padding: 2px 4px;
  color: var(--cream);
  transition: opacity .2s ease, transform .2s ease;
}
.social__link svg { width: 26px; height: 26px; }
.social__link:hover { color: var(--cream); opacity: .7; transform: translateY(-2px); }
.social__tag {
  font-size: 7px; font-weight: 600; letter-spacing: .08em;
  color: oklch(96% 0.015 60 / .72);
  transition: color .2s ease;
}
.social__link:hover .social__tag { color: var(--cream); }
/* smala telefoner: håll de fyra länkarna på en rad */
@media (max-width: 400px) {
  .social { gap: 8px 12px; }
  .social__link { min-width: 56px; padding: 2px 0; }
}

.hero__scroll {
  padding: 0 24px 32px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(12px, 1.6vw, 16px);
  color: oklch(96% 0.015 60 / 0.9);
}
.hero__scroll:hover { color: var(--cream); }
.hero__scroll span { display: inline-block; animation: bob 2.4s ease-in-out infinite; }

/* ---------- Locations ---------- */
.locations { padding-bottom: 56px; }

.locations__intro {
  max-width: 1240px; margin: 0 auto;
  padding: 54px 24px 40px;
  text-align: center;
}
.eyebrow {
  margin: 0;
  font-family: var(--font-eyebrow);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--red);
}
.locations__heading {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 22px;
  color: var(--red);
}

.locations__grid {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
}

.country-card {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--cream);
  background: oklch(30% 0.03 40);
  box-shadow: 0 14px 40px oklch(20% 0.02 30 / 0.18);
  transition: transform .35s ease, box-shadow .35s ease;
}
.country-card:hover { color: var(--cream); transform: translateY(-4px); box-shadow: 0 20px 50px oklch(20% 0.02 30 / 0.26); }
.country-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.country-card:hover img { transform: scale(1.03); }

.country-card__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, oklch(10% 0.02 30 / 0.55) 100%);
}
.country-card__body { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.country-card__row { display: flex; align-items: center; justify-content: space-between; }
.country-card__row svg { transition: transform .3s ease; }
.country-card:hover .country-card__row svg { transform: translateX(4px); }
.country-card__title {
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 14px;
}
.country-card__cities {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; column-gap: 6px;
  font-size: 12px; line-height: 1.6;
  color: oklch(97% 0.012 60 / 0.85);
}
.country-card__cities li::before { content: '·\00a0'; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer:has(.nl--b) { border-top: 0; }
.site-footer__legal {
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .04em;
}
.site-footer__links {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 10px;
}
.site-footer__links li { display: flex; align-items: center; }
/* an item whose only content is hidden (e.g. Cookie settings) leaves no separator */
.site-footer__links li:has(> [hidden]) { display: none; }
/* separators between items, but not before the first one on a row */
.site-footer__links li + li::before {
  content: '·';
  margin-right: 10px;
  color: oklch(45% 0.02 40 / .5);
}
.site-footer__pending { color: var(--muted); }
.site-footer__copy { margin: 0; }
#newsletter-slot:not(:empty) + .site-footer__legal { border-top: 1px solid var(--line); }
.site-footer:has(.nl--b) .site-footer__legal { border-top: 0; }
.site-footer__legal a { color: inherit; }
.site-footer__legal a:hover { color: var(--red); }

/* ---------- Motion ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__video { display: none; } /* poster background shows instead */
}
