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

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,600;0,700;1,400&family=Caveat:wght@600&display=swap');

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

:root {
  --white:         #ffffff;
  --off-white:     #f8f5f0;
  --light:         #ede8e0;
  --mid:           #ccc5bb;
  --muted:         #888074;
  --ink:           #1a1714;

  --accent:        #c03a1a;
  --accent-hover:  #a82f14;
  --accent-light:  #fef0eb;

  --canal:         #1a4a6e;
  --canal-hover:   #0f3456;
  --canal-light:   #e8f0f7;

  --mustard:       #b87d00;
  --mustard-light: #fdf4e0;

  --link:          #1a5c9e;
  --link-hover:    #0f3d6e;

  --green:         #2a6b38;
  --green-light:   #e6f2ea;

  --yellow:        #c47e00;

  --font:          -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif:    'Lora', Georgia, serif;
  --font-hand:     'Caveat', cursive;

  --radius: 4px;
  --max:    720px;
}

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-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: .5rem;
}
h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  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; }

/* Handwritten accent */
.hand {
  font-family: var(--font-hand);
  font-size: 1.2em;
  font-weight: 600;
  color: var(--mustard);
  line-height: 1.2;
}

/* --- 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-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.site-logo:hover { color: var(--mid); }
.site-header nav { flex-shrink: 0; }
.site-nav { display: flex; flex-wrap: wrap; gap: .15rem .1rem; 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); }

/* --- 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.05rem; color: #3a3632; line-height: 1.55; max-width: 600px; }

/* --- Last verified --- */
.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 checked: "; }

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

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

/* --- Our take (preferred callout) --- */
.our-take {
  background: var(--mustard-light);
  border-left: 3px solid var(--mustard);
  padding: 1rem 1.25rem 1rem 1.35rem;
  margin-bottom: 2rem;
}
.our-take::before {
  content: "our take";
  display: block;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mustard);
  margin-bottom: .35rem;
}
.our-take p { font-size: .98rem; margin-bottom: .6rem; }
.our-take p:last-child { margin-bottom: 0; }

/* --- Data bars --- */
.data-bars { margin-bottom: 1.5rem; }
.data-bars-title { font-size: .82rem; color: var(--muted); margin-bottom: .75rem; }
.data-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.data-label { width: 80px; flex-shrink: 0; text-align: right; font-size: .82rem; color: var(--muted); line-height: 1.2; }
.data-bar-wrap { flex: 1; background: var(--off-white); border: 1px solid var(--light); border-radius: 3px; height: 28px; overflow: hidden; }
.data-bar { height: 100%; display: flex; align-items: center; padding: 0 .6rem; font-size: .78rem; font-weight: 600; white-space: nowrap; transition: width .7s ease; }
.data-bar.best  { background: var(--canal);  color: var(--canal-light); }
.data-bar.mid   { background: var(--muted);  color: var(--white); }
.data-bar.worst { background: var(--accent); color: var(--accent-light); }
.data-bars-note { font-size: .78rem; color: var(--muted); font-style: italic; margin-top: .4rem; }

/* --- 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-family: var(--font-serif); font-weight: 700; font-size: 1rem; margin-bottom: .35rem; }
.rec-card p { font-size: .88rem; margin: 0; color: #3a3632; }

/* --- 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-family: var(--font-serif); 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 --- */
.verdict-badge {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: .9rem;
  font-weight: 600;
  padding: .05rem .5rem;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: .4rem;
  line-height: 1.4;
}
.verdict-badge.top  { background: var(--green-light);  color: var(--green);  border: 1.5px solid var(--green); }
.verdict-badge.good { background: var(--canal-light);  color: var(--canal);  border: 1.5px solid var(--canal); }
.verdict-badge.skip { background: var(--accent-light); color: var(--accent); border: 1.5px solid var(--accent); }

/* --- FAQ --- */
.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 --- */
.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; }

/* Category colour coding */
.cluster-card.cat-food           { border-left: 3px solid var(--accent); }
.cluster-card.cat-transport      { border-left: 3px solid var(--canal); }
.cluster-card.cat-tickets        { border-left: 3px solid var(--mustard); }
.cluster-card.cat-neighbourhoods { border-left: 3px solid var(--green); }
.cluster-card.cat-itineraries    { border-left: 3px solid var(--muted); }
.cluster-card.cat-daytrips       { border-left: 3px solid var(--muted); }

.cluster-card .cluster-title { font-family: var(--font-serif); 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); font-family: var(--font); }
.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: 640px) {
  html { font-size: 16px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  .container { padding: 0 1rem; }
  .site-header { padding: .65rem 0; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .site-header nav { width: 100%; }
  .site-nav { flex-wrap: wrap; gap: .2rem .1rem; }
  .site-nav a { font-size: .78rem; padding: .2rem .45rem; }
  .page-header { padding: 1.5rem 0 1.25rem; }
  .cluster-grid { grid-template-columns: 1fr; gap: .75rem; }
  .comparison-wrap { margin-left: -1rem; margin-right: -1rem; border-radius: 0; border-left: none; border-right: none; }
  .comparison-table { font-size: .8rem; }
  .rec-grid { grid-template-columns: 1fr; }
  .data-label { width: 60px; font-size: .75rem; }
  main { padding: 1.5rem 0 2.5rem; }
  .venue-card { padding: .9rem 1rem; }
}
