/* TEST Café Exempel. Phone first: base styles are for phones, wider screens are added at the bottom. */

@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-Variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-Variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --bg: #fbf5ec;          /* cream */
  --bg-2: #f4e3d6;        /* soft peach, for alternate sections */
  --surface: #fffaf3;     /* cards */
  --ink: #3b2a20;         /* dark coffee, main text */
  --ink-2: #6b574a;       /* softer text */
  --line: #e8d8c8;
  --accent: #b4532f;      /* terracotta, the main colour */
  --accent-ink: #9c4527;  /* darker terracotta for links on cream */
  --on-accent: #ffffff;
  --sage: #8fa38a;
  --dark: #3b2a20;
  --on-dark: #f6e9dc;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --r: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 8vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* Test strip at the very top. Remove before a real launch. */
.test-strip { background: var(--sage); color: #1f2b1d; text-align: center; font-size: .85rem; font-weight: 700; padding: 6px 12px; }

/* Header: logo on top, menu as a row underneath on phones */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 12px; padding-bottom: 10px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo:hover { color: var(--ink); }
.logo .tag { font-family: var(--sans); font-size: .65rem; font-weight: 800; letter-spacing: .08em; background: var(--accent); color: var(--on-accent); padding: 2px 6px; border-radius: 6px; }
.lang { font-weight: 700; font-size: .9rem; text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--ink); }
.lang:hover { border-color: var(--accent); color: var(--accent-ink); }
.nav { width: 100%; order: 3; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; white-space: nowrap; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--on-dark); }

/* Buttons */
.btn { display: inline-block; font: 700 1rem/1 var(--sans); padding: 15px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); color: var(--on-accent); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Sections */
section { padding: 56px 0; }
.alt { background: var(--bg-2); }
.kicker { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }

/* Hero */
.hero { padding: 36px 0 56px; }
.hero-grid { display: grid; gap: 28px; }

/* Photo placeholders: soft colour blocks with a label saying which photo goes there */
.photo { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #ecc7ad 0%, #e3a888 55%, #c9805f 100%); }
.photo.p2 { background: linear-gradient(135deg, #dfe6da 0%, #b8c8b2 60%, #8fa38a 100%); }
.photo.p3 { background: linear-gradient(135deg, #f3dfb8 0%, #e6c07e 60%, #c99a52 100%); }
.photo.tall { aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .ph-label { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 250, 243, .9); color: var(--ink); font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.photo .cup { position: absolute; inset: 0; margin: auto; width: 34%; opacity: .55; }

/* Cards */
.cards { display: grid; gap: 14px; margin-top: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--ink-2); margin: 0; }
.card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }

/* Opening hours */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { color: var(--accent-ink); }
.open-now { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; margin-bottom: 14px; min-height: 1.5em; }
.open-now::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.open-now.is-open::before { background: #4f8a4a; }
.open-now.is-closed::before { background: var(--accent); }
.open-now:empty::before { display: none; }

.info-grid { display: grid; gap: 18px; }

/* Menu */
.menu-group { margin-top: 36px; }
.menu-group h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.menu-group h2 small { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.menu-row { display: flex; align-items: baseline; gap: 10px; }
.menu-row b { font-weight: 700; }
.menu-row .dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 16px; }
.menu-row .price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-list p { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: 12px; padding: 14px 16px; color: var(--ink-2); margin-top: 28px; }

/* Call to action band */
.band { background: var(--dark); color: var(--on-dark); border-radius: var(--r); padding: 32px 24px; }
.band h2 { color: var(--on-dark); }
.band p { color: #e3d2c3; }
.band .btn-primary:hover { background: #ffffff; color: var(--ink); }

/* Contact form */
form { display: grid; gap: 14px; }
label { font-weight: 700; display: grid; gap: 6px; }
input, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; width: 100%; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180, 83, 47, .18); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-weight: 700; margin: 0; min-height: 1.5em; }
.form-msg.ok { color: #3f7a3b; }
.form-msg.err { color: #b0322a; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 44px 0 28px; margin-top: 0; }
.site-footer a { color: var(--on-dark); }
.site-footer .logo { color: var(--on-dark); }
.foot-grid { display: grid; gap: 24px; }
.site-footer h3 { font-size: 1rem; font-family: var(--sans); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #e3c2ad; margin-bottom: 8px; }
.site-footer p { margin: 0 0 4px; color: #e3d2c3; }
.foot-bottom { border-top: 1px solid #5a463a; margin-top: 30px; padding-top: 18px; font-size: .85rem; color: #cdb8a8; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Bigger screens */
@media (min-width: 720px) {
  section { padding: 80px 0; }
  .site-header .wrap { flex-wrap: nowrap; }
  .nav { width: auto; order: 0; margin-left: auto; }
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
  .photo.tall { aspect-ratio: 4 / 5; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .band { padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
  .band .btns { margin-top: 0; flex-shrink: 0; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
