/* PRIMA Philippines theme */
:root {
	--navy: var(--prima-navy, #09233d);
	--teal: var(--prima-teal, #047f73);
	--teal-dark: var(--prima-teal-dark, #03665d);
	--gold: var(--prima-gold, #c8a54b);
	--mist: var(--prima-mist, #eef8f6);
	--paper: #f6f8f7;
	--line: #d7e4e2;
	--muted: #3d5163;
	--serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--prima-font-serif: var(--serif);
	--wrap: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--navy); background: #fff; }
img, video { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.wrap-flush { max-width: var(--wrap); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow.is-gold { color: var(--gold); }
.muted { color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); margin: 0; }
.icon { width: 28px; height: 28px; }

/* Buttons */
.button, .wp-block-button__link, button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 4px; background: var(--teal); color: #fff !important; border: 2px solid var(--teal); font-family: var(--sans); font-weight: 600; font-size: 16px; text-decoration: none !important; cursor: pointer; line-height: 1.2; }
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button.is-white { background: #fff; color: var(--navy) !important; border-color: #fff; }
.button.is-white:hover { background: var(--mist); }
.button.is-navy { background: var(--navy); border-color: var(--navy); }
.button.is-gold { background: var(--gold); border-color: var(--gold); color: var(--navy) !important; font-weight: 700; }
.button.is-ghost { background: transparent; border-color: #fff; }
.button.is-outline { background: #fff; color: var(--navy) !important; border-color: var(--navy); }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Top bar & header */
.topbar { background: var(--navy); color: #dbe7ee; font-size: 14px; }
.topbar-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 9px; padding-bottom: 9px; }
.topbar-links, .topbar-links ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: #dbe7ee; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar a.is-strong { color: #fff; font-weight: 600; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 14px; padding-bottom: 14px; }
.site-logo img, .custom-logo { height: 60px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 8px 26px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 4px 26px; }
.site-nav li { position: relative; }
.site-nav a { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 16px; }
.site-nav > ul > li > a { display: inline-block; padding: 10px 0; border-bottom: 3px solid transparent; }
.site-nav > ul > li.current-menu-item > a, .site-nav > ul > li.current-menu-ancestor > a, .site-nav > ul > li > a:hover { color: var(--teal); border-color: var(--teal); }
.site-nav .sub-menu { position: absolute; left: -16px; top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); box-shadow: 0 10px 28px rgba(9,35,61,.14); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { display: block; padding: 9px 18px; font-weight: 500; font-size: 15px; }
.site-nav .sub-menu a:hover { background: var(--mist); color: var(--teal-dark); }
.join-button { min-height: 46px; padding: 0 22px; }
.menu-toggle { display: none; align-items: center; gap: 8px; background: none; border: 2px solid var(--navy); border-radius: 4px; min-height: 44px; padding: 0 12px; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 1100px) {
	.menu-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(9,35,61,.12); flex-direction: column; align-items: stretch; padding: 12px 32px 24px; }
	.site-nav.is-open { display: flex; }
	.site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav > ul > li > a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; }
	.join-button { margin-top: 12px; }
}

/* Page band & content */
.page-band { background: var(--mist); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.page-band h1 { font-size: clamp(32px, 4vw, 46px); margin: 0; }
.content-wrap { padding-top: 40px; padding-bottom: 72px; }
.app-wrap { padding-top: 32px; padding-bottom: 72px; }
.entry { max-width: 820px; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 30px; margin-top: 1.6em; }
.entry-content h3 { font-size: 24px; margin-top: 1.4em; }
.entry-content img { border-radius: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-hero img { width: 100%; border-radius: 6px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

/* Hero */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero-video { display: block; width: 100%; height: clamp(440px, 52vw, 680px); object-fit: cover; }
.hero-inner { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 32px; }
.hero-box { max-width: 540px; padding: 24px 28px; background: rgba(9, 35, 61, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-left: 5px solid var(--teal); border-radius: 4px; color: #fff; }
.hero-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #c9f0ea; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hero h1 { color: #fff; font-size: clamp(24px, 2.6vw, 31px); line-height: 1.2; margin: 0 0 14px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.hero-actions .button { min-height: 44px; padding: 0 20px; font-size: 15px; }
.hero-link { color: #fff; font-weight: 600; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hero-link:hover { color: #c9f0ea; }

/* Find band */
.find-band { background: var(--mist); border-bottom: 1px solid var(--line); }
.find-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.find-title { flex: 1 1 260px; }
.find-title h2 { font-size: 28px; margin: 0 0 4px; }
.find-title p { margin: 0; font-size: 15px; color: var(--muted); }
.find-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; flex: 1 1 180px; }
.find-form .find-q { flex: 2 1 280px; }
.find-form input, .find-form select { min-height: 50px; border: 1px solid #b9cbc8; border-radius: 4px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; }
.find-form .button { min-height: 50px; padding: 0 30px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.stats div { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); padding-left: 20px; }
.stats strong { font-family: var(--serif); font-size: 48px; font-weight: 700; color: var(--teal); line-height: 1.1; }
.stats strong.is-gold { color: #b08a2e; }
.stats span { color: var(--muted); font-size: 16px; }

/* Quick links */
.quick-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; padding-top: 48px; padding-bottom: 48px; }
.quick-grid a { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; text-decoration: none; color: var(--navy); transition: box-shadow .15s, transform .15s; }
.quick-grid a:hover { box-shadow: 0 8px 22px rgba(9,35,61,.12); transform: translateY(-2px); }
.quick-grid .icon { color: var(--teal); }
.quick-grid strong { font-size: 17px; }
.quick-grid span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 3.2vw, 40px); margin: 0; }
.section-head > div { max-width: 720px; }
.section-head .lead { margin-top: 10px; }
.paper-band { background: var(--paper); border-top: 1px solid var(--line); }

/* Pathway */
.pathway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.step { --step: #fff; border: 1px solid var(--line); border-top: 8px solid var(--step); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.step h3 { font-size: 24px; margin: 0; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }
.step strong { margin-top: auto; font-size: 15px; }
.step-tag { align-self: flex-start; background: var(--step); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.step-tag.is-dark { color: #fff; }
.step-tag.is-outline { box-shadow: inset 0 0 0 2px var(--navy); }
.step:first-child { border-top-color: var(--line); }

/* News & events */
.news-events { display: flex; flex-wrap: wrap; gap: 48px; }
.news-col { flex: 999 1 620px; min-width: 0; }
.events-col { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.events-col .section-head h2, .news-col .section-head h2 { font-size: 36px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card-grid.is-two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.news-card-img img { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: 0; }
.news-card-body { padding: 20px 22px; }
.news-card h2, .news-card h3 { font-size: 22px; margin: 0 0 8px; }
.news-card h2 a, .news-card h3 a { color: var(--navy); text-decoration: none; }
.news-card h2 a:hover, .news-card h3 a:hover { color: var(--teal); text-decoration: underline; }
.event { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.event > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.event > div:last-child span { font-size: 14px; color: var(--muted); }
.event-date { flex: 0 0 auto; width: 66px; height: 72px; background: var(--navy); color: #fff; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event.is-featured .event-date { background: var(--teal); }
.event-date span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.event-date strong { font-family: var(--serif); font-size: 28px; line-height: 1; }
.event-date .tba { font-size: 18px; }

/* Courses */
.course-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 22px; background: #fff; color: var(--navy); border: 1px solid #b9cbc8; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.arrows { display: flex; gap: 10px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid #b9cbc8; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; }
.arrow .icon { width: 20px; height: 20px; }
.course-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
@media (min-width: 1100px) { .course-row { grid-auto-columns: calc((100% - 60px) / 4); } }
.course-card { scroll-snap-align: start; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.course-card[hidden] { display: none; }
.course-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.course-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-body h3 { font-size: 20px; margin: 0; }
.course-body p { margin: 0; font-size: 14px; }
.course-body .more { margin-top: auto; }
.price { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 4px; background: var(--mist); color: var(--teal-dark); }
.price.is-paid, .price.is-locked { background: #fbf1d9; color: #6b4e00; }
.price.is-programme { background: #fde9d6; color: #7a3d00; }

/* ABRM band */
.abrm-band { background: var(--navy); color: #fff; }
.abrm-grid { display: flex; flex-wrap: wrap; }
.abrm-grid img { flex: 1 1 520px; min-width: 0; height: 460px; object-fit: cover; display: block; }
.abrm-text { flex: 1 1 420px; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.abrm-text h2 { color: #fff; font-size: clamp(28px, 3vw, 36px); margin: 0; }
.abrm-text p { margin: 0; color: #dbe7ee; }
.abrm-text .eyebrow { color: var(--gold); }
.abrm-text .button { align-self: flex-start; }

/* People & join */
.cat-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.cat-links a { text-decoration: none; }
.join-band { background: var(--teal); color: #fff; }
.join-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
.join-row > div:first-child { flex: 1 1 520px; }
.join-row h2 { color: #fff; font-size: clamp(30px, 3.3vw, 40px); margin: 0 0 10px; }
.join-row p { margin: 0; color: #e6f6f3; font-size: 18px; }
.join-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Footer */
.site-footer { background: var(--navy); color: #dbe7ee; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer-logo { background: #fff; border-radius: 6px; padding: 10px 12px; display: inline-block; }
.footer-logo img { height: 52px; width: auto; display: block; }
.footer-brand p { margin: 12px 0 0; }
.footer-small { font-size: 13px; color: #9fb4c3; }
.site-footer h2 { font-family: var(--sans); font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: #dbe7ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #23405c; padding-top: 18px; padding-bottom: 28px; font-size: 14px; }

/* PRIMA app pages: give the portal room and align it with the theme */
.prima-app-page .app-wrap:has(.prima-profile) { padding-top: 12px; }
.prima-app-page .app-wrap > p:empty { display: none; }

/* WooCommerce (kept until the PRIMA Shop replaces it in Phase 2) */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { background: var(--teal) !important; color: #fff !important; border-radius: 4px !important; }

@media (max-width: 760px) {
	body { font-size: 16px; }
	.wrap { padding-left: 18px; padding-right: 18px; }
	.topbar-line { display: none; }
	.site-logo img, .custom-logo { height: 48px; }
	.hero-video { height: 300px; }
	.hero-inner { position: static; padding: 0; }
	.hero-inner.wrap { padding-left: 0; padding-right: 0; }
	.hero-box { max-width: none; border-radius: 0; background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; padding: 22px 18px 26px; }
	.quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.quick-grid a { padding: 16px; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
	.stats strong { font-size: 36px; }
	.stats div { padding-left: 14px; }
	.section { padding-top: 52px; padding-bottom: 52px; }
	.abrm-grid img { height: 280px; }
	.abrm-text { padding: 36px 22px; }
	.site-nav { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-video { display: none; }
	.hero { background: var(--navy) url('../images/hero-poster.jpg') center / cover no-repeat; min-height: 520px; }
}

/* Event / congress pages */
.event-hero { background: linear-gradient(120deg, var(--navy, #0b2a45), var(--teal, #0f7a6e)); color: #fff; padding: 40px 0 72px; position: relative; }
.event-banner { margin: 0; background: var(--navy, #0b2a45); }
.event-banner img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: center 30%; }
.event-hero .eyebrow { color: var(--gold, #c9a227); }
.event-hero h1 { color: #fff; max-width: 820px; margin: 6px 0 10px; }
.event-tagline { font-size: 19px; max-width: 720px; opacity: .92; margin: 0; }
.content-wrap.is-wide .entry { max-width: none; }
@media (max-width: 760px) { .event-hero { padding: 28px 0 52px; } .event-banner img { max-height: 300px; } }
