/*
Theme Name: Rainy Mountain 2026
Theme URI: https://rainymountainroyalty.com
Description: Clean, fast corporate theme for Rainy Mountain Royalty Corp. (TSXV: RMO).
Version: 1.0.3
Requires PHP: 7.4
Text Domain: rmr2026
*/

:root {
	--navy-900: #0b1730;
	--navy-800: #10213f;
	--navy-700: #16305a;
	--navy-100: #e8edf5;
	--gold: #cfa04a;
	--gold-600: #b3862f;
	--gold-100: #f7efdf;
	--ink: #16202f;
	--ink-2: #4a5566;
	--line: #dfe4ec;
	--bg: #ffffff;
	--bg-tint: #f5f6f8;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(11, 23, 48, .06), 0 8px 24px rgba(11, 23, 48, .06);
	--wrap: 1200px;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: "Newsreader", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--navy-900); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: transform .15s, background .15s, color .15s, border-color .15s; border: 1.5px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: #dbb160; color: var(--navy-900); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }
.eyebrow.eyebrow--dark, .section p.eyebrow--dark { color: var(--gold-600); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); color: #fff; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.topbar { border-bottom: 1px solid rgba(255,255,255,.08); font-size: .8rem; }
.topbar__in { display: flex; align-items: center; gap: 16px; height: 36px; }
.topbar a { color: rgba(255,255,255,.75); text-decoration: none; }
.topbar a:hover { color: #fff; }
.ticker { color: rgba(255,255,255,.75); letter-spacing: .06em; }
.ticker strong { color: var(--gold); }
.topbar__sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.topbar__cta { margin-left: auto; color: var(--gold) !important; font-weight: 700; }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand img { display: block; height: 52px; width: auto; }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 10px 14px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 8px; }
.primary-nav > .menu > li > a:hover,
.primary-nav > .menu > li.current-menu-item > a,
.primary-nav > .menu > li.current-menu-ancestor > a { color: var(--gold); }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(11,23,48,.18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s; }
.primary-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { color: var(--ink); font-weight: 500; font-size: .92rem; }
.primary-nav .sub-menu a:hover { background: var(--bg-tint); color: var(--navy-700); }
.primary-nav .sub-menu .menu-item-has-children > a::after { transform: translateY(-2px) rotate(-45deg); float: right; margin-top: 10px; }
.primary-nav .search-menu, .primary-nav .menu-search, .primary-nav .megamenu-column { display: none !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-900) var(--hero-img, none) center 40% / cover no-repeat; color: #fff; padding: 110px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,23,48,.96) 0%, rgba(11,23,48,.85) 45%, rgba(11,23,48,.55) 100%), linear-gradient(0deg, rgba(11,23,48,.95) 0%, rgba(11,23,48,0) 45%); }
.hero__contours { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .18; pointer-events: none; }
.hero__in { position: relative; }
.hero__in > * { max-width: 780px; }
.hero h1 { color: #fff; font-weight: 800; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: -.01em; }
.lede { font-size: 1.2rem; color: rgba(255,255,255,.8); max-width: 640px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 72px; }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid rgba(255,255,255,.12); }
.stats > div { padding: 24px 24px 28px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stats dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.stats dd { margin: 0; font-size: 1.35rem; font-weight: 700; color: #fff; }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy-900); color: rgba(255,255,255,.8); }
.section--navy h2 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head p:last-child { color: var(--ink-2); font-size: 1.08rem; }
.section__more { margin: 32px 0 0; font-weight: 700; }
.section__more a { text-decoration: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > div > p { color: var(--ink-2); font-size: 1.08rem; }
.section--navy .split > div > p { color: rgba(255,255,255,.75); }
.link { font-weight: 700; text-decoration: none; }
.h-sm { font-size: 1.3rem; margin-bottom: 20px; }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cards > .card { grid-column: span 2; }
.cards > .card:nth-child(4) { grid-column: 2 / span 2; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdd5e1; color: var(--ink); }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.card__status { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.card h3 { font-size: 1.45rem; margin-bottom: .2em; }
.card__type { color: var(--gold-600); font-weight: 600; font-size: .9rem; margin-bottom: .9em; }
.card__blurb { color: var(--ink-2); font-size: .95rem; flex: 1; }
.card__foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; font-size: .85rem; color: var(--ink-2); }
.card__arrow { font-size: 1.2rem; color: var(--navy-700); transition: transform .18s; }
.card:hover .card__arrow { transform: translateX(4px); color: var(--gold-600); }

/* Element badges */
.el { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: 0; color: #fff; }
.el--au { background: linear-gradient(135deg, #d9ae55, #a97d27); }
.el--cu { background: linear-gradient(135deg, #c77a4c, #8f4a24); }
.el--ni { background: linear-gradient(135deg, #7e9aa6, #4b6572); }
.el--pt { background: linear-gradient(135deg, #9aa3b5, #5f6980); }

/* Model photo */
.model-photo { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.model-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.steps span { font-weight: 800; color: var(--gold-600); font-size: .9rem; padding-top: 3px; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* Infrastructure */
.infra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.infra > div { background: var(--navy-900); color: rgba(255,255,255,.75); border-radius: var(--radius); padding: 28px 24px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; font-size: .93rem; }
.infra > div:nth-child(2), .infra > div:nth-child(3) { background: var(--navy-700); }
.infra strong { color: var(--gold); font-size: 1.25rem; margin-bottom: 4px; }

/* Investors */
.h-sub { display: block; font-size: 1rem; font-weight: 600; color: var(--gold); letter-spacing: .08em; margin-top: 8px; }
.linklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.linklist a { display: block; padding: 14px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.linklist a:hover { border-color: var(--gold); color: var(--gold); }
.quote-box { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 16px; min-height: 250px; }

/* Alerts */
.alerts { background: var(--gold-100); padding: 64px 0; }
.alerts__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.alerts h2 { margin-bottom: .2em; }
.alerts p { margin: 0; color: var(--ink-2); }
.alerts__form form, .alerts__form .mc4wp-form-fields { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.alerts__form p { margin: 0; }
.alerts__form label { display: none; }
.alerts__form input[type=email], .alerts__form input[type=text] { font: inherit; padding: .85em 1.1em; border: 1px solid #d9c9a6; border-radius: 999px; min-width: 280px; background: #fff; }
.alerts__form input[type=submit] { font: inherit; font-weight: 700; padding: .85em 1.5em; border: 0; border-radius: 999px; background: var(--navy-900); color: #fff; cursor: pointer; }
.alerts__form input[type=submit]:hover { background: var(--navy-700); }

/* Inner pages */
.page-hero { background: var(--navy-900) var(--page-img, none) center / cover no-repeat; color: #fff; padding: 80px 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,23,48,.97) 0%, rgba(11,23,48,.88) 55%, rgba(11,23,48,.7) 100%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(207,160,74,.25); box-shadow: 0 0 0 40px rgba(207,160,74,.04), 0 0 0 80px rgba(207,160,74,.03); }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4vw, 3rem); position: relative; z-index: 1; }
.page-hero .h1--post { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 900px; }
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.chips li { font-size: .82rem; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }

.wrap.page-body { padding-top: 56px; padding-bottom: 88px; }
.page-body.has-side { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.side { position: sticky; top: 140px; display: grid; gap: 20px; }
.side nav, .snapshot { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.side__title { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--ink-2); margin: 0 0 10px; }
.side__title a { color: inherit; text-decoration: none; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side ul ul { padding-left: 12px; border-left: 1px solid var(--line); margin: 2px 0 6px 10px; }
.side li a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .94rem; font-weight: 500; }
.side li a:hover { background: var(--bg-tint); }
.side li.current_page_item > a { background: var(--navy-100); color: var(--navy-700); font-weight: 700; }
.snapshot dl { margin: 0; }
.snapshot dt { font-size: .75rem; color: var(--ink-2); margin-top: 10px; }
.snapshot dt:first-child { margin-top: 0; }
.snapshot dd { margin: 2px 0 0; font-weight: 600; font-size: .93rem; }

/* Content (incl. legacy Visual Composer markup) */
.content { min-width: 0; }
.content--narrow { max-width: 780px; }
.content h1, .content h2 { font-size: 1.7rem; margin-top: 1.4em; }
.content h3, .content h4 { font-size: 1.2rem; margin-top: 1.4em; }
.content > :first-child, .content .wpb_wrapper > :first-child { margin-top: 0; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin-bottom: .4em; }
.content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .92rem; display: block; overflow-x: auto; }
.content th, .content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.content th, .content tr:first-child td { background: var(--bg-tint); font-weight: 700; }
.content img { border-radius: 10px; }
.content a[href$=".pdf"] { font-weight: 600; }
.content .vc_row, .content .wpb_row { margin-left: 0 !important; margin-right: 0 !important; }
.content .vc_row[data-vc-full-width], .content .vc_row-fluid[data-vc-full-width] { left: auto !important; width: auto !important; padding-left: 0 !important; padding-right: 0 !important; }
.content .vc_column_container > .vc_column-inner { padding-left: 0; padding-right: 0; }
.content .vc_row .vc_column_container + .vc_column_container > .vc_column-inner { padding-left: 24px; }
.content .wpb_content_element { margin-bottom: 24px; }
.content .vc_btn3, .content .vc_general.vc_btn3 { border-radius: 999px !important; background: var(--gold) !important; color: var(--navy-900) !important; border: 0 !important; font-weight: 700 !important; }
.content .widget_sidebar_menu, .content .advanced-sidebar-menu, .content .wpb_widgetised_column { display: none; }
.note { background: var(--gold-100); border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: 8px; font-size: .95rem; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-list time { color: var(--ink-2); font-size: .9rem; }
.post-list a { font-weight: 600; text-decoration: none; }
.pager .nav-links { display: flex; gap: 8px; margin-top: 24px; }
.pager .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pager .current { background: var(--navy-900); color: #fff; }
.back { margin-top: 40px; font-weight: 700; }

.mini-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.mini:hover { border-color: var(--gold); color: var(--ink); }
.mini .el { width: 36px; height: 36px; font-size: .85rem; border-radius: 8px; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.65); font-size: .93rem; padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { height: 48px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; margin-bottom: 12px; }
.footer__legal { margin-top: 56px; font-size: .8rem; }
.footer__legal p:first-child { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }
.footer__legal p { margin: 0 0 8px; }
.footer__disclaimer { color: rgba(255,255,255,.45); max-width: 900px; }

/* Responsive */
@media (max-width: 1080px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.cards > .card, .cards > .card:nth-child(4) { grid-column: auto; }
	.mini-cards { grid-template-columns: repeat(3, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.primary-nav { position: fixed; inset: 120px 0 0 0; z-index: 60; background: var(--navy-900); padding: 16px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
	.nav-open .primary-nav { transform: none; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav > .menu > li { border-bottom: 1px solid rgba(255,255,255,.08); }
	.primary-nav a { padding: 14px 4px; font-size: 1.05rem; }
	.primary-nav .sub-menu, .primary-nav .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; display: none; padding: 0 0 10px 12px; min-width: 0; }
	.primary-nav li.open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { color: rgba(255,255,255,.8); padding: 8px 4px; }
	.primary-nav .sub-menu a:hover { background: none; color: var(--gold); }
	.split, .page-body.has-side { grid-template-columns: 1fr; gap: 40px; }
	.side { position: static; order: 2; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.stats > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
	.split--rev .infra { order: 2; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.topbar__sep, .topbar a[href^="mailto"] { display: none; }
	.header__in { height: 72px; }
	.brand img { height: 42px; }
	.hero { padding-top: 64px; }
	.wrap.page-body { padding-top: 40px; padding-bottom: 64px; }
	.hero__cta { margin-bottom: 48px; }
	.stats dd { font-size: 1.05rem; }
	.stats > div { padding: 18px 12px 20px 0; }
	.stats > div + div { padding-left: 12px; }
	.section { padding: 64px 0; }
	.cards, .infra, .linklist, .mini-cards { grid-template-columns: 1fr; }
	.mini-cards { grid-template-columns: 1fr 1fr; }
	.footer__grid { grid-template-columns: 1fr; }
	.post-list li { grid-template-columns: 1fr; gap: 2px; }
	.alerts__form input[type=email] { min-width: 0; width: 100%; }
	.content .vc_row .vc_column_container + .vc_column_container > .vc_column-inner { padding-left: 0; }
}
