/*
Theme Name: Campus Resolve
Theme URI: https://campusresolve.co.uk
Author: Jenny Gradwell
Author URI: https://campusresolve.co.uk
Description: Custom brand theme for Campus Resolve – independent higher education investigation and casework solutions.
Version: 2.1
License: GNU General Public License v2 or later
Text Domain: campus-resolve
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --charcoal:     #5A5550;
  --gold:         #C49820;
  --gold-light:   #d4aa30;
  --terracotta:   #DB715B;
  --taupe:        #CBBBAC;
  --parchment:    #FAF6F1;
  --parchment-dk: #F0EAE2;
  --white:        #ffffff;

  --font:         'Open Sans', sans-serif;
  --max-w:        1100px;
  --content-w:    740px;
  --radius:       4px;
  --ease:         0.25s ease;

  color-scheme: light;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 0.6em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin-bottom: 1.2em; }
li { margin-bottom: 0.35em; }

blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--parchment-dk);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--charcoal);
}
blockquote p { margin-bottom: 0; }

hr {
  border: none;
  border-top: 1px solid var(--taupe);
  margin: 2rem 0;
}

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.content-container {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   SITE HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--parchment-dk);
  box-shadow: 0 1px 12px rgba(90,85,80,.07);
  transition: box-shadow var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(90,85,80,.13);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Logo */
.site-logo a,
.site-logo-text a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img,
.custom-logo { height: 48px; width: auto; }

.site-logo-text a {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--charcoal);
}

/* Nav menu */
.main-nav ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 2px;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  border-radius: var(--radius);
  transition: background var(--ease), color var(--ease);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background: var(--parchment);
  color: var(--gold);
}

/* Contact link – gold CTA style */
.main-nav li:last-child a {
  background: var(--gold);
  color: var(--white);
  padding: 8px 18px;
}
.main-nav li:last-child a:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   NAV DROPDOWN (sub-menu)
   ============================================================ */
.menu-item-has-children {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 200;
  background: var(--white);
  border: 1px solid var(--parchment-dk);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(90,85,80,.12);
  min-width: 200px;
  padding: 6px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--ease), transform var(--ease), visibility 0s var(--ease);
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity var(--ease), transform var(--ease), visibility 0s;
}

.sub-menu li {
  margin: 0;
}

.sub-menu a {
  padding: 9px 16px;
  font-size: .82rem;
  white-space: nowrap;
  border-radius: 0;
}

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: var(--charcoal);
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(196,152,32,.1) 0%, transparent 60%);
  pointer-events: none;
}
.page-banner-inner {
  max-width: var(--content-w);
  margin-inline: auto;
  position: relative;
}
.page-banner h1 {
  color: var(--white);
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.page-banner-rule {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 14px;
  border-radius: 2px;
}

/* ============================================================
   MAIN CONTENT AREA (inner pages)
   ============================================================ */
.site-main {
  padding: 56px 0 80px;
}

.entry-content {
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Block: Headings ── */
.entry-content h2 {
  margin-top: 2em;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--parchment-dk);
}
.entry-content h2:first-child { margin-top: 0; }

/* ── Block: Tables ── */
.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  margin: 1.5rem 0;
}
.entry-content th,
.wp-block-table th {
  background: var(--charcoal);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
}
.entry-content td,
.wp-block-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--parchment-dk);
  vertical-align: top;
}
.entry-content tr:nth-child(even) td,
.wp-block-table tr:nth-child(even) td {
  background: var(--parchment);
}
.entry-content tr:hover td,
.wp-block-table tr:hover td {
  background: var(--parchment-dk);
}

/* ── Block: Details / Accordion ── */
.entry-content details,
.wp-block-details {
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  background: var(--white);
}
.entry-content details summary,
.wp-block-details summary {
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background var(--ease);
}
.entry-content details summary::-webkit-details-marker { display: none; }
.entry-content details summary::after,
.wp-block-details summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform var(--ease);
  flex-shrink: 0;
  margin-left: 1rem;
}
.entry-content details[open] summary::after,
.wp-block-details[open] summary::after {
  transform: rotate(45deg);
}
.entry-content details summary:hover,
.wp-block-details summary:hover {
  background: var(--parchment);
}
.entry-content details[open] summary,
.wp-block-details[open] summary {
  background: var(--parchment-dk);
  border-bottom: 1px solid var(--taupe);
  color: var(--gold);
}
.entry-content details > *:not(summary),
.wp-block-details > *:not(summary) {
  padding: 16px 18px;
}
.entry-content details ul,
.entry-content details ol,
.wp-block-details ul,
.wp-block-details ol {
  margin-bottom: 0;
}

/* ── Block: Gallery / Images ── */
.entry-content figure { margin: 1.5rem 0; }
.entry-content figure figcaption {
  font-size: .82rem;
  color: var(--charcoal);
  opacity: .6;
  margin-top: .5rem;
  text-align: center;
  font-style: italic;
}
.entry-content .wp-block-image img {
  border-radius: var(--radius);
}
.is-style-rounded img { border-radius: 50% !important; }

/* ── Block: Ordered list (numbered) ── */
.entry-content .wp-block-list.wp-block-list {
  counter-reset: none;
}
.entry-content ol.wp-block-list {
  list-style: decimal;
}

/* ── Block: Separator ── */
.entry-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--taupe);
  margin: 2rem 0;
}

/* ── Block: Quote ── */
.entry-content .wp-block-quote {
  border-left: 4px solid var(--gold);
  background: var(--parchment-dk);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.entry-content .wp-block-quote p {
  font-style: normal;
  font-weight: 600;
  margin-bottom: 0;
}

/* ============================================================
   HERO (homepage)
   ============================================================ */
.site-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  background: var(--parchment);
  position: relative;
  overflow: hidden;
  padding: 80px 24px;
}

/* Warm radial glow */
.site-hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  background: radial-gradient(ellipse, rgba(196,152,32,.11) 0%, transparent 68%);
  pointer-events: none;
  animation: cr-pulse 6s ease-in-out infinite;
}

@keyframes cr-pulse {
  0%, 100% { transform: translate(-50%, -60%) scale(1); opacity: .7; }
  50%       { transform: translate(-50%, -60%) scale(1.1); opacity: 1; }
}

/* Corner ornaments */
.hero-corner {
  position: absolute;
  width: 72px; height: 72px;
  border-color: var(--taupe);
  border-style: solid;
  opacity: 0;
  animation: cr-fadein 1.5s ease 1.6s forwards;
}
.hero-corner--tl { top: 28px; left: 28px; border-width: 2px 0 0 2px; }
.hero-corner--tr { top: 28px; right: 28px; border-width: 2px 2px 0 0; }
.hero-corner--bl { bottom: 28px; left: 28px; border-width: 0 0 2px 2px; }
.hero-corner--br { bottom: 28px; right: 28px; border-width: 0 2px 2px 0; }

@keyframes cr-fadein {
  to { opacity: .45; }
}

/* Hero inner */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  gap: 0;
}

.hero-logo {
  width: 300px;
  animation: cr-logo-reveal 1s cubic-bezier(.22,.68,0,1.15) .1s both;
}
.hero-logo img { width: 100%; }

@keyframes cr-logo-reveal {
  from { opacity: 0; transform: translateY(20px) scale(.88); }
  to   { opacity: 1; transform: none; }
}

.hero-rule {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 28px 0 24px;
  border: none;
  animation: cr-rule 1s ease .7s both;
}
@keyframes cr-rule { to { width: 240px; } }

.hero-headline {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--charcoal);
  animation: cr-up .9s ease .85s both;
}
.hero-headline em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(.85rem, 2vw, 1rem);
  font-weight: 300;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: .65;
  margin-top: 12px;
  animation: cr-up .9s ease 1s both;
}

.hero-pillars {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  animation: cr-up .9s ease 1.15s both;
}
.hero-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.hero-pillar-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-pillar:nth-child(2) .hero-pillar-dot { background: var(--terracotta); }
.hero-pillar:nth-child(3) .hero-pillar-dot { background: var(--taupe); }
.hero-pillar span {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: .7;
}

.hero-cta {
  margin-top: 44px;
  animation: cr-up .9s ease 1.3s both;
}

@keyframes cr-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0;
  animation: cr-fadein 1s ease 2s forwards, cr-bob 2.2s ease 2.5s infinite;
}
.hero-scroll span {
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: .4;
}
.hero-scroll-arrow {
  width: 1px; height: 22px;
  background: var(--charcoal);
  opacity: .3;
  position: relative;
}
.hero-scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0; left: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  transform: rotate(45deg);
}
@keyframes cr-bob {
  0%, 100% { bottom: 24px; }
  50%       { bottom: 18px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

/* ============================================================
   SERVICES SECTION (homepage)
   ============================================================ */
.services-section {
  padding: 88px 24px;
  background: var(--white);
}
.services-section .section-eyebrow {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.services-section .section-heading {
  text-align: center;
  margin-bottom: 52px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: var(--max-w);
  margin-inline: auto;
}
.service-card {
  background: var(--parchment);
  border-radius: var(--radius);
  padding: 36px 30px;
  border-top: 3px solid var(--gold);
  transition: transform var(--ease), box-shadow var(--ease);
}
.service-card:nth-child(2) { border-top-color: var(--terracotta); }
.service-card:nth-child(3) { border-top-color: var(--taupe); }
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(90,85,80,.12);
}
.service-card-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  line-height: 1;
}
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.service-card p {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--charcoal);
  opacity: .8;
  margin-bottom: 20px;
}
.service-card .btn { font-size: .78rem; padding: 9px 18px; }

/* ============================================================
   ABOUT STRIP (homepage)
   ============================================================ */
.about-strip {
  background: var(--charcoal);
  padding: 80px 24px;
  text-align: center;
  color: var(--white);
}
.about-strip .section-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.about-strip h2 {
  color: var(--white);
  font-weight: 300;
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: 16px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.about-strip h2 strong { font-weight: 700; }
.about-strip hr {
  width: 48px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 0 auto 24px;
}
.about-strip p {
  max-width: 560px;
  margin-inline: auto;
  opacity: .8;
  font-size: .97rem;
  margin-bottom: 32px;
}
.about-strip .cta-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   CREDENTIALS STRIP (homepage)
   ============================================================ */
.credentials-strip {
  background: var(--parchment-dk);
  padding: 40px 24px;
  border-top: 1px solid var(--taupe);
  border-bottom: 1px solid var(--taupe);
}
.credentials-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 48px;
}
.credential-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--charcoal);
  opacity: .8;
  text-transform: uppercase;
}
.credential-item::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p {
  font-size: .85rem;
  opacity: .6;
  line-height: 1.65;
  margin-bottom: 0;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .88rem;
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--gold); }

.footer-contact p { font-size: .88rem; opacity: .7; margin-bottom: 10px; }
.footer-contact a { color: var(--gold); text-decoration: none; }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: .78rem;
  opacity: .4;
  margin: 0;
}
.footer-bottom a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--gold); }
.green-hosting-badge { opacity: .7; transition: opacity .2s; }
.green-hosting-badge:hover { opacity: 1; }
.green-hosting-badge img { display: block; border-radius: 4px; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page .error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  color: var(--parchment-dk);
  line-height: 1;
  margin-bottom: 0;
}
.error-page h1 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 12px;
}
.error-page p { opacity: .65; margin-bottom: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Nav → mobile drawer */
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--parchment-dk);
    box-shadow: 0 8px 24px rgba(90,85,80,.12);
    padding: 16px 0 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ease), opacity var(--ease);
  }
  .main-nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; gap: 2px; padding: 0 16px; }
  .main-nav a { font-size: .9rem; padding: 12px 16px; }
  .main-nav li:last-child a { display: inline-block; margin: 8px 16px 0; }

  /* Mobile sub-menu: show inline, indented */
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    border-radius: 0;
    min-width: auto;
    padding: 2px 0 8px 12px;
    transition: none;
  }
  .sub-menu a {
    font-size: .85rem;
    padding: 8px 16px;
    opacity: .8;
  }

  /* Hero */
  .hero-logo { width: 220px; }
  .hero-corner { display: none; }
  .hero-pillars { gap: 24px; }

  /* Services grid */
  .services-grid { grid-template-columns: 1fr; }

  /* About strip CTA */
  .about-strip .cta-row { flex-direction: column; align-items: center; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Page banner */
  .page-banner { padding: 40px 24px 32px; }
}

@media (max-width: 480px) {
  .hero-rule { animation-duration: .8s; }
  .hero-headline { font-size: 1.5rem; }
}


/* ============================================================
   BLOG — TWO-COLUMN LAYOUT (content + sidebar)
   ============================================================ */

/* Wide banner variant used on blog pages */
.page-banner-inner--wide {
  max-width: var(--max-w);
}

/* Two-column grid wrapper */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
  align-items: start;
}

/* Remove the centring constraints from entry-content when inside the grid */
.content-sidebar-wrap .entry-content,
.content-sidebar-wrap .blog-posts {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

/* ── Post summary cards (blog feed) ── */
.post-summary {
  padding-bottom: 0.5rem;
}
.post-summary h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  margin-bottom: 0.3em;
  margin-top: 0;
  border-bottom: none;
}
.post-summary h2 a {
  text-decoration: none;
  color: var(--charcoal);
  transition: color var(--ease);
}
.post-summary h2 a:hover {
  color: var(--gold);
}

/* Read more link */
.read-more-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--gold);
  letter-spacing: 0.02em;
  transition: color var(--ease);
}
.read-more-link:hover {
  color: var(--charcoal);
}

/* ── Post meta ── */
.post-meta {
  font-size: 0.82rem;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}
.post-meta a { color: inherit; }

.post-meta--single {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--parchment-dk);
  opacity: 0.65;
  font-size: 0.875rem;
}

/* ── Single post content ── */
.single-post-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ── Prev/next post navigation ── */
.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--parchment-dk);
  margin-top: 2.5rem;
}
.nav-previous,
.nav-next { max-width: 45%; }
.nav-next { text-align: right; margin-left: auto; }

.nav-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.nav-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover .nav-title { color: var(--gold); }

/* Back to blog link */
.back-to-blog {
  margin-top: 1.5rem;
  font-size: 0.875rem;
}
.back-to-blog a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.7;
  transition: opacity var(--ease), color var(--ease);
}
.back-to-blog a:hover { opacity: 1; color: var(--gold); }

/* ── Pagination ── */
.posts-pagination {
  margin-top: 1rem;
}
.posts-pagination .nav-links {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.posts-pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--charcoal);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}
.posts-pagination .page-numbers.current,
.posts-pagination .page-numbers:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ── Sidebar ── */
.blog-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 24px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 2px 8px rgba(90,85,80,.06);
}

.sidebar-widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--parchment-dk);
}

/* Sidebar lists (recent posts, archives, categories) */
.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-widget ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--parchment-dk);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
}
.sidebar-widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-widget ul li a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color var(--ease);
}
.sidebar-widget ul li a:hover { color: var(--gold); }

/* Archives widget — inline counts */
.sidebar-widget .post-count {
  float: right;
  font-size: 0.78rem;
  opacity: 0.5;
}

/* Tag cloud */
.sidebar-widget .tagcloud {
  line-height: 1;
}
.sidebar-widget .tagcloud a {
  display: inline-block;
  background: var(--parchment);
  color: var(--charcoal);
  font-size: 0.8rem !important;
  padding: 4px 10px;
  border-radius: 3px;
  text-decoration: none;
  margin: 3px 2px;
  border: 1px solid var(--parchment-dk);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  line-height: 1.6;
}
.sidebar-widget .tagcloud a:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* Archives select dropdown (if using dropdown format) */
.sidebar-widget select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  background: var(--parchment);
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--charcoal);
  cursor: pointer;
  appearance: auto;
}

/* ── Responsive: sidebar stacks below on narrow screens ── */
@media (max-width: 900px) {
  .content-sidebar-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .blog-sidebar {
    position: static;
  }
}
