/*
Theme Name: TenderFinder Red
Theme URI: https://www.maslworld.com/
Author: Millennium Automation Pvt. Ltd.
Description: Clean red & white theme for the MASL Tender Finder plugin - red hero, live tender search on the home page, sources, how-it-works and alerts sections. Texts, sections, red shade and contact details are editable in Appearance > Customize.
Version: 1.0.0
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: tenderfinder-red
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root { --red: #c8102e; --red-d: #9b0d23; --red-dd: #5f0714; --red-l: #fff1f2; --red-m: #fecdd3; --ink: #1c1917; --ink-2: #44403c; --muted: #78716c; --line: #ede4e4; --wrap: 1240px; --radius: 16px; }
body.red-scarlet { --red: #e11d2e; --red-d: #b3121f; --red-dd: #6b0a12; }
body.red-maroon  { --red: #9f1239; --red-d: #7a0e2c; --red-dd: #4c0519; }
body.red-scarlet .tf-app { --tf-red: #e11d2e; --tf-red-d: #b3121f; --tf-red-dd: #6b0a12; }
body.red-maroon .tf-app  { --tf-red: #9f1239; --tf-red-d: #7a0e2c; --tf-red-dd: #4c0519; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--red); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(200, 16, 46, .5); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: .15s; }
.btn-sm { min-height: 40px; padding: 7px 16px; font-size: .92rem; }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { background: var(--red-d); color: #fff; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--red); } .btn-white:hover { color: var(--red-d); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--red); color: #fff; box-shadow: 0 8px 18px -10px var(--red); }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; } .brand-text strong { font-size: 1.1rem; } .brand-text small { font-size: .74rem; color: var(--muted); }
.custom-logo { max-height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav li { position: relative; }
.site-nav a:not(.btn) { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .94rem; }
.site-nav a:not(.btn):hover, .site-nav .current-menu-item > a { color: var(--red); background: var(--red-l); }
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; flex-direction: column; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 18px 36px -20px rgba(0,0,0,.35); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: flex; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--red); cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 76px 0 150px; background: radial-gradient(900px 400px at 85% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(135deg, var(--red) 0%, var(--red-d) 55%, var(--red-dd) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(rgba(255,255,255,.9) 1.2px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); }
.hero-inner { position: relative; text-align: center; max-width: 900px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: .84rem; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } }
.hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.1; letter-spacing: -.03em; }
.lead { margin: 0 auto; max-width: 720px; font-size: 1.1rem; color: #ffe4e6; }
.app-zone { position: relative; margin-top: -110px; padding-bottom: 40px; }
.notice-box { padding: 26px; border-radius: 14px; background: #fff; border: 1px solid var(--red-m); color: var(--red-d); text-align: center; box-shadow: 0 20px 40px -26px rgba(0,0,0,.4); }

/* Sections */
.section { padding: 80px 0; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { margin: 6px 0 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; }
.kicker { display: inline-block; margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--red-l); color: var(--red-d); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.kicker.light { background: rgba(255,255,255,.15); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 36px -30px rgba(95, 7, 20, .6); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-5px); border-color: var(--red-m); }
.card h3 { margin: 16px 0 6px; font-size: 1.12rem; } .card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--red-l); color: var(--red); }
.tile .icon { width: 26px; height: 26px; }
.tile.big { width: 64px; height: 64px; background: var(--red); color: #fff; flex: none; }
.steps-section { color: #fff; background: linear-gradient(135deg, var(--red-d), var(--red-dd)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); }
.steps .num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--red); font-weight: 800; font-size: 1.1rem; }
.steps h3 { margin: 14px 0 6px; } .steps p { margin: 0; color: #ffe4e6; }
.alerts { padding: 64px 0; background: var(--red-l); }
.alert-box { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.alert-box > div { flex: 1 1 320px; } .alert-box h2 { margin: 0 0 4px; font-size: 1.5rem; } .alert-box p { margin: 0; color: var(--ink-2); }

/* Inner pages */
.page-hero { color: #fff; padding: 56px 0 50px; background: linear-gradient(135deg, var(--red), var(--red-dd)); }
.page-hero.is-app { padding-bottom: 120px; }
.page-hero h1 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.02em; }
.page-hero p { margin: 14px 0 0; }
.content-area { padding: 48px 24px 72px; }
.content-area.is-app { margin-top: -100px; padding-top: 0; }
.content-area:not(.is-app) .entry { max-width: 820px; margin: 0 auto; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.post-card h2 { font-size: 1.2rem; margin: 4px 0 8px; } .post-card h2 a { color: var(--ink); text-decoration: none; }
.meta { color: var(--muted); font-size: .82rem; margin: 0; }

/* Footer */
.site-footer { background: #1c1214; color: #e7d8da; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; } .footer-grid p { margin: 14px 0 0; max-width: 420px; color: #cbb8bb; }
.footer-h { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #f5e9ea; text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; } .contact-list .icon { color: #fb7185; margin-top: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; color: #a8969a; }

@media (max-width: 1060px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
	.steps { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; gap: 26px; }
	.nav-toggle { display: inline-grid; place-items: center; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(0,0,0,.4); }
	.site-nav.is-open { display: flex; } .site-nav ul { flex-direction: column; } .site-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; }
}
@media (max-width: 600px) {
	.wrap { padding: 0 16px; } .cards { grid-template-columns: 1fr; }
	.hero { padding: 54px 0 130px; } .section { padding: 60px 0; }
	.brand-text small { display: none; } .admin-bar .site-header { top: 0; }
	.content-area { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
