/*
Theme Name: GRm
Theme URI: https://gloryroadministries.uk/
Author: Glory Road ministries UK
Description: Custom theme for Glory Road ministries UK. Drivers first, warm and easy to read. No tracking cookies, fonts stored locally.
Version: 1.0.26
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: grm
*/

/* ---------- Fonts (stored on this site, no Google requests) ---------- */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/lora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/lora-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

/* ---------- Colours ---------- */
:root {
	--grm-navy: #002366;
	--grm-ink: #1B2A4A;
	--grm-red: #B30B22;
	--grm-cream: #FFFCF4;
	--grm-butter: #FFF6CC;
	--grm-sand: #F1ECDF;
	--grm-line: #ECE4CF;
	--grm-edge: #C9D1E2;
	--grm-muted: #3D4C6B;
	--grm-soft: #5A6A88;
	--grm-shadow: 0 2px 14px rgba(27, 42, 74, 0.07);
	--grm-serif: "Lora", Georgia, serif;
	--grm-sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--grm-cream); color: var(--grm-ink); font-family: var(--grm-sans); font-size: 19px; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grm-red); }
a:hover { color: var(--grm-navy); }
:focus-visible { outline: 3px solid var(--grm-navy); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--grm-serif); font-weight: 600; color: var(--grm-navy); line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.12; }
h2 { font-size: clamp(30px, 3.6vw, 40px); }
h3 { font-size: 24px; }
p { margin: 0 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 12px 16px; border-radius: 8px; }

.grm-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.grm-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.grm-center { text-align: center; }
.grm-kicker { font-family: var(--grm-serif); font-style: italic; font-size: 21px; color: var(--grm-soft); margin: 0 0 14px; }
.grm-accent { font-family: var(--grm-serif); font-style: italic; font-size: 23px; color: var(--grm-red); }
.grm-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.grm-split > * { flex: 1 1 420px; min-width: 0; }
.grm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.grm-round { border-radius: 28px; width: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */
.grm-btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px; border-radius: 10px; font-weight: 700; font-family: var(--grm-sans); font-size: 19px; text-decoration: none; background: var(--grm-navy); color: #fff; border: 2px solid var(--grm-navy); cursor: pointer; }
.grm-btn:hover, .wp-block-button__link:hover { background: var(--grm-ink); color: #fff; }
.grm-btn--light { background: #fff; color: var(--grm-navy); border-color: var(--grm-edge); }
.grm-btn--light:hover { background: var(--grm-butter); color: var(--grm-navy); }
.grm-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.grm-center .grm-btns { justify-content: center; }

/* ---------- Header ---------- */
.grm-header { background: var(--grm-cream); border-bottom: 1px solid var(--grm-line); }
.grm-header .grm-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.grm-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--grm-navy); }
.grm-brand img { width: 60px; height: 60px; border-radius: 10px; }
.grm-brand span { font-family: var(--grm-serif); font-weight: 600; font-size: 24px; }
.grm-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 18px; }
.grm-nav a { color: var(--grm-ink); text-decoration: none; }
.grm-nav a:hover { color: var(--grm-red); }
.grm-nav .grm-btn, .grm-nav .grm-btn:hover, .grm-nav .grm-btn:visited { color: #fff; min-height: 44px; padding: 10px 20px; font-size: 18px; }
.grm-btn:visited { color: #fff; }
.grm-btn--light:visited { color: var(--grm-navy); }

/* ---------- Sections ---------- */
.grm-section { padding: 88px 0; }
.grm-band--butter { background: var(--grm-butter); }
.grm-band--navy { background: var(--grm-ink); color: #F6F1E4; }
.grm-band--navy h2, .grm-band--navy h3 { color: #fff; }
.grm-band--navy .grm-kicker { color: #FFE98A; }
.grm-hero { padding: 80px 0 72px; }
.grm-hero .grm-we-do { font-family: var(--grm-serif); font-style: italic; font-weight: 500; font-size: 34px; color: var(--grm-red); margin: 0 0 32px; }
.grm-hero p { max-width: 33em; }
.grm-strip { padding: 56px 0; font-family: var(--grm-serif); font-weight: 500; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; color: var(--grm-navy); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 48px; text-align: center; }

.grm-card { background: #fff; border-radius: 22px; padding: 32px 28px; box-shadow: var(--grm-shadow); display: flex; flex-direction: column; gap: 12px; }
.grm-card h3 { margin: 0; }
.grm-card p { margin: 0; }
.grm-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--grm-butter); display: flex; align-items: center; justify-content: center; }
.grm-icon svg { width: 26px; height: 26px; stroke: var(--grm-navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.grm-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grm-photos img { width: 100%; height: 340px; object-fit: cover; border-radius: 22px; }

.grm-story { margin: 0; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--grm-shadow); display: flex; flex-direction: column; }
.grm-story img, .grm-story .grm-initial { width: 100%; height: 210px; object-fit: cover; }
.grm-initial { background: var(--grm-butter); display: flex; align-items: center; justify-content: center; font-family: var(--grm-serif); font-weight: 600; font-size: 96px; color: var(--grm-navy); }
.grm-story blockquote { margin: 0; padding: 26px 26px 10px; font-family: var(--grm-serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--grm-navy); }
.grm-story p { padding: 0 26px 14px; font-size: 17px; line-height: 1.6; margin: 0; }
.grm-story figcaption { margin-top: auto; padding: 0 26px 26px; font-weight: 700; color: var(--grm-red); }
.grm-memorial { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.grm-memorial .grm-story img { height: 380px; }
.grm-memorial .grm-story p { font-size: 18px; }
.grm-memorial .grm-story figcaption { font-size: 20px; }
.grm-story figcaption span { font-weight: 400; font-style: italic; color: var(--grm-soft); }
.grm-story p.grm-source { font-size: 15px; color: var(--grm-soft); }
.grm-story p.grm-source a { color: var(--grm-red); font-weight: 700; }

/* Video: nothing loads from YouTube until someone taps play */
.grm-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: var(--grm-ink); }
.grm-video button, .grm-video a.grm-video-link { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #fff; text-align: center; padding: 24px; font-family: var(--grm-sans); }
.grm-video .grm-play { width: 96px; height: 96px; border-radius: 50%; background: var(--grm-butter); display: flex; align-items: center; justify-content: center; }
.grm-video .grm-play svg { width: 40px; height: 40px; fill: var(--grm-navy); }
.grm-video .grm-video-title { font-family: var(--grm-serif); font-weight: 600; font-size: 28px; }
.grm-video .grm-video-note { font-size: 16px; color: #D9DEEA; }
.grm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact */
.grm-contact-lines { margin: 28px 0 0; font-size: 20px; line-height: 1.8; }
.grm-contact-lines a { color: var(--grm-navy); font-weight: 700; }

/* ---------- Footer ---------- */
.grm-footer { border-top: 1px solid var(--grm-line); font-size: 17px; }
.grm-footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.grm-footer-main > * { flex: 1 1 300px; min-width: 0; }
.grm-footer-name { font-family: var(--grm-serif); font-weight: 600; font-size: 22px; color: var(--grm-navy); margin: 0 0 6px; }
.grm-footer p { margin: 0 0 8px; }
.grm-footer a { color: var(--grm-ink); }
.grm-footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; }
.grm-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-bottom: 36px; }
.grm-follow strong { margin-right: 6px; }
.grm-pill { color: var(--grm-navy) !important; text-decoration: none; font-weight: 700; padding: 10px 18px; border: 2px solid var(--grm-edge); border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.grm-pill:hover { background: var(--grm-butter); }
.grm-copy { border-top: 1px solid var(--grm-line); padding: 16px 24px; text-align: center; font-size: 15px; color: var(--grm-soft); }
.grm-copy a { color: var(--grm-soft); }

/* ---------- Ordinary pages (About, Support, Privacy, and the stock app) ---------- */
.grm-page { padding: 72px 0 96px; }
.grm-page > .grm-wrap > h1 { margin-bottom: 28px; }
.grm-page-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.grm-page-content > .alignwide { max-width: 1160px; }
.grm-page-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.grm-page-content > .alignfull > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.grm-page-content .wp-block-buttons { margin-top: 8px; margin-bottom: 28px; }
.grm-page-content .wp-block-group.has-background, .grm-page-content .grm-band { padding: 72px 24px; margin-top: 56px; margin-bottom: 56px; }
.grm-page-content .grm-band--butter { background: var(--grm-butter); }
.grm-page-content .grm-band--navy { background: var(--grm-ink); color: #F6F1E4; }
.grm-page-content h2 { margin-top: 48px; }
.grm-page-content .grm-band h2:first-child { margin-top: 0; }
.grm-page-content ul { padding-left: 24px; }
.grm-page-content li { margin-bottom: 8px; }
.grm-page-content .wp-block-columns { gap: 28px; }
.grm-page-content .grm-card-col { background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--grm-shadow); }
.grm-page-content .grm-card-col h3 { margin-top: 0; }
.grm-page-content address { font-style: normal; }
.grm-page-content .grm-note { font-size: 17px; color: var(--grm-muted); }

@media (max-width: 640px) {
	body { font-size: 18px; }
	.grm-section { padding: 64px 0; }
	.grm-hero { padding: 48px 0; }
	.grm-brand span { font-size: 20px; }
	.grm-nav { gap: 6px 18px; font-size: 17px; }
	.grm-photos img { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
