/*
Theme Name: RME Consulting
Theme URI: https://www.researchme.io/
Author: RME Consulting
Author URI: https://www.researchme.io/
Description: Custom theme converted from the RME Consulting static site. Provides page templates for Home, About, Contact, Services, Industries and legal pages, reusing the original hand-built design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rme-consulting
*/
/* ==========================================================================
   RME Consulting — VERSION 1 "MONOLITH"
   Big4 color-block language: white canvas, heavy black type, solid tiles.
   No rounded cards, no top-border cards, no gradient heroes.
   ========================================================================== */

:root {
  --burgundy: #800020;
  --burgundy-dark: #5C0017;
  --burgundy-deep: #43000F;
  --pink: #F7B9CB;
  --pink-tint: #FDF0F4;
  --ink: #161314;
  --ink-soft: #45403F;
  --gray: #6E6866;
  --stone: #F3F1EF;
  --line: #E8E4E1;
  --bg: #FFFFFF;
  --font-head: "Libre Franklin", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.08; color: var(--ink); margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy-deep); }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.45em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--burgundy); color: #fff; padding: 0.6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 2px; }

/* ---------- Buttons: square, solid ---------- */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; padding: 0.85rem 1.9rem; border: 0; border-radius: 0; text-decoration: none; cursor: pointer; transition: background-color 0.18s ease, color 0.18s ease; }
.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--burgundy-deep); color: #fff; }
.btn-light { background: #fff; color: var(--burgundy); }
.btn-light:hover, .btn-light:focus-visible { background: var(--pink-tint); color: var(--burgundy-deep); }
.btn-outline { background: var(--ink); color: #fff; }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--burgundy); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.site-footer .brand img { height: 42px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.nav-list { display: flex; align-items: center; gap: 0.4rem; }
.nav-list > li > a, .nav-list > li > button { display: block; font-family: var(--font-head); font-size: 0.94rem; font-weight: 500; color: var(--ink); text-decoration: none; padding: 0.6rem 0.85rem; background: none; border: 0; cursor: pointer; }
.nav-list > li > a:hover, .nav-list > li > button:hover, .nav-list > li > a[aria-current="page"] { color: var(--burgundy); }
.nav-list > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--burgundy); }

.has-dropdown { position: relative; }
.has-dropdown > button::after { content: ""; display: inline-block; margin-left: 0.4rem; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 2px; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--ink); padding: 0.4rem 0; display: none; }
.has-dropdown.open .dropdown { display: block; }
.dropdown a { display: block; padding: 0.65rem 1.2rem; color: #fff; text-decoration: none; font-size: 0.93rem; }
.dropdown a:hover { background: var(--burgundy); color: #fff; }
.header-cta { white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; content: ""; width: 24px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 76px); overflow-y: auto; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0 1rem; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; text-align: left; padding: 0.8rem 1.5rem; font-size: 1.02rem; }
  .dropdown { position: static; margin: 0 0 0 1.5rem; }
  .nav-list .mobile-cta { padding: 0.8rem 1.5rem; }
  .nav-list .mobile-cta .btn { width: 100%; text-align: center; }
}
@media (min-width: 921px) { .nav-list .mobile-cta { display: none; } }

/* ---------- Home hero: white, oversized statement type ---------- */
.hero { position: relative; background: #fff; }
.hero-inner { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); max-width: none; }
.hero h1 { color: var(--ink); margin-bottom: 0.3em; font-size: clamp(2.6rem, 6.5vw, 5rem); letter-spacing: -0.035em; line-height: 1; }
.hero h1 .accent { color: var(--burgundy); }
.hero .lede { font-size: clamp(1.02rem, 2vw, 1.15rem); color: var(--ink-soft); margin-bottom: 0; max-width: 540px; }
.hero-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray); margin-bottom: 2rem; }
.hero-sub { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-sub .btn { white-space: nowrap; }

/* ---------- Interior page hero: flat burgundy block ---------- */
.page-hero { background: var(--burgundy); color: #fff; padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: 0.35em; }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 720px; font-size: 1.08rem; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--pink); }
.breadcrumb { font-size: 0.85rem; margin-bottom: 1.4rem; color: rgba(255,255,255,0.75); }
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb span[aria-current] { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--stone); }
.section-tint { background: #fff; }

.eyebrow { display: block; font-family: var(--font-head); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 0.9rem; }
.section-head { max-width: 760px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: 0; margin-right: 0; text-align: left; } /* Monolith: flush left everywhere */
.rule { display: none; } /* short underline accents removed in this language */

/* ---------- Grids & tiles ---------- */
.grid { display: grid; gap: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.card { position: relative; border: 0; border-radius: 0; padding: 2.4rem 2.2rem 2rem; display: flex; flex-direction: column; background: var(--stone); transition: background 0.15s ease, transform 0.18s ease; }
.card h3 { margin-bottom: 0.5em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

/* Service-line tiles → solid color blocks (burgundy / ink / oxblood) */
.card-top-rule { color: #fff; min-height: 280px; }
.card-top-rule h3, .card-top-rule h3 a { color: #fff; }
.card-top-rule p { color: rgba(255,255,255,0.8); }
.card-top-rule .muted { color: rgba(255,255,255,0.65); }
.card-top-rule:nth-child(3n+1) { background: var(--burgundy); }
.card-top-rule:nth-child(3n+2) { background: var(--ink); }
.card-top-rule:nth-child(3n+3) { background: var(--burgundy-deep); }
.card-top-rule:hover { transform: translateY(-4px); }
.card-link { margin-top: auto; padding-top: 1.4rem; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--burgundy); }
.card-top-rule .card-link { color: #fff; }
.card-link::after { content: " \2192"; }

/* Plain cards (industries teaser, contact info) → white blocks, flood burgundy on hover */
.grid-4 .card { background: #fff; min-height: 150px; justify-content: space-between; }
.grid-4 .card:hover { background: var(--burgundy); }
.grid-4 .card:hover h3, .grid-4 .card:hover h3 a, .grid-4 .card:hover p { color: #fff; }

/* Numbered method steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { counter-increment: step; background: #fff; border: 0; border-radius: 0; padding: 1.6rem 1.6rem 1.6rem 5.2rem; position: relative; margin: 0; }
.steps li::before { content: "0" counter(step); position: absolute; left: 1.5rem; top: 1.45rem; font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; color: var(--burgundy); }
.steps h3 { font-size: 1.08rem; margin-bottom: 0.3em; }
.steps p { font-size: 0.95rem; color: var(--ink-soft); }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 0.85rem 0 0.85rem 1.7rem; position: relative; margin: 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.35em; width: 0.7rem; height: 0.7rem; background: var(--burgundy); }
.card-top-rule .checklist li { border-color: rgba(255,255,255,0.25); }
.card-top-rule .checklist li::before { background: var(--pink); }
.card-top-rule a { color: #fff; }
.card-top-rule a:hover { color: var(--pink); }

/* Stats → burgundy band with white numerals (per client direction: brand red, not black) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; background: var(--burgundy); color: #fff; text-align: left; }
.stat { padding: 2.2rem 2rem; border-left: 1px solid rgba(255,255,255,0.2); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: #fff; line-height: 1.05; display: block; }
.stat .label { color: var(--pink); font-size: 0.9rem; margin-top: 0.35rem; display: block; }
@media (max-width: 700px) { .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,0.2); } .stat:first-child { border-top: 0; } }

/* Two-column feature */
.split { display: grid; gap: 2.8rem; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split-wide { grid-template-columns: 3fr 2fr; } }

/* Client-voice questions → ruled rows */
.q-list { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.q-list li { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 1.1rem 0; margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }

/* ---------- Industries page ---------- */
.jump-nav { display: flex; flex-wrap: wrap; gap: 0; margin-top: 1.6rem; border: 1px solid rgba(255,255,255,0.35); align-self: flex-start; }
.jump-nav a { display: inline-block; padding: 0.55rem 1.1rem; border: 0; border-right: 1px solid rgba(255,255,255,0.35); border-radius: 0; color: #fff; text-decoration: none; font-size: 0.86rem; font-family: var(--font-head); font-weight: 600; }
.jump-nav a:last-child { border-right: 0; }
.jump-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.industry { padding: clamp(2.4rem, 5vw, 3.6rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 95px; }
.industry:last-of-type { border-bottom: 0; }
.industry .how { margin-top: 1.2rem; }

/* ---------- About / founder ---------- */
.founder-card { background: var(--burgundy); color: #fff; border: 0; border-radius: 0; padding: 2.4rem 2.2rem; }
.founder-card h3 { color: #fff; }
.founder-card .placeholder-photo { width: 110px; height: 110px; border-radius: 0; background: var(--burgundy-deep); border: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 900; font-size: 2.2rem; color: var(--pink); margin-bottom: 1.2rem; }
.founder-card .role { color: var(--pink); font-size: 0.95rem; margin-bottom: 1.2rem; }
.cred-list { list-style: none; padding: 0; font-size: 0.95rem; }
.cred-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.cred-list li:last-child { border-bottom: 0; }
.founder-card .cred-list li { border-color: rgba(255,255,255,0.25); }
.cred-list strong { font-family: var(--font-head); }

/* ---------- CTA band: flat burgundy ---------- */
.cta-band { background: var(--burgundy); color: #fff; padding: clamp(2.8rem, 6vw, 4.2rem) 0; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.cta-band h2 { color: #fff; margin: 0 0 0.3em; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; max-width: 560px; }
.cta-band .btn-light { background: #fff; color: var(--burgundy); }

/* ---------- Forms ---------- */
.form-card { background: var(--stone); border: 0; border-radius: 0; padding: 2.2rem 2rem; }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
label .req { color: var(--burgundy); }
.hint { font-size: 0.82rem; color: var(--gray); margin-top: 0.3rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: inherit; color: var(--ink); padding: 0.75rem 0.9rem; border: 1px solid #C9C3C0; border-radius: 0; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--burgundy); outline-offset: 0; border-color: var(--burgundy); }
textarea { min-height: 140px; resize: vertical; }
.form-error { display: none; color: #A3001F; font-size: 0.85rem; font-weight: 600; margin-top: 0.3rem; }
.field.invalid .form-error { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #A3001F; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Footer: white, original logo in brand colors ---------- */
.site-footer { background: #fff; color: var(--gray); padding: clamp(2.8rem, 6vw, 4rem) 0 1.5rem; font-size: 0.93rem; border-top: 4px solid var(--burgundy); }
.site-footer .brand { margin-bottom: 1rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); padding-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.site-footer h4 { color: var(--ink); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55em; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--burgundy); text-decoration: underline; }
.footer-brand p { color: var(--gray); font-size: 0.9rem; max-width: 280px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.4rem; font-size: 0.83rem; color: var(--gray); }
.footer-legal ul { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer-legal li { margin: 0; }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.center { text-align: left; }
.muted { color: var(--gray); }
.lead { font-size: 1.1rem; color: var(--ink-soft); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.6rem; }
