/* Mellby Café — grundstilar
   Färgpalett hämtad från loggan: kaffebrun, dammrosa, krämig bakgrund. */

:root {
  --color-bg: #faf6f1;
  --color-bg-alt: #f2e8db;
  --color-card: #ffffff;
  --color-text: #3a2a22;
  --color-text-light: #6b5a4f;
  --color-primary: #5c332a;
  --color-primary-dark: #40211a;
  --color-accent: #d98c78;
  --color-accent-light: #f3c9c0;
  --color-border: #e6d9c8;
  --shadow-soft: 0 10px 30px rgba(58, 42, 34, 0.08);
  --shadow-hover: 0 16px 40px rgba(58, 42, 34, 0.14);
  --radius: 14px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.brand-name span {
  display: block;
  font-family: "Work Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  white-space: normal;
  max-width: 180px;
}

@media (max-width: 480px) {
  .brand-name span {
    display: none;
  }
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary-dark);
  position: relative;
  transition: 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58,42,34,0.35) 0%, rgba(58,42,34,0.65) 100%);
  z-index: -1;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-bottom: 14px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 720px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 560px;
  color: #f5ece5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-primary);
  color: #fff;
}
.btn-dark:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Sections */
section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--color-text-light);
}

/* Page hero (small, for inner pages) */
.page-hero {
  padding: 56px 0 40px;
  text-align: center;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-hero p {
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Highlight icons row */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight {
  text-align: center;
  padding: 28px 20px;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.highlight .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.highlight h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.highlight p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Two column layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Opening hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-light);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

/* Menu */
.menu-note {
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
  margin-bottom: 40px;
}

.menu-category {
  margin-bottom: 48px;
}

.menu-category h2 {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.menu-category-note {
  font-style: italic;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin: -10px 0 16px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-border);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-name {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.menu-item-desc {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: 2px;
}

.menu-item-price {
  white-space: nowrap;
  font-weight: 600;
  color: var(--color-accent);
  align-self: flex-start;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.08);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 9, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.map-frame {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #f1e6dc;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  color: #e6d5c8;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-links a:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer .social-links a {
  background: rgba(255, 255, 255, 0.1);
  color: #f1e6dc;
}

.site-footer .social-links a:hover {
  background: var(--color-accent);
  color: #fff;
}

.hero .social-links {
  margin-top: 32px;
}

.hero .social-links a {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.hero .social-links a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.social-follow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-follow-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero .social-follow-label {
  color: #f5ece5;
}

.page-hero .social-follow-label {
  color: var(--color-text-light);
}

.page-hero .social-follow {
  justify-content: center;
  margin-top: 24px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #b9a494;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  nav.main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  nav.main-nav.open {
    transform: translateY(0);
  }

  nav.main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-toggle {
    display: block;
  }

  .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 60px 24px; }
}
