/* Styles for the generated websites. Uses container queries so the editor's
   phone preview behaves exactly like a real phone. */
.site {
  container-type: inline-size;
  --bg: #ffffff;
  --surface: #f5f7fb;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --on-primary: #ffffff;
  --radius: 14px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--base-size, 17px);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site h1, .site h2, .site h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; overflow-wrap: break-word; hyphens: auto; }
.site h1 { font-size: clamp(2rem, 6cqi, 3.4rem); }
.site h2 { font-size: clamp(1.6rem, 4cqi, 2.3rem); }
.site h3 { font-size: 1.2rem; }
.site p { margin: 0 0 1em; }
.site a { color: inherit; }
.site img { max-width: 100%; display: block; }

/* Template-specific variables and rules live in templates/<id>/ (see templates/README.md). */

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); background: var(--surface); }
.nav-toggle, .nav-burger { display: none; }

@container (max-width: 640px) {
  .site { font-size: calc(var(--base-size, 17px) - 1px); }
  .logo { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .nav-burger { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ''; display: block; width: 22px; height: 2px; background: var(--text); position: relative;
  }
  .nav-burger span::before { position: absolute; top: -7px; }
  .nav-burger span::after { position: absolute; top: 7px; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .site-nav a { padding: 12px; border-radius: 8px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* Blocks */
.site-main { flex: 1; }
.block { padding: 64px 0; }
.block + .block { border-top: 1px solid var(--border); }
.block.block-hero { padding: 0; border-top: 0; }
.block-hero + .block { border-top: 0; }
@container (max-width: 640px) { .block { padding: 44px 0; } }

.hero { position: relative; background: var(--primary); color: var(--on-primary); overflow: hidden; }
.hero.has-image { color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero.has-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.6)); }
.hero-inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; max-width: 820px; }
.hero .lead { font-size: 1.2rem; opacity: .92; margin-bottom: 1.5em; }
@container (max-width: 640px) { .hero-inner { padding-top: 64px; padding-bottom: 64px; } }

.btn {
  display: inline-block; background: var(--primary); color: var(--on-primary); padding: 14px 26px;
  border-radius: var(--radius); font-weight: 600; text-decoration: none; min-height: 48px;
}
.hero .btn { background: var(--on-primary); color: var(--primary); }
.hero.has-image .btn { background: var(--primary); color: var(--on-primary); }

.block-text { color: var(--text); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.no-image { grid-template-columns: 1fr; max-width: 760px; }
.split-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@container (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.card-text { color: var(--muted); }
.price { font-weight: 700; color: var(--primary); margin-top: 8px; font-size: 1.1rem; }

.hours { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); margin-top: 20px; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; position: relative; }
.hours-row + .hours-row { border-top: 1px solid var(--border); }
.hours-row .day { font-weight: 600; }
.hours-row .time { color: var(--muted); text-align: right; }
.note { color: var(--muted); margin-top: 16px; font-size: .95rem; text-align: center; }

.contact-list { list-style: none; padding: 0; margin: 24px auto 0; display: inline-flex; flex-direction: column; gap: 12px; text-align: left; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-size: 1.05rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.cta { padding: 8px 0; }
.block-cta { background: var(--surface); }

.photo-credits { margin-top: 6px; font-size: .8rem; opacity: .8; }
.photo-credits a { color: inherit; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* Shared parts of newer blocks; templates restyle them (see templates/brasserie). */
.block { scroll-margin-top: 64px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); margin: 0 0 .6em; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 2px solid transparent; }
.btn svg { flex-shrink: 0; }
.btn-outline { background: transparent !important; border-color: currentColor; color: inherit !important; }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-soft { background: var(--surface); color: var(--text); border-color: var(--border); }
.block.bg-alt { background: var(--surface); }
.block.bg-dark { background: #16181d; color: #fff; --text: #fff; --muted: rgba(255,255,255,.7); --surface: rgba(255,255,255,.06); --border: rgba(255,255,255,.14); }
.split-body > .btn { margin-top: 8px; }

.split-media { position: relative; }
.split.flip .split-media { order: 2; }
@container (max-width: 760px) { .split.flip .split-media { order: 0; } }
.img-badge { position: absolute; left: -16px; bottom: -16px; background: var(--primary); color: var(--on-primary); padding: 14px 20px; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,.15); font-family: var(--font-head); font-weight: 700; max-width: 80%; }
.img-badge strong { display: block; font-size: 1.7rem; line-height: 1.1; }
details.img-badge summary { list-style: none; cursor: pointer; }
details.img-badge summary::-webkit-details-marker { display: none; }
.badge-hint { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: #111; color: var(--primary); font: italic 700 12px/20px var(--font-body); text-align: center; }
.badge-fact { margin-top: 10px; font: 400 .8rem/1.6 var(--font-body); }
details.img-badge .badge-fact { position: absolute; bottom: calc(100% + 12px); left: 0; width: 260px; max-width: 70vw; margin: 0; background: #111; color: #fff; padding: 16px; border-radius: 4px; border-left: 3px solid var(--primary); box-shadow: 0 8px 28px rgba(0,0,0,.25); }
@container (max-width: 760px) { .img-badge { left: 12px; bottom: 12px; } }

.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 32px; margin-top: 32px; }
.feature-card .card-text { margin-bottom: 20px; }

.reviews-intro { margin-bottom: 40px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 32px; }
.review { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.stars { color: var(--primary); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 6px; }
.review-text { margin-bottom: 16px; }
.reviewer { font-weight: 700; }
.reviewer-sub { color: var(--muted); font-size: .85rem; }
.reviews-cta .note { margin-top: 14px; }

.ci-label { display: none; }
.ci-body { display: flex; flex-direction: column; }
.contact-head { margin-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact-grid .contact-list { margin: 0; display: flex; }
.contact-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: block; margin-bottom: 18px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.form-group input, .form-group textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 4px; font: 400 15px var(--font-body); color: var(--text); background: var(--surface); text-transform: none; letter-spacing: 0; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.btn-submit { width: 100%; justify-content: center; cursor: pointer; font: inherit; font-weight: 700; }
.social-links { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 4px; font-size: .85rem; font-weight: 700; text-decoration: none; color: #fff !important; background: #1877f2; }
.social-instagram { background: #c13584; }
@container (max-width: 760px) { .contact-grid, .form-row { grid-template-columns: 1fr; gap: 32px; } .contact-form { padding: 24px 18px; } }

.block.block-map, .block.block-document { padding: 0; }
.map { position: relative; }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }
.map-empty, .doc-empty { padding: 48px 20px; text-align: center; color: var(--muted); background: var(--surface); }
.doc { position: relative; }
.doc iframe { display: block; width: 100%; height: calc(100vh - 64px); border: 0; }
.doc-intro { padding-top: 48px; padding-bottom: 24px; }
.doc-fallback { display: none; padding: 40px 20px; text-align: center; }
@container (max-width: 640px) { .doc iframe { display: none; } .doc-fallback { display: block; } }
.ed-cover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.08); color: transparent; font: 600 14px 'Inter', sans-serif; }
.ed-cover:hover { background: rgba(0,0,0,.35); color: #fff; }

.footer-logo, .footer-nav { display: none; }
.footer-note { font-size: .8rem; opacity: .7; margin-top: 6px; }
.footer-copy a, .footer-note a { color: inherit; }
.reviews-intro, .contact-head { margin-left: auto; margin-right: auto; }

/* Logo with own text / tagline (site.brand) */
.logo:has(.logo-tag) { display: inline-flex; flex-direction: column; line-height: 1.1; }
.logo-tag { display: block; font-size: .55em; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .8; margin-top: 4px; }

/* Menu items shown as a button */
.site-nav a.nav-btn { background: var(--primary); color: var(--on-primary); border: 2px solid var(--primary); }
.site-nav a.nav-btn.nav-outline { background: transparent; color: var(--text); border-color: currentColor; }

/* Blocks next to each other with the same background read as one section */
/* (only when the second one has no heading of its own, e.g. a team block under "Over ons") */
.block.bg-alt + .block.bg-alt:not(:has(h2)), .block.bg-dark + .block.bg-dark:not(:has(h2)), .block.bg-primary + .block.bg-primary:not(:has(h2)) { padding-top: 0; border-top: 0; }
.block.bg-primary { background: var(--primary); color: var(--on-primary); --text: var(--on-primary); --muted: color-mix(in srgb, var(--on-primary) 80%, transparent); }
.block.bg-primary .eyebrow, .block.bg-primary .accent { color: inherit; }
.block.bg-primary .btn:not(.btn-outline) { background: var(--on-primary); color: var(--primary); }
.accent { font-style: normal; color: var(--primary); }

/* Hero: photo next to the text */
.hero.hero-split { background: var(--bg); color: var(--text); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero-split .hero-badge { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin: 0 0 .6em; }
.hero-split .lead { color: var(--muted); opacity: 1; }
.hero-quote { margin: 0 0 28px; padding-left: 20px; border-left: 4px solid var(--primary); font-style: italic; color: var(--muted); }
.hero-quote p { margin: 0; }
.hero.hero-split .btn { background: var(--primary); color: var(--on-primary); }
.hero-img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 32px; }
.fact { display: flex; align-items: center; gap: 12px; position: relative; }
.fact .v { min-width: 48px; height: 48px; padding: 0 8px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 800; }
.fact .t { font-size: .85rem; font-weight: 600; color: var(--muted); }
@container (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; } }

/* Image + text: callout and points */
.callout { margin-top: 8px; padding: 20px; border-left: 4px solid var(--primary); border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.callout strong { display: block; }
.callout-text p { margin: 4px 0 0; color: var(--muted); }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.point { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: relative; }
.point h3 { font-size: .9rem; margin: 0 0 4px; }
.point p { font-size: .8rem; color: var(--muted); margin: 0; }
.split-body .btns { margin-top: 24px; }
@container (max-width: 480px) { .points { grid-template-columns: 1fr; } }

/* Cards: variants */
.cards-intro { max-width: 760px; margin: 0 auto; color: var(--muted); }
.cards.cols-1 { grid-template-columns: 1fr; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
@container (max-width: 900px) { .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@container (max-width: 560px) { .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: 1fr; } }
.cards-photo .card { padding: 0; overflow: hidden; }
.cards-photo .card-img, .cards-photo .img-placeholder { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cards-photo .card-body { padding: 20px; }
.card-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 20px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font: 800 1.4rem var(--font-head); }
.cards-dark .card { background: var(--text); color: var(--bg); border: 0; }
.cards-dark .card h3 { color: var(--primary); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.cards-dark .card-text { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.cards-statement .card { display: flex; flex-direction: column; padding: 32px; }
.cards-statement .card:nth-child(odd) { background: var(--text); color: var(--bg); border-color: var(--text); }
.cards-statement .card:nth-child(even) { background: var(--bg); border: 2px solid var(--text); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 24px; color: var(--primary); background: color-mix(in srgb, var(--primary) 15%, transparent); }
.cards-statement h3 { font-size: 1.4rem; flex: 1; margin-bottom: 24px; }
.card-stat { display: flex; align-items: baseline; gap: 12px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.card-stat strong { font: 800 2.2rem/1 var(--font-head); color: var(--primary); white-space: nowrap; }
.card-stat span { font-size: .85rem; opacity: .75; }
.cards-wide-img { width: 100%; margin-top: 48px; border-radius: var(--radius); object-fit: cover; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat { position: relative; }
.stat .v { display: block; font: 800 2.2rem/1.1 var(--font-head); color: var(--primary); }
.stat .t { display: block; font-size: .9rem; color: var(--muted); margin-top: 4px; }
.stats-head { margin-bottom: 40px; }
.stats-big .stats { border-radius: var(--radius); overflow: hidden; gap: 1px; background: var(--border); max-width: 1100px; margin: 0 auto; }
.stats-big .stat { background: var(--bg); padding: 48px 32px; }
.block.bg-dark .stats-big .stat { background: #16181d; }
.block.bg-alt .stats-big .stat { background: var(--surface); }
.block.bg-primary .stats-big .stat { background: var(--primary); }
.stats-big .stat .v { font-size: clamp(2.6rem, 6cqi, 3.75rem); }
.stats-note { margin-top: 32px; font-weight: 600; }

/* Pricing */
.pricing-head { margin: 0 auto 48px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; position: relative; }
.plan h3 { color: var(--primary); }
.plan-price { margin-bottom: 20px; color: var(--muted); }
.plan-price strong { font: 800 1.9rem var(--font-head); color: var(--text); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.pricing-cta { margin-top: 40px; }

/* Team */
.team-head { margin-bottom: 40px; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.member { display: flex; align-items: center; gap: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.member-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--primary); }
.member .img-placeholder { font-size: .7rem; padding: 4px; }
.member h3 { margin: 0; font-size: 1.1rem; }
.member-role { color: var(--primary); font-weight: 600; font-size: .85rem; margin-bottom: 8px; }
.member-link { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); text-decoration: none; }
.member-link:hover { color: var(--primary); }

/* CTA: several buttons and a text link */
.cta .btns { justify-content: center; margin-top: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.head-s h2 { font-size: clamp(1.4rem, 3.4cqi, 2rem); }
.head-l h2 { font-size: clamp(1.9rem, 5cqi, 2.9rem); }
.hero-media .img-placeholder, .split-media .img-placeholder { width: 100%; aspect-ratio: 3 / 2; }
