/*
Theme Name: IDRC Governance
Theme URI: https://www.idriskandcompliance.co.uk/
Author: ID Risk & Compliance
Description: A fast, accessible WordPress theme for ID Risk & Compliance.
Version: 1.0.17
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: idrc
*/

:root {
  --red: #f25757;
  --red-strong: #ff6666;
  --ink: #f7f7f8;
  --muted: #b6b7bc;
  --paper: #101115;
  --panel: #16171c;
  --panel-2: #1d1f25;
  --line: #30323a;
  --soft-line: rgba(255,255,255,.11);
  --width: 1240px;
  --narrow: 820px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at 85% 5%, rgba(242,87,87,.08), transparent 26%), radial-gradient(circle at 10% 70%, rgba(98,114,184,.08), transparent 24%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-strong); }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.12; letter-spacing: -.035em; }
p { margin: 0 0 1.25em; }
.site-shell { width: min(calc(100% - 48px), var(--width)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 10000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; color: #111; background: #fff; }
.eyebrow { display: inline-block; color: var(--red); font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(16,17,21,.94); border-bottom: 1px solid var(--soft-line); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 100px; }
.site-brand { flex: 0 0 auto; }
.site-brand img { width: 244px; max-height: 72px; object-fit: contain; object-position: left center; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: 25px; font-size: .84rem; }
.primary-nav > a { position: relative; padding: 14px 0; white-space: nowrap; color: #dddde1; }
.primary-nav > a:not(.nav-cta)::after { content: ""; position: absolute; inset: auto 0 7px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav > a:hover::after, .primary-nav > a.is-current::after { transform: scaleX(1); }
.primary-nav .nav-cta { padding: 12px 20px; border: 1px solid #f4f4f5; border-radius: 7px; }
.primary-nav .nav-cta:hover { color: #111; background: #fff; }
.menu-toggle { display: none; width: 46px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: #fff; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; line-height: 1.2; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: #111; }
.button-primary:hover { background: #fff; color: #111; }
.button-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.button-ghost:hover { border-color: #fff; background: #fff; color: #111; }
.text-link { display: inline-block; color: var(--red); font-weight: 750; border-bottom: 1px solid currentColor; }

/* Homepage */
.hero { position: relative; min-height: min(820px, calc(100vh - 80px)); display: grid; align-items: center; overflow: hidden; background: #111318 url("assets/images/hero.jpg") center bottom / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,13,17,.98) 0%, rgba(12,13,17,.86) 42%, rgba(12,13,17,.25) 80%), linear-gradient(0deg, rgba(16,17,21,.55), transparent 45%); }
.hero-inner { position: relative; padding-block: 90px 110px; }
.hero-copy { max-width: 840px; }
.hero h1 { max-width: 820px; margin: 18px 0 30px; font-size: clamp(3rem, 6.4vw, 6.1rem); font-weight: 420; letter-spacing: -.055em; }
.hero p { max-width: 830px; color: #dedfe3; font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.section { padding-block: 100px; }
.section-intro { background: var(--paper); }
.split-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; margin-bottom: 52px; }
.split-intro h2, .assurance-copy h2, .metrics-section h2, .client-section h2, .cta-inner h2 { margin: 12px 0 0; font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 480; }
.split-intro > p { margin: 0; color: var(--muted); font-size: 1.12rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.service-grid article { min-height: 320px; padding: 35px 30px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.service-grid article:last-child { border-right: 0; }
.service-grid article:hover { background: var(--panel); }
.service-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 54px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font-size: .74rem; font-weight: 800; }
.service-grid h3 { min-height: 2.24em; font-size: 1.35rem; }
.service-grid p { color: var(--muted); font-size: .95rem; }
.assurance-section { border-block: 1px solid var(--line); background: #0e0f13; }
.assurance-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.assurance-image { min-height: 620px; border: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(16,17,21,.35)), url("assets/images/wave-red.jpg") center / cover no-repeat; }
.assurance-copy p { color: var(--muted); }
.assurance-copy h2 { margin-bottom: 24px; }
.assurance-copy .text-link { margin-top: 15px; }
.metrics-section { background: linear-gradient(180deg, #14161b, #101115); }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 48px; border: 1px solid var(--line); }
.metric-grid > div { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 30px 24px; border-right: 1px solid var(--line); text-align: center; }
.metric-grid > div:last-child { border: 0; }
.metric-grid strong { display: block; color: var(--red); font-size: clamp(2rem, 3vw, 3.4rem); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.05em; line-height: 1; }
.metric-grid .metric-label { display: flex; align-items: flex-start; justify-content: center; min-height: 2.9em; max-width: 190px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.client-section { border-top: 1px solid var(--line); }
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); }
.client-grid img { width: 100%; height: 160px; padding: 34px; object-fit: contain; background: #fff; filter: grayscale(1); transition: filter .2s ease; }
.client-grid img:hover { filter: grayscale(0); }
.cta-section { background: linear-gradient(115deg, rgba(16,17,21,.25), rgba(16,17,21,.94)), url("assets/images/wave-blue.jpg") center / cover no-repeat; border-block: 1px solid var(--line); }
.cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: end; }
.cta-inner p { color: #dbdce0; }

/* Pages */
.site-main { min-height: 60vh; padding-bottom: 90px; }
.page-hero { position: relative; padding: 92px 0 80px; border-bottom: 1px solid var(--line); overflow: hidden; background: linear-gradient(90deg, rgba(16,17,21,.93), rgba(16,17,21,.58)), url("assets/images/wave-red.jpg") center / cover; }
.page-hero::after { content: ""; position: absolute; right: -15%; top: -80%; width: 60%; aspect-ratio: 1; border: 1px solid rgba(242,87,87,.18); border-radius: 50%; }
.page-hero h1 { position: relative; z-index: 1; max-width: 980px; margin: 13px 0 0; font-size: clamp(2.7rem, 5vw, 5.2rem); font-weight: 450; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; align-items: start; padding-top: 70px; }
.page-content { min-width: 0; }
.page-content > h2, .page-content > h3 { scroll-margin-top: 130px; }
.page-content h2 { margin: 3rem 0 .8rem; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 620; }
.page-content h3 { margin: 1.8em 0 .55em; color: var(--red); font-size: 1.35rem; letter-spacing: -.02em; }
.page-content p, .page-content li { color: #d1d2d6; }
.page-content a:not(.button) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.page-content ul, .page-content ol { margin-block: .75em 1.4em; padding-left: 1.35em; }
.page-content li { margin-bottom: .3em; }
.page-content li > p { margin: 0; }
.page-content img { margin: 35px auto; border-radius: 12px; }
.page-content .content-lead { margin: 0 0 1.8rem; color: #f2f2f4; font-size: 1.12rem; font-weight: 720; line-height: 1.55; }
.page-content .content-section-heading { margin: 2.8rem 0 .8rem; color: #fff; font-size: 1.5rem; font-weight: 760; letter-spacing: -.02em; }
.page-content .support-tier-name { display: inline-block; margin-bottom: .18rem; color: #fff; font-size: 1.06rem; font-weight: 760; letter-spacing: -.01em; }
.page-content-about .about-resource-list { margin: 0; padding-left: 1.25em; }
.page-content-about .about-resource-list li { margin: 0; padding: .18rem 0; }
.page-aside { position: sticky; top: 130px; padding: 32px; border: 1px solid var(--line); background: linear-gradient(145deg, var(--panel-2), var(--panel)); }
.page-aside h2 { margin: 15px 0 16px; font-size: 1.7rem; }
.page-aside p { color: var(--muted); font-size: .95rem; }
.blog-hero p { position: relative; max-width: 680px; margin: 22px 0 0; color: var(--muted); }

/* Forms */
.contact-form { margin-top: 45px; padding: 36px; border: 1px solid var(--line); background: var(--panel); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: block; margin-bottom: 20px; color: #efeff1; font-weight: 650; font-size: .92rem; }
.contact-form label > span { color: var(--red); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid #454850; border-radius: 7px; outline: 0; background: #0f1014; color: #fff; font-weight: 400; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(242,87,87,.14); }
.contact-form textarea { resize: vertical; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-notice { margin: 28px 0; padding: 16px 18px; border: 1px solid; }
.form-notice.is-success { border-color: #54b787; background: rgba(84,183,135,.12); }
.form-notice.is-error { border-color: var(--red); background: rgba(242,87,87,.12); }

/* Insights */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 60px; }
.post-card { border: 1px solid var(--line); background: var(--panel); }
.post-card > a { display: block; height: 100%; }
.post-card-art { position: relative; height: 190px; overflow: hidden; background: linear-gradient(135deg, rgba(242,87,87,.42), transparent 54%), url("assets/images/wave-blue.jpg") center / cover; border-bottom: 1px solid var(--line); }
.post-card-art::after { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.18); }
.post-card-art span { position: absolute; right: 26px; bottom: 20px; z-index: 1; color: rgba(255,255,255,.52); font-size: .72rem; letter-spacing: .18em; }
.post-card-content { padding: 26px; }
.post-card h2 { margin: 13px 0 15px; font-size: 1.45rem; font-weight: 540; }
.post-card p { color: var(--muted); font-size: .94rem; }
.post-card .text-link { font-size: .88rem; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination .page-numbers { padding: 9px 14px; border: 1px solid var(--line); }
.pagination .current { border-color: var(--red); color: var(--red); }

/* Articles */
.article-header { padding: 92px 0 58px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(242,87,87,.08), transparent 55%); }
.article-shell { width: min(calc(100% - 48px), var(--narrow)); margin-inline: auto; }
.article-header h1 { margin: 18px 0 25px; font-size: clamp(2.5rem, 5vw, 4.7rem); font-weight: 470; }
.article-deck { color: var(--muted); font-size: 1.15rem; }
.article-meta { display: flex; gap: 20px; color: #93959b; font-size: .84rem; }
.article-image { margin-top: 45px; }
.article-image img { width: 100%; border: 1px solid var(--line); border-radius: 12px; }
.article-content { padding-block: 62px; }
.article-content p, .article-content li { color: #d4d5d8; }
.article-content h2 { margin: 2.1em 0 .65em; font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 530; }
.article-content h3 { margin: 1.8em 0 .5em; color: var(--red); font-size: 1.35rem; }
.article-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-content ul, .article-content ol { margin-block: .75em 1.4em; padding-left: 1.35em; }
.article-content li { margin-bottom: .3em; }
.article-content li > p { margin: 0; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 42px; border: 1px solid var(--line); background: var(--panel); }
.article-cta h2 { margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #0c0d10; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .7fr .8fr 1fr; gap: 60px; padding-block: 70px; }
.footer-logo { width: 215px; margin-bottom: 26px; }
.footer-identity a { color: var(--muted); }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-links strong { margin-bottom: 5px; color: #fff; }
.footer-links a { color: var(--muted); font-size: .91rem; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; color: var(--muted); font-size: .9rem; }
.footer-group img { width: 190px; max-height: 62px; object-fit: contain; object-position: left center; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom > div { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; color: #777a81; font-size: .78rem; }
.error-page { padding-block: 120px; text-align: center; }
.error-page h1 { margin: 15px 0; font-size: clamp(2.8rem, 5vw, 5rem); }
.error-page p { max-width: 640px; margin: 0 auto 30px; color: var(--muted); }
.error-page .button { margin: 6px; }

@media (max-width: 1100px) {
  .menu-toggle { display: block; margin-left: auto; }
  .header-inner { min-height: 86px; }
  .site-brand img { width: 205px; }
  .primary-nav { position: absolute; inset: 86px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--line); background: #101115; }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a { padding: 13px 0; }
  .primary-nav .nav-cta { margin-top: 8px; padding: 13px 16px; text-align: center; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid article:nth-child(2) { border-right: 0; }
  .service-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-grid > div:nth-child(3) { border-right: 0; }
  .metric-grid > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
  .footer-group { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .site-shell, .article-shell { width: min(calc(100% - 34px), var(--width)); }
  .hero { min-height: 720px; }
  .hero-inner { padding-block: 72px; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4.6rem); }
  .section { padding-block: 72px; }
  .split-intro, .assurance-grid, .cta-inner, .page-layout { grid-template-columns: 1fr; gap: 38px; }
  .assurance-image { min-height: 380px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid > div:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .metric-grid > div:nth-child(2n) { border-right: 0; }
  .metric-grid > div:last-child { border-bottom: 0; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .page-layout { padding-top: 45px; }
  .page-aside { position: static; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px; }
  .footer-identity, .footer-group { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-brand img { width: 180px; }
  .hero { min-height: 680px; }
  .hero::before { background: rgba(12,13,17,.76); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .service-grid, .metric-grid, .client-grid, .post-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-grid h3 { min-height: 0; }
  .service-grid article:nth-child(n), .metric-grid > div:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-grid article:last-child, .metric-grid > div:last-child { border-bottom: 0; }
  .client-grid img { height: 145px; }
  .contact-form { padding: 24px 18px; }
  .article-meta { flex-wrap: wrap; }
  .article-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .footer-bottom > div { flex-direction: column; }
}

