/* guidesamsterdam.com — styles.css v=2
   Mobile-first, no framework, static HTML site.
   Cache-bust: increment v=N in all HTML links when changing this file.
*/

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:   #ffffff;
  --off-white: #f8f8f6;
  --light:   #f0ede8;
  --mid:     #d4cec7;
  --muted:   #888074;
  --ink:     #1a1714;
  --accent:  #c8401a;   /* warm Amsterdam red */
  --accent-hover: #a83315;
  --link:    #1a5c9e;
  --link-hover: #0f3d6e;
  --green:   #2d7a3a;
  --yellow:  #c47e00;
  --radius:  4px;
  --max:     720px;
  --font:    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

/* ─── Typography ─── */
h1 { font-size: 1.75rem; line-height: 1.25; font-weight: 700; margin-bottom: .5rem; }
h2 { font-size: 1.25rem; line-height: 1.3;  font-weight: 700; margin: 2rem 0 .75rem; }
h3 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; margin: 1.5rem 0 .5rem; }

p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a  { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .3rem; }

strong { font-weight: 600; }

/* ─── Layout ─── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─── Site header / nav ─── */
.site-header {
  background: var(--ink);
  color: var(--white);
  padding: .85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.site-logo:hover { color: var(--mid); }

.site-header nav {
  overflow-x: auto;
  /* prevents nav wrapping to second row on mid-width screens */
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: .1rem .15rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  display: block;
  color: var(--mid);
  text-decoration: none;
  font-size: .82rem;
  padding: .2rem .4rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

/* ─── Hero / page header ─── */
.page-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--light);
  padding: 2.5rem 0 2rem;
}

.page-header h1 { margin-bottom: .6rem; }

.lede {
  font-size: 1.1rem;
  color: #3a3632;
  line-height: 1.5;
  max-width: 600px;
}

/* ─── Last verified badge ─── */
.last-verified {
  display: inline-block;
  font-size: .78rem;
  color: var(--muted);
  margin-top: .75rem;
  border: 1px solid var(--mid);
  border-radius: 2px;
  padding: .15rem .5rem;
}
.last-verified::before { content: "Last verified: "; }

/* ─── Main content ─── */
main { padding: 2rem 0 3rem; }

/* ─── Direct answer box ─── */
.answer-box {
  background: var(--off-white);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.answer-box p:last-child { margin-bottom: 0; }

/* ─── Comparison table ─── */
.comparison-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--mid);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 420px;
}

.comparison-table th {
  background: var(--ink);
  color: var(--white);
  text-align: left;
  padding: .6rem .85rem;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.comparison-table td {
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--light);
  vertical-align: top;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--off-white); }

.comparison-table .best { color: var(--green); font-weight: 600; }
.comparison-table .worst { color: var(--accent); }
.comparison-table .note { color: var(--muted); font-size: .82rem; }

/* ─── Recommendation grid ─── */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.rec-card {
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  padding: 1rem;
}

.rec-card .rec-type {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .35rem;
}

.rec-card .rec-pick {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .35rem;
}

.rec-card p { font-size: .88rem; margin: 0; color: #3a3632; }

/* ─── Food venue cards ─── */
.venue-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }

.venue-card {
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.venue-card .venue-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.venue-card .venue-meta {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .5rem;
}

.venue-card .venue-verdict {
  font-size: .92rem;
  margin-bottom: .4rem;
}

.venue-card .venue-order {
  font-size: .85rem;
  color: var(--green);
  font-weight: 600;
}

.verdict-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-left: .4rem;
}
.verdict-badge.top    { background: #d4f0da; color: var(--green); }
.verdict-badge.good   { background: #e8f4e8; color: var(--green); }
.verdict-badge.skip   { background: #fce8e3; color: var(--accent); }

/* ─── FAQ block ─── */
.faq { margin-bottom: 2rem; }

.faq-item {
  border-top: 1px solid var(--light);
  padding: 1rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--light); }

.faq-item .faq-q {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .4rem;
}

.faq-item .faq-a { font-size: .92rem; color: #3a3632; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ─── Hub cluster grid (home + hub pages) ─── */
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.cluster-card {
  display: block;
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.cluster-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  color: inherit;
}

.cluster-card .cluster-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--link);
  margin-bottom: .3rem;
}
.cluster-card:hover .cluster-title { color: var(--accent); }

.cluster-card .cluster-desc { font-size: .88rem; color: #3a3632; margin: 0; }

/* ─── Hub child links ─── */
.hub-links { list-style: none; padding: 0; margin-bottom: 2rem; }
.hub-links li {
  border-top: 1px solid var(--light);
  padding: .65rem 0;
}
.hub-links li:last-child { border-bottom: 1px solid var(--light); }
.hub-links a { font-weight: 600; }
.hub-links .hub-link-desc { display: block; font-size: .88rem; color: var(--muted); margin-top: .1rem; }

/* ─── Breadcrumb ─── */
.breadcrumb {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: .5rem 0 0;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 .35rem; }

/* ─── Related links ─── */
.related {
  border-top: 2px solid var(--light);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.related h2 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.related ul { list-style: none; padding: 0; }
.related li { padding: .4rem 0; border-bottom: 1px solid var(--light); font-size: .92rem; }

/* ─── Footer ─── */
.site-footer {
  background: var(--off-white);
  border-top: 1px solid var(--light);
  padding: 2rem 0;
  font-size: .85rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

.footer-nav { display: flex; flex-wrap: wrap; gap: .25rem .75rem; list-style: none; padding: 0; }

/* ─── Utility ─── */
.text-muted { color: var(--muted); }
.text-small { font-size: .85rem; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }

/* ─── Responsive ─── */
@media (max-width: 520px) {
  html { font-size: 16px; }
  h1 { font-size: 1.45rem; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .site-nav { gap: 0 .1rem; }
  .comparison-table { font-size: .82rem; }
  .rec-grid { grid-template-columns: 1fr; }
}
