/*
Theme Name: Affiliate Starter
Description: A one-page website for new or small party affiliates. No coding, no page building: set everything up from one screen at Dashboard → Affiliate Setup. Works on phones, tablets and computers.
Author: lpsites.org
Author URI: https://lpsites.org
Version: 2.5
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: affiliate-starter
*/

:root {
	--brand: #fed100;      /* replaced by the color chosen in Affiliate Setup */
	--on-brand: #111111;   /* automatic: black or white text on the brand color */
	--text: #1d2127;
	--muted: #5b636e;
	--dark: #14181f;
	--border: #e3e6ea;
	--width: 720px;
	--wide: 1120px;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: var(--text);
	background: #fff;
}
.site-main { flex: 1; }

h1, h2 { line-height: 1.15; }
a { color: var(--dark); text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }

.container { max-width: var(--width); margin: 0 auto; padding: 0 20px; }
.container.wide { max-width: var(--wide); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;              /* comfortable tap size on phones */
	padding: 10px 24px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
	background: var(--brand);
	color: var(--on-brand);
	transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; color: var(--on-brand); }
.btn--small { min-height: 40px; padding: 6px 18px; font-size: .9rem; }
.btn--big { min-height: 56px; padding: 14px 36px; font-size: 1.1rem; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { color: #fff; }
.btn--outline { background: transparent; border-color: currentColor; color: var(--on-brand); }

/* ---------- Event banner ---------- */
.event-banner { background: var(--dark); color: #fff; font-size: .95rem; }
.event-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.event-banner__tag { background: var(--brand); color: var(--on-brand); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; }
.event-banner__text { font-weight: 600; }
.event-banner__link { color: #fff; font-weight: 700; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { text-decoration: none; display: flex; align-items: center; min-width: 0; }
.brand__logo { max-height: 48px; width: auto; display: block; }
.brand__name { font-size: 1.25rem; font-weight: 800; color: var(--dark); line-height: 1.2; }

/* ---------- Hero ---------- */
.hero { background: var(--brand); color: var(--on-brand); padding: 96px 0; text-align: center; }
.hero__title { font-size: clamp(2.4rem, 8vw, 4.6rem); margin: 0 0 10px; font-weight: 900; letter-spacing: -0.02em; overflow-wrap: break-word; text-wrap: balance; }
.hero__title--medium { font-size: clamp(2.1rem, 5.6vw, 3.7rem); }
.hero__title--long { font-size: clamp(1.9rem, 4.3vw, 3.1rem); }
.hero__tagline { text-wrap: balance; max-width: 720px; margin-left: auto !important; margin-right: auto !important; font-size: clamp(1.05rem, 2.5vw, 1.3rem); font-weight: 600; margin: 0 0 18px; opacity: .9; }
.hero__intro { max-width: 600px; margin: 0 auto 34px; font-size: clamp(1rem, 2.2vw, 1.15rem); }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Follow us ---------- */
.connect { padding: 64px 0; text-align: center; }
.connect h2 { font-size: 1.6rem; margin: 0 0 22px; }

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.social__link { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--dark); color: #fff; text-decoration: none; font-weight: 800; transition: background .15s ease, color .15s ease, transform .15s ease; }
.social__link:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-2px); }
.social__link svg { display: block; width: 46%; height: 46%; }
.social--large .social__link { width: 56px; height: 56px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #c9ced6; padding: 28px 0; font-size: .85rem; text-align: center; border-top: 5px solid var(--brand); }
.site-footer p { margin: 4px 0; }
.disclaimer { display: inline-block; border: 1px solid rgba(255,255,255,.4); padding: 4px 10px; color: #fff; }

/* ---------- Any other page (fallback) ---------- */
.site-main > .container { padding-top: 48px; padding-bottom: 48px; }
.entry-title { margin: 0 0 12px; }
.alignwide, .alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }

/* ---------- Accessibility ---------- */
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 1000; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }

/* ---------- Tablets ---------- */
@media (max-width: 900px) {
	.hero { padding: 72px 0; }
}

/* ---------- Phones ---------- */
@media (max-width: 560px) {
	body { font-size: 17px; }
	.hero { padding: 56px 0 60px; }
	.hero__actions { flex-direction: column; align-items: stretch; max-width: 320px; margin: 28px auto 0; }
	.social--large { gap: 12px; }
	.social--large .social__link { width: 52px; height: 52px; }
	.connect { padding: 48px 0; }
	.event-banner { font-size: .88rem; }
	.brand__name { font-size: 1.05rem; }
	/* Long names already appear big just below, so skip the cramped repeat in the header. */
	.brand__name--long { display: none; }
	.site-header:has(.brand__name--long) .site-header__inner { justify-content: flex-end; min-height: 60px; }
	.site-header:has(.brand__name--long):not(:has(.btn)) { display: none; }
}
