/*
Theme Name: Remegosourcing B2B
Theme URI: https://remegosourcing.com
Author: Remegosourcing
Description: B2B website theme for Remegosourcing — LED beauty device supply, private label and fulfilment. On activation it creates the site pages, menu and inquiry form.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: remego
*/

/* ---------- Base ---------- */
:root {
	--rl-radius: 16px;
	--rl-radius-sm: 10px;
	--rl-border: #e6e2dd;
}
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- Header ---------- */
.rl-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.94);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--rl-border);
}
.admin-bar .rl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rl-header { top: 0; position: relative; } }
.rl-header .wp-block-site-title a {
	text-decoration: none; letter-spacing: .2em; font-weight: 700; font-size: 1.05rem;
}
.rl-header .wp-block-navigation { font-size: .92rem; font-weight: 500; }
.rl-header .wp-block-navigation a { text-decoration: none; }
.rl-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }
.rl-header .rl-header-cta .wp-block-button__link { padding: .6em 1.15em; font-size: .9rem; }
@media (max-width: 960px) { .rl-header .rl-header-cta { display: none; } }

/* ---------- Sections ---------- */
.rl-section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.rl-section.rl-tight { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.rl-alt { background: var(--wp--preset--color--sand); }
.rl-dark { background: var(--wp--preset--color--ink); color: #f4f2ef; }
.rl-dark h1, .rl-dark h2, .rl-dark h3, .rl-dark h4 { color: #fff; }
.rl-dark a:not(.wp-block-button__link) { color: #fff; }
.rl-eyebrow {
	text-transform: uppercase; letter-spacing: .2em; font-size: .78rem !important; font-weight: 600;
	color: var(--wp--preset--color--accent); margin-bottom: .6rem !important;
}
.rl-dark .rl-eyebrow { color: #ff8a8f; }
.rl-lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem) !important; color: var(--wp--preset--color--muted); box-sizing: border-box; padding-right: max(0px, calc(100% - 48rem)); }
.rl-dark .rl-lead { color: #c9c5bf; }
.rl-center { text-align: center; }
.rl-center .rl-lead { padding-left: max(0px, calc((100% - 48rem) / 2)); padding-right: max(0px, calc((100% - 48rem) / 2)); }
.rl-section h2 { margin-top: 0; }
.rl-small { font-size: .86rem !important; color: var(--wp--preset--color--muted); }
.rl-dark .rl-small { color: #a9a49d; }

/* ---------- Hero ---------- */
.rl-hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 88px);
	background: linear-gradient(180deg, #fff 0%, var(--wp--preset--color--sand) 100%); }
.rl-hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 1.1rem; }
.rl-hero .wp-block-columns { align-items: center !important; gap: clamp(24px, 4vw, 64px); }
.rl-hero-img img { border-radius: var(--rl-radius); background: #fff; box-shadow: 0 30px 60px -30px rgba(30,20,10,.25); }
.rl-page-hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); background: var(--wp--preset--color--sand); }
.rl-page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 1rem; }

/* ---------- Stats ---------- */
.rl-stats { gap: 16px !important; margin-top: 2rem !important; }
.rl-stat { border-top: 3px solid var(--wp--preset--color--ink); padding-top: 14px; }
.rl-stat .rl-stat-num { font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .3rem; }
.rl-stat p:not(.rl-stat-num) { margin: 0; font-size: .9rem; color: var(--wp--preset--color--muted); }

/* ---------- Cards ---------- */
.rl-cards { gap: 20px !important; }
.rl-cards + .rl-cards { margin-top: 20px !important; }
.rl-card {
	background: #fff; border: 1px solid var(--rl-border); border-radius: var(--rl-radius);
	padding: clamp(22px, 2.4vw, 32px) !important; height: 100%;
}
.rl-alt .rl-card { border-color: transparent; }
.rl-card h3 { font-size: 1.18rem; margin: 0 0 .5rem; }
.rl-card p { margin: 0; color: var(--wp--preset--color--muted); }
.rl-card .rl-num { color: var(--wp--preset--color--accent); font-weight: 600; font-size: .85rem; letter-spacing: .1em; margin-bottom: .6rem; }
.rl-card ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--wp--preset--color--muted); }
.rl-card ul li { margin: .25rem 0; }
.rl-card-dark { background: var(--wp--preset--color--ink); color: #eee; border-color: var(--wp--preset--color--ink); }
.rl-card-dark h3 { color: #fff; }
.rl-card-dark p { color: #c9c5bf; }
.rl-tag { display: inline-block; background: var(--wp--preset--color--sand); border-radius: 999px; padding: .2em .8em; font-size: .8rem !important; font-weight: 600; margin: 0 0 .8rem !important; }
.rl-card .wp-block-buttons { margin-top: 1.1rem; }

/* ---------- Product feature ---------- */
.rl-product-img img { border-radius: var(--rl-radius); background: #fff; }
.rl-features { list-style: none; padding: 0 !important; margin: 1.2rem 0 1.6rem; }
.rl-features li { padding: .65rem 0 .65rem 1.6rem; border-bottom: 1px solid var(--rl-border); position: relative; }
.rl-features li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--accent); }
.rl-dark .rl-features li { border-color: #3a3734; }
.rl-checks { list-style: none; padding: 0 !important; }
.rl-checks li { padding-left: 1.6rem; position: relative; margin: .45rem 0; }
.rl-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--accent); font-weight: 700; }

/* ---------- Steps ---------- */
.rl-steps { counter-reset: rlstep; gap: 20px !important; }
.rl-step { border-top: 1px solid var(--rl-border); padding-top: 18px; }
.rl-step h3 { font-size: 1.08rem; margin: 0 0 .4rem; }
.rl-step h3::before { counter-increment: rlstep; content: "0" counter(rlstep); display: block; color: var(--wp--preset--color--accent); font-size: 1.9rem; font-weight: 300; margin-bottom: .4rem; }
.rl-step p { margin: 0; color: var(--wp--preset--color--muted); }
.rl-dark .rl-step { border-color: #3a3734; }
.rl-dark .rl-step p { color: #c9c5bf; }

/* ---------- Path (private label tiers) ---------- */
.rl-path .wp-block-group.rl-tier { border-top: 1px solid var(--rl-border); padding: 22px 0; display: grid; grid-template-columns: 80px 1fr auto; gap: 8px 20px; align-items: start; }
.rl-path .rl-tier:last-child { border-bottom: 1px solid var(--rl-border); }
.rl-tier .rl-tier-num { color: var(--wp--preset--color--accent); font-size: 2rem; font-weight: 300; line-height: 1; margin: 0; }
.rl-tier h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.rl-tier p { margin: 0; }
.rl-tier .rl-tier-body p { color: var(--wp--preset--color--muted); }
.rl-tier .rl-tag { margin: 0 !important; white-space: nowrap; }
@media (max-width: 640px) { .rl-path .wp-block-group.rl-tier { grid-template-columns: 56px 1fr; } .rl-tier .rl-tag { grid-column: 2; justify-self: start; } }

/* ---------- Tables ---------- */
.rl-table table { border-collapse: collapse; width: 100%; }
.rl-table td, .rl-table th { border: 0; border-bottom: 1px solid var(--rl-border); padding: .8rem .4rem; text-align: left; vertical-align: top; }
.rl-table tr td:first-child { color: var(--wp--preset--color--muted); width: 38%; }
.rl-table tr td:last-child { font-weight: 500; }
.rl-terms td:nth-child(2) { color: var(--wp--preset--color--accent); font-weight: 600 !important; white-space: nowrap; }
.rl-terms td:first-child { color: var(--wp--preset--color--ink) !important; font-weight: 600; width: 28% !important; }
.rl-terms td:last-child { font-weight: 400 !important; color: var(--wp--preset--color--muted); }
@media (max-width: 640px) { .rl-terms td { display: block; width: 100% !important; border: 0; padding: .2rem 0; } .rl-terms tr { display: block; border-bottom: 1px solid var(--rl-border); padding: .8rem 0; } }

/* ---------- Pills ---------- */
.rl-pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0 !important; margin: 1rem 0; }
.rl-pills li { border: 1px solid var(--rl-border); background: #fff; border-radius: 999px; padding: .45em 1em; font-size: .92rem; }

/* ---------- FAQ ---------- */
.rl-faq .wp-block-details { border-bottom: 1px solid var(--rl-border); padding: 1.1rem 0; margin: 0; }
.rl-faq .wp-block-details summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; list-style: none; padding-right: 2rem; position: relative; }
.rl-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.rl-faq .wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; font-weight: 300; color: var(--wp--preset--color--accent); }
.rl-faq .wp-block-details[open] summary::after { content: "–"; }
.rl-faq .wp-block-details p { color: var(--wp--preset--color--muted); margin: .7rem 0 0; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.wp-block-button__link:hover { background: var(--wp--preset--color--accent-dark); }
.is-style-outline .wp-block-button__link { border: 1.5px solid currentColor; }
.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; border-color: var(--wp--preset--color--ink); }
.rl-dark .is-style-outline .wp-block-button__link { color: #fff; }
.rl-dark .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); }

/* ---------- Footer ---------- */
.rl-footer { background: var(--wp--preset--color--ink); color: #c9c5bf; font-size: .92rem; }
.rl-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 1rem; }
.rl-footer a { color: #e9e6e1; text-decoration: none; }
.rl-footer a:hover { color: #fff; text-decoration: underline; }
.rl-footer ul { list-style: none; padding: 0; margin: 0; }
.rl-footer li { margin: .45rem 0; }
.rl-footer .rl-footer-brand { color: #fff; letter-spacing: .2em; font-weight: 700; font-size: 1.05rem; margin: 0 0 .8rem; }
.rl-footer-bottom { border-top: 1px solid #34312e; margin-top: 40px !important; padding-top: 22px; font-size: .82rem; color: #8f8a83; }

/* ---------- Contact info ---------- */
.rl-contact-list { list-style: none; padding: 0; margin: 0; }
.rl-contact-list li { padding: .9rem 0; border-bottom: 1px solid var(--rl-border); }
.rl-contact-list .rl-k { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; color: var(--wp--preset--color--muted); margin-bottom: .2rem; }
.rl-contact-list a { font-weight: 600; text-decoration: none; }
.rl-footer .rl-contact-list li { border-color: #34312e; padding: .5rem 0; }
.rl-footer .rl-contact-list .rl-k { color: #8f8a83; }

/* ---------- Inquiry form ---------- */
.rl-form { background: #fff; border: 1px solid var(--rl-border); border-radius: var(--rl-radius); padding: clamp(22px, 3vw, 40px); }
.rl-form .rl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.rl-form .rl-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .rl-form .rl-grid { grid-template-columns: 1fr; } }
.rl-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.rl-form label .rl-req { color: var(--wp--preset--color--accent); }
.rl-form label .rl-opt { color: var(--wp--preset--color--muted); font-weight: 400; }
.rl-form input[type=text], .rl-form input[type=email], .rl-form input[type=url], .rl-form input[type=tel], .rl-form select, .rl-form textarea {
	width: 100%; box-sizing: border-box; border: 1px solid #d6d1cb; border-radius: var(--rl-radius-sm);
	padding: .72rem .85rem; font: inherit; font-size: 1rem; background: #fff; color: inherit;
}
.rl-form textarea { min-height: 140px; resize: vertical; }
.rl-form input:focus, .rl-form select:focus, .rl-form textarea:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 1px; border-color: transparent; }
.rl-form .rl-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-form .rl-radios label { font-weight: 500; border: 1px solid #d6d1cb; border-radius: 999px; padding: .4rem .9rem; cursor: pointer; margin: 0; font-size: .9rem; }
.rl-form .rl-radios input { margin-right: .35rem; accent-color: var(--wp--preset--color--accent); }
.rl-form .rl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rl-form button[type=submit] {
	background: var(--wp--preset--color--accent); color: #fff; border: 0; border-radius: 999px;
	padding: .95rem 2rem; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: 8px;
}
.rl-form button[type=submit]:hover { background: var(--wp--preset--color--accent-dark); }
.rl-form .rl-note { font-size: .82rem; color: var(--wp--preset--color--muted); margin-top: 12px; }
.rl-notice { border-radius: var(--rl-radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 500; }
.rl-notice-ok { background: #edf7ef; color: #1d5c2c; border: 1px solid #c4e3cb; }
.rl-notice-err { background: #fdf0f0; color: #8a1c1c; border: 1px solid #f1c9c9; }

/* ---------- Misc ---------- */
.rl-media-frame img { border-radius: var(--rl-radius); background: #fff; }
.rl-split { align-items: center !important; gap: clamp(24px, 4vw, 64px) !important; }
.rl-box-highlight { border: 1.5px solid var(--wp--preset--color--ink); border-radius: var(--rl-radius); padding: clamp(22px, 2.6vw, 34px) !important; }
.rl-box-highlight .rl-big { font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important; font-weight: 600; line-height: 1.2; margin: .2rem 0 .8rem; }
.rl-price { font-size: clamp(2.4rem, 5vw, 3.6rem) !important; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 0 !important; }
.rl-footnote { font-size: .8rem !important; color: var(--wp--preset--color--muted); }
.rl-dark .rl-footnote { color: #a9a49d; }
@media (max-width: 781px) {
	.rl-stats { flex-wrap: wrap !important; }
	.rl-stats > .wp-block-column { flex-basis: calc(50% - 8px) !important; }
}
.rl-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; max-width: 1280px; margin: 0 auto; }
.rl-footer-bottom { max-width: 1280px; margin-left: auto !important; margin-right: auto !important; }
@media (max-width: 781px) { .rl-footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* layout fixes */
.rl-header .wp-block-site-title { text-transform: uppercase; }
.rl-stats .rl-stat { margin-top: 0 !important; height: 100%; }
.rl-hero .rl-stats { align-items: stretch !important; }
.wp-block-post-content > .alignfull, main > .wp-block-post-content, .wp-site-blocks > footer, .wp-site-blocks > div { margin-block-start: 0 !important; }
.rl-cards .rl-media-frame img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; padding: 14px; box-sizing: border-box; border: 1px solid var(--rl-border); }
.rl-cards .rl-media-frame figcaption { text-align: center; font-size: .85rem; color: var(--wp--preset--color--muted); }
.rl-terms td:nth-child(2) { width: 16%; }
.rl-dark + * .rl-footer, .rl-footer { border-top: 1px solid #2c2a28; }
.rl-tier > * { margin-top: 0 !important; }
.rl-card-dark .rl-price { color: #fff; }
.rl-card-dark .rl-eyebrow { color: #ff8a8f; }
.rl-steps + .rl-cards, .rl-pills + .rl-cards { margin-top: 36px !important; }
.rl-box-highlight + .wp-block-image { margin-top: 20px; }
.rl-dark .rl-card:not(.rl-card-dark) h3 { color: var(--wp--preset--color--ink); }
.rl-dark .rl-card:not(.rl-card-dark) .rl-small { color: var(--wp--preset--color--muted); }

/* v2: real photos & video */
.rl-portrait img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.rl-hero-img.rl-portrait img { max-height: 640px; }
.rl-cards .rl-media-frame.rl-portrait img { aspect-ratio: 4 / 5; object-fit: cover; padding: 0; border: 0; }
.rl-videos .wp-block-video { margin: 0; }
.rl-videos video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #111; border-radius: var(--rl-radius); display: block; }
.rl-videos figcaption { text-align: center; font-size: .85rem; color: var(--wp--preset--color--muted); margin-top: .6rem; }
.rl-doc h3 { font-size: 1.05rem; }
.rl-doc ul { list-style: none; padding-left: 0 !important; }
.rl-doc ul li:first-child { color: var(--wp--preset--color--ink); font-weight: 500; }
.rl-doc ul li { font-size: .92rem; }
.rl-card + .wp-block-image { margin-top: 20px; }
@media (max-width: 781px) { .rl-videos > .wp-block-column { flex-basis: 100% !important; } .rl-videos video { max-height: 70vh; } }
.rl-cards .rl-media-frame img { object-fit: cover; padding: 0; border: 0; }
@media (max-width: 781px) { .rl-gallery { flex-wrap: wrap !important; gap: 12px !important; } .rl-gallery > .wp-block-column { flex-basis: calc(50% - 6px) !important; flex-grow: 0 !important; } .rl-gallery + .rl-gallery { margin-top: 12px !important; } }
