/*
Theme Name: RL Int
Theme URI: https://rlint.net/
Author: RL Int
Description: Custom WooCommerce theme for school, office, and public-sector purchasing.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: rl-int
*/

:root {
	--rl-orange: #f97316;
	--rl-orange-dark: #ea580c;
	--rl-navy: #0f2f57;
	--rl-red: #b91c1c;
	--rl-cream: #fff7ed;
	--rl-ink: #172033;
	--rl-muted: #5b6578;
	--rl-border: #e2e8f0;
	--rl-white: #fff;
	--rl-shadow: 0 18px 55px rgba(15, 47, 87, 0.12);
	--rl-width: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--rl-white); color: var(--rl-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--rl-orange); outline-offset: 3px; }
::selection { background: #fed7aa; color: var(--rl-navy); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.rl-container { width: min(calc(100% - 2rem), var(--rl-width)); margin-inline: auto; }
.rl-button, .button, button.button, input.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: 6px; padding: .7rem 1.1rem; background: var(--rl-orange); color: #fff; font-weight: 800; cursor: pointer; transition: .2s ease; }
.rl-button:hover, .button:hover, button.button:hover, input.button:hover { background: var(--rl-orange-dark); color: #fff; }
.rl-button--navy { background: var(--rl-navy); }
.rl-button--outline { border-color: var(--rl-navy); background: transparent; color: var(--rl-navy); }
.rl-button--outline:hover { background: var(--rl-navy); color: #fff; }
.rl-eyebrow { margin: 0; color: var(--rl-red); font-size: .82rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.rl-section-title { margin: .35rem 0 0; color: var(--rl-navy); font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 900; line-height: 1.15; }
.rl-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.rl-patriot { background: linear-gradient(90deg, rgba(185, 28, 28, .12) 0 18%, transparent 18% 34%, rgba(29, 78, 216, .13) 34% 52%, transparent 52% 68%, rgba(249, 115, 22, .18) 68% 100%), var(--rl-cream); }

.rl-topbar { background: var(--rl-navy); color: #fff; font-size: .75rem; font-weight: 700; }
.rl-topbar .rl-container { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.rl-topbar a { color: #ffedd5; }
.rl-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--rl-border); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.admin-bar .rl-header { top: 32px; }
.rl-header-main { display: flex; min-height: 80px; align-items: center; gap: 1.5rem; }
.rl-logo { min-width: 125px; color: var(--rl-navy); line-height: 1; }
.rl-logo strong { display: block; font-size: 1.55rem; font-weight: 950; }
.rl-logo small { display: block; margin-top: .3rem; color: var(--rl-orange); font-size: .68rem; font-weight: 850; letter-spacing: .08em; }
.rl-nav { display: flex; flex: 1; align-items: center; gap: .25rem; }
.rl-nav a { border-radius: 6px; padding: .65rem .75rem; color: #334155; font-size: .88rem; font-weight: 800; }
.rl-nav a:hover { background: var(--rl-cream); color: var(--rl-orange); }
.rl-actions { display: flex; align-items: center; gap: .5rem; }
.rl-icon-link, .rl-menu-toggle { position: relative; display: inline-grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--rl-border); border-radius: 6px; background: #fff; color: var(--rl-navy); }
.rl-icon-link--cart { border-color: var(--rl-orange); background: var(--rl-orange); color: #fff; }
.rl-cart-count { position: absolute; top: -8px; right: -8px; display: grid; min-width: 23px; height: 23px; place-items: center; border: 2px solid #fff; border-radius: 999px; background: var(--rl-red); color: #fff; font-size: .7rem; font-weight: 900; }
.rl-menu-toggle { display: none; cursor: pointer; }

.rl-hero { position: relative; isolation: isolate; min-height: 620px; overflow: hidden; background: var(--rl-navy); color: #fff; }
.rl-hero::before { position: absolute; z-index: -2; inset: 0; background: url("https://images.unsplash.com/photo-1497633762265-9d179a990aa6?auto=format&fit=crop&w=1800&q=85") center/cover; content: ""; }
.rl-hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(15,47,87,.98), rgba(15,47,87,.9) 55%, rgba(185,28,28,.55)); content: ""; }
.rl-hero .rl-container { display: flex; min-height: 620px; align-items: center; padding-block: 4rem; }
.rl-hero-content { max-width: 760px; }
.rl-pill { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .5rem 1rem; background: rgba(255,255,255,.1); color: #ffedd5; font-size: .8rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.rl-hero h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 950; line-height: 1.06; letter-spacing: -.025em; }
.rl-hero-copy { max-width: 700px; margin: 1.4rem 0 0; color: #dbeafe; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.rl-hero-actions { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: .75rem; max-width: 680px; margin-top: 2rem; }
.rl-hero-actions .rl-button { min-height: 56px; }
.rl-hero-actions .rl-button:first-child { background: #fff; color: var(--rl-navy); }
.rl-hero-actions .rl-button:last-child { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff; }
.rl-hero-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; color: #bfdbfe; font-size: .88rem; font-weight: 800; }

.rl-benefits { border-bottom: 1px solid var(--rl-border); padding-block: 2rem; }
.rl-benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.rl-benefit { border: 1px solid var(--rl-border); border-radius: 6px; padding: 1rem; }
.rl-benefit strong { display: block; color: var(--rl-navy); font-size: .9rem; }
.rl-benefit p { margin: .35rem 0 0; color: var(--rl-muted); font-size: .86rem; }
.rl-benefit-icon { color: var(--rl-orange); font-weight: 900; }
.rl-category-section, .rl-products-section { padding-block: 4rem; }
.rl-category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.rl-category-card { border: 1px solid var(--rl-border); border-radius: 8px; padding: 1.25rem; background: #fff; box-shadow: 0 2px 8px rgba(15,47,87,.04); transition: .2s ease; }
.rl-category-card:hover { transform: translateY(-4px); border-color: var(--rl-orange); box-shadow: var(--rl-shadow); }
.rl-category-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 6px; background: var(--rl-cream); color: var(--rl-orange); font-weight: 950; }
.rl-category-card h3 { margin: 1rem 0 .3rem; color: var(--rl-navy); font-size: 1rem; line-height: 1.3; }
.rl-category-card p { margin: 0; color: var(--rl-muted); font-size: .84rem; }
.rl-common { border-block: 1px solid #1e4976; padding-block: 2.5rem; background: var(--rl-navy); color: #fff; }
.rl-common .rl-eyebrow { color: #fed7aa; }
.rl-common .rl-section-title { color: #fff; font-size: 1.55rem; }
.rl-common-list { display: flex; gap: 1rem; margin-top: 1.5rem; padding-bottom: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.rl-common-item { min-width: 280px; border-radius: 6px; padding: 1rem; background: #fff; color: var(--rl-navy); font-weight: 850; scroll-snap-align: start; }
.rl-common-item small { display: block; color: #64748b; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

.rl-product-grid, ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0 !important; padding: 0; list-style: none; }
.rl-product-card, ul.products li.product { display: flex !important; width: auto !important; min-width: 0; height: 100%; flex-direction: column; float: none !important; overflow: hidden; border: 1px solid var(--rl-border); border-radius: 7px; background: #fff; box-shadow: 0 2px 10px rgba(15,47,87,.06); transition: .2s ease; }
.rl-product-card:hover, ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--rl-shadow); }
.rl-product-image, ul.products li.product .rl-loop-image { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #f1f5f9; }
.rl-product-image img, .rl-loop-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rl-product-card:hover img, ul.products li.product:hover img { transform: scale(1.04); }
.rl-badge { position: absolute; top: .75rem; left: .75rem; border-radius: 5px; padding: .3rem .65rem; background: var(--rl-red); color: #fff; font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.rl-product-content { display: flex; flex: 1; flex-direction: column; padding: 1.2rem; }
.rl-product-category { margin: 0; color: var(--rl-orange); font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.rl-product-card h3 { margin: .4rem 0; color: var(--rl-navy); font-size: 1.05rem; line-height: 1.35; }
.rl-product-description { display: -webkit-box; margin: .2rem 0; overflow: hidden; color: var(--rl-muted); font-size: .86rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rl-product-price { margin: auto 0 .9rem; padding-top: 1rem; color: var(--rl-ink); font-size: 1.15rem; font-weight: 900; }
.rl-product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.rl-product-actions .rl-button { min-height: 43px; padding: .55rem; font-size: .8rem; }

.rl-page-hero { border-bottom: 1px solid #ffedd5; padding-block: 3.5rem; }
.rl-page-hero h1 { margin: .5rem 0 0; color: var(--rl-navy); font-size: clamp(2.3rem, 5vw, 3.2rem); line-height: 1.08; }
.rl-page-hero p { max-width: 760px; margin: 1rem 0 0; color: #475569; }
.rl-content { padding-block: 3.5rem; }
.rl-content--narrow { max-width: 850px; }
.rl-two-column { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; }
.rl-info-card, .rl-lead-form { border: 1px solid var(--rl-border); border-radius: 7px; padding: 1.5rem; background: #f8fafc; }
.rl-info-card h2, .rl-lead-form h2 { margin-top: 0; color: var(--rl-navy); }
.rl-info-card p { color: #475569; }
.rl-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.rl-values article { border: 1px solid var(--rl-border); border-radius: 7px; padding: 1.25rem; }
.rl-values h2 { color: var(--rl-navy); font-size: 1.05rem; }
.rl-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rl-lead-form label { display: block; margin-bottom: 1rem; color: var(--rl-navy); font-size: .88rem; font-weight: 800; }
.rl-lead-form input:not([type="checkbox"]), .rl-lead-form textarea, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select { width: 100%; min-height: 46px; margin-top: .35rem; border: 1px solid #cbd5e1; border-radius: 5px; padding: .7rem .8rem; background: #fff; color: var(--rl-ink); }
.rl-lead-form textarea { resize: vertical; }
.rl-consent { display: flex !important; gap: .65rem; align-items: flex-start; font-weight: 600 !important; }
.rl-consent input { margin-top: .25rem; }
.rl-form-honeypot { position: absolute !important; left: -10000px !important; }
.rl-alert { margin-bottom: 1rem; border-radius: 6px; padding: 1rem; font-weight: 750; }
.rl-alert--success { border: 1px solid #86efac; background: #f0fdf4; color: #166534; }
.rl-alert--error { border: 1px solid #fca5a5; background: #fef2f2; color: #991b1b; }

.rl-woo { padding-block: 3rem; }
.woocommerce .woocommerce-breadcrumb { color: #64748b; font-size: .82rem; }
.woocommerce .woocommerce-result-count { color: #475569; }
.woocommerce .woocommerce-ordering select { border: 1px solid #cbd5e1; border-radius: 5px; padding: .65rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { margin: .8rem 1.1rem .35rem; color: var(--rl-navy); font-size: 1.05rem; font-weight: 900; }
.woocommerce ul.products li.product .price { margin: 0 1.1rem .8rem; color: var(--rl-ink); font-weight: 900; }
.woocommerce ul.products li.product .button { margin: auto 1.1rem 1.1rem; }
.woocommerce span.onsale { z-index: 2; min-width: auto; min-height: auto; border-radius: 5px; padding: .35rem .65rem; background: var(--rl-red); line-height: 1.3; }
.woocommerce div.product div.summary h1 { color: var(--rl-navy); font-weight: 900; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--rl-ink); font-size: 1.5rem; font-weight: 900; }
.woocommerce table.shop_table { border-color: var(--rl-border); border-radius: 6px; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--rl-orange); background: #fff7ed; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--rl-orange); }

.rl-footer { background: var(--rl-navy); color: #fff; }
.rl-footer-cta { border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); }
.rl-footer-cta .rl-container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.6rem; }
.rl-footer-cta p { margin: 0; color: #fed7aa; font-size: .8rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.rl-footer-cta h2 { margin: .15rem 0 0; font-size: 1.5rem; }
.rl-footer-grid { display: grid; grid-template-columns: 1.15fr .85fr .8fr .8fr; gap: 2.5rem; padding-block: 3.5rem; }
.rl-footer h2, .rl-footer h3 { margin-top: 0; }
.rl-footer h3 { color: #ffedd5; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.rl-footer p, .rl-footer li { color: #bfdbfe; font-size: .88rem; }
.rl-footer ul { margin: 0; padding: 0; list-style: none; }
.rl-footer li + li { margin-top: .6rem; }
.rl-footer a:hover { color: #fff; }
.rl-copyright { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.1rem; color: #bfdbfe; font-size: .75rem; }

@media (max-width: 1024px) {
	.rl-menu-toggle { display: inline-grid; }
	.rl-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; border-top: 1px solid var(--rl-border); padding: 1rem; background: #fff; box-shadow: var(--rl-shadow); }
	.rl-nav.is-open { display: flex; }
	.rl-category-grid { grid-template-columns: repeat(3, 1fr); }
	.rl-product-grid, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rl-benefit-grid, .rl-values { grid-template-columns: repeat(2, 1fr); }
	.rl-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) { .admin-bar .rl-header { top: 46px; } }

@media (max-width: 640px) {
	.rl-container { width: min(calc(100% - 1.25rem), var(--rl-width)); }
	.rl-topbar a, .rl-actions .rl-account-link { display: none; }
	.rl-header-main { min-height: 70px; gap: .65rem; }
	.rl-logo { margin-right: auto; }
	.rl-hero, .rl-hero .rl-container { min-height: 580px; }
	.rl-hero-actions { grid-template-columns: 1fr; }
	.rl-benefit-grid, .rl-category-grid, .rl-product-grid, ul.products, .rl-values, .rl-form-grid, .rl-two-column, .rl-footer-grid { grid-template-columns: 1fr; }
	.rl-section-head, .rl-footer-cta .rl-container { align-items: flex-start; flex-direction: column; }
	.rl-category-section, .rl-products-section, .rl-content { padding-block: 3rem; }
	.rl-product-actions { grid-template-columns: 1fr; }
}
