/*
 * Lingophant design layer for the Breek child theme, hand-written part. Loaded on every page.
 *   1. Tokens   2. Header and footer (every page)   3. Landing pages: base under .lp-page
 * The page components (hero, bands, cards, …) are generated from the approved mockups into lingophant-pages.css
 * (scripts/build_pages.py). Colours and fonts: brand/visual-guide.md. Orange is never a text colour on light
 * backgrounds (contrast 2.5).
 */

/* ---------- 1. Tokens ---------- */

:root {
  --lp-orange: #F47D36;
  --lp-sage: #568366;
  --lp-clay: #835656;
  --lp-teal: #5F9B92;
  --lp-ivory: #F3F6EB;
  --lp-cream: #FDFBF5;
  --lp-ink: #2E2A26;
  --lp-line: rgba(46, 42, 38, .12);
  --lp-font-title: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --lp-font-text: "Jost", Futura, "Century Gothic", system-ui, sans-serif;
}

/* Emoji images saved in old content (WordPress's emoji script is off; these are its own sizes) */
img.emoji, img.wp-smiley {
  display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important;
  width: 1em !important; margin: 0 .07em !important; vertical-align: -.1em !important; background: none !important;
  padding: 0 !important;
}

/* ---------- 2. Header (Breek's minimalist header, menu "Header") ---------- */

#header,
#header.minimalist,
#header .menu-wrapper {
  background: var(--lp-ivory) !important;
  background-image: none !important;
  box-shadow: none;
}
#header { border-bottom: 1px solid var(--lp-line); }
#header .menu-wrapper .grid-container {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 1188px;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  min-height: 0;
}
#header .menu-wrapper .grid-container > .clear,
#header .menu-wrapper .grid-container > .border { display: none !important; }
#header .logo {
  margin: 0 auto 0 0 !important;
  padding: 0 !important;
  float: none !important;
  position: static !important;
  line-height: 0;
}
#header .logo img {
  content: url("logo-orange.svg");
  width: auto !important;
  height: 30px !important;
  max-width: none;
}
#header .main-nav {
  order: 1;
  float: none !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}
#header .main-nav ul.menu { display: flex; gap: 26px; margin: 0; padding: 0; }
#header .main-nav ul.menu > li { margin: 0 !important; padding: 0 !important; }
#header .main-nav ul.menu > li > a {
  font: 500 15px/1.2 var(--lp-font-text) !important;
  color: var(--lp-ink) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 6px 0 !important;
  background: none !important;
}
#header .main-nav ul.menu > li > a:hover,
#header .main-nav ul.menu > li.current-menu-item > a { color: var(--lp-clay) !important; }
#header .main-nav ul.menu > li > a::before,
#header .main-nav ul.menu > li > a::after { display: none !important; }
#header .share-buttons {
  order: 2;
  float: none !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}
#header .share-buttons a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  padding: 4px !important;
  background: none !important;
  color: var(--lp-ink) !important;
  font-size: 19px !important;
  box-shadow: none !important;
}
#header .menu-mobile { color: var(--lp-ink) !important; }
#header .menu-mobile i { color: var(--lp-ink) !important; }

/* ---------- 2. Footer (widget block-25 + Breek's copyright line) ---------- */

#footer {
  background: var(--lp-ink) !important;
  color: #d9dccf;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 56px 24px 40px !important;
  box-sizing: border-box !important;
  font: 400 15px/1.6 var(--lp-font-text);
  border: 0 !important;
}
#footer .widgets,
#footer .widgets.row {
  max-width: 1140px;
  margin: 0 auto !important;
  padding: 0 !important;
  background: none !important;
}
#footer .widgets .grid-33,
#footer .widgets .default-sidebar > div { width: 100% !important; float: none !important; padding: 0 !important; }
#footer .widgets .widget { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
#footer .mobile-sidebar { display: none !important; }
#footer .widgets .default-sidebar { display: block !important; }
#footer > h2.logo { display: none; }
#footer .lp-ftr-cols { gap: 28px !important; margin: 0 !important; }
#footer .lp-ftr-cols > .wp-block-column { flex: 1 1 0 !important; min-width: 0; }
#footer .lp-ftr-cols > .wp-block-column:first-child { flex: 1.3 1 0 !important; }
#footer .lp-ftr-logo { margin: 0 !important; }
#footer .lp-ftr-logo img { height: 28px; width: auto; }
#footer .lp-ftr-tag { margin: 14px 0 0 !important; max-width: 22em; color: #d9dccf; font-size: 15px; }
#footer h4.wp-block-heading,
#footer .lp-ftr-h {
  margin: 0 0 12px !important;
  font: 400 20px/1 var(--lp-font-title) !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff !important;
}
#footer ul.wp-block-list { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 8px; }
#footer ul.wp-block-list li { margin: 0 !important; padding: 0 !important; font-size: 15px; line-height: 1.5; }
#footer ul.wp-block-list li::before { display: none !important; }
#footer a { color: #d9dccf !important; text-decoration: none !important; background: none !important; }
#footer a:hover { color: #fff !important; }
#footer .published {
  max-width: 1140px;
  margin: 40px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 13px;
  color: #a7aa9f;
  text-align: left !important;
}
#footer .published p, #footer .published span { color: #a7aa9f !important; margin: 0; font-size: 13px; text-align: left !important; }
#footer .epcl-theme-author, #footer .theme-author { display: none !important; }
@media (max-width: 760px) {
  #footer .lp-ftr-cols { flex-wrap: wrap !important; }
  #footer .lp-ftr-cols > .wp-block-column { flex: 0 0 calc(50% - 14px) !important; }
  #footer .lp-ftr-cols > .wp-block-column:first-child { flex: 0 0 100% !important; }
}

/* ---------- 3. Landing pages (template page-landing.php) ---------- */

body.lp-landing,
body.lp-landing #wrapper { background: var(--lp-ivory); }
.lp-main { display: block; width: 100%; margin: 0; padding: 0; overflow-x: clip; }
html:has(body.lp-landing) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(body.lp-landing) { scroll-behavior: auto; } }
.lp-page { margin: 0 !important; max-width: none !important; }
.lp-page [id] { scroll-margin-top: 24px; }

/* The browser defaults the mockups were drawn with (Breek and WordPress set their own) */
.lp-page :where(h1, h2, h3, h4, h5, h6) {
  font-family: inherit; font-weight: bold; color: inherit; letter-spacing: normal; text-transform: none;
  line-height: 1.2; padding: 0; border: 0; background: none;
}
.lp-page :where(h1) { font-size: 2em; margin: .67em 0; }
.lp-page :where(h2) { font-size: 1.5em; margin: .83em 0; }
.lp-page :where(h3) { font-size: 1.17em; margin: 1em 0; }
.lp-page :where(h4) { font-size: 1em; margin: 1.33em 0; }
.lp-page :where(p) { margin: 0; padding: 0; }
.lp-page :where(ul, ol) { margin: 1em 0; padding: 0 0 0 40px; }
.lp-page :where(li) { margin: 0; padding: 0; }
.lp-page :where(li)::before { content: none; }
.lp-page :where(ul) { list-style: disc; }
.lp-page :where(ol) { list-style: decimal; }
.lp-page :where(a) { color: inherit; text-decoration: underline; }
.lp-page :where(blockquote) { margin: 1em 40px; padding: 0; border: 0; background: none; font-style: normal; quotes: none; }
.lp-page :where(blockquote)::before, .lp-page :where(blockquote)::after { content: none; }
.lp-page :where(cite) { font-style: italic; }
.lp-page :where(.lp-t-figure) { margin: 1em 40px; }
.lp-page :where(.lp-t-dl) { margin: 1em 0; }
.lp-page :where(.lp-t-dd) { margin: 0 0 0 40px; }
.lp-page :where(.lp-t-small) { font-size: smaller; }
.lp-page :where(.lp-t-b, .lp-t-strong) { font-weight: bold; }
.lp-page :where(.lp-t-em, .lp-t-i, .lp-t-cite) { font-style: italic; }
.lp-page :where(img) { max-width: 100%; height: auto; }
.lp-page :where(summary) { display: list-item; }
.lp-page :where(button) { font: inherit; }

/* Core blocks as plain elements */
.lp-page .wp-block-image { margin: 0; }
.lp-page .wp-block-image > img {
  display: block; width: 100%; height: 100%; max-width: 100%;
  object-fit: inherit; object-position: inherit; border-radius: inherit; filter: none;
}
.lp-page .wp-block-quote { margin: 1em 40px; padding: 0; border: 0; font-style: normal; background: none; }
.lp-page .wp-block-quote :where(cite) { font-style: italic; }
.lp-page .wp-block-quote :where(p) { margin: 0; }
.lp-page .wp-block-table { margin: 0; overflow: visible; }
.lp-page .wp-block-table :is(td, th) { border: 0; padding: 0; }
.lp-page .wp-block-table table { table-layout: auto; }
.lp-page .wp-block-embed { margin: 0; }
.lp-page .wp-block-details summary { cursor: pointer; }
.lp-page .wp-block-group { box-sizing: border-box; }

/* Videos (core Embed blocks where the mockups drew a placeholder) */
.lp-page .lp-vembed { border-radius: 24px; overflow: hidden; background: #141c2b; box-shadow: 0 24px 50px rgba(10, 16, 28, .25); }
.lp-page .lp-vembed.lp-vthumb { border-radius: 0; box-shadow: none; }
.lp-page .lp-phones2 .lp-vembed { border-radius: 18px; flex: none; }

/* A card that is one link: the title carries the link, stretched over the card */
.lp-page .lp-cardlink { position: relative; cursor: pointer; }
.lp-page .lp-stretch { color: inherit; text-decoration: none; }
.lp-page .lp-stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.lp-page .lp-stretch:focus-visible { outline: none; }
.lp-page .lp-cardlink:has(.lp-stretch:focus-visible) { outline: 3px solid var(--lp-orange); outline-offset: 3px; }

/* Hidden until the script shows it (pricing: monthly price) */
.lp-page .lp-is-off { display: none !important; }
.lp-page .lp-meter-data { display: none !important; }

/* The download pattern and the Content Library line inside variant wrappers */
.lp-page .lp-dlv { margin: 0; }
.lp-page .lp-cl-left { margin: 0; }

/* Page details where a real photo replaces a mockup placeholder */
.lp-page .wp-block-image.lp-portrait { aspect-ratio: 16 / 9; overflow: hidden; padding: 0; display: block; }
.lp-page .wp-block-image.lp-portrait > img { height: 100%; object-fit: cover; object-position: 50% 30%; }
.lp-page--about .lp-here .lp-prog { display: block; }   /* "We're here" bar (the mockup drew it through an inline span) */
