/*
Theme Name: UVS Cube
Theme URI: https://uvscube.com/
Author: UVS Cube Infotech Private Limited
Description: Company and product site for UVS Cube Infotech and the MyBeat health platform (Care, Cure, Crest). Creates its pages and main menu on activation.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.6
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: uvscube
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #0F1B2D;
	--text: #2E3B4B;
	--text-2: #3E4C5C;
	--muted: #5A6878;
	--line: #E2E7EC;
	--surface: #F5F7F9;
	--brand: #1274B8;
	--brand-d: #0D5A90;
	--brand-soft: #F1F6FB;
	--brand-line: #B8D3EA;
	--brand-on-dark: #8CC4EC;
	--dark-line: #2C3D52;
	--dark-text: #D5DEE7;
	--care: #0B6E6E;
	--care-soft: #EAF4F4;
	--care-line: #C4DEDE;
	--care-ink: #24585A;
	--cure: #4B3F9E;
	--cure-soft: #EFEDF8;
	--cure-line: #D3CDEC;
	--cure-ink: #3A2F7A;
	--crest: #8A4B08;
	--crest-soft: #FAF3EA;
	--crest-line: #DFC7AA;
	--crest-ink: #6A3B06;
	--radius: 14px;
	--font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--display: "Space Grotesk", Inter, system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-d); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 100; top: 8px; left: 8px; background: #fff; padding: 12px 16px; border-radius: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--surface); }
.section--soft { background: var(--brand-soft); }
.section--dark { background: var(--ink); color: var(--dark-text); }
.section--dark h2, .section--dark h3 { color: #fff; }
@media (max-width: 600px) { .section { padding: 64px 0; } .section--tight { padding: 48px 0; } }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 44px; }
.intro { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.intro--center { margin: 0 auto; text-align: center; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.section--dark .eyebrow { color: var(--brand-on-dark); }
.lead { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.section--dark .lead { color: var(--dark-text); }
.small { font-size: 14px; color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 860px; }
.link-strong { font-weight: 600; }

.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split--top { align-items: flex-start; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 24px; }
.grid--narrow { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font: 600 15px/1 var(--font); text-decoration: none; border: 0; cursor: pointer; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-d); color: #fff; }
.btn--ghost { border: 1.5px solid #C9D3DC; color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--c, var(--brand)); }
.btn--light:hover { background: #F0F4F8; color: var(--c, var(--brand)); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.store { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.store:hover { background: #24364D; color: #fff; }
.store--soon { background: #E6EAEE; color: var(--muted); cursor: default; }
.store--soon small { font-weight: 500; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 44px; height: 44px; display: block; object-fit: contain; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.nav__list a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 2px; display: inline-block; }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list a[aria-current="page"] { color: var(--brand); }
.nav__list .current-menu-item > a, .nav__list a[aria-current="page"] { font-weight: 600; }
.nav__cta { padding: 0 18px; }
.nav__list > li { position: relative; }
.nav__list .current-menu-ancestor > a, .nav__list .current-menu-parent > a { color: var(--brand); font-weight: 600; }
.nav__list .menu-item-type-custom.current-menu-item:not(.current-menu-ancestor) > a { color: var(--text); font-weight: 500; }
.uvs-product-care .nav__list .current-menu-ancestor > a, .uvs-product-care .nav__list .sub-menu .current-menu-item > a, .uvs-product-care .nav__list a[aria-current="page"] { color: var(--care); }
.uvs-product-cure .nav__list .current-menu-ancestor > a, .uvs-product-cure .nav__list .sub-menu .current-menu-item > a, .uvs-product-cure .nav__list a[aria-current="page"] { color: var(--cure); }
.uvs-product-crest .nav__list .current-menu-ancestor > a, .uvs-product-crest .nav__list .sub-menu .current-menu-item > a, .uvs-product-crest .nav__list a[aria-current="page"] { color: var(--crest); }
.nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav__list .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -14px; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 32px rgba(15, 27, 45, 0.12); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { display: block; padding: 10px 12px; border-radius: 6px; white-space: nowrap; }
.nav__list .sub-menu a:hover { background: #F1F6FA; }
.nav-toggle { display: none; background: none; border: 1.5px solid #C9D3DC; border-radius: 8px; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 32px 24px; box-shadow: 0 16px 32px rgba(15, 27, 45, 0.08); }
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.nav__cta { margin-top: 8px; }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 16px; min-width: 0; }
	.nav__list .sub-menu a { padding: 12px 0; border-radius: 0; }
	.nav__list .sub-menu a:hover { background: none; }
	.nav__list .menu-item-has-children > a::after { display: none; }
	.site-header__inner { position: relative; }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0; background: var(--brand-soft); }
.hero--care { background: var(--care-soft); }
.hero--cure { background: var(--cure-soft); }
.hero--crest { background: var(--crest-soft); }
.hero--dark { background: var(--ink); color: var(--dark-text); }
.hero--dark h1 { color: #fff; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero--care .eyebrow { color: var(--care); }
.hero--cure .eyebrow { color: var(--cure); }
.hero--crest .eyebrow { color: var(--crest); }
.hero--dark .eyebrow { color: var(--brand-on-dark); }
.hero .lead { font-size: 19px; }
.hero--dark .lead { color: var(--dark-text); }
@media (max-width: 600px) { .hero { padding: 56px 0; } }

/* ---------- Screenshots ---------- */
.shot { display: block; width: 100%; border-radius: 18px; object-fit: cover; }
.shot--ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 13px; background: #E6EEF6; border: 1px solid var(--brand-line); color: #1E4D72; }
.shot--phone { aspect-ratio: 9 / 19; border-radius: 26px; }
.shot--tablet { aspect-ratio: 4 / 3; }
.shot--wide { aspect-ratio: 16 / 10; }
.shot--care.shot--ph { background: #DCEBEB; border-color: #A9CFCF; color: var(--care-ink); }
.shot--cure.shot--ph { background: #E7E3F5; border-color: #CBC4EA; color: var(--cure-ink); }
.shot--crest.shot--ph { background: #F2E6D8; border-color: var(--crest-line); color: var(--crest-ink); }
.shots-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.shots-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.shots-pair > :last-child { margin-top: 48px; }
.shots-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.shots-row--wide { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

/* ---------- Standards strip ---------- */
.strip { border-bottom: 1px solid var(--line); padding: 28px 0; }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.strip__items { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); }
.strip__items .hl { color: var(--brand); }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.card--lg { padding: 32px; gap: 18px; }
.card--soft { background: var(--surface); border-color: transparent; }
.card--feature { border-color: var(--brand-line); background: #F7FAFD; }
.card p { font-size: 15px; line-height: 1.6; }
.card ul { padding-left: 20px; font-size: 15px; line-height: 1.75; display: flex; flex-direction: column; gap: 4px; }
.card .more { margin-top: auto; font-weight: 600; }
.product-head { display: flex; align-items: center; gap: 14px; }
.badge { width: 56px; height: 56px; border-radius: 14px; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 22px; flex: none; }
.badge--care { background: var(--care); }
.badge--cure { background: var(--cure); }
.badge--crest { background: var(--crest); }
.num { width: 48px; height: 48px; border-radius: 12px; background: #E8F1FA; color: var(--brand); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 20px; }
.num--solid { background: var(--brand); color: #fff; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kicker--brand { color: var(--brand); }
.price-note { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }

/* Dark cards */
.section--dark .card, .hero--dark .card { background: transparent; border-color: var(--dark-line); color: var(--dark-text); }
.flow-step { font-family: var(--display); font-size: 15px; font-weight: 600; }
.flow-step--care { color: #7FD1CF; }
.flow-step--cure { color: #B9B0F0; }
.flow-step--crest { color: #F0C48C; }
.flow { list-style: none; padding: 0; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--brand-line); font-weight: 600; font-size: 14px; color: var(--ink); }
.section--dark .chip { background: transparent; border-color: #3A5170; color: #fff; }
.tile { border: 1px solid var(--dark-line); border-radius: 10px; padding: 18px; font-family: var(--display); font-weight: 600; color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Industry list */
.industries { display: flex; flex-direction: column; gap: 12px; }
.industries div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink); }

/* Stats */
.stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats div { border: 1px solid var(--dark-line); border-radius: 14px; padding: 22px; }
.stats dt { font-size: 14px; color: #A9B6C4; }
.stats dd { margin: 6px 0 0; font-family: var(--display); font-size: 30px; font-weight: 700; color: #fff; line-height: 1.15; }

/* ---------- CTA band ---------- */
.cta { background: var(--c, var(--brand)); border-radius: 20px; padding: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta > div { flex: 1 1 420px; min-width: 0; }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.cta p { margin-top: 12px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.cta--care { --c: var(--care); }
.cta--cure { --c: var(--cure); }
.cta--crest { --c: var(--crest); }
@media (max-width: 600px) { .cta { padding: 32px 24px; } }

/* ---------- Timeline ---------- */
.tl { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; position: relative; }
.tl::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 50%; width: 4px; margin-left: -2px; background: linear-gradient(180deg, var(--brand) 0, var(--brand) 78%, var(--brand-line) 100%); border-radius: 2px; }
.tl li { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); align-items: start; padding-bottom: 48px; position: relative; }
.tl li:last-child { padding-bottom: 0; }
.tl__dot { grid-column: 2; grid-row: 1; justify-self: center; margin-top: 20px; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 5px solid var(--brand); position: relative; z-index: 1; box-shadow: 0 0 0 6px #fff; }
.tl li.is-next .tl__dot { border-style: dashed; }
.tl__when { grid-row: 1; padding-top: 18px; font-family: var(--display); color: var(--brand); }
.tl__when strong { display: block; font-size: 30px; line-height: 1.1; }
.tl__when span { display: block; font-size: 16px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.tl__card { grid-row: 1; box-shadow: 0 8px 24px rgba(15, 27, 45, 0.07); }
.tl li.is-next .tl__card { background: var(--brand-soft); border-style: dashed; border-color: var(--brand-line); }
.tl li.l .tl__card { grid-column: 1; }
.tl li.l .tl__when { grid-column: 3; text-align: left; }
.tl li.r .tl__card { grid-column: 3; }
.tl li.r .tl__when { grid-column: 1; text-align: right; }
@media (max-width: 760px) {
	.tl::before { left: 16px; margin-left: 0; }
	.tl li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; padding-bottom: 32px; }
	.tl__dot { grid-column: 1; margin-top: 2px; }
	.tl li.l .tl__when, .tl li.r .tl__when { grid-column: 2; grid-row: 1; text-align: left; padding-top: 0; padding-bottom: 12px; }
	.tl li.l .tl__card, .tl li.r .tl__card { grid-column: 2; grid-row: 2; }
}

/* ---------- Forms ---------- */
.form { background: var(--surface); border-radius: 16px; padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form--single { grid-template-columns: 1fr; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; padding: 24px; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: 400 15px/1.4 var(--font); min-height: 46px; padding: 10px 12px; border: 1.5px solid #8C99A6; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #9CC6E6; border-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { grid-column: 1 / -1; border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.notice--ok { background: #E7F4EC; color: #1D5B33; border: 1px solid #A8D5B8; }
.notice--err { background: #FCECEA; color: #8A2318; border: 1px solid #EDB4AD; }

/* ---------- Contact list ---------- */
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list .label { font-size: 14px; font-weight: 600; color: var(--muted); }
.contact-list p + p { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D3DC; font-size: 15px; line-height: 1.8; }
.site-footer a { color: #C9D3DC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { padding-top: 64px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 36px; }
.site-footer__title { margin: 0 0 8px; font-weight: 600; color: #fff; }
.site-footer__brand { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer__bottom { border-top: 1px solid var(--dark-line); padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: #9AA8B6; }

/* ---------- Generic page content ---------- */
.page-content { max-width: 760px; margin: 0 auto; padding: 72px 32px 96px; }
.page-content h1 { margin-bottom: 24px; }
.page-content p, .page-content li { margin-bottom: 1em; }
