/*
Theme Name: Shaiyas Theme
Theme URI: https://shaiyas.shop/
Author: Shaiyas Marketing
Description: Public website for Shaiyas Marketing — Home, Services, How it works, Plans and Contact. Connects to the Shaiyas Marketing plugin for live plans, prices, festival calendar, the enquiry form and the customer login / dashboard. Hindi-first, mobile-first, self-hosted fonts.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shaiyas-theme
*/

/* ---------- Fonts (SIL OFL, see assets/fonts/LICENSE-OFL.txt) ---------- */
@font-face { font-family: "ST Noto"; src: url(assets/fonts/noto-sans-devanagari-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "ST Noto"; src: url(assets/fonts/noto-sans-devanagari-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "ST Noto"; src: url(assets/fonts/noto-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "ST Noto"; src: url(assets/fonts/noto-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
	--st-ink: #1d1846;        /* deep indigo ink: text, footer */
	--st-ink-2: #4a4672;      /* secondary text */
	--st-indigo: #4b3fd1;     /* brand action colour */
	--st-indigo-dk: #3a2fb3;
	--st-marigold: #f4a62a;   /* festival accent */
	--st-marigold-lt: #fff3dc;
	--st-surface: #f5f3fc;    /* tinted section background */
	--st-line: #e3dff3;
	--st-white: #ffffff;
	--st-wa: #1a9e50;
	--st-wa-dk: #14823f;
	--st-font: "ST Noto", "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, -apple-system, "Segoe UI", sans-serif;
	--st-wrap: 1160px;
	--st-r: 12px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--st-font); font-size: 17px; line-height: 1.75; color: var(--st-ink); background: var(--st-white); }
img { max-width: 100%; height: auto; }
a { color: var(--st-indigo); text-underline-offset: 3px; }
a:hover { color: var(--st-indigo-dk); }
:focus-visible { outline: 3px solid var(--st-marigold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; color: var(--st-ink); }
h1 { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.st-wrap { width: 100%; max-width: var(--st-wrap); margin: 0 auto; padding: 0 20px; }
.st-narrow { max-width: 780px; }
.st-muted { color: var(--st-ink-2); }
.st-small { font-size: 14px; }
.st-pre { white-space: pre-line; }
.st-lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--st-ink-2); max-width: 60ch; }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-skip { position: absolute; left: -999px; top: 8px; background: var(--st-white); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.st-skip:focus { left: 8px; }
.st-ico { width: 20px; height: 20px; flex: 0 0 20px; }
.st-note { background: var(--st-marigold-lt); border-left: 4px solid var(--st-marigold); padding: 10px 14px; border-radius: 6px; font-size: 15px; }

/* ---------- Buttons ---------- */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 10px; border: 2px solid transparent; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.st-btn-lg { min-height: 52px; padding: 10px 24px; font-size: 17px; }
.st-btn-block { width: 100%; }
.st-btn-primary { background: var(--st-indigo); color: var(--st-white); }
.st-btn-primary:hover { background: var(--st-indigo-dk); color: var(--st-white); }
.st-btn-ghost { background: transparent; border-color: var(--st-line); color: var(--st-ink); }
.st-btn-ghost:hover { border-color: var(--st-indigo); color: var(--st-indigo); }
.st-btn-wa { background: var(--st-wa); color: var(--st-white); }
.st-btn-wa:hover { background: var(--st-wa-dk); color: var(--st-white); }
.st-btn-light { background: var(--st-marigold); color: var(--st-ink); }
.st-btn-light:hover { background: #ffb944; color: var(--st-ink); }
.st-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1em; }
.st-link { font-weight: 700; }

/* ---------- Header ---------- */
.st-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--st-line); backdrop-filter: saturate(1.4) blur(6px); }
.admin-bar .st-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .st-header { top: 46px; } }
.st-header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.st-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--st-ink); text-decoration: none; font-weight: 700; font-size: 19px; margin-right: auto; }
.st-logo { max-height: 44px; width: auto; }
.st-mark { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; background: var(--st-indigo); box-shadow: inset 0 -7px 0 var(--st-marigold); }
.st-nav { display: flex; align-items: center; gap: 22px; }
.st-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.st-menu a { display: block; padding: 8px 10px; color: var(--st-ink); text-decoration: none; font-size: 16px; border-radius: 8px; }
.st-menu a:hover { color: var(--st-indigo); }
.st-menu .current-menu-item > a, .st-menu .current_page_item > a { color: var(--st-indigo); font-weight: 700; }
.st-account { display: flex; gap: 8px; }
.st-account .st-btn { min-height: 40px; padding: 6px 14px; font-size: 15px; }
.st-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--st-line); border-radius: 10px; background: var(--st-white); cursor: pointer; }
.st-burger, .st-burger::before, .st-burger::after { display: block; width: 18px; height: 2px; background: var(--st-ink); margin: 0 auto; position: relative; border-radius: 2px; }
.st-burger::before, .st-burger::after { content: ""; position: absolute; left: 0; }
.st-burger::before { top: -6px; }
.st-burger::after { top: 6px; }
@media (max-width: 960px) {
	.st-menu-toggle { display: block; }
	.st-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 20px 20px; background: var(--st-white); border-bottom: 1px solid var(--st-line); box-shadow: 0 12px 24px rgba(29, 24, 70, .08); }
	.st-nav.is-open { display: flex; }
	.st-menu { flex-direction: column; }
	.st-menu a { padding: 10px 4px; font-size: 17px; border-bottom: 1px solid var(--st-line); border-radius: 0; }
	.st-account .st-btn { flex: 1; min-height: 46px; }
}

/* ---------- Hero ---------- */
.st-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); background: linear-gradient(180deg, var(--st-white) 0%, var(--st-white) 55%, var(--st-surface) 100%); overflow: hidden; }
.st-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .st-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.st-hero h1 { max-width: 16ch; }
.st-try { display: block; max-width: 440px; margin: 8px 0 22px; padding: 14px 16px; border-radius: var(--st-r); background: var(--st-marigold-lt); border: 1px dashed var(--st-marigold); }
.st-try span { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.st-try input { width: 100%; min-height: 48px; padding: 8px 12px; border: 2px solid var(--st-white); border-radius: 8px; font: inherit; font-size: 18px; background: var(--st-white); color: var(--st-ink); }
.st-try input:focus { outline: none; border-color: var(--st-indigo); }
.st-hero-note { font-size: 15px; color: var(--st-ink-2); }
.st-art-caption { text-align: center; font-size: 13px; color: var(--st-ink-2); margin-top: 18px; }

/* ---------- Posters (HTML/CSS, 4:5) ---------- */
.st-posters { position: relative; display: flex; justify-content: center; }
.st-poster { --w: 230px; position: relative; width: var(--w); aspect-ratio: 4 / 5; margin: 0; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(var(--w) * .1) calc(var(--w) * .08) 0; box-shadow: 0 2px 4px rgba(29, 24, 70, .08), 0 18px 40px rgba(29, 24, 70, .18); font-size: calc(var(--w) * .062); line-height: 1.35; }
.st-posters-fan { height: 420px; align-items: center; }
.st-posters-fan .st-poster { position: absolute; transition: transform .25s ease; }
.st-posters-fan .st-poster:nth-child(1) { transform: translateX(-78%) rotate(-7deg); z-index: 1; }
.st-posters-fan .st-poster:nth-child(2) { transform: translateY(-14px); z-index: 3; }
.st-posters-fan .st-poster:nth-child(3) { transform: translateX(78%) rotate(7deg); z-index: 2; }
@media (max-width: 560px) {
	.st-posters-fan { height: 280px; }
	.st-posters-fan .st-poster { --w: 138px; }
	.st-posters-fan .st-poster:nth-child(1) { transform: translateX(-74%) rotate(-6deg); }
	.st-posters-fan .st-poster:nth-child(3) { transform: translateX(74%) rotate(6deg); }
}
.st-posters-row { gap: 16px; flex-wrap: wrap; }
.st-posters-row { flex-wrap: nowrap; }
.st-posters-row .st-poster { --w: 160px; }
@media (min-width: 1100px) { .st-posters-row .st-poster { --w: 172px; } }
@media (max-width: 560px) { .st-posters-row { gap: 8px; } .st-posters-row .st-poster { --w: 108px; } }
.st-poster p { margin: 0; }
.st-poster-kicker { font-size: .9em; opacity: .9; }
.st-poster-title { font-size: 1.85em; font-weight: 700; line-height: 1.25; margin-top: .25em !important; }
.st-poster-sub { font-size: 1em; margin-top: .3em !important; }
.st-poster-big { font-size: 3.6em; font-weight: 700; line-height: 1; margin-top: .2em !important; font-family: var(--st-font); }
.st-poster-big small { display: block; font-size: .42em; margin-top: .12em; }
.st-poster-band { margin-top: auto; width: calc(100% + var(--w) * .16); padding: .7em .6em; display: flex; flex-direction: column; gap: .1em; font-size: .9em; line-height: 1.3; }
.st-poster-band strong { font-size: 1.12em; overflow-wrap: anywhere; }
.st-poster-band span { opacity: .85; font-size: .85em; letter-spacing: .02em; }
.st-poster-art { position: absolute; inset: 0; pointer-events: none; }

/* Diwali: night sky, diyas */
.st-poster-diwali { background: radial-gradient(120% 70% at 50% 108%, #3b2b8f 0%, #231a63 55%, #17113f 100%); color: var(--st-marigold-lt); }
.st-poster-diwali .st-poster-title { color: var(--st-marigold); }
.st-poster-diwali .st-glow { position: absolute; left: 50%; bottom: 26%; width: 70%; height: 30%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(244, 166, 42, .45), transparent); }
.st-diya { position: absolute; bottom: 30%; width: 18%; height: 7%; background: #c8611b; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.st-diya::before { content: ""; position: absolute; left: 50%; bottom: 85%; width: 34%; height: 150%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 70%, #fff6c9 0%, #f4a62a 45%, rgba(244, 166, 42, 0) 72%); border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; }
.st-diya:nth-child(2) { left: 18%; }
.st-diya:nth-child(3) { left: 41%; bottom: 33%; }
.st-diya:nth-child(4) { left: 64%; }
.st-poster-diwali .st-poster-band { background: var(--st-marigold); color: var(--st-ink); }

/* Offer: marigold */
.st-poster-offer { background: var(--st-marigold); color: var(--st-ink); }
.st-poster-offer .st-poster-big { color: var(--st-ink); }
.st-poster-offer::before { content: ""; position: absolute; left: 50%; top: 23%; width: 64%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 3px dashed rgba(29, 24, 70, .28); }
.st-poster-offer > * { position: relative; }
.st-poster-offer .st-poster-band { background: var(--st-ink); color: var(--st-white); }

/* Care / awareness: morning */
.st-poster-care { background: linear-gradient(180deg, #fff8ea 0%, #ffffff 70%); color: var(--st-ink); }
.st-poster-care .st-sun { position: absolute; top: 42%; left: 50%; width: 36%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #ffd27a 0%, var(--st-marigold) 70%); }
.st-poster-care .st-path { position: absolute; left: -10%; right: -10%; top: 58%; height: 16%; background: #e4def8; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.st-poster-care .st-poster-title, .st-poster-care .st-poster-sub { position: relative; }
.st-poster-care .st-poster-band { background: var(--st-indigo); color: var(--st-white); }

/* ---------- Sections ---------- */
.st-section { padding: clamp(44px, 6vw, 80px) 0; }
.st-section-tint { background: var(--st-surface); }
.st-band { padding: 28px 0; }
.st-split { display: grid; gap: 28px; }
@media (min-width: 900px) { .st-split { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .st-split-art { grid-template-columns: 1fr 1fr; align-items: center; } }
.st-page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); background: var(--st-surface); border-bottom: 1px solid var(--st-line); }
.st-page-head h1 { font-size: clamp(30px, 4vw, 44px); }
.st-page-head .st-lead { margin-bottom: 0; }

/* Upcoming occasions: a calendar strip */
.st-occasions { background: var(--st-ink); color: var(--st-white); }
.st-occasions .st-h-sm { color: var(--st-white); font-size: 22px; margin-bottom: 2px; }
.st-occasions .st-muted { color: #c9c5ec; }
.st-dates { display: flex; gap: 10px; list-style: none; margin: 14px 0 0; padding: 0 0 4px; overflow-x: auto; scrollbar-width: thin; }
.st-dates li { flex: 0 0 auto; min-width: 140px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); display: flex; flex-direction: column; }
.st-dates time { font-weight: 700; color: var(--st-marigold); font-size: 15px; }
.st-dates span { font-size: 16px; line-height: 1.4; }

/* What you get: definition list */
.st-gets { margin: 0; display: grid; gap: 0; }
.st-gets > div { padding: 16px 0; border-top: 1px solid var(--st-line); display: grid; gap: 2px; }
.st-gets > div:last-child { border-bottom: 1px solid var(--st-line); }
@media (min-width: 700px) { .st-gets > div { grid-template-columns: 220px 1fr; gap: 24px; } }
.st-gets dt { font-weight: 700; font-size: 18px; }
.st-gets dd { margin: 0; color: var(--st-ink-2); }

/* Steps (real sequences only) */
.st-steps { list-style: none; counter-reset: st-step; margin: 24px 0 20px; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .st-steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.st-steps li { counter-increment: st-step; position: relative; padding: 18px 18px 18px 64px; background: var(--st-white); border: 1px solid var(--st-line); border-radius: var(--st-r); display: flex; flex-direction: column; }
.st-steps li::before { content: counter(st-step); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--st-marigold); color: var(--st-ink); font-weight: 700; display: grid; place-items: center; font-size: 17px; }
.st-steps strong { font-size: 18px; }
.st-steps span { color: var(--st-ink-2); font-size: 16px; line-height: 1.6; }
.st-steps-long { max-width: 820px; }
@media (min-width: 760px) { .st-steps-long, .st-steps-compact { grid-template-columns: 1fr; } }
.st-steps-long li { padding-top: 20px; padding-bottom: 20px; }
.st-steps-compact li { background: transparent; }

/* Plan table */
.st-plan-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 17px; }
.st-plan-table th, .st-plan-table td { padding: 14px 12px; border-bottom: 1px solid var(--st-line); text-align: left; }
.st-plan-table thead th { font-size: 14px; color: var(--st-ink-2); font-weight: 700; border-bottom: 2px solid var(--st-ink); }
.st-plan-table tbody th { font-weight: 700; }
.st-plan-table td:nth-child(2) { font-weight: 700; }
@media (max-width: 560px) { .st-plan-table { font-size: 15px; } .st-plan-table th, .st-plan-table td { padding: 10px 6px; } }
.st-addon-table { margin-top: 0; }
.st-addon-table td { text-align: right; white-space: nowrap; }

/* Plugin pricing cards inside the theme */
.st-plans .sm-embed { font-family: var(--st-font); }
.st-plans .sm-price-card { background: var(--st-white); border: 1px solid var(--st-line); border-radius: var(--st-r); padding: 22px; box-shadow: none; }
.st-plans .sm-price-card h3 { font-size: 21px; }
.st-plans .sm-price { color: var(--st-ink); }
.st-plans .sm-price-card .sm-btn { margin-top: auto; margin-bottom: 8px; }
.st-plans .sm-price-card ul { font-size: 15px; line-height: 1.7; }

/* Chips (business types) */
.st-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.st-chips li { padding: 8px 14px; border: 1px solid var(--st-line); border-radius: 999px; background: var(--st-white); font-size: 16px; }
.st-plain { margin: 0; padding-left: 20px; }
.st-plain li { margin-bottom: 10px; }

/* FAQ */
.st-faq details { border-bottom: 1px solid var(--st-line); padding: 4px 0; }
.st-faq summary { cursor: pointer; padding: 12px 32px 12px 0; font-weight: 700; font-size: 18px; list-style: none; position: relative; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; color: var(--st-indigo); line-height: 1; }
.st-faq details[open] summary::after { content: "−"; }
.st-faq details p { color: var(--st-ink-2); margin: 0 0 14px; }

/* Contact */
.st-contact { display: grid; gap: 36px; }
@media (min-width: 900px) { .st-contact { grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; } }
.st-contact-form .sm-embed .sm-form input, .st-contact-form .sm-embed .sm-form textarea { font-size: 17px; border-color: var(--st-line); }
.st-contact-form .sm-embed .sm-form label { font-size: 16px; }
.st-contact-form .sm-hp { position: absolute; left: -9999px; }
.st-contact-list { margin: 20px 0; }
.st-contact-list > div { padding: 12px 0; border-bottom: 1px solid var(--st-line); }
.st-contact-list dt { font-size: 14px; color: var(--st-ink-2); }
.st-contact-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.st-contact-note { padding: 18px; border-radius: var(--st-r); background: var(--st-surface); }
.st-social { display: flex; gap: 16px; list-style: none; padding: 0; margin: 18px 0 0; }

/* Closing CTA band */
.st-cta { background: var(--st-indigo); color: var(--st-white); padding: clamp(40px, 5vw, 64px) 0; }
.st-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.st-cta h2 { color: var(--st-white); margin: 0; max-width: 22ch; }
.st-cta .st-actions { margin: 0; }

/* Prose (page editor content, legal pages) */
.st-prose { max-width: 760px; }
.st-prose h2 { margin-top: 1.4em; }
.st-prose ul, .st-prose ol { padding-left: 22px; }

/* ---------- Footer ---------- */
.st-footer { background: var(--st-ink); color: #d9d6f2; padding: 48px 0 20px; font-size: 15px; }
.st-footer a { color: var(--st-white); text-decoration: none; }
.st-footer a:hover { color: var(--st-marigold); }
.st-footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .st-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.st-footer-brand { display: flex; align-items: center; gap: 10px; color: var(--st-white); font-weight: 700; font-size: 19px; }
.st-footer-h { color: var(--st-white); font-weight: 700; margin-bottom: 8px; }
.st-footer-links { list-style: none; margin: 0; padding: 0; }
.st-footer-links li { margin-bottom: 6px; }
.st-footer-base { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 32px; padding-top: 16px; font-size: 14px; }
.st-footer-base p { margin: 0; }

/* Floating WhatsApp button */
.st-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--st-wa); color: var(--st-white); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(26, 158, 80, .35); }
.st-wa-float:hover { background: var(--st-wa-dk); color: var(--st-white); }
.st-wa-float .st-ico { width: 30px; height: 30px; }

/* Blog list */
.st-post { padding: 18px 0; border-bottom: 1px solid var(--st-line); }
.st-post h2 { font-size: 22px; margin: 0; }
