/* ForgeCMS default stylesheet (served at /_forgecms/default.css unless app.sml sets default_css: false).
   A complete, responsive look for the markup ForgeCMS renders, without Bootstrap: it covers the
   Bootstrap class names ForgeCMS and the ForgeDesigner assistant use. Only the structure lives here:
   colours, font, sizes, radius and width are tokens ForgeCMS writes from theme.sml into the page
   (--color-*, --fc-*; the built-in default is internal/theme/default-theme.sml). The site's own
   static/style.css is loaded after this file and may override anything. */

:root {
  --fc-primary: var(--color-primary);
  --fc-bg: var(--color-bg);
  --fc-surface: var(--color-surface);
  --fc-text: var(--color-text);
  --fc-link: var(--color-link);
  --fc-border: var(--color-border);
  --fc-muted: color-mix(in srgb, var(--fc-text) 60%, transparent);
  --fc-soft: color-mix(in srgb, var(--fc-primary) 8%, var(--fc-bg));
  --fc-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 20px rgba(0, 0, 0, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--fc-font);
  font-size: var(--fc-font-size);
  line-height: 1.65;
  color: var(--fc-text);
  background: var(--fc-bg);
}

/* ---- layout ---- */
body > nav, main, body > footer {
  width: min(var(--fc-width), calc(100% - 2.5rem));
  margin-inline: auto;
}
main { padding-bottom: 3rem; }
main > section { margin: 2.5rem 0; }

/* ---- navigation ---- */
body > nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--fc-border);
}
body > nav > a:first-child, body > nav > span:first-child {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fc-text);
  margin-right: auto;
}
body > nav a { color: var(--fc-text); text-decoration: none; }
body > nav a:hover { color: var(--fc-primary); }
body > nav img { display: block; height: 40px; width: auto; }
.nav-dropdown { position: relative; }
.nav-dropdown summary { cursor: pointer; list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: " ▾"; font-size: .8em; }
.nav-dropdown[open] > a {
  display: block;
  padding: .35rem 1rem;
  background: var(--fc-surface);
}
.nav-dropdown[open] {
  z-index: 10;
}
.nav-dropdown[open] summary + a { margin-top: .5rem; }
.lang-switcher form { display: flex; gap: .35rem; margin: 0; }
.lang-switcher button {
  font: inherit; font-size: .85rem;
  padding: .2rem .55rem;
  border: 1px solid var(--fc-border);
  border-radius: 999px;
  background: var(--fc-surface);
  color: var(--fc-text);
  cursor: pointer;
}
.lang-switcher button.lang-active { background: var(--fc-primary); border-color: var(--fc-primary); color: #fff; }

/* ---- hero ---- */
.hero {
  margin: 2rem 0 2.5rem;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: calc(var(--fc-radius) * 1.5);
  text-align: center;
  color: var(--fc-hero-text);
  background: var(--fc-hero-bg);
  box-shadow: var(--fc-shadow);
}
.hero h1 { margin: 0 0 .5rem; font-size: clamp(calc(var(--fc-h1) * .93), 5vw, calc(var(--fc-h1) * 1.5)); line-height: 1.15; color: inherit; }
.hero p { margin: 0 auto; max-width: 40rem; font-size: clamp(1.1rem, 2.2vw, 1.35rem); opacity: .92; }
/* Hero { image: ... }: the picture fills the banner behind a dark layer */
.hero-image { position: relative; overflow: hidden; isolation: isolate; background: #222; }
.hero-image > .hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
}
.hero-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .45); }

/* ---- typography ---- */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 1.6em 0 .6em; font-weight: 700; }
main > section > h1:first-child, main > section > h2:first-child, main > section > h3:first-child { margin-top: 0; }
h1 { font-size: var(--fc-h1); }
h2 { font-size: var(--fc-h2); }
h3 { font-size: var(--fc-h3); }
h4, .h4 { font-size: var(--fc-h4); }
h5 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1rem; }
li { margin: .25rem 0; }
a { color: var(--fc-link); }
a:hover { text-decoration-thickness: 2px; }
hr { border: 0; border-top: 1px solid var(--fc-border); margin: 2rem 0; }
blockquote {
  margin: 1.5rem 0; padding: .75rem 1.25rem;
  border-left: 4px solid var(--fc-primary);
  background: var(--fc-soft);
  border-radius: 0 var(--fc-radius) var(--fc-radius) 0;
}
img { max-width: 100%; height: auto; border-radius: var(--fc-radius); }
small, .small { font-size: .875em; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  padding: .1em .35em;
  border-radius: 4px;
  background: var(--fc-soft);
}
pre { overflow-x: auto; padding: 1rem; border-radius: var(--fc-radius); background: #1f1b18; color: #f3ede7; }
pre code { padding: 0; background: none; color: inherit; }

/* ---- sections with background ---- */
section.bg-light, .bg-light {
  background: var(--fc-soft);
}
main > section.bg-light, main > section[class*="py-"] {
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: calc(var(--fc-radius) * 1.5);
}

/* ---- grid (Row, Column, Cards) ---- */
.row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.row > .col, .row > [class^="col-"], .row > [class*=" col-"] { flex: 1 1 0; min-width: 14rem; }
.row[class*="row-cols-"] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .row.row-cols-md-2 { grid-template-columns: repeat(2, 1fr); }
  .row.row-cols-md-3 { grid-template-columns: repeat(3, 1fr); }
  .row.row-cols-md-4 { grid-template-columns: repeat(4, 1fr); }
}
.row[class*="row-cols-"] > .col { min-width: 0; }
dl.row { display: grid; grid-template-columns: minmax(8rem, 1fr) 3fr; gap: .4rem 1rem; }
dl.row > dt, dl.row > dd { margin: 0; min-width: 0; }

/* ---- cards ---- */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 12px 28px rgba(0,0,0,.09); }
.card-img-top { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.card-body { padding: 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.card > .card-body:only-child, .card > div:not([class]) { padding: 1.25rem 1.35rem; }
.card-title { margin: 0 0 .5rem; font-size: 1.15rem; }
.card-text { margin: 0 0 .75rem; color: var(--fc-muted); }
.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card-footer { padding: .75rem 1.35rem; border-top: 1px solid var(--fc-border); color: var(--fc-muted); }
section.card { padding: 1.5rem; }

/* ---- buttons ---- */
.btn, a.button, .lc-btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--fc-primary);
  border-radius: 999px;
  background: var(--fc-primary);
  color: #fff;
  cursor: pointer;
  transition: filter .15s ease, background .15s ease, color .15s ease;
}
.btn:hover, a.button:hover, .lc-btn:hover { filter: brightness(1.08); }
.btn-primary { background: var(--fc-primary); border-color: var(--fc-primary); color: #fff; }
.btn-secondary, .lc-btn-secondary { background: var(--fc-text); border-color: var(--fc-text); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--fc-text); }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-light, .btn-outline-danger { background: transparent; }
.btn-outline-primary { color: var(--fc-primary); }
.btn-outline-secondary { color: var(--fc-text); border-color: var(--fc-border); }
.btn-outline-light { color: #fff; border-color: #fff; }
.btn-outline-danger { color: #b42318; border-color: #b42318; }
.btn-outline-primary:hover { background: var(--fc-primary); color: #fff; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.1rem; }
.btn-sm { padding: .35rem .8rem; font-size: .875rem; }
.hero .btn, .hero a.button { background: var(--fc-hero-text); border-color: var(--fc-hero-text); color: var(--fc-primary); margin-top: 1.5rem; }

/* ---- tables ---- */
.table-responsive { overflow-x: auto; }
table, .table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background: var(--fc-surface);
  border-radius: var(--fc-radius);
  overflow: hidden;
  box-shadow: var(--fc-shadow);
}
th, td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--fc-border); vertical-align: top; }
th { background: var(--fc-soft); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
.table-sm th, .table-sm td { padding: .4rem .7rem; }
.align-middle td, .align-middle th { vertical-align: middle; }

/* ---- forms (Contact, Newsletter, Shop) ---- */
form { max-width: 40rem; }
.form-label, label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%;
  padding: .65rem .85rem;
  font: inherit;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: 8px;
}
.form-control:focus, input:focus, textarea:focus, select:focus {
  outline: 3px solid color-mix(in srgb, var(--fc-primary) 25%, transparent);
  border-color: var(--fc-primary);
}
textarea { min-height: 8rem; resize: vertical; }
.form-text { font-size: .875rem; color: var(--fc-muted); margin-top: .25rem; }
.form-check-input { width: auto; margin-right: .5rem; }
.form-check-label { display: inline; font-weight: 400; }
.alert { padding: .9rem 1.1rem; border-radius: var(--fc-radius); margin: 1rem 0; border: 1px solid transparent; }
.alert-success { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.alert-danger { background: #fef3f2; border-color: #fecdca; color: #912018; }
.text-danger { color: #b42318; }

/* ---- media ---- */
.youtube-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; border-radius: var(--fc-radius); overflow: hidden; }
.youtube-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- footer ---- */
body > footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--fc-border);
  color: var(--fc-muted);
  font-size: .925rem;
  text-align: center;
}
body > footer a { color: inherit; margin: 0 .5rem; }
body > footer p { margin: .25rem 0; }

/* ---- utilities used by ForgeCMS and the assistant ---- */
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }
.text-muted, .text-body-secondary { color: var(--fc-muted); }
.text-nowrap { white-space: nowrap; }
.text-break { overflow-wrap: anywhere; }
.user-select-all { user-select: all; }
.fw-bold { font-weight: 700; }
.fs-3 { font-size: 1.75rem; }
.fs-4 { font-size: 1.5rem; }
.fs-5 { font-size: 1.25rem; }
.lead { font-size: 1.25rem; }
.h-100 { height: 100%; }
.w-100 { width: 100%; }
.d-block { display: block; }
.d-none { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.align-self-start { align-self: flex-start; }
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; } .my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; } .my-5 { margin-top: 3rem; margin-bottom: 3rem; }
.p-0 { padding: 0; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; } .p-5 { padding: 3rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; } .py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; } .px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }

@media (max-width: 640px) {
  body { font-size: calc(var(--fc-font-size) * .94); }
  h1 { font-size: calc(var(--fc-h1) * .82); }
  h2 { font-size: calc(var(--fc-h2) * .86); }
  body > nav { gap: .25rem .9rem; }
  body > nav > a:first-child, body > nav > span:first-child { width: 100%; margin-right: 0; }
  dl.row { grid-template-columns: 1fr; }
}
