/*
Theme Name:   Light & Pigment
Theme URI:    https://lightandpigment.com/
Description:  Child theme of GeneratePress for Light & Pigment: brand fonts (Lora, Inter), colors, header, footer and front page. Palette pages come from the lightandpigment-core plugin.
Author:       Light & Pigment
Template:     generatepress
Version:      0.7.4
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  lightandpigment
*/

/* ---------- fonts (self-hosted, Latin + Latin Extended subsets, OFL) ---------- */
@font-face { font-family: "Lora"; src: url("fonts/lora-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-italic-var.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-semibold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

/* ---------- brand tokens ---------- */
:root {
	--lp-font-serif: "Lora", Georgia, "Times New Roman", serif;
	--lp-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--lpt-ink: #24211C;
	--lpt-text: #3D3932;
	--lpt-muted: #5E5A52;
	--lpt-bg: #F8F6F1;
	--lpt-card: #FFFFFF;
	--lpt-line: #E5E0D5;
	--lpt-accent: #2F4A7D;
	--lpt-accent-dark: #233A63;
}

/* ---------- base ---------- */
body {
	background: var(--lpt-bg);
	color: var(--lpt-text);
	font-family: var(--lp-font-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .entry-title, .page-title {
	font-family: var(--lp-font-serif);
	font-weight: 500;
	color: var(--lpt-ink);
	letter-spacing: -0.01em;
	line-height: 1.15;
}
a { color: var(--lpt-accent); }
a:hover, a:focus { color: var(--lpt-accent-dark); }
:focus-visible { outline: 2px solid var(--lpt-accent); outline-offset: 2px; }
::selection { background: #DCE3EF; color: var(--lpt-ink); }

/* GP content area: palette templates manage their own width */
.site.grid-container,
.separate-containers .inside-article,
.one-container .site-content { background: transparent; }
.lp-page .site-content,
.home .site-content { padding: 0; display: block; }
.lp-page .site.grid-container,
.home .site.grid-container { max-width: none; }

/* ---------- header ---------- */
.site-header {
	background: rgba(248, 246, 241, 0.94);
	border-bottom: 1px solid var(--lpt-line);
	position: sticky;
	top: 0;
	z-index: 50;
	-webkit-backdrop-filter: saturate(1.4) blur(8px);
	backdrop-filter: saturate(1.4) blur(8px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.inside-header {
	box-sizing: border-box;
	max-width: 1160px;
	margin: 0 auto;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.main-title { margin: 0; font-size: 22px; line-height: 1.2; font-family: var(--lp-font-serif); font-weight: 500; }
.main-title a, .main-title a:hover { color: var(--lpt-ink); text-decoration: none; }
.lpt-mark { display: inline-flex; gap: 3px; margin-right: 10px; vertical-align: -1px; }
.lpt-mark span { width: 8px; height: 18px; border-radius: 2px; display: block; }
@media (min-width: 768px) { .inside-header, .inside-site-info { padding-left: 24px; padding-right: 24px; } .page .inside-article, .single-post .inside-article { padding-left: 24px; padding-right: 24px; } }
.site-description { margin: 2px 0 0; font-size: 13px; color: var(--lpt-muted); }

.main-navigation { background: transparent; }
.main-navigation .main-nav ul li a,
.main-navigation .menu > li > a,
.main-navigation ul li a {
	color: var(--lpt-text);
	font-family: var(--lp-font-sans);
	font-size: 15px;
	font-weight: 500;
	line-height: 44px;
	padding: 0 12px;
	text-decoration: none;
}
/* dropdowns (GeneratePress positions them; we only style) */
.main-navigation ul ul { background: var(--lpt-card); border: 1px solid var(--lpt-line); border-radius: 10px; box-shadow: 0 12px 28px rgba(36, 33, 28, .12); padding: 6px 0; width: 230px; }
.main-navigation ul ul li a { line-height: 1.3; padding: 10px 16px; font-weight: 400; }
.main-navigation ul ul li a:hover { background: var(--lpt-bg); }
.main-navigation .menu-item-has-children > a .dropdown-menu-toggle { padding-left: 6px; }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a { color: var(--lpt-accent); background: transparent; }
.menu-toggle { background: transparent; color: var(--lpt-ink); font-family: var(--lp-font-sans); min-height: 44px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 0; }
.site-info {
	background: var(--lpt-ink);
	color: #CFC8BA;
	font-size: 14px;
	text-align: left;
}
.site-info a { color: #F1ECE2; }
.site-info a:hover { color: #FFFFFF; }
.site-info { padding: 0; }
.inside-site-info { box-sizing: border-box; max-width: 1160px; margin: 0 auto; padding: 28px 16px; display: block; }
.copyright-bar { width: 100%; }
.lpt-foot { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: baseline; }
.lpt-foot__brand { font-family: var(--lp-font-serif); font-size: 18px; color: #F1ECE2; }
.lpt-foot__note { max-width: 560px; margin: 6px 0 0; line-height: 1.55; }
.lpt-foot__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.lpt-foot__links a { text-decoration: none; display: inline-block; padding: 10px 0; }
.lpt-foot__copy { width: 100%; margin-top: 8px; color: #A39C8E; font-size: 13px; }

/* ---------- front page ---------- */
.lpt-home .lp-wrap { padding-top: 40px; }
.lpt-hero { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .lpt-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }
.lpt-hero__title { font-family: var(--lp-font-serif); font-weight: 500; font-size: clamp(36px, 6vw, 60px); line-height: 1.06; margin: 10px 0 0; color: var(--lpt-ink); letter-spacing: -0.015em; }
.lpt-hero__title em { font-style: italic; }
.lpt-hero__lead { font-size: 19px; line-height: 1.6; margin: 18px 0 0; max-width: 560px; }
.lpt-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lpt-ask { padding: 22px 24px; }
.lpt-ask__q { font-family: var(--lp-font-serif); font-size: 22px; color: var(--lpt-ink); margin: 0 0 10px; }
.lpt-ask ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 8px; }
.lpt-ask li { margin: 0; }
.lpt-ask a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; min-height: 44px; border: 1px solid var(--lpt-line); border-radius: 10px; text-decoration: none; color: var(--lpt-ink); font-weight: 500; font-size: 15px; background: var(--lpt-bg, #fff); }
.lpt-ask a:hover, .lpt-ask a:focus-visible { border-color: var(--lpt-ink); }
.lpt-ask a span { color: var(--lpt-muted); }
.lpt-facts { padding: 8px 24px; }
.lpt-facts div { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--lpt-line); }
.lpt-facts div:last-child { border-bottom: 0; }
.lpt-facts b { font-family: var(--lp-font-serif); font-weight: 500; font-size: 26px; color: var(--lpt-ink); min-width: 96px; }
.lpt-facts span { color: var(--lpt-muted); font-size: 15px; }

.lpt-steps { display: grid; gap: 16px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.lpt-step { padding: 20px 22px; }
.lpt-step b { display: block; font-family: var(--lp-font-serif); font-weight: 500; font-size: 20px; color: var(--lpt-ink); margin-bottom: 6px; }
.lpt-step p { margin: 0; font-size: 15px; color: var(--lpt-muted); line-height: 1.55; }

.lpt-section { margin-top: 64px; }
.lpt-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.lpt-section__head h2 { margin: 0; font-size: clamp(26px, 3.4vw, 34px); }
.lpt-section__head a { font-weight: 500; font-size: 15px; padding: 10px 0; }
.lpt-terms { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.lpt-terms a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--lpt-line); border-radius: 999px; background: var(--lpt-card); color: var(--lpt-text); text-decoration: none; font-size: 15px; }
.lpt-terms a:hover { border-color: var(--lpt-accent); color: var(--lpt-accent); }
.lpt-terms small { color: var(--lpt-muted); font-size: 13px; }
.lpt-terms i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.12); }
.lpt-empty { padding: 28px; margin-top: 18px; color: var(--lpt-muted); }

/* plain WP pages and posts (About, Privacy) */
.page .inside-article, .single-post .inside-article { max-width: 760px; margin: 0 auto; background: transparent; padding: 40px 16px 64px; }
.entry-content { font-size: 17px; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }

/* plain pages (About, Contact, Privacy): comfortable reading width */
body.page:not(.home) .entry-header,
body.page:not(.home) .entry-content { max-width: 760px; }

/* Share bar — fixed at the bottom of every page (same as greenmatrix.digital) */
body { padding-bottom: 70px; }
.lpt-share { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; pointer-events: none; }
.lpt-share a, .lpt-share button { pointer-events: auto; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0; padding: 0; border-radius: 10px; color: #fff; text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); font: 700 13px/1 sans-serif; }
.lpt-share a:hover, .lpt-share a:focus, .lpt-share button:hover, .lpt-share button:focus { color: #fff; text-decoration: none; }
.lpt-share__x { background: #111; }
.lpt-share__li { background: #0a66c2; }
.lpt-share__fb { background: #1877f2; }
.lpt-share__copy, .lpt-share__copy:hover, .lpt-share__copy:focus { background: #555; }
.lpt-share__copy.done { background: #1d9e75; }
@media (max-width: 600px) { body { padding-bottom: 64px; } }
@media print { .lpt-share { display: none !important; } body { padding-bottom: 0; } }
