/*
Theme Name: ORM Journal
Theme URI: https://onlinereputationmanagement.io/
Author: Online Reputation Management
Description: A fast, trust-first publishing theme for onlinereputationmanagement.io. Clean editorial layout, author and editorial transparency built in, subscribe and service inquiry forms included.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: orm-journal
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #101b2d;
  --slate: #55647a;
  --paper: #ffffff;
  --wash: #f2f6f3;
  --line: #e3e8ee;
  --accent: #0e8a5f;
  --accent-dark: #0a6b49;
  --amber: #b45309;
  --max: 1120px;
  --content: 720px;
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-style: solid; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); margin: 1.4em 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; margin-top: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.orm-shell { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.orm-content-col { max-width: var(--content); margin: 0 auto; }

.orm-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: inline-block;
  margin-bottom: 10px;
}

.orm-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.orm-btn:hover { background: var(--accent-dark); color: #fff; }
.orm-btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.orm-btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.orm-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.orm-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.orm-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.orm-logo span { color: var(--accent); }
.orm-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.orm-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.orm-nav a:hover { color: var(--accent-dark); }
.orm-nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
@media (max-width: 800px) {
  .orm-nav-toggle { display: block; }
  .orm-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 24px; }
  .orm-nav.open { display: block; }
  .orm-nav ul { flex-direction: column; gap: 14px; }
}

/* ---------- Hero ---------- */
.orm-hero { padding: 80px 0 64px; text-align: center; }
.orm-hero p.lead { font-size: 1.25rem; color: var(--slate); max-width: 640px; margin: 16px auto 0; }
.orm-hero-form { max-width: 480px; margin: 32px auto 0; }

/* ---------- Post cards ---------- */
.orm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; padding: 40px 0 72px; }
.orm-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.orm-card:hover { box-shadow: 0 8px 28px rgba(16, 27, 45, 0.08); transform: translateY(-2px); }
.orm-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.orm-card h2, .orm-card h3 { margin: 0; font-size: 1.25rem; }
.orm-card h2 a, .orm-card h3 a { color: var(--ink); text-decoration: none; }
.orm-card h2 a:hover, .orm-card h3 a:hover { color: var(--accent-dark); }
.orm-card .excerpt { color: var(--slate); font-size: 0.95rem; margin: 0; }
.orm-card-meta { font-size: 0.82rem; color: var(--slate); margin-top: auto; padding-top: 8px; }
.orm-card-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Single article ---------- */
.orm-article { padding: 56px 0 40px; }
.orm-article-header { margin-bottom: 28px; }
.orm-review-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; margin: 24px 0 36px;
  font-size: 0.88rem; color: var(--slate);
}
.orm-review-strip .avatar img { border-radius: 50%; display: block; }
.orm-review-strip .who { display: flex; align-items: center; gap: 10px; }
.orm-review-strip .who a { color: var(--ink); font-weight: 700; text-decoration: none; }
.orm-review-strip .who a:hover { color: var(--accent-dark); }
.orm-entry { font-size: 1.08rem; }
.orm-entry > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.orm-entry img { border-radius: 8px; }
.orm-entry blockquote { border-left: 4px solid var(--accent); margin-left: 0; padding-left: 20px; color: var(--slate); font-style: italic; }
.orm-entry table { border-collapse: collapse; width: 100%; }
.orm-entry th, .orm-entry td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 0.95rem; }
.orm-entry th { background: var(--wash); }

/* ---------- Author box + author page ---------- */
.orm-author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--wash); border-radius: 12px; padding: 24px;
  margin: 48px auto; max-width: var(--content);
}
.orm-author-box img { border-radius: 50%; flex-shrink: 0; }
.orm-author-box h3 { margin: 0 0 6px; }
.orm-author-box p { margin: 0; color: var(--slate); font-size: 0.95rem; }
.orm-author-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.orm-author-hero-inner { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.orm-author-hero img { border-radius: 50%; }
.orm-author-hero .bio { max-width: 640px; color: var(--slate); }

/* ---------- Search ---------- */
.orm-searchform { display: flex; gap: 10px; }
.orm-searchform input[type="search"] {
  flex: 1; padding: 13px 16px; font-size: 1rem;
  border: 2px solid var(--line); border-radius: 8px; font-family: var(--font-body);
}
.orm-searchform input[type="search"]:focus { border-color: var(--accent); outline: none; }
.orm-search-result { border-bottom: 1px solid var(--line); padding: 28px 0; }
.orm-search-result h2 { margin: 0 0 8px; font-size: 1.3rem; }
.orm-search-result p { margin: 0; color: var(--slate); }
.orm-page-title-wrap { padding: 56px 0 8px; }

/* ---------- Subscribe form (Mailchimp) ---------- */
.orm-subscribe {
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 36px; margin: 56px auto; max-width: var(--content);
}
.orm-subscribe h2 { color: #fff; margin: 0 0 8px; font-size: 1.5rem; }
.orm-subscribe p { color: #b8c4d4; margin: 0 0 20px; font-size: 0.95rem; }
.orm-subscribe .indicates-required, .orm-subscribe .asterisk { display: none; }
.orm-subscribe .mc-field-group label { display: none; }
.orm-subscribe #mc_embed_signup_scroll { display: block; }
.orm-subscribe form > div, .orm-subscribe #mc_embed_signup_scroll > .mc-field-group { margin: 0; }
.orm-subscribe .orm-sub-row { display: flex; gap: 10px; flex-wrap: wrap; }
.orm-subscribe input[type="email"] {
  flex: 1; min-width: 220px; padding: 13px 16px; font-size: 1rem;
  border: 0; border-radius: 8px; font-family: var(--font-body);
}
.orm-subscribe input[type="submit"], .orm-subscribe .button {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border: 0; border-radius: 8px; cursor: pointer;
}
.orm-subscribe input[type="submit"]:hover { background: #12a370; }
.orm-subscribe .response { font-size: 0.88rem; margin-top: 10px; }
.orm-subscribe .fine { font-size: 0.78rem; color: #8fa0b5; margin-top: 14px; }
.orm-subscribe a { color: #9fd9c2; }
.orm-subscribe a:hover { color: #c4ecdc; }
.orm-subscribe.light a { color: var(--accent-dark); }
.orm-subscribe.light { background: var(--wash); color: var(--ink); }
.orm-subscribe.light h2 { color: var(--ink); }
.orm-subscribe.light p { color: var(--slate); }
.orm-subscribe.light input[type="email"] { border: 2px solid var(--line); }

/* ---------- Service form ---------- */
.orm-service-form { background: var(--wash); border-radius: 14px; padding: 36px; margin: 40px 0 64px; }
.orm-service-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .orm-service-form .row { grid-template-columns: 1fr; } }
.orm-service-form label { display: block; font-weight: 600; font-size: 0.9rem; margin: 16px 0 6px; }
.orm-service-form .asterisk { color: var(--amber); }
.orm-service-form .mc-field-group { margin: 0; }
.orm-service-form .response { font-size: 0.9rem; margin-top: 12px; }
.orm-service-form #mce-success-response { color: var(--accent-dark); }
.orm-service-form #mce-error-response { color: #a02020; }
.orm-service-form .clear .button { margin-top: 22px; }
.orm-service-form input, .orm-service-form select, .orm-service-form textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: var(--font-body);
  border: 2px solid var(--line); border-radius: 8px; background: #fff;
}
.orm-service-form input:focus, .orm-service-form select:focus, .orm-service-form textarea:focus { border-color: var(--accent); outline: none; }
.orm-service-form .orm-btn { margin-top: 22px; }
.orm-form-notice { border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-size: 0.95rem; }
.orm-form-notice.success { background: #e6f4ee; color: var(--accent-dark); }
.orm-form-notice.error { background: #fdecec; color: #a02020; }

/* ---------- Footer ---------- */
.orm-footer { background: var(--ink); color: #b8c4d4; margin-top: 80px; padding: 56px 0 32px; font-size: 0.92rem; }
.orm-footer a { color: #dfe6ef; text-decoration: none; }
.orm-footer a:hover { color: #fff; text-decoration: underline; }
.orm-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .orm-footer-grid { grid-template-columns: 1fr; } }
.orm-footer h4 { color: #fff; margin: 0 0 14px; font-size: 0.95rem; }
.orm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.orm-footer .legal { border-top: 1px solid #24344d; margin-top: 40px; padding-top: 24px; font-size: 0.82rem; color: #8fa0b5; }

/* ---------- Blog page template ---------- */
.orm-blog-hero { padding: 72px 0 36px; text-align: center; }
.orm-blog-hero h1 { margin: 0 auto; max-width: 820px; }
.orm-blog-hero .lead { font-size: 1.15rem; color: var(--slate); max-width: 620px; margin: 18px auto 0; }
.orm-topic-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 20px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.orm-topic-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
  text-decoration: none; background: var(--paper); margin-bottom: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.orm-topic-pill:hover { border-color: var(--accent); color: var(--accent-dark); }
.orm-topic-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.orm-topic-pill .count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--slate); }
.orm-topic-pill.active .count { color: #b8c4d4; }
.orm-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit; margin: 28px 0 8px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.orm-featured:hover { box-shadow: 0 12px 36px rgba(16, 27, 45, 0.1); transform: translateY(-2px); color: inherit; }
.orm-featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 280px; }
.orm-featured-body { padding: 40px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.orm-featured-body h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.orm-featured-body p { margin: 0; color: var(--slate); }
.orm-featured:hover h2 { color: var(--accent-dark); }
@media (max-width: 800px) { .orm-featured { grid-template-columns: 1fr; } .orm-featured-body { padding: 28px; } }

/* ---------- Misc ---------- */
.orm-pagination { display: flex; gap: 8px; justify-content: center; padding: 8px 0 64px; }
.orm-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); }
.orm-pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.orm-404 { text-align: center; padding: 96px 0; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.orm-page { padding: 24px 0 64px; }
